Hello,
I have only flown over and i am a little bit confused.
1. You try to load the files do not exist or are already loaded
in the file "DoD.xml" the already loaded file loaded yet again. thiss is not required
in the file "DoD_return.xml" will attempt to load a nonexistent file
in the file "DoDs.xml" the already loaded file loaded yet again. thiss is not required
2. Should your character die once, and must accept the return path, it will unfortunately never get properly
DoD_return.xml
<!-- # 6 --><waypoint x="70" z="-867" y="870">
yrest(2000);
player:target_NPC("Jake Wallanda");
sendMacro("ChoiceOption(1);");
yrest(2000);
</waypoint>
you not need to wait load screen a this point ???
after you need to load DoD or DoDs
Code: Select all
<!-- # 7 --><waypoint x="1640" z="-4873" y="752">
yrest(2000);
loadPaths("DoD/DoD_2")
</waypoint>
on the DoD.xml I got the headache
only a small extract
Code: Select all
<!-- # 5 --><waypoint x="1933" z="2834" y="433">
yrest(500)
player:findTarget("Incomplete Bloody Beast");
local target = player:getTarget();
player:cast("MAGE_FLAME");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_BOLT");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_BOLT");
player:findTarget("Incomplete Bloody Beast");
local target = player:getTarget();
player:cast("MAGE_FLAME");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_BOLT");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_BOLT");
player:cast("MAGE_FIREBALL");
player:findTarget("Incomplete Bloody Beast");
local target = player:getTarget();
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_BOLT");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_BOLT");
player:cast("MAGE_FIREBALL");
player:update()
player:lootAll();
</waypoint>
I do not understand why you do not produce function
example
Code: Select all
<onLoad>
function trash_mob()
local target = player:getTarget()
local _tm = false
local spawn = player:findNearestNameOrId(Incomplete Bloody Beast)
if spawn then
player:target(spawn)
if target.HP > 0 then
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_BOLT");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_EXPLOSION");
player:cast("MAGE_ELECTRIC_BOLT");
player:cast("MAGE_FIREBALL");
_tm = false
else
_tm = true
end
else
_tm = true
end
return _tm
end
</onLoad>
...
<!-- # 5 --><waypoint x="1933" z="2834" y="433">
repeat
until trash_mob() == true
player:update()
player:lootAll();
...
so now, I have no more time. I am look at the detail later