how to make bot leave a farm spot when the event start
Posted: Sun Nov 04, 2012 1:38 am
Code: Select all
function waitForEventStart()
repeat
yrest(1000) -- check every second
local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
if (ScorePE == nil) then
printf("Score is nil, oh no!")
__WPL:setWaypointIndex(__WPL:findWaypointTag("timer"));
return
end
if Count == 2 and YourTargetScore > ScorePE then break end
until false
end
Code: Select all
if Count == 2 and YourTargetScore > ScorePE then break end
until false
end
Code: Select all
if Count == 2 and YourTargetScore > ScorePE then break end
__WPL:setWaypointIndex(__WPL:findWaypointTag("event"));
end
oh and also to start going to the event spot like 30 sec before it starts... example if my farm spot is 30 secs away want to start heading back to turn in to wait for the event to start to turn in quest...