Esempio n. 1
0
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);
	}
}
Esempio n. 2
0
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);
	}
}
Esempio n. 3
0
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);
    }
}