protected override void OnTarget( Mobile from, object targeted )
		{
			if ( targeted is PoteauArnachement && !( targeted is PoteauDeVille ) )
			{
				PoteauArnachement pa = (PoteauArnachement)targeted;
				PoteauDeVille pdv = new PoteauDeVille();
				pdv.Location = pa.Location;
				pdv.Map = pa.Map;
				pdv.Movable = false;
				pdv.Animal = pa.Animal;
				pdv.Maitre = pa.Maitre;
				pdv.Loyaute = pa.Loyaute;
				pdv.AI = pa.AI;
				pa.Delete();
				from.SendMessage( "Le poteau est maintenant un poteau de ville" );
			}
			else
				from.SendMessage( "Ceci n'est pas un poteau de joueur" );
		}
示例#2
0
 protected override void OnTarget(Mobile from, object targeted)
 {
     if (targeted is PoteauArnachement && !(targeted is PoteauDeVille))
     {
         PoteauArnachement pa  = (PoteauArnachement)targeted;
         PoteauDeVille     pdv = new PoteauDeVille();
         pdv.Location = pa.Location;
         pdv.Map      = pa.Map;
         pdv.Movable  = false;
         pdv.Animal   = pa.Animal;
         pdv.Maitre   = pa.Maitre;
         pdv.Loyaute  = pa.Loyaute;
         pdv.AI       = pa.AI;
         pa.Delete();
         from.SendMessage("Le poteau est maintenant un poteau de ville");
     }
     else
     {
         from.SendMessage("Ceci n'est pas un poteau de joueur");
     }
 }