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

No loss Exp

Ghazer

Member
Joined
Mar 13, 2009
Messages
350
Reaction score
6
If are premium character as not down to level 140 but can up more
its possible?

and blessings with discout for premiums
 
Last edited:
You need this
LUA:
function onLogin(cid)
  if getPlayerLevel(cid) < 140 and if(getPlayerPremiumDays(cid) < 1) then
	doPlayerAddExperience(cid, (getExperienceForLevel(140) - getPlayerExperience(cid)))
end
return TRUE
end

My script function is this:
Player premium dead in level 140 and normal lose exp.. 138-139
my script you dead in 140 and not lose level script regen level to level 140 Onlypremium
 
@Cronox: can I ask you a question? Why you repeat the if sentence?

LUA:
if getPlayerLevel(cid) < 140 and if(getPlayerPremiumDays(cid) < 1) then

(If and If)

It's better this way:
LUA:
if getPlayerLevel(cid) < 140 and getPlayerPremiumDays(cid) < 1 then
 
Back
Top