oliverpadron86
New Member
- Joined
- Mar 1, 2018
- Messages
- 40
- Reaction score
- 0
How i can make a monster give experience but doesnt mattr what level u are
<?xml version="1.0" encoding="UTF-8"?>
<stages>
<world id="0" multiplier="1">
<stage minlevel="1" maxlevel="250" multiplier="10"/>
<stage minlevel="251" maxlevel="499" multiplier="5"/>
<stage minlevel="500" multiplier="1"/>
</world>
</stages>
As stated above, you can disable stages in config.lua in order to allow monsters to give experience forever.
If you want to use stages, you can simply omit the maxlevel modifier on the last multiplier stage.
This will provide the same allowance on experience as the previous suggestion, where monsters will give experience forever without a level limit.
XML:<?xml version="1.0" encoding="UTF-8"?> <stages> <world id="0" multiplier="1"> <stage minlevel="1" maxlevel="250" multiplier="10"/> <stage minlevel="251" maxlevel="499" multiplier="5"/> <stage minlevel="500" multiplier="1"/> </world> </stages>
Put this into whatever script you want. onKill / onUse / et ceteraIm just looking for example something like this:
Glaucus 2 levels.. doesnt matter if you are 1k or 5k
local amount = getExperienceForLevel(getPlayerLevel(cid) + 2) - getPlayerExperience(cid)
doPlayerAddExperience(cid, amount)