Lurk
Active Member
- Joined
- Dec 4, 2017
- Messages
- 336
- Reaction score
- 48
Hello, I was using this script
and whenever people died, they were bugging and reseting to level 1, I found another version that works but those players who wereve prviously bugged are still bugged. Every solution I found for my problem didn't work, and I know for a FACT the problem is this
in my config.lua I have
but whenever I tried to use
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) == true then
if (getPlayerSlotItem(cid, 2).itemid == 10134) then
pos = getCreaturePos(cid)
doCreatureSetDropLoot(cid, false)
doPlayerSetLossPercent(cid, experience, 0)
doSendMagicEffect(pos, 49)
return TRUE
end
end
return TRUE
end
any idea how to turn that back to the defaulft value? I checked in my DB and every field in player that had loss isn't changeddoPlayerSetLossPercent(cid, experience, 0)
in my config.lua I have
Lua:
deathLostPercent = 10
it would bug anywaydoPlayerSetLossPercent(cid, experience, 10)
Last edited: