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
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 =)
Remember no matter you do in life to always have a little fun while you are at it
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.
Remember no matter you do in life to always have a little fun while you are at it
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.
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.
Remember no matter you do in life to always have a little fun while you are at it
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.
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.
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
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.
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??
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.
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