Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
Do the same thing for 5 seconds as well, use 5000 for milliseconds in the addEvent.
Lua:
local function checkPosition(cid, pos)
local player = Player(cid)
if not player then
return
end
if player:getPosition() == pos then
-- do something
end
end
function onCastSpell(creature, variant)
addEvent(checkPosition, 2000, creature:getId(), creature:getPosition())
return true
end
Do the same thing for 5 seconds as well, use 5000 for milliseconds in the addEvent.
Lua:
local function checkPosition(cid, pos)
local player = Player(cid)
if not player then
return
end
if player:getPosition() == pos then
-- do something
end
end
function onCastSpell(creature, variant)
addEvent(checkPosition, 2000, creature:getId(), creature:getPosition())
return true
end