View Single Post
  #6  
Old 01-27-2016, 10:55 AM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,290
Default

Doing this off the top of my head, but the NPC use-case could be something like this to get the weapon delay:

const Item_Struct* ItemToUse = NULL;
int itemID = CastToNPC()->GetEquipment(MATERIAL_PRIMARY);
if (itemID > 0)
ItemToUse = database.GetItem(itemID);

then you can check if ItemToUse isn't null and use ItemToUse->Delay
__________________
www.eq2emu.com
EQ2Emu Developer
Former EQEMu Developer / GuildWars / Zek Seasons Servers
Member of the "I hate devn00b" club.
Reply With Quote