Kod:
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.");
}
}
}
}
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.");
}
}
}
}
Yorumlar
Henüz yorum yapılmamıştır.
|
OylamalarOylama :![]()
Üyelerin oylama ortalaması (10 dışında) : Henüz Oylanmamış
Oylar: 0 |
Benzer Sayfalar
| Sayfalar | Yorumlar | Gönderen | Tarih |
| At Temizleme Komutu | 0 | Weight | 17-04-2011 |
| Emote Komutu | 0 | ubeyid | 23-08-2009 |
| Taşa Çevirme Komutu | 0 | ubeyid | 23-08-2009 |
| Bandage Self Komutu | 0 | ubeyid | 23-08-2009 |
| Afk Komutu | 0 | ubeyid | 23-08-2009 |







