Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 09-01-2007, 02:46 PM   #1 (permalink)
Forum Novice
 
Join Date: Apr 2007
Location: In the Immortal realm of Hell
Posts: 113
Send a message via MSN to rmacham
Default Quest Help

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.
rmacham is offline   Reply With Quote
Old 09-17-2007, 12:31 PM   #2 (permalink)
Forum Novice
 
Join Date: Aug 2003
Age: 32
Posts: 428
Send a message via MSN to aventae
Default

Quote:
Originally Posted by rmacham View Post
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..
aventae is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5