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 07-24-2008, 04:20 PM   #1 (permalink)
Forum Novice
 
Join Date: Jan 2004
Posts: 191
Default Questions on Item events

I'm looking for the item event that fires when the item is added to a pack. I've overridden the OnDroppedInto and the OnDroppedOnto.

I'm also trying to override the OnParentDeath, but it never fires. I'm guessing that this is because the Parent is changed from the mobile that picked it up to the backpack that it is contained within. If this is the case, how can I figure out when the Mobile that contains the item dies? Containing the item does not neccessarily mean have it equiped, but it could be in their backpack, or sub backpacks, as well.
Stuby is offline   Reply With Quote
Old 07-28-2008, 11:17 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

The event that fires for an item when the player that has that item dies is OnParentDeath.

Code:
public virtual DeathMoveResult OnParentDeath( Mobile parent )
Lokai is offline   Reply With Quote
Old 07-29-2008, 01:05 AM   #3 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,886
Default

Just to be clear, this isnt an event, it is just a method.
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline   Reply With Quote
Old 08-06-2008, 10:20 AM   #4 (permalink)
Forum Novice
 
Join Date: Jan 2004
Posts: 191
Default

Coundn't get the OnParentDeath to work as the item's parent was the player's backpack, not the player. But, there was an OnInventoryDeath that did the trick.

I know they aren't true events, but they are circumstantial ones.
Stuby 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