Page 13 of 23

Re: course of terror WP

Posted: Thu Dec 15, 2011 6:43 am
by lisa
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 =)

Re: course of terror WP

Posted: Thu Dec 15, 2011 7:29 am
by rock5
Sounds ok.

Luckily I added durability of bag items to the code not long ago so that will be easy to add.

Re: course of terror WP

Posted: Thu Dec 15, 2011 7:32 am
by lisa
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.

Re: course of terror WP

Posted: Thu Dec 15, 2011 9:05 am
by rock5
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?

Re: course of terror WP

Posted: Thu Dec 15, 2011 9:35 am
by lisa

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.

Re: course of terror WP

Posted: Thu Dec 15, 2011 9:49 am
by rock5
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.

Code: Select all

		self.Stats = {}

Re: course of terror WP

Posted: Thu Dec 15, 2011 10:02 am
by lisa
lol yup that was it, tested and works fine.

Re: course of terror WP

Posted: Thu Dec 15, 2011 10:09 am
by rock5
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. :oops:

Re: course of terror WP

Posted: Tue Dec 27, 2011 6:14 am
by Alleexx
I get this error every time when the bot changes character:
Error7.jpg

Re: course of terror WP

Posted: Tue Dec 27, 2011 6:40 am
by Rickster
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		

Re: course of terror WP

Posted: Tue Dec 27, 2011 6:45 am
by Alleexx
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.

Re: course of terror WP

Posted: Tue Dec 27, 2011 6:51 am
by Alleexx
Hmm... Where should I put that code?

Re: course of terror WP

Posted: Tue Dec 27, 2011 7:17 am
by Rickster
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 ;)

Re: course of terror WP

Posted: Tue Dec 27, 2011 12:50 pm
by rock5
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

Code: Select all

			loadprofile()
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.

Re: course of terror WP

Posted: Wed Dec 28, 2011 7:14 am
by Alleexx
Yep it works now. Thanks rock!

Re: course of terror WP

Posted: Tue Jan 03, 2012 2:16 am
by kuripot
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??

Re: course of terror WP

Posted: Tue Jan 03, 2012 6:12 am
by rock5
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.

Re: course of terror WP

Posted: Tue Jan 03, 2012 6:31 am
by kuripot
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..

Re: course of terror WP

Posted: Tue Jan 03, 2012 3:34 pm
by kuripot
how about recall to heffner after cot?? i think its dont look suspicious?? hot to do that?? how to recall command

Re: course of terror WP

Posted: Tue Jan 03, 2012 9:27 pm
by rock5
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

Code: Select all

RoMScript("UseSkill(1,n)")
where 'n' is the possition the skill is in the first tab.