public void TeleportToVendor(Mobile from) { if (Used) { return; } if (!IsChildOf(from.Backpack)) { from.SendLocalizedMessage(1060640); // The item must be in your backpack to use it. } else { Spell spell = new VendorTeleportSpell(from, this); spell.Cast(); } }
public void TeleportToVendor(Mobile from) { if (Used) return; if (!IsChildOf(from.Backpack)) { from.SendLocalizedMessage(1060640); // The item must be in your backpack to use it. } else { Spell spell = new VendorTeleportSpell(from, this); spell.Cast(); } }