• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Cash Reward

freddzor11

Member
Joined
May 25, 2009
Messages
695
Reaction score
5
Hello I got this script, can anyone convert it to 0.3.6

Code:
local t = {
   39001, {
   [50] = {2160, 5, "You have been awarded with 5 crystal coin for reaching level 50!", 1}, 
   [150] = {2160, 10, "You have been awarded with 10 crystal coins for reaching level 150!", 2},
   [250] = {2160, 15, "You have been awarded with 15 crystal coins for reaching level 250!", 3}
   }
}
function onAdvance(cid, skill, oldlevel, newlevel)
   if skill == SKILL__LEVEL then
     for level, v in pairs(t[2]) do
       if oldlevel < level and getPlayerLevel(cid) >= level and getPlayerStorageValue(cid, t[1]) < v[4] then
         doPlayerAddItem(cid, v[1], v[2])
         doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, v[3])
         setPlayerStorageValue(cid, t[1], v[4])
       end
     end
   end
   doPlayerSave(cid, true)
   return true
end
 
Do you have any bugs I asked, the script you posted should work for 0.3.6 aswell as 0.4(pretty much the same systems.)
 
Back
Top