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.