thanatos420

Initiate
ServUO Version
Publish 58
Ultima Expansion
Endless Journey
trying to figure out way to set up a training area for stealing. want a gem or item i can name then have it set to stealable. upon success of stealing the item i want it to instantly remove itself from players pack. i know how to make the xml spawner for stealables just the last part has me baffled. any help is appreciated.
 
If you create a new item class, you can override OnAdded as such;
Code:
public override void OnAdded(IEntity parent)
{
    base.OnAdded(parent);

    if (RootParent is PlayerMobile)
        Timer.DelayCall(Delete); // delete safely on the next core cycle
}
 
If you were to do a thieving training room I would suggest creating custom items meant to be stolen, and look at the arcane focus crystal script and use that method to automatically delete the items after awhile.
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back