how to make bot leave a farm spot when the event start

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

how to make bot leave a farm spot when the event start

#1 Post by abron1 » 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
not sure how to change the code to just check for the event then go to the npc and spam turn in quest each time i tried to change the

Code: Select all

if Count == 2 and YourTargetScore > ScorePE then break end
      until false 
	end
to

Code: Select all

 
      if Count == 2 and YourTargetScore > ScorePE then break end
     __WPL:setWaypointIndex(__WPL:findWaypointTag("event")); 
	end
i get a error so not sure how to put it together

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...

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 9 guests