theeverysiteforum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

snippet check weapon class

Go down

snippet check weapon class Empty snippet check weapon class

Post by Digit 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

https://theeverysite.board-directory.net

Back to top Go down

Back to top


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