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.
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#241
Post
by lisa » Thu Dec 15, 2011 6:43 am
I added in another log for items with shell stats, I always forget what chars have what stats.
Code: Select all
local filename = getExecutionPath() .. "/logs/shellitems.log";
local file, err = io.open(filename, "a+");
if file then
inventory:update()
for slot = 61, 240 do
item = inventory.BagSlot[slot]
if item.RequiredLvl >= 67 then
file:write("Account: "..RoMScript("GetAccountName()").."\tName: " ..string.format("%-10s",player.Name ).." \tDate: " .. os.date())
for k,v in pairs(item.Stats) do
file:write("\n \t Name = "..item.Name.."\tStat = "..v.Name)
end
end
end
file:write("\n")
file:close()
end
You can put it pretty much where you want aslong as it only gets used once of course.
I just added it after the log code for shells.
Looks like this
Code: Select all
Account: ***** Name: ***** Date: 12/15/11 21:32:53
Name = Suppression Shoulder Armor of the Fort Stat = Crimson Guardian VIII
Account: ***** Name: ***** Date: 12/15/11 21:32:53
Name = Suppression Heavy Boots of the Fort Stat = Crimson Guardian VIII
Name = Suppression Heavy Boots of the Fort Stat = Crimson Guardian VIII
Name = Suppression Heavy Boots of the Fort Stat = Crimson Guardian VIII
Obviously I replace acc and char names with *****
I am going to add in a durability check aswell =)
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#242
Post
by rock5 » Thu Dec 15, 2011 7:29 am
Sounds ok.
Luckily I added durability of bag items to the code not long ago so that will be easy to add.
- 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.”
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#243
Post
by lisa » Thu Dec 15, 2011 7:32 am
yeah it was pretty easy =)
I seem to be getting ghost stats from other items though, pretty sure that's the same issue I had when I looked at the stat rating function I was doing back in Feb.
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#244
Post
by rock5 » Thu Dec 15, 2011 9:05 am
lisa wrote:I seem to be getting ghost stats from other items though, pretty sure that's the same issue I had when I looked at the stat rating function I was doing back in Feb.
Do you mean you are getting ghost stats listed in item.Stats? If so could you give me an example?
- 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.”
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#245
Post
by lisa » Thu Dec 15, 2011 9:35 am
Code: Select all
Account: ***** Name: ***** Date: 12/16/11 00:07:10
Name = Callous Subversion Belt Stat = Glorious Guard VIII Durability = 81
Name = Callous Subversion Belt Stat = Mist I Durability = 81
Name = Callous Subversion Belt Stat = Intellect I Durability = 81
Account: ***** Name: ***** Date: 12/16/11 00:07:10
Name = Vengeance Leather Boots of the Fort Stat = Crimson Fortitude VIII Durability = 80
Name = Vengeance Leather Boots of the Fort Stat = Flame I Durability = 80
Name = Vengeance Leather Boots of the Fort Stat = Dexterity I Durability = 80
Account: ***** Name: ***** Date: 12/16/11 00:07:10
Name = Vengeance Leather Boots of the Fort Stat = Crimson Fortitude VIII Durability = 88
Name = Vengeance Leather Boots of the Fort Stat = Mist I Durability = 88
Name = Vengeance Leather Boots of the Fort Stat = Dexterity I Durability = 88
Account: ***** Name: ***** Date: 12/16/11 00:07:10
Name = Vengeance Leather Boots of the Fort Stat = Crimson Fortitude VIII Durability = 118
Name = Vengeance Leather Boots of the Fort Stat = Spirit I Durability = 118
Name = Vengeance Leather Boots of the Fort Stat = Dark I Durability = 118
Account: ***** Name: ***** Date: 12/16/11 00:07:10
Name = Vengeance Leather Boots of the Fort Stat = Crimson Fortitude VIII Durability = 88
Name = Vengeance Leather Boots of the Fort Stat = Flame I Durability = 88
Name = Vengeance Leather Boots of the Fort Stat = Dark I Durability = 88
Account: ***** Name: ***** Date: 12/16/11 00:07:10
Name = Pulverizing Light Boots of the Fort Stat = Crimson Fire VIII Durability = 72
Name = Pulverizing Light Boots of the Fort Stat = Earth I Durability = 72
Account: ***** Name: ***** Date: 12/16/11 00:07:10
Name = Suppression Heavy Boots of the Fort Stat = Crimson Protection VIII Durability = 77
Name = Suppression Heavy Boots of the Fort Stat = Strength I Durability = 77
Account: ***** Name: ***** Date: 12/16/11 00:12:51
Name = Callous Vengeance Belt Stat = Glorious Strength VIII Durability = 113
Name = Callous Vengeance Belt Stat = Flame I Durability = 113
Name = Callous Vengeance Belt Stat = Dexterity I Durability = 113
Account: ***** Name: ***** Date: 12/16/11 00:12:51
Name = Tribute Gown of the Fort Stat = Crimson Aid VIII Durability = 90
Name = Tribute Gown of the Fort Stat = Mist I Durability = 90
Name = Tribute Gown of the Fort Stat = Dexterity I Durability = 90
Account: ***** Name: ***** Date: 12/16/11 00:18:29
Name = Callous Vengeance Belt Stat = Glorious Strength VIII Durability = 100
Name = Callous Vengeance Belt Stat = Mist I Durability = 100
Name = Callous Vengeance Belt Stat = Intellect I Durability = 100
Account: ***** Name: ***** Date: 12/16/11 00:23:48
Name = Suppression Heavy Boots of the Fort Stat = Crimson Defense VIII Durability = 103
Name = Suppression Heavy Boots of the Fort Stat = Mist I Durability = 103
Name = Suppression Heavy Boots of the Fort Stat = Intellect I Durability = 103
Every item has only 1 stat, the crimson or glorious. All the other stats are left over from the previous item looked at.
I had the same issue way back when.
So you check an item and it has 3 stats, then when you look at next item and it has 1 stat, you get that 1 stat + the other 2 stats.
I noticed something similar when looking at the cooldown for skills but I also found a value of how many buffs there were. So maybe close by to the stat address is another that says how many stats it has.
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#246
Post
by rock5 » Thu Dec 15, 2011 9:49 am
Easy fix. I just didn't reinitialize item.Stats when updating. Just add the following line at line 252 of 'item.lua' just before the 'for' loop.
- 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.”
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#247
Post
by lisa » Thu Dec 15, 2011 10:02 am
lol yup that was it, tested and works fine.
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#248
Post
by rock5 » Thu Dec 15, 2011 10:09 am
I must have been half asleep when I added the stats. Awhile ago I noticed that empty slots kept their stats. So I reinitialised Stats when slots became empty but I missed this problem.

