Lua How to set death loss percent to different skills?

gabriel28

Intermediate OT User
Joined
Mar 16, 2012
Messages
174
Reaction score
18
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.
 

Apollos

Dude who does stuff
Joined
Apr 22, 2009
Messages
589
Reaction score
357
Location
United States
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.
 
Top