i'm trying to add stat scrolls to a vendor
how do i set the type of stat scroll +5 +10 or in this case +50? my stat cap is 500


Code:
Add(new GenericBuyInfo("Stat Scroll +50", typeof(StatCapScroll(550), 5000000, 20, 0x14F2, 0x481) );
 
Check the definition of "GenericBuyInfo", i think it accepts an array of parameters you can pass.
Some object[]
Which means you can pass "new object[]{ 5 }" i think?

There might be some stock examples of this, take a look at all the vendor SBinfos.
 
Yup Yup Thanks that worked. Thank you.
Code:
 Add(new GenericBuyInfo("StatCapScroll", typeof(StatCapScroll), 5000000, 20, 0x14F2, 0x481, new object[] { 550 }));
 
Back