コード例 #1
0
ファイル: ShopMap.cs プロジェクト: dpisanu/xrunuo
        public void TeleportToPreviousLocation(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 ReturnFromVendorSpell(from, this);
                spell.Cast();
            }
        }
コード例 #2
0
ファイル: ShopMap.cs プロジェクト: Crome696/ServUO
        public void TeleportToPreviousLocation(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 ReturnFromVendorSpell(from, this);
                spell.Cast();
            }
        }