Fire Element
Member
Tested on TFS 0.4
game.cpp
after
add
if you need to add new items:
int items[] = {2148, 2152, 2160, 3976, 2599, 6000};
game.cpp
after
Code:
if(!canThrowObjectTo(mapFromPos, mapToPos) && !player->hasCustomFlag(PlayerCustomFlag_CanThrowAnywhere))
{
player->sendCancelMessage(RET_CANNOTTHROW);
return false;
}
add
Code:
uint8_t items[] = {2148, 2152, 2160, 3976, 2599, 7636, 7635, 7634};
uint8_t n = 0;
for (n; n < sizeof(items) / sizeof(uint8_t); n++) {
if(item->getID() == items[n] && player->hasCondition(CONDITION_EXHAUST, 3)) {
player->sendTextMessage(MSG_STATUS_SMALL, "Please wait a few seconds to move this item.");
return false;
}
}
if(Condition* condition = Condition::createCondition(CONDITIONID_DEFAULT, CONDITION_EXHAUST, 500, 0, false, 3))
player->addCondition(condition);
if you need to add new items:
int items[] = {2148, 2152, 2160, 3976, 2599, 6000};
Last edited: