function onstepin()
if not is exhausted then
addevent, docreaturesay, addexhaust
else
doplayersendcancel
end
end(movements dont expect any return)
function onstepin()
if not is exhausted then
addevent, docreaturesay, addexhaust
else
doplayersendcancel
end
end(movements dont expect any return)
function blah
if getGlobalStorageValue(1234)<os.time(t)-300000 then
addevent, docreaturesay, setGlobalStorageValue(1234, os.time(t))
else
doplayersendcancel
end
local pos = {x=1078, y=996, z=8}
local GLOBAL = 23455
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if getStorage(GLOBAL) < 0 then
doCreateMonster('ghazbaran', pos)
doCreatureSay(cid, 'You summoned a Ghazbaran!', TALKTYPE_ORANGE_1)
doSetStorage(GLOBAL, 0)
addEvent(doSetStorage, 300000, GLOBAL, -1)
else
doPlayerSendCancel(cid, 'You have to wait 5 minutes per summon.')
end
return true
end