//Command will search the userers backpack for TypeOf(Bandage), and if true, applies to self. //If false, will return a msg announcing to the player they are out of bandage. //Should also give a warning if bandage count is under ?? public static void BandSelf_OnCommand(CommandEventArgs e) { Mobile pm = e.Mobile; Item band = pm.Backpack.FindItemByType(typeof(Bandage)); if (band != null) { Bandage.BandSelfCommandCall(pm, band); if (band.Amount <= 5) { pm.SendMessage("Warning, your bandage count is currently {0}!!", band.Amount); } } else { pm.SendMessage("You have no bandages left to use!"); } }
public static void BandSelf_OnCommand(CommandEventArgs e) { Mobile pm = e.Mobile; Item band = pm.Backpack.FindItemByType(typeof(Bandage)); if (band != null) { Bandage.BandSelfCommandCall(pm, band); if (band.Amount <= 5) { pm.SendMessage("Attention il ne vous reste que {0} bandages !", band.Amount); } } else { pm.SendMessage("Vous n'avez plus de bandages !"); } }