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

Premium = x% more exp.

Another way to do it is this one:
Go to data/creaturescripts/scripts
Create a file and name it premiumCheck.lua
Paste this inside
Code:
function onLogin(cid)
if getPlayerPremiumDays(cid) >= 1 then
doPlayerSetExperienceRate(cid, 1.15) -- 1.15 = +15% experience, change as you wish. Example: 2.0 = double exp
else
doPlayerSetExperienceRate(cid, 1.0) -- returns to normal rate when premium days expire
end
return true
end

Add this in creaturescripts/creaturescripts.xml
Code:
<event type="login" name="extraPremExp" event="script" value="premiumCheck.lua"/>

Then you just need to register this in creaturescripts/scripts/login.lua
Code:
registerCreatureEvent(cid, "extraPremExp")
 

Similar threads

Back
Top