Exemple #1
0
        protected override void OnTarget(Mobile from, object targeted)
        {
            IPoint3D p = targeted as IPoint3D;

            if (t_bow.Charges > 0)
            {
                from.Hidden = false;
                t_bow.Charges--;
                t_bow.Hue = 2028;
                t_bow.Teleport(p, t_attacker);
                TeleportRechargeTimer t = new TeleportRechargeTimer(from, t_bow);
                t.Start();
            }
            else
            {
                from.SendMessage("You do not have any more charges!");
            }
        }
            protected override void OnTarget( Mobile from, object targeted )
            {
            	IPoint3D p = targeted as IPoint3D;

            	if ( t_bow.Charges > 0 )
            	{
						from.Hidden = false;
						t_bow.Charges--;
						t_bow.Hue = 2028;
						t_bow.Teleport( p, t_attacker );
						TeleportRechargeTimer t = new TeleportRechargeTimer( from, t_bow );
						t.Start();
				}
				else
				{
					from.SendMessage( "You do not have any more charges!" );
				}
            }