snippet check weapon class

View previous topic View next topic 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
                }[/ltr]

Digit
Admin

Posts : 8
Join date : 2016-01-17

http://theeverysite.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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