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

People not losing appropiate amount of skills/ml

tatee

New Member
Joined
Mar 21, 2009
Messages
12
Reaction score
1
Deathlosspercent is set to 10 on config.lua.
I've already tried setting mysql queries.

People lose an appropiate amount of level, but when it comes to skill or magic level they lose about 3% everytime, I just want to set everything to the usual amount of loss. I suspect it should be somewhere on creaturesevent or

Im using OTX based on tfs 0.3 for version 8.6

I would really appreciate some help, I usually don't post for help because I know how to use the search button but I haven't been able to found anything.

Thanks in regards,
 
Hi friend, if you want to set null loss percent for skills, ml
paste this code:

Lua:
    doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0)
        doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0)

below:

Lua:
function onLogin(cid)

on creaturescripts/login.lua

or edit the "0" for the % wanted

I hope it helps you
 
Hi friend, if you want to set null loss percent for skills, ml
paste this code:

Lua:
    doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0)
        doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0)

below:

Lua:
function onLogin(cid)

on creaturescripts/login.lua

or edit the "0" for the % wanted

I hope it helps you


I've tried this and it only works for skills, not for magic level... I've been reading around and found out I am not using a ondeath file on creaturesevent, is it a good idea to make one? If any one has one that would be nice
 
Back
Top