Dan(Tasanar)

Moderator
So I tried editing a stock SBinfo and changed it to AdvancedSBInfo but it is throwing some errors.

Was wondering if anyone has a blank templet of an NPC and its SBinfo I could look at.
 
If you're using the VNc AdvancedVendor, you don't need to use SBInfo's any more, it's all handled in the background.

There are some examples in VNc that use the AdvancedVendor, take look at the VoteVendor :)
 
Oh perfect! Thanks. VoteVendor is exactly what I was looking for.
[doublepost=1485015886][/doublepost]So I made my NPC and he works great. One question though - without editing the stock AdvancedVendor, I only want 5 of each of the items on my special vendor available at a time, not 100.

Code:
public void AddStock<TObj>(int price, string name = null, int amount = 100, object[] args = null)
        {
            AddStock(typeof(TObj), price, name, amount, args);
        }

        public virtual void AddStock(Type type, int price, string name = null, int amount = 100, object[] args = null)
        {
            AdvancedStock.AddStock(type, price, name, amount, args);
        }

I know that is where I would change it but is there another way I can just add a method to my custom vendor so I do not need to edit the stock?
 
Back