Jump to content
  • 0
Arszi

mangos zero NPC modification - Modifying vendor NPCs' stock

Question

Hello,

I am looking for a way to add new items for vendors to sell in my single player game. I want to add leathers to leatherworking supply vendors, metal bars/gemstones to smithing and engineering supply vendors, etc.

I want to avoid to micromanage bots, I would rather buy the required materials from vendors.

I figured out, that I have to add new entries to the NPC_Vendor table in the database, but I can not figure out,  which "entry" is which NPC in the Creature_Template table.

Could somone thelp me please, how can I find the NPCs, based on this? I would really appreaciate it!

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

There is a column in creature_template called  VendorTemplateId, that should get you where you need to be :)  Feel free ask if you have any more questions.

Share this post


Link to post
Share on other sites
  • 0

I found that one (VendorTemplateId), but all the values are "0".  I mean, it is zero for every NPCs. Also the table "NPC_Vendor_Template" is completely empty. That was the point, where I became confused. Oo

Thank you for the support :)

Share this post


Link to post
Share on other sites
  • 0

Hmm... well somethings not right.   

Few thigs.

1) is this an offical mangos release from git?

2) with with a fresh install of the db, do ingame vendors have items in stock?

Share this post


Link to post
Share on other sites
  • 0

1, It is from the download section of this website, 2018 april 27.

2, yes, fresh install, db generated with the main generate db script, i did not modify the default settings.

The npc vendors do have their stock properly. I found no vendors with missing stock so far.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions

Repositories

The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®
×
×
  • Create New...