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

[Request]Level blocade

pawlacz741

New Member
Joined
Jan 23, 2009
Messages
87
Reaction score
2
Hello

I need script like warots.net.pl when player get level 350-400 then player don't get more lvl.

Please I rly need this script
 
Can somebody edit this script? Its not working ;/ idk what function must I use

function onKill(cid)
if getPlayerLevel(cid) > 450 then
doPlayerAddExperience(cid, (getExperienceForLevel(350) - getPlayerExperience(cid)))
end
return TRUE
end
 
Try
Lua:
function onKill(cid, target, lastHit)
	if getPlayerLevel(cid) >= 350 then
		doPlayerAddExperience(cid, getExperienceForLevel(350) - getPlayerExperience(cid))
	end
	return true
end
 
Code:
function onKill(cid, target, lastHit)
	if getPlayerLevel(cid) >= 350 then
		doPlayerAddExperience(cid, (getExperienceForLevel(350) - getPlayerExperience(cid)))
	end
	return true
end
 
Hmm its working but on 50% I have other ida. Somebody know how to change exp to lvl? for example I need from lvl 350 to 351
34000000 exp and i change it to 999999999999 and this is now imposible gets next lvls
 
We are all so stupid on this forum...<_<

You should modify data/XML/stages.xml
PHP:
<stages>
	<world id="0" multiplier="1">
		<stage minlevel="1" maxlevel="350" multiplier="1"/>
		<stage minlevel="351" multiplier="0"/>
	</world>
</stages>
I used it in all old versions of TFS. It should work now too.
 
Help me in this piece of script of mine:

if getPlayerLevel(cid) >= 500 and isPremium(cid) == false then
doPlayerAddExperience(cid, getExperienceForLevel(500) - getPlayerExperience(cid))
end
return true

But if I am right, this part "getExperienceForLevel(500)" will make the player back to this level
so, what to write in this part "getExperienceForLevel(getPlayerExp??? Dont Know)"

Finally, I Want say that, if player is higher than level 500 with premium account
he continues upgrading level normally
but if is no premium account, he don't receives Exp, or something like it.

Help please :]
 
Back
Top