public override void OnAdded( object parent )
{
base.OnAdded( parent );
if( parent is Mobile )
{
Mobile from = (Mobile)parent;
from.Skills.Wrestling.Base += 10;
}
}
public override void OnRemoved( object parent )
{
base.OnRemoved( parent );
if( parent is Mobile )
{
Mobile from = (Mobile)parent;
from.Skills.Wrestling.Base -= 10;
}
}
This is what I've used in the past. This was used for an ethereal mount.
Code:public override void OnAdded( object parent ) { base.OnAdded( parent ); if( parent is Mobile ) { Mobile from = (Mobile)parent; from.Skills.Wrestling.Base += 10; } } public override void OnRemoved( object parent ) { base.OnRemoved( parent ); if( parent is Mobile ) { Mobile from = (Mobile)parent; from.Skills.Wrestling.Base -= 10; } }
We use essential cookies to make this site work, and optional cookies to enhance your experience.