[Archive] How do I make a vendor sell a specific item?
[Archive] How do I make a vendor sell a specific item?
Archived author: Faujulj • Posted: 2025-11-04T18:12:33.387407
Original source
I have looked at all of the npc commands and everything and looked it up and stuff but I just can't find anything to help
Archived author: Faujulj • Posted: 2025-11-04T18:12:33.387407
Original source
Hey.
You will have to fill the npc_vendor table with the items you want the npc to sell to the players.
If you need further help, let me know.
Quote:Damieninabox said:Do I need to have any outside source other than the client itself to do that? Like do I have to go into the sql files or anything like that? Or can I do that directly from the game?
Hey.
You will have to fill the npc_vendor table with the items you want the npc to sell to the players.
If you need further help, let me know.
Click to expand...
Archived author: Faujulj • Posted: 2025-11-04T18:12:33.387407
Original source
Quote:Damieninabox said:Do I need to have any outside source other than the client itself to do that? Like do I have to go into the sql files or anything like that? Or can I do that directly from the game?
Hey.
You will have to fill the npc_vendor table with the items you want the npc to sell to the players.
If you need further help, let me know.
Click to expand...
Archived author: Faujulj • Posted: 2025-11-04T18:12:33.387407
Original source
You could also select the npc and use .npc add item xxxxxx
Quote:Damieninabox said:I will try that thank you for the help
You could also select the npc and use .npc add item xxxxxx
Click to expand...
Archived author: Faujulj • Posted: 2025-11-04T18:12:33.387407
Original source
Quote:Damieninabox said:I will try that thank you for the help
You could also select the npc and use .npc add item xxxxxx
Click to expand...
Quote:Damieninabox said:Thank you I will try that and get back with you if it doesn’t work
You could also select the npc and use .npc add item xxxxxx
Click to expand...
Archived author: Faujulj • Posted: 2025-11-04T18:12:33.387407
Original source
Quote:Damieninabox said:Thank you I will try that and get back with you if it doesn’t work
You could also select the npc and use .npc add item xxxxxx
Click to expand...
Quote:Damieninabox said:Says there is no such subcommand
You could also select the npc and use .npc add item xxxxxx
Click to expand...
Archived author: Faujulj • Posted: 2025-11-04T18:12:33.387407
Original source
Say
Quote:Damieninabox said:Says there is no such subcommand
You could also select the npc and use .npc add item xxxxxx
Click to expand...
Quote:Faujulj said:Ahh Nevermind I figured out what I was doing wrong. Space between add and item. Thank you this helped a lot.
Say
Says there is no such subcommand
Click to expand...
Archived author: Faujulj • Posted: 2025-11-04T18:12:33.387407
Original source
Ahhh
Quote:Faujulj said:Ahh Nevermind I figured out what I was doing wrong. Space between add and item. Thank you this helped a lot.
Say
Says there is no such subcommand
Click to expand...
Quote:Damieninabox said:So is there any way that I can copy an npc and put that same custom npc somewhere else?
You could also select the npc and use .npc add item xxxxxx
Click to expand...
Archived author: Faujulj • Posted: 2025-11-04T18:12:33.387407
Original source
Quote:Damieninabox said:So is there any way that I can copy an npc and put that same custom npc somewhere else?
You could also select the npc and use .npc add item xxxxxx
Click to expand...
Archived author: Faujulj • Posted: 2025-11-04T18:12:33.387407
Original source
Sure, if you wanna spawn the exact same npc, just select the npc and type .npc info
Get his ENTRY id, go to the place you wanna have him and .npc add addentryidhere
So if your npc entry is 57384, you wanna use .npc add 57384