Example #1
0
		public EventChip( Mobile from, EventGate moongate ) : base( 4626 )
		{
			m_Owner = from;
			m_Moongate = moongate;
			
			Movable = false;
			Name = m_Owner.Name + "'s Event Chip";
			Hue = 1152;
			
			SaveSkills( from, this );
			
			StoredSkills = new ArrayList();
			
			for( int i = 0; i < m_Owner.Skills.Length; ++i )
				StoredSkills.Add( ( int )m_Owner.Skills[i].Base );
		}
Example #2
0
 public static void Unregister(EventGate gate)
 {
     m_Gates.Remove(gate);
 }
Example #3
0
 public static void Register(EventGate gate)
 {
     m_Gates.Add(gate);
 }
		public void SetSkills( Mobile from, EventGate gate )
		{
			if ( m_Owner == from )
			{
				gate.m_RawStr 	= 	from.RawStr;
				gate.m_RawDex 	= 	from.RawDex;
				gate.m_RawInt 	= 	from.RawInt;
				gate.m_Fame 	= 	from.Fame;
				gate.m_Karma 	= 	from.Karma;
				gate.m_Kills 	= 	from.Kills;
				
				for( int i = 0; i < m_Owner.Skills.Length; i++ )
				{
					m_Owner.Skills[i].Base = ( int )gate.m_Skills;
				}
			}
			else
			{
				from.SendMessage( "You are missing a backpack or bankbox and need to report this issue to staff immediately." );
				return;
			}
		}