T
Tibia Demon
Guest
i try to add this reward chest to tfs 1.4.1
but i cant locate this lines where is it in tfs 1.4.1
monsters.cpp
and this in monsters.h
where to find it in tfs 1.4.1
Reward System [remake of #1628] by cezarguimaraes · Pull Request #1641 · otland/forgottenserver
Remake of #1628 Reasoning After seeing a few reward systems on OTLand try and fail to replicate the original one, I decided to give it a try myself. Some images of the result: How I did it...
github.com
monsters.cpp
C++:
void MonsterType::createLoot(Container* corpse)
{
if (g_config.getNumber(ConfigManager::RATE_LOOT) == 0) {
corpse->startDecaying();
return;
}
C++:
bool canPushItems;
bool canPushCreatures;
bool pushable;
bool isSummonable;
bool isRewardBoss;
bool isIllusionable;
bool isConvinceable;
bool isAttackable;
bool isHostile;
bool hiddenHealth;