GraWork 856 Posted June 25, 2023 Share Posted June 25, 2023 Spoiler cmd_gm.cpp // Keress rá ACMD(do_item_purge) { int i; LPITEM item; for (i = 0; i < INVENTORY_AND_EQUIP_SLOT_MAX; ++i) { if ((item = ch->GetInventoryItem(i))) { ITEM_MANAGER::instance().RemoveItem(item, "PURGE"); ch->SyncQuickslot(QUICKSLOT_TYPE_ITEM, i, 1000); } } for (i = 0; i < DRAGON_SOUL_INVENTORY_MAX_NUM; ++i) { if ((item = ch->GetItem(TItemPos(DRAGON_SOUL_INVENTORY, i )))) { ITEM_MANAGER::instance().RemoveItem(item, "PURGE"); } } } // Illeszd be a funkció alá ACMD(do_item_purge_inventory) { int i; LPITEM item; for (i = 0; i < INVENTORY_MAX_NUM; ++i) { if ((item = ch->GetInventoryItem(i))) { ITEM_MANAGER::instance().RemoveItem(item, "PURGE"); ch->SyncQuickslot(QUICKSLOT_TYPE_ITEM, i, 1000); } } for (i = 0; i < DRAGON_SOUL_INVENTORY_MAX_NUM; ++i) { if ((item = ch->GetItem(TItemPos(DRAGON_SOUL_INVENTORY, i )))) { ITEM_MANAGER::instance().RemoveItem(item, "PURGE"); } } } cmd.cpp // Keress rá { "ipurge", do_item_purge, 0, POS_DEAD, GM_HIGH_WIZARD }, // Illeszd be alá { "ip_inv", do_item_purge_inventory, 0, POS_DEAD, GM_HIGH_WIZARD }, Parancs: /ip_inv Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.