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

TFS 0.X [Movements] [Error - MoveEvent::executeStep] Call stack overflow.

samuel157

Intermediate OT User
Joined
Mar 19, 2010
Messages
616
Solutions
4
Reaction score
122
Location
São Paulo, Brazil
GitHub
Samuel10M
[Error - MoveEvent::executeStep] Call stack overflow.

LUA:
function onStepIn(cid, item, position, fromPosition)
          if getPlayerStorageValue(cid, 13550) <= 0 then
                    doTeleportThing(cid, fromPosition, TRUE)
                    doPlayerSendCancel(cid, "You don't have premission to pass.")
          end
          return TRUE
end

XML:
  <movevent type="StepIn" actionid="13550" event="script" value="level.lua"/>
 
Last edited:
Strange, looks ok.
Shouldn't both TRUE's be lowercase though?


I already put tiny and does not work already lap
I already put false and it does not work.
Post automatically merged:

HELP PLEASE

LUA:
function onStepIn(cid, item, position, fromPosition)

level = 999

if getPlayerLevel(cid) < level then
if getPlayerStorageValue(cid, 13550) <= 0 then
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
doPlayerSendCancel(cid,"Somente level " .. level .. " ou mais podem passar aqui ou digitar !stob por 1KK.")
end
return TRUE
end
end

[Error - MoveEvent::executeStep] Call stack overflow.
 
Last edited:
Back
Top