- 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.”
-
Alleexx
- Posts: 120
- Joined: Sun May 15, 2011 4:28 am
- Location: Sweden
#249
Post
by Alleexx » Tue Dec 27, 2011 6:14 am
I get this error every time when the bot changes character:
-
Rickster
- Posts: 291
- Joined: Sun Oct 24, 2010 4:23 pm
#250
Post
by Rickster » Tue Dec 27, 2011 6:40 am
it looks like the bot cant load the characters profile, maybe there is not one for this special char. in this case you have to point it to at least the "Default" profile.
maybe this helps:
Code: Select all
sendMacro("}LoginNextToon=true;a={")
sendMacro("Logout();"); waitForLoadingScreen(); -- wait for next character to load
-- Re-initialize player
player = CPlayer.new();
settings.load();
settings.loadProfile("Default"); -- Profile name
loadPaths("xxx"); -- wp file you want to load after character switch
-
Alleexx
- Posts: 120
- Joined: Sun May 15, 2011 4:28 am
- Location: Sweden
#251
Post
by Alleexx » Tue Dec 27, 2011 6:45 am
Nope I have a profile for each of my botting chars, and it works fine if I restart the cot script every time It's done switching character.
I'll try the code you suggested tomorrow as I'm done with cot for today.
-
Alleexx
- Posts: 120
- Joined: Sun May 15, 2011 4:28 am
- Location: Sweden
#252
Post
by Alleexx » Tue Dec 27, 2011 6:51 am
Hmm... Where should I put that code?
-
Rickster
- Posts: 291
- Joined: Sun Oct 24, 2010 4:23 pm
#253
Post
by Rickster » Tue Dec 27, 2011 7:17 am
its supposed to be somewhere, where u switch to your next char.
i see you use "userfunction_LoginNextChar.lua" to switch chars and accounts, i am not familiar with this as i just use
Code: Select all
sendMacro("}LoginNextToon=true;a={")
sendMacro("Logout();"); waitForLoadingScreen(); -- wait for next character to load
place this
Code: Select all
-- Re-initialize player
player = CPlayer.new();
settings.load();
settings.loadProfile(player.Name); -- Profile name
after your code to switch chars. it will reinitialize the new character, load the settings and its corresponding profile options ... i think

