dont buy arrow quiver

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

dont buy arrow quiver

#1 Post 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
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: dont buy arrow quiver

#2 Post 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?
raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: dont buy arrow quiver

#3 Post 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
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: dont buy arrow quiver

#4 Post 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.
raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: dont buy arrow quiver

#5 Post 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
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: dont buy arrow quiver

#6 Post by Administrator »

Are they both the same item ID? That's strange that it works for one and not the other.
raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: dont buy arrow quiver

#7 Post 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.
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: dont buy arrow quiver

#8 Post 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.
raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: dont buy arrow quiver

#9 Post 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 :)
Post Reply