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

Problem With Promotion.

bolero

MikeHere
Joined
Apr 13, 2009
Messages
1,146
Reaction score
12
Location
Venezuela
How I can what The players was have Premium Account lose already the Promotion when expired the Premium Account?
 
I think he wants a script that will get rid of promotion if someone runs out of premium time.

Well that's a really simple script to make.

In your data/creaturescripts/scripts/login.lua:
under
PHP:
function onLogin(cid)
add
PHP:
if isPremium(cid) == FALSE and getPlayerPromotionLevel(cid) >= 1 then
	setPlayerPromotionLevel(cid, 0)
	end
 
Hello not if you understand me but I need a script that does that when player enters X if it is premium it it leaves with the vocations 5 6 7 8 and if it is free that him puts these vocations 1 2 3 4
 
So you want it as a movement script?
Ok..
PHP:
function onStepIn(cid, item, position, fromPosition)
	if item.uid == 4404 then
	if isPremium(cid) == TRUE and getPlayerPromotionLevel(cid) == 0 then
	setPlayerPromotionLevel(cid, 1) 
    end 
	end
	return TRUE
end
 
It should work fine.. Post your login.lua here.

I still don't really understand what you want the script to do...
If you have promotion and your premium runs out it will get rid of your promotion too is what the script I posted first will do.
Try to explain what you want better if this wasn't right..
 
Use this instead:
PHP:
function onLogin(cid)
if isPremium(cid) == FALSE and getPlayerPromotionLevel(cid) >= 1 then 
    setPlayerPromotionLevel(cid, 0) 
    end 
registerCreatureEvent(cid, "PlayerDeath")
registerCreatureEvent(cid, "MEDALS")
return TRUE
end
 
Back
Top