• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Cannot add more than 2 items on NPC VENDOR

Status
Not open for further replies.

Rochet2

Moderator / Eluna Dev
what items did you try to add?
Do note that you cant see items that are meant for the opposite faction or some other class or race than your character's class or race.

Try adding the item 25 as a test.
 

savenx

Enthusiast
I tried different item types.. ANY item i add, it only shows 2, like the pic.. Ex: If i add 10 foods it will show only 2
 

Rochet2

Moderator / Eluna Dev
Have you checked in DB if the items are there in npc_vendor table?
What about if you try to manually add to that table (npc_vendor) some item for the vendor?
Do other vendors work normally? (you can add items normally to other vendors?)
What happens if you try deleting an item from the vendor and adding one back in again? (does it still just add up to 2 items? Did the item get removed? Are you now only able to get up to 1 item?)

What is the exact command and item you tried with already? (one or few examples that should have worked)

Are you able to debug? (compile in debug and run with debugger attached to the program)


Try answering all the questions and provide information about what happened and what item entries you used.
"foods" is not an item and "tried all kinds of items" does not tell anything about if you tried the item entry 25 and if it succeeded or not or what errors you had with it.
 
Last edited:

savenx

Enthusiast
Yes, the items are on Npc_vendor table, other vendor work normally... I tested trying to add one food, one weapon, one piece of set... but every item i add appear only the 1 and 2 slot..
I deleted all items from one npc, when i added again it was bugged too
 

Rochet2

Moderator / Eluna Dev
So npc_vendor table has more items than 2 for the vendor?
Do you see any startup errors?
If you use .reload npc_vendor and take up the loaded count of items and then add an item to the vendor and use .reload npc_vendor again and see the new count, did it change? (even though the ivendor has for example 2 in database and 2 show ingame and after adding 3rd item only 2 show ingame)

What is the exact command and item you tried with already? (one or few examples that should have worked)
Are you able to debug? (compile in debug and run with debugger attached to the program)

No one can help you properly unless they know the issue and/or can reproduce it.
You have the issue so debugging, testing and observing should give you hints about what is wrong.
 
Last edited:

Jafferwaffer

Exalted Member
In the npc_vendor table the second column is slot. If you try to add 3 items to the given vendor, what does this column show for each item? (Name of column is slot). If 0 is set then the items arrange themselves in the order they were added but it might be worth trying to manually set where each item goes.
You can set the slot column for each row of item on your vendor, starting from 0.
More inf0 - http://rgtc.wikia.com/wiki/Npc_vendor_tc2#slot
 

savenx

Enthusiast
I tried .npc add item <item> 0 0 0 1... And yes, npc_vendor has more than 3 items on the sql... on npc_vendor its something like that:

npc id Item Id
npc id Item Id.. Like 20 times (but still showing only the 2 first items added)
 

savenx

Enthusiast
Still need help... SORRY for the idle time, i was sick on hospital, im really sorry, but you guys understand.
 

Tommy

Founder
Still need help... SORRY for the idle time, i was sick on hospital, im really sorry, but you guys understand.

Not sure if we covered this already, but is there ANYTHING you have done to the vendor system (source code) to cause this? Any custom patches, scripts or anything? There has to be an explanation. How old is your TrinityCore 3.3.5 source? If it is old, I suggest updating.
 

pinkyflip

Banned
I'd suggest starting with a fresh core with updated database with ELUNA
there is a tutorial in the Eluna page. it grabs the latest of everything.
but Id recommend not using the auto-database updater as i had issues using it.
just disable it in the conf.
 
Last edited:
Status
Not open for further replies.
Top