ChangeChar question

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
pugzilla
Posts: 43
Joined: Tue Jun 16, 2015 3:58 pm

ChangeChar question

#1 Post by pugzilla » Wed Jan 06, 2016 9:24 pm

Hey guys i know how to make the bot use for dailys

Code: Select all

      player:target_NPC(110691) -- Locken
      CompleteQuestByName(420424) -- Enduring Armor
      if 10 > RoMScript("Daily_count()") then
         __WPL:setWaypointIndex(__WPL:findWaypointTag("quest"))
      else
         ChangeChar()
         loadProfile()
         player:update()
         __WPL:setWaypointIndex(__WPL:findWaypointTag("quest"))
      end
but my question is can i make it change char after i complete a quest, is there anyway for the bot to know that one quest is done then log on to the next.

kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Re: ChangeChar question

#2 Post by kenzu38 » Thu Jan 07, 2016 3:24 am

pugzilla wrote:but my question is can i make it change char after i complete a quest
Of course, you can. Just add ChangeChar() after CompleteQuestByName()
pugzilla wrote:is there anyway for the bot to know that one quest is done then log on to the next.
Looking at the code you posted, you're probably working with dailies, so you can just log the number of dailies done before you turn in a quest. So if the number increases right after you do CompleteQuestByName() then, you can be sure the quest was properly turned in.

Code: Select all

if 10 > RoMScript("Daily_count()") then
	local oldnum = RoMScript("Daily_count()")
	player:target_NPC()
	CompleteQuestByName()
	yrest(1000)
	if RoMScript("Daily_count()") > oldnum then
		-- quest was turned in successfully, do code here
	end
else
	print("Dailies limit reached")
end		
Edit: And btw, I also answered your question in the RoM General section regarding the SwitchRaid macro. Just in case, you still haven't solved that then just check out the thread.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest