uint32_t MoveEvent::fireEquip(Player* player, Item* item, slots_t slot, bool boolean) { if (m_scripted) { return executeEquip(player, item, slot); } else { return equipFunction(this, player, item, slot, boolean); } }
uint32_t MoveEvent::fireEquip(Player* player, Item* item, slots_t slot, bool isRemoval) { if(m_scripted){ return executeEquip(player, item, slot); } else{ return equipFunction(player, item, slot, isRemoval); } }
uint32_t MoveEvent::fireEquip(Player* player, Item* item, slots_t slot, bool boolean) { if (scripted) { if (getEventType() == MOVE_EVENT_EQUIP) { EquipItem(this, player, item, slot, boolean); } else if (getEventType() == MOVE_EVENT_DEEQUIP) { DeEquipItem(this, player, item, slot, boolean); } return executeEquip(player, item, slot); } else { return equipFunction(this, player, item, slot, boolean); } }