Page 1 of 1

dont buy arrow quiver

Posted: Mon Nov 30, 2009 5:25 am
by raff
Hi,

my scout hits today level 49 and i moved him to a new area. Now that my char is level 49, he can use "Gunpowder Arrow Quiver".

I made new waypoints with repair path in this area and the bot will not buy any arrow quiver. I used the merchant function before without any problems.

Zone: Weeping Coast
NPC: Barry Haishenmo@Boulderwind Village

Re: dont buy arrow quiver

Posted: Mon Nov 30, 2009 9:46 am
by Administrator
First, I need you to provide some more information. First, add this line to your profile:

Code: Select all

<option name="DEBUG_INV" value="true" />
(it should, obviously, go in the options section)


Now, place one of the quivers in the very first slot in the first page of your inventory. Start the bot. As it is mapping the inventory, it will dump out a lot of extra information (so you should probably pause it as soon as it starts printing this stuff out). The first one is related to the quiver. It should look like this:

Code: Select all

DEBUG item:update(): slot 1 bagId 61 Id 200000 name Gunpowder Arrow Quiver qty 99
What does that line say?

Re: dont buy arrow quiver

Posted: Mon Nov 30, 2009 3:00 pm
by raff
Administrator wrote:First, I need you to provide some more information. First, add this line to your profile:

Code: Select all

<option name="DEBUG_INV" value="true" />
(it should, obviously, go in the options section)


Now, place one of the quivers in the very first slot in the first page of your inventory. Start the bot. As it is mapping the inventory, it will dump out a lot of extra information (so you should probably pause it as soon as it starts printing this stuff out). The first one is related to the quiver. It should look like this:

Code: Select all

DEBUG item:update(): slot 1 bagId 61 Id 200000 name Gunpowder Arrow Quiver qty 99
What does that line say?
Thanks for your answer, the line says:

Code: Select all

DEBUG item:update(): slot 1 bagId 62 Id 202083 name Gunpowder Arrow Quiver qty 1

Re: dont buy arrow quiver

Posted: Tue Dec 01, 2009 10:56 am
by Administrator
Try adding this line to database/consumables.xml:

Code: Select all

	<potion type="arrow_quiver" id="202083" name="Gunpowder Arrow Quiver" level="49" />
It should go in line 53 (though, it doesn't really mater where you put it). Let me know if this works.

Re: dont buy arrow quiver

Posted: Tue Dec 01, 2009 11:24 am
by raff
I added it, but still won't work, and i saw this line was already in this file at line 45


//edit:

I just made a test waypoint in the previous zone Ravenfell and there the bot will buy Gunpowder Arrow Quiver!

But the only difference i see between the both npcs, is that the Quivers from the NPC in Weeping Coast are on the latest page in buy menu.

So

Zone: Weeping Coast
NPC: Barry Haishenmo@Boulderwind Village

dont works

Zone: Ravenfell
NPC: Buruk Wright@Abandoned Fortress

works

Re: dont buy arrow quiver

Posted: Tue Dec 01, 2009 12:32 pm
by Administrator
Are they both the same item ID? That's strange that it works for one and not the other.

Re: dont buy arrow quiver

Posted: Tue Dec 01, 2009 12:47 pm
by raff
No, i bought one of each npc and compared:

Code: Select all

036% [******************--------------------------------]DEBUG item:update(): sl
ot 23 bagId 83 Id 202083 name Gunpowder Arrow Quiver qty 1
038% [*******************-------------------------------]DEBUG item:update(): sl
ot 24 bagId 64 Id 202083 name Gunpowder Arrow Quiver qty 1


and this is the merchant log from both npc

Code: Select all

We successfully target NPC Barry Haishenmo and try to open the dialog window.
Mapping inventory (bagslot 1 to 60)...
100% [**************************************************]
Mapping inventory (bagslot 1 to 60)...
100% [**************************************************]
Mapping inventory (bagslot 1 to 60)...
100% [**************************************************]
Clearing target.

Code: Select all

We successfully target NPC Buruk Wright and try to open the dialog window.
Mapping inventory (bagslot 1 to 60)...
100% [**************************************************]
Mapping inventory (bagslot 1 to 60)...
100% [**************************************************]
Shopping........................................................................
................................................
Shopping...
Mapping inventory (bagslot 1 to 60)...
100% [**************************************************]
Clearing target.

Re: dont buy arrow quiver

Posted: Tue Dec 01, 2009 3:21 pm
by Administrator
Try editing classes/inventory.lua, line 281. Change the 20 in "for storeSlot = 1, 20, 1 do" to a higher number such as 30. The higher the number is, more store inventory slots will be checked for the item you need, but it will also take longer. Let me know what works.

Re: dont buy arrow quiver

Posted: Tue Dec 01, 2009 3:30 pm
by raff
Administrator wrote:Try editing classes/inventory.lua, line 281. Change the 20 in "for storeSlot = 1, 20, 1 do" to a higher number such as 30. The higher the number is, more store inventory slots will be checked for the item you need, but it will also take longer. Let me know what works.
Thanks, this works!

This NPC has 28 slots, and the Gunpowder Arrow Quiver was on slot 28.

thanks again :)