Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 06-02-2008, 05:22 PM   #1 (permalink)
Newbie
 
Join Date: Jun 2004
Age: 28
Posts: 46
Default Overriding Item ID

Looked at Lokai's tutorial to constructors and couldn't find an answer. The silk is being constructed looking like cuts of leather. Since the silk is a child class of the base leather, I figure it's calling on the baseleather for its Item ID, so I just need to know where (and how would be a plus) I can override this. Let me know if you need to see any of my scripts.
black1stripes is offline   Reply With Quote
Old 06-02-2008, 05:40 PM   #2 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 41
Posts: 1,425
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

In your constructor for the Silk, add this:

Code:
 
this.ItemID = 0x1234; //where 0x1234 is the ID for Silk.
Lokai is offline   Reply With Quote
Old 06-02-2008, 06:25 PM   #3 (permalink)
Newbie
 
Join Date: Jun 2004
Age: 28
Posts: 46
Default

OMG finally, thank you very much
black1stripes 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