snippet check weapon class

Go down

snippet check weapon class

Post by Digit on Sun Jan 17, 2016 10:03 am

Check for main hand
[ltr]                Item* pItem = player->GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_MAINHAND);
                if (pItem && pItem->GetTemplate()->Class == ITEM_CLASS_WEAPON && pItem->GetTemplate()->SubClass == ITEM_SUBCLASS_WEAPON_DAGGER)
                    // Do some stuff


Posts : 8
Join date : 2016-01-17

Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum