So the .xml script is this one:
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="31847" z="4592" tag ='Main'>
local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 > dqCount then
queststate = getQuestStatus("Helping Them Grow");
if queststate == "complete" then
-- Complete quest
player:target_NPC("Blinsik");
sendMacro("CompleteQuest()"); yrest(2000);
-- Accept quest
player:target_NPC("Blinsik");
sendMacro("AcceptQuest()"); yrest(2000);
--__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));
else
-- Accept quest
player:target_NPC("Blinsik");
sendMacro("AcceptQuest()"); yrest(2000);
end
else
player:logout();
end
</waypoint>
<!-- # 2 --><waypoint x="31812" z="4849"> </waypoint>
<!-- # 3 --><waypoint x="31415" z="5720" tag = "Item">
queststate = getQuestStatus("Helping Them Grow")
if queststate == "incomplete" then
player:target_NPC("Cleansing Crystal");
yrest(3000);
__WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
end
while 1 > inventory:getItemCount(204840) do
player:target_Object(112976,500);
yrest(100);
end;
</waypoint>
<!-- # 4 --><waypoint x="31878" z="4692"> </waypoint>
<!-- # 5 --><waypoint x="31843" z="4593"> </waypoint>
</waypoints>1.Problem he dont complete the quest.
2.Problem he use the item two times.
3.Problem when i delete this one :else
player:logout();
end
and the bot dont work.
4.Problem i will use the daylie ticket.
I know its many but i dont understand it.
I test a many things but nothing works.
Please help me dumb a**