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