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

[solved]

you dont check if world is exhausted but use else
it should be like
awww, im really tired and I dont use exhausts myself, anyway
Code:
function onstepin()
if not is exhausted then
addevent, docreaturesay, addexhaust
else
doplayersendcancel
end
end(movements dont expect any return)
its just pseudocode, but should help you a bit
 
The 'addEvent' puts an exhaust on stepping on the tile, that should be global.
I'll take out the return. I was unaware of movements not needing a return.

taking out the return didn't do a thing
so now I'm trying to work off of
Code:
function onstepin()
if not is exhausted then
addevent, docreaturesay, addexhaust
else
doplayersendcancel
end
end(movements dont expect any return)

I didn't really understand that because I got no idea what this "if not is exhaust then" is.
so, that failed.
 
Last edited:
Code:
function blah
if getGlobalStorageValue(1234)<os.time(t)-300000 then     
addevent, docreaturesay, setGlobalStorageValue(1234, os.time(t))
else
doplayersendcancel
end
still pseudocode, but now you should be able to finish it
end
 
Lua:
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
 
Back
Top