Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
In data/creaturescript/scripts, create new luafile and name it premium.
PHP:
function onLogin(cid)
local addExp = 100
if isPremium(cid) == TRUE and getPlayerStorageValue(cid, 7878) ~= 1 then
setPlayerExtraExpRate(cid, getPlayerExperience(cid)+addExp)
setPlayerStorageValue(cid, 7878, 1)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, 7878) == TRUE then
setPlayerExtraExpRate(cid, getPlayerExperience(cid)-addExp)
setPlayerStorageValue(cid, 7878, 0)
end
return TRUE
end
[19/02/2009 16:20:27] data/creaturescripts/scripts/premium.lua:6: attempt to call global 'setPlayerExtraExpRate' (a nil value)
[19/02/2009 16:20:27] stack traceback:
[19/02/2009 16:20:27] data/creaturescripts/scripts/premium.lua:6: in function <data/creaturescripts/scripts/premium.lua:1>
function onLogin(cid)
if getPlayerStorageValue(cid, 11551) > 0 then
doPlayerSetExperienceRate(cid, 1.2)
else
doPlayerSetExperienceRate(cid, 1)
end
return TRUE
end
Quote:
function onLogin(cid)
if getPlayerStorageValue(cid, 11551) > 0 then ----> put 0 to 1 to start xD
doPlayerSetExperienceRate(cid, 1.2)
else
doPlayerSetExperienceRate(cid, 1)
end
return TRUE
end