• 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!

Lua How to set death loss percent to different skills?

gabriel28

Member
Joined
Mar 16, 2012
Messages
199
Solutions
6
Reaction score
24
I know about doPlayerSetLossPercent, but this set to all skills and I need to specific skills.
I saw doPlayerSetLossSkill, can use this one like: doPlayerSetLossSkill(cid, SKILL_AXE, 0)?
Thanks in advance.
 
Lua:
doPlayerSetLossSkill(cid, doLose)
So it's not likely the function you are looking for.

I'm not the best at old TFS but I would assume you would have to do a source edit within the function Player::onDeath() or you could edit the original setLossSkill function to be able to set it the way you want.
 
Back
Top