my daily quest is a few simple wps. i just cant figure out how to add in the code for LoginNextChar. ive been looking for some scprits to try and copy what they did. but thats where i get lost. i only want to run one account of characters. any help or tips would help thanks
If you're having each of your characters run a series of waypoints, you can have the last waypoint that is ran, at the end of it, run the coder to log next character and load the first waypoint.
Waypoint files either loop continuously or have some logic that ends it. Usually daily waypoint files end when you've done your 10 dailies then either ends, or loads another waypoint file to take the character to another location, or loads the next character. You have to decide where your waypoint files ends. In daily waypoint files it usually ends after completing the last daily at the npc. So you need to add a check for the dailies after completing the quest but before accepting the next quest. So with dailies, where the quest giver and taker is the same npc, it might lookk like this
<waypoint x="000" z="000" y="000>
player:target_NPC(questnpc)
CompleteQuestByName(questname)
if RoMScript("Daily_count()") == 10 then
-- Load a new waypoint file for this character
loadPaths(nextwaypointfile)
-- or load the next character
LoginNextChar() -- SetCharList is usually done in the <onload>
loadProfile()
player:update()
loadPaths(__WPL.FileName) -- To reload the current file, or load another one.
-- or end the waypoint
error("Dailies finished. Waypoint file ended.")
else
AcceptQuestByName(questname)
end
</waypoint>
Of course there are always veriations such as the one you posted with 2 npcs. The same applies though. Where do you want it to end and what do you want it to do next?
Note: If you want to cycle through all characters of 1 account you can use ChangeChar() only instead of SetCharList and LoginNextChar. ChangeChar logs into the next character and doesn't require a character list.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
In yours, I'm not sure what this does: loadPaths(__WPL."quest") but I'm assuming you want it to go to waypoint 1 if the character still has dailies available.