Page 1 of 1

Turn off Bag opening Function?

Posted: Thu Mar 01, 2012 12:21 pm
by Tamyra
I'm testing a waypoint via questing lvl's 1-11, The profile I am using allows for the character's skills to level and for the gift bags to be opened and items equipped.

I noticed when running the bot that bags 4-11 were not opening, but the bot thinks they are and pauses to try and open them and equip the items in question. I added to the end of my waypoint some code that causes the bags to be opened quickly w/o equipping them just to sell off the contents at a merchant, but for speed sake, is there a way to tell the bot to only open bags 1-3 as the character lvl's and equip only those items and ignore bags 4-11?

That will shave at least 2 minutes off the whole waypoint time, maybe more. I tried changing the function in the profile, but it caused the bot to not run so I assume it is a function built into the bot itself.
If so could it be made into a modifiable variable?

Or, I could even just insert the opening of those bags in the waypoint itself, but I would need to know how to turn off the bag opening function w/o turning off the skill leveling function.

I'll have to double check the quest line, but I think part of the problem may be that the bot might skip from lvl 3 to 5 without stopping at 4 in between. The same happens with lvl 10. With my waypoint it jumps the bot from lvl 9 to 11 without stopping at lvl 10. Like I said, I do not mind that it doesn't open, but it keeps thinking that it IS opening and that's causing me to loose time and this waypoint is meant to be fast.

Re: Turn off Bag opening Function?

Posted: Thu Mar 01, 2012 8:01 pm
by lisa
are you talking about the 1-10 WP included in default bot as an example for people to see examples of code and an introduction to what the bot can do?


Or have you made your own 1-10?

Re: Turn off Bag opening Function?

Posted: Fri Mar 02, 2012 12:57 am
by Tamyra
Made my own.

Re: Turn off Bag opening Function?

Posted: Fri Mar 02, 2012 1:23 am
by lisa
ok then so what is the code you used to open the bags?

Re: Turn off Bag opening Function?

Posted: Fri Mar 02, 2012 10:53 am
by Tamyra
Edited: Never mind, I just deleted the first half of the argument and marked out the lines in the profile. It now says:

Code: Select all

<onLoad>
		-- Additional Lua code to execute after loading the profile
		-- and before the bot starts. e.g. You could overwrite profile settings here
		-- like: changeProfileOption("HP_REST", 60);
		inventory:update();

		if(player.Level == 1) then
			levelupSkills1To10("loadonly");
		end;

		if(player.Class1 == CLASS_SCOUT ) then
			changeProfileOption("ARROW_QUIVER", 2);
		end;
							
	</onLoad>
<onLevelup>
		-- thats a demo for opening the gift bags from Lvl 1-10
		-- and levelup the skills for a new character (mage or priest recommended)
		-- you can delete that lines if you don't want to use that

			-- single skill would be: sendMacro("SetSpellPoint(4,2);");
			-- or levelupSkill(_skillname, _times)
			levelupSkills1To10();

			-- open giftbag and equipt content
			-- openGiftbags1To10(player.Level);

	</onLevelup>
This seems to have solved my problem nicely. Took total run time from 20 minutes down to 14 minutes.