public static bool Execute(YiObj entity, Item item) { try { if (entity.IsInJail() || !entity.CanUseScroll()) { return(false); } entity.Teleport(225, 205, 1000); entity.Inventory.RemoveItem(item); } catch { return(false); } return(true); }
public static bool Execute(YiObj entity, Item item) { try { if (entity.IsInJail() || !entity.CanUseScroll()) { Message.SendTo(entity, "You can not use scrolls in this map.", MsgTextType.Top); } else { entity.Teleport(190, 271, 1011); entity.Inventory.RemoveItem(item); } } catch { return(false); } return(true); }