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

Its possible? Check it please! Rep+

Status
Not open for further replies.

Piltrafa

Active Member
Joined
Nov 10, 2010
Messages
654
Reaction score
29
Hello

Its possible people that not have VIP Account cannot up more than level 300?

Thanks in avance.
Repp++
 
Depends.
For example, if you're using Shawak's vip system then you can just put
LUA:
if isPlayerVip(cid) == FALSE then
I don't know how to make script but you could check it that way.
If you're using other people's vip system, check the new functions that he/she added
data/lib/050-function
 
Probly with doPlayerSetRate(cid, SKILL__LEVEL, 0), since stages.xml can't be edited that way
 
untested:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="antiexp" author="C" enabled="yes">
	<config name="settings">
		<![CDATA[
			limitLevel = 300
		]]>
	</config>
	<event type="login" name="antiexp" event="script">
		<![CDATA[
			domodlib('settings')
			function onLogin(cid)
				if getPlayerVipDays(cid) < 1 and getPlayerLevel(cid) >= limitLevel then
					doPlayerSetRate(cid, SKILL__LEVEL, 0)
				end
				return true
			end
		]]>
	</event>
</mod>
 
Probably something like this

LUA:
function onAdvance(cid, oldlevel, newlevel)
         if getPlayerVipDays(cid) == 0 and getPlayerLevel(cid) == 300 then
doPlayerSetRate(cid, SKILL__LEVEL, 0)
             end
return true
end

If someone whos more pro can fix it or make it better?
 
CyberM

I tested it and check it:
probelm.png


How to repair it?
 
Last edited:
Status
Not open for further replies.
Back
Top