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

Hill Of King , Make Skull For Top Levels

Adm Resoz

New Member
Joined
May 10, 2016
Messages
3
Reaction score
0
I Need To Script If Players Stand On SQM For 10 Second Take Levels

And Script To Make Skulls For Top Levels
 
I Need To Script If Players Stand On SQM For 10 Second Take Levels

And Script To Make Skulls For Top Levels
Please explain further and people might be able to help you.

From what I understood:

if a player stands on a sqm for 10 seconds then it will take levels(all their levels? one level per 10 seconds?)
Also, what is considered a "top level?"
 
If Players Stand On SQM For 10 Second Take Levels
Code:
---- Herotom & Messo ---
local lvl = 1  --- how many lvls player will get
local storageValue = 88754  ---- use any empty sorage
local function Back(cid)
     if isPlayer(cid) then
     doPlayerAddLevel(cid, lvl)
     doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Gratz "..getCreatureName(cid).." you got one level reward from event!.")
     doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
     end
end
function onStepIn(cid, item, position, fromPosition)
if(getPlayerStorageValue(cid, storageValue) == 1) then   --- this part if u need player use sqm one time
doPlayerSendCancel(cid, "Sorry "..getCreatureName(cid).." You got this reward before try again later")
        doTeleportThing(cid, fromPosition, TRUE)
return TRUE
end
for x = 0, 9 do
         addEvent(doSendAnimatedText, x * 1000, {x = 32363, y = 32241, z = 7}, 10 - x, COLOR_RED) -- here postion sqm player will stand on
     end
    
if isPlayer(cid) then
doPlayerSendTextMessage(cid,22,"Hello "..getCreatureName(cid).." You have to wait 10 seconds to get your Reward !")
doPlayerSetNoMove(cid, true)
doCreatureSetStorage(cid, 88754, 1)
addEvent(doPlayerSetNoMove, 10000, cid, false)
addEvent(Back,10000,cid)
end
return true
end

in movements.xml
Code:
<movevent type="StepIn" actionid="7712" event="script" value="test88.lua" />

about skull i posted it be4 use search
 
Back
Top