-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#254
Post
by rock5 » Tue Dec 27, 2011 12:50 pm
Alleexx wrote:I get this error every time when the bot changes character:
Sorry, I think this was brought up before but I never updated the first post. Basically that line 39
can just be deleted. It was copied by mistake. I didn't copy the "loadprofile" function to the cot_tele file because cot_tele doesn't need to load a character specific profile and I just forgot to delete that line.
Anyway, I'll just upload an updated version. Now at version 1.72.
- 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.”
-
Alleexx
- Posts: 120
- Joined: Sun May 15, 2011 4:28 am
- Location: Sweden
#255
Post
by Alleexx » Wed Dec 28, 2011 7:14 am
Yep it works now. Thanks rock!
-
kuripot
- Posts: 493
- Joined: Mon Nov 07, 2011 9:14 pm
#256
Post
by kuripot » Tue Jan 03, 2012 2:16 am
there's a option that my char talk to malatina npc then leave so i can go out the the room to load other waypoint??? or i need to do another waypoint to talk the npc then leave the room??
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#257
Post
by rock5 » Tue Jan 03, 2012 6:12 am
kuripot wrote:there's a option that my char talk to malatina npc then leave so i can go out the the room to load other waypoint??? or i need to do another waypoint to talk the npc then leave the room??
I always make sure cot_tele is the last waypoint I load so I don't have to leave the game to load the next character. The reason it was done this way is because it would look suspiscious if you came back out after only 4 minutes. If you must run another waypoint file after cot_tele then, yes, you will have to make a waypoint file that talks to Malatina then leaves.
- 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.”
-
kuripot
- Posts: 493
- Joined: Mon Nov 07, 2011 9:14 pm
#258
Post
by kuripot » Tue Jan 03, 2012 6:31 am
good idea to make cot the last waypoint... usually i make treasurehunt is the last waypoint to do because very far to transporter...
maybe its better to do the waypoint from TH to snoop so the TH will not be last... thanks for suggestion..
-
kuripot
- Posts: 493
- Joined: Mon Nov 07, 2011 9:14 pm
#259
Post
by kuripot » Tue Jan 03, 2012 3:34 pm
how about recall to heffner after cot?? i think its dont look suspicious?? hot to do that?? how to recall command
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#260
Post
by rock5 » Tue Jan 03, 2012 9:27 pm
Are you talking about "Tansport: Heffner Camp" skill? That's a bit tricky because it can be in different places for different characters. If they are the same you can use
where 'n' is the possition the skill is in the first tab.
- 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.”
Who is online
Users browsing this forum: No registered users and 0 guests