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