snippet check weapon class
theeverysiteforum :: General :: Guides
Page 1 of 1
snippet check weapon class
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]
[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]
theeverysiteforum :: General :: Guides
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum