• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ Make fishing protect from drown damage exactly like shielding does with physical

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
1,521
Solutions
27
Reaction score
870
Location
Santiago - Chile
GitHub
ralke23
Twitch
ralke23
Hi again! I want to know if this could be possible. What the title says, how can I make fishing protect from drown damage like shielding does with physical? I can only think on c++ to achieve this if the outcome is going to be the same that shielding does. But idk, I hear your ideas! Thanks a lot in advance. As requeriement, I really need that this don't involve anything from client-side.

Using TFS 1.5 downgrades 8.6.
Regards!
 
Last edited:
game.cpp healthChange func check if damage is DROWNDAMAGE if yes then

check if attacked creature is Player if yes then
uint32_t fishingValue = player->getSkillLevel(SKILL_FISH);

and write your own formula how many dmg shouldbe absorbed
 
Back
Top