Quote:
Originally Posted by rmacham
Hi, i wondering how i can add a book to a SBInfo script for my salesmen to sell in my quest,
And my quest when published will included thanks to the person who helps me,
They will also be gave karma.
|
Code:
public class InternalBuyInfo : ArrayList
{
public InternalBuyInfo()
{
Add( new GenericBuyInfo( typeof( SewingKit ), 3, 20, 0xF9D, 0 ) );
Add( new GenericBuyInfo( typeof( Scissors ), 11, 20, 0xF9F, 0 ) );
Add( new GenericBuyInfo( typeof( DyeTub ), 8, 20, 0xFAB, 0 ) );
Add( new GenericBuyInfo( typeof( Dyes ), 8, 20, 0xFA9, 0 ) );
Add( new GenericBuyInfo( typeof( Shirt ), 12, 20, 0x1517, 0 ) );
Add( new GenericBuyInfo( typeof( ShortPants ), 7, 20, 0x152E, 0 ) );
Add( new GenericBuyInfo( typeof( FancyShirt ), 21, 20, 0x1EFD, 0 ) );
Add( new GenericBuyInfo( typeof( LongPants ), 10, 20, 0x1539, 0 ) );
Add( new GenericBuyInfo( typeof( FancyDress ), 26, 20, 0x1EFF, 0 ) );
Add( new GenericBuyInfo( typeof( PlainDress ), 13, 20, 0x1F01, 0 ) );
Add( new GenericBuyInfo( typeof( Kilt ), 11, 20, 0x1537, 0 ) );
Add( new GenericBuyInfo( typeof( Kilt ), 11, 20, 0x1537, Utility.RandomDyedHue() ) );
Add( new GenericBuyInfo( typeof( HalfApron ), 10, 20, 0x153b, 0 ) );
in the above code "Add( new GenericBuyInfo( typeof( * ), *, *, *, * );" is where you would put it.
so say if you book was named: TenCommandments
you would put... " Add( new GenericBuyInfo( typeof( TenCommandments ), 5, 20, (use its itemid), 0 ) ); " the number 1st number is amount they need to purchase the book..second number is amount the vendor should have in stock. the hex number is what the item should looking like in the list...
hope this helps..