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

Lua Request: Lua script

wlj

retierd
Joined
Jan 7, 2009
Messages
1,201
Reaction score
1
Well i wanna a script for 0.3.5pl1

when player get XXXX lvl player gets a new eq like when player gets lvl 100 he will retrive an demon set

Woude be nice 1 for each voc..

Also when he gets a type of lvl it will say


GODs just gave you eq for level: 100
 
Set in config the items id.
Lua:
function onAdvance(cid, skill, oldlevel, newlevel)
local config = {
      level = 100
      item1 = 5555,
      item2 = 6666,
      item3 = 7777,
      item4 = 8888,
      item5 = 9999
}        
         if skill == 8 then
            if newlevel == level then
               doPlayerAddItem(cid, config.item1, 1)
               doPlayerAddItem(cid, config.item2, 1)
               doPlayerAddItem(cid, config.item3, 1)
               doPlayerAddItem(cid, config.item4, 1)
               doPlayerAddItem(cid, config.item5, 1)
               doPlayerSendTextMessage(cid, 22, "GODs just gave you eq for level: 100.")
            end
         end
      return TRUE
end
 
Back
Top