[Archive] [Solved] Npc vendor
[Archive] [Solved] Npc vendor
Archived author: deathlyend • Posted: 2025-11-04T18:18:53.539951
Original source
heey all,
i was creating a npc today i made his flags and everything to a vendor but how do i make a loot table / vendor table were al the items are in that he sells.
i couldnt find it in the database
thanks for helping
kind regards
deathlyend
Archived author: deathlyend • Posted: 2025-11-04T18:18:53.539951
Original source
There is a table in the database named npc_vendor
When you add items they show up there.
Such as .npc add item (ID) 0 0 (EXTCOSTID)
For example. .npc add i 4971 = adds the item to the targetted NPC.
In npc_vendor you see all the items in it for price in ext cost etc.
Archived author: deathlyend • Posted: 2025-11-04T18:18:53.539951
Original source
The table is called "npc_vendor", You can also add items to your vendor from in-game. Simply type .npc vendor add item "Item ID", on an administrator account in-game.
I hope this works for you,
Zafire
--EDIT--
Seems Ayiko posted before me, but 2 answers doesn't hurt!
Archived author: deathlyend • Posted: 2025-11-04T18:18:53.539951
Original source
ty guys going to try this i already tryed command but think it was the wrong one then
kind regards
deathlyend
Archived author: deathlyend • Posted: 2025-11-04T18:18:53.539951
Original source
#Closed