Anasayfa
UO Sunucular
Forumlar
Profilim
Lord Streamline 23-08-2009
using System;
using Server.Items;
using Server.Targeting;
using Server.Mobiles;
using System.Collections;

namespace Server.Scripts.Commands
{
    public class RessMe
    {

        public static void Initialize()
        {
            Server.Commands.Register("RessMe", AccessLevel.Player, new CommandEventHandler(RessMe_OnCommand));

        }

        [Usage("RessMe")]
        [Description("Ressme for Player. You must have 0 goldcoins in your bankbox.")]



        public static void RessMe_OnCommand(CommandEventArgs e)
        {





            Container bank = e.Mobile.BankBox;

            if (e.Mobile.Hits == 0)
            {
                if (bank != null && bank.ConsumeTotal(typeof(Gold), 0))
                {
                    e.Mobile.PlaySound(0x214);
                    e.Mobile.FixedEffect(0x376A, 10, 16);
                    e.Mobile.Resurrect();
                    e.Mobile.SendMessage("You feel your life comes back in your body...");
                }
                else
                {
                    e.Mobile.SendMessage("You must have 0 Goldcoins in your bankbox!");
                }
            }
            else
            {
                e.Mobile.SendMessage("Your are not dead.");
            }

        }

    }
}

UO-Dev SPONSOR

UO-Dev SPONSOR

Henüz yorum yapılmamış. Yorum yazabilmek için giriş yapmanız gerekir.

Üyelerin oylama ortalaması (10 dışında) :

Henüz Oylanmamış

Oylar: 0