Nine_Coronas
Wanderer
how to make negative skills
i want to make a brace that will be for training taming and drop the taming/lore skills by 100... is this possible?
heres what i got so far and it didnt work...
i want to make a brace that will be for training taming and drop the taming/lore skills by 100... is this possible?
heres what i got so far and it didnt work...
using System;
using Server;
using Server.Mobiles;
using Server.Network;
using System.Collections;
namespace Server.Items
{
public class tamerstrainingring : GoldRing
{
//public override int LabelNumber{ get{ return 1061102; } } // Ring of the Vile
public override int ArtifactRarity{ get{ return 42069; } }
private Mobile m_Owner; // i added for ownership
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Owner
{
get{ return m_Owner; }
set{ m_Owner = value; }
}
[Constructable]
public RingOfTheRanger()
{
Name = "TaMeRs TrAiNiNg RiNg";
Hue = 2855;
SkillBonuses.SetValues( 0, SkillName.AnimalTaming, -100.0 );
SkillBonuses.SetValues( 1, SkillName.AnimalLore, -100.0 );
SkillBonuses.SetValues( 2, SkillName.Veterinary, -100.0 );
LootType = LootType.Blessed;
}
public RingOfTheRanger( Serial serial ) : base( serial )
{
}
public override bool OnEquip( Mobile from )
{
if( m_Owner == null )
{
m_Owner = from;
base.OnEquip( from );
from.FollowersMax = 10;
from.SendMessage( "This ring now belongs to you, and only you!" );
}
else if( from == m_Owner || from.AccessLevel >= AccessLevel.GameMaster )
{
base.OnEquip( from );
from.FollowersMax = 10;
from.SendMessage( "You now have 10 max followers" );
}
else
{
from.SendMessage( "This does not belong to you." );
return false;
}
return true;
}
public override void OnRemoved( object parent )
{
if ( parent is Mobile )
{
((Mobile)parent).FollowersMax = 5;
((Mobile)parent).SendMessage("Your max followers has just been reduced to 5");
}
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}