Problem with waypoint
Posted: Wed Aug 01, 2012 6:59 am
Hi buddies, I have a problem with a part of a waypoint, took 3 days trying to solve it but without success.
When the bot not loot the chest and get the warning message is functioning normally but when loot, walk around and break.
Any help? Thanks!!
I use google translator
Code: Select all
<waypoint x="3075" z="2710" y="250">EventMonitorStart("loteado","WARNING_MESSAGE");
local target = player:getTarget();</waypoint>
<waypoint x="3015" z="2742" y="248"> if player:target_Object(113137,7000,false,false) then
printf("Loteando\n");
repeat
local time, moretocome, msg = EventMonitorCheck("loteado","1")
if msg ~= nil then
if string.find(msg, "You have already opened this treasure chest") then
cprintf(cli.red, "Siguiente\n");
__WPL:setWaypointIndex(__WPL:findWaypointTag("1cofre"));
EventMonitorStop("loteado");
break;
end
end
until true
end
</waypoint>
<waypoint x="2960" z="2934" y="248">
player:update();
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();sendMacro('InviteByName("Charnamer")');
__WPL:setWaypointIndex(__WPL:findWaypointTag("comienzo"));
end </waypoint>
<waypoint x="2960" z="2934" y="248" tag="1cofre"></waypoint>
<waypoint x="2965" z="3107" y="248"></waypoint>
<waypoint x="3026" z="3199" y="248"></waypoint>Any help? Thanks!!
I use google translator