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

2 Requests Outfit Lever-Skull system

cuba

New Member
Joined
Feb 24, 2015
Messages
136
Reaction score
2
hello otland i want help with that script and i hope to get it fast
first request i want outfit lever explian:like if there are 5 monster and there is lever and if click on that lever i will get 1 monsters of 5 monsters by luck...........!
Second request i want skull system explian:like if player get level==500 then get red skull if player get level==400 then get yellow skull
 
first one will be like this go creaturescript.xml
Code:
<event type="login" name="skullsystem" event="script" value="skilllvls.lua"/>
<event type="advance" name="skulllvls" event="script" value="skulllvl.lua"/>
creat file skilllvls.lua
Code:
function onLogin(cid)
if getPlayerStorageValue(cid, 2247) == 1 then
doCreatureSetSkullType(cid,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Msg")
end
if getPlayerStorageValue(cid, 2248) == 1 then
setPlayerStorageValue(cid, 2247, -1)
doCreatureSetSkullType(cid,4)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Otrzymales: Wand of Decay")
end
return true
end

and then creat file skulllvl.lua
Code:
function onAdvance(cid, type, oldlevel, newlevel)

if (oldlevel ~= newlevel and type == SKILL__LEVEL) then

        if (newlevel >= 400 and getPlayerStorageValue(cid, 2247) == -1) then
            doCreatureSetSkullType(cid,1)
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Otrzymales: Necrotic Rod")
            setPlayerStorageValue(cid, 2247, 1)
        end  
    if (newlevel >= 500 and getPlayerStorageValue(cid, 2248) == -1) then
            doCreatureSetSkullType(cid,4)
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Msg")
            setPlayerStorageValue(cid, 2248, 1)
        end

end

return true
end

now login
Code:
registerCreatureEvent(cid, "skullsystem")
registerCreatureEvent(cid, "skulllvls")
 
Last edited:
first one will be like this go creaturescript.xml
Code:
<event type="login" name="skullsystem" event="script" value="skilllvls.lua"/>
<event type="advance" name="skulllvls" event="script" value="skulllvl.lua"/>
creat file skilllvls.lua
Code:
function onLogin(cid)
if getPlayerStorageValue(cid, 2247) == 1 then
doCreatureSetSkullType(cid,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Otrzymales: Wand of Decay")
end
if getPlayerStorageValue(cid, 2248) == 1 then
setPlayerStorageValue(cid, 2247, -1)
doCreatureSetSkullType(cid,4)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Otrzymales: Wand of Decay")
end
return true
end

and then creat file skulllvl.lua
Code:
function onAdvance(cid, type, oldlevel, newlevel)

if (oldlevel ~= newlevel and type == SKILL__LEVEL) then

        if (newlevel >= 400 and getPlayerStorageValue(cid, 2247) == -1) then
            doCreatureSetSkullType(cid,1)
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Otrzymales: Necrotic Rod")
            setPlayerStorageValue(cid, 2247, 1)
        end 
    if (newlevel >= 500 and getPlayerStorageValue(cid, 2248) == -1) then
            doCreatureSetSkullType(cid,4)
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Otrzymales: Wand of Decay")
            setPlayerStorageValue(cid, 2248, 1)
        end

end

return true
end

now login
Code:
registerCreatureEvent(cid, "skullsystem")
registerCreatureEvent(cid, "skulllvls")
can you edit that script when player logged in he need wait 3 seconds to appear the skull or when he heal
 
Back
Top