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

Lua Creature Scripts

Erikas Kontenis

Excellent OT User
Joined
Jul 3, 2009
Messages
1,935
Reaction score
680
Location
Lithuania
Why this script not working on tfs 0.3.6 it no giving any errors just not working...

Code:
  function onAdvance(cid, skill, oldlevel, newlevel)
       
        if(getPlayerStorageValue(cid, 99963) ~= 1 and skill == SKILL__LEVEL and newlevel >= 45) then
                doPlayerAddItem(cid, 2160, 5)
                setPlayerStorageValue(cid, 99963, 1)
                doPlayerSendTextMessage(cid, 22, "You have received 5 crystal coin because you reached level 45")
                end
        return TRUE
end
 
Back
Top