• 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 Gain Exp

sry bad englesh, need edit config.lua to gain exp in lv 80+ or 80- of my level, exemple i level 100, gain exp in lv 180 and lv 20

PHP:
    minLevelThresholdForKilledPlayer = 0.9
    maxLevelThresholdForKilledPlayer = 1.1
 
Shockah has hit it on the head. He wants to be able to receive exp for killing anyone within 80 levels of his current level. Therefore his example of him being level 100 and the character being level 20 or higher and level 180 or lower he still receives experience.

@Topic

The server looks at it as a percentage (%) rather then a level base. If you want to set it up as level based, then you would have to write a script for it to do so. That can be done in creatureevents onKill getplayerlevel(target) if playerlevel <= getplayerlevel(cid) + 80 then give exp bla bla bla. But the best way to do it is in the percentage such as a .2 a nd 1.8 as this would give you 80% either way. If you are level 100 you could kill a lv 20 and get exp, but if you were level 50 you cannot kill anyone below level 10.
 

Similar threads

Back
Top