Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
-
pugzilla
- Posts: 43
- Joined: Tue Jun 16, 2015 3:58 pm
#1
Post
by pugzilla » Tue Jun 16, 2015 4:08 pm
Hi im fairly new to using this mostly just can set some waypoints and farm a little area.
im trying to use LoginNextChar to do a account for tokens . im installed both LoginNextChar and fastLogin folders.
ive set all the accounts up and seems to work fine.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-5485" z="3405" y="586">
player:target_Object(110711) -- Silverfall Bulletin Board
AcceptQuestByName(420424) -- Enduring Armor
</waypoint>
<!-- # 2 --><waypoint x="-5388" z="3289" y="559"> </waypoint>
<!-- # 3 --><waypoint x="-5312" z="3180" y="549"> </waypoint>
<!-- # 4 --><waypoint x="-5236" z="3109" y="544"> </waypoint>
<!-- # 5 --><waypoint x="-5187" z="3084" y="542">
player:target_NPC(110691) -- Locken
CompleteQuestByName(420424) -- Enduring Armor
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
-
noobbotter
- Posts: 527
- Joined: Fri Aug 31, 2012 1:15 pm
#2
Post
by noobbotter » Tue Jun 16, 2015 5:43 pm
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.
Something like this:
Code: Select all
CharList = {
{account=13 , chars={1,2,3,4,5,6}},
{account=42 , chars={1,2}},
{account=54 , chars={1,2}},
}
NextFileToLoad = "thestartingwaypointfilename"
SetCharList(CharList)
LoginNextChar()
loadProfile()
player:update()
yrest(1000)
loadPaths(NextFileToLoad);
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#3
Post
by rock5 » Wed Jun 17, 2015 2:30 am
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
Code: Select all
<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.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
pugzilla
- Posts: 43
- Joined: Tue Jun 16, 2015 3:58 pm
#4
Post
by pugzilla » Thu Jun 18, 2015 3:10 pm
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-5479" z="3404" y="586" tag="quest">
player:target_Object(110711) -- Silverfall Bulletin Board
AcceptQuestByName(420424) -- Enduring Armor
</waypoint>
<!-- # 2 --><waypoint x="-5456" z="3356" y="570"> </waypoint>
<!-- # 3 --><waypoint x="-5398" z="3294" y="559"> </waypoint>
<!-- # 4 --><waypoint x="-5335" z="3225" y="554"> </waypoint>
<!-- # 5 --><waypoint x="-5278" z="3163" y="547"> </waypoint>
<!-- # 6 --><waypoint x="-5218" z="3096" y="544"> </waypoint>
<!-- # 7 --><waypoint x="-5191" z="3083" y="542">
player:target_NPC(110691) -- Locken
CompleteQuestByName(420424) -- Enduring Armor
if RoMScript("Daily_count()") == 10 then
loadPaths(__WPL."quest")
else
ChangeChar()
loadProfile()
player:update()
end
</waypoint>
</waypoints>
this is my poor attempt lol. new to this stuff
anyways i get the character to go accept the quest and go to the other npc to turn in before he turns in i get this
scripts\rom/bot.lua:1034: Failed to compile and run Lua code for waypoint #1
any help or tips thanks again
-
noobbotter
- Posts: 527
- Joined: Fri Aug 31, 2012 1:15 pm
#5
Post
by noobbotter » Thu Jun 18, 2015 3:18 pm
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.
Try this:
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest"))
</onLoad>
<!-- # 1 --><waypoint x="-5479" z="3404" y="586" tag="quest">
player:target_Object(110711) -- Silverfall Bulletin Board
AcceptQuestByName(420424) -- Enduring Armor
</waypoint>
<!-- # 2 --><waypoint x="-5456" z="3356" y="570"> </waypoint>
<!-- # 3 --><waypoint x="-5398" z="3294" y="559"> </waypoint>
<!-- # 4 --><waypoint x="-5335" z="3225" y="554"> </waypoint>
<!-- # 5 --><waypoint x="-5278" z="3163" y="547"> </waypoint>
<!-- # 6 --><waypoint x="-5218" z="3096" y="544"> </waypoint>
<!-- # 7 --><waypoint x="-5191" z="3083" y="542">
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
</waypoint>
</waypoints>
With this one, I also added an onLoad section so that it will always start at waypoint 1.
-
pugzilla
- Posts: 43
- Joined: Tue Jun 16, 2015 3:58 pm
#6
Post
by pugzilla » Thu Jun 18, 2015 3:31 pm
thanks for the help , it all seems to be working perfect. ill take all the help and keep learning from it.

Who is online
Users browsing this forum: Google [Bot] and 7 guests