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

mx level

Doggynub

LUA / C++
Joined
Sep 28, 2008
Messages
2,541
Reaction score
186
i have been trying to make a max level for server , but i cant seem to succeed,
LUA:
function onAdvance(cid, skill, oldlevel, newlevel)
	if skill == SKILL__LEVEL and newlevel > 150 then
		return false
	end
return true
end

this what i tryed , no errors and no progress.
or i can make in creature event setrat exp 0? will this work
 
Last edited:
If you did manage i'm interested in the way you did it!, how?

With this i'd also like to recommend to not be using a script for it, just use the expstages and for the last level you'd just add multiplier "0"
 
ye i figured that out, i just made at creaturescript onthink
LUA:
function onThnik(cid)
for _, cid in ipairs(getPlayersOnline()) do
if getplayerLevel(cid) >= 150 then
doPlayerSetExperienceRate(cid,0)
end
end
return true
end
 
go to data/xml/stages.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<stages>
	<world id="0" multiplier="1">
		<stage minlevel="1" maxlevel="149" multiplier="100"/>
		<stage minlevel="150" multiplier="0"/>
</world>
</stages>

?
 
actully i am not making that a max level for the whole server it is just for definite players , and can be increased so , i did it with the onThink way.
 
Back
Top