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

Search results for query: Argument # in unsafe

  1. M4rcin

    TFS 1.X+ Argument #3 unsafe

    You are passing monster ref as an argument, pass monster.uid instead.
  2. Nyarl666

    NPC [TFS 1.2] Spell trader (trade window)

    I have this error (tfs 1.4): Lua Script Error: [Npc interface] (Unknown scriptfile) LuaScriptInterface::luaAddEvent(). Argument #5 is unsafe stack traceback: [C]: in function 'addEvent' data/npc/lib/npcsystem/npchandler.lua:624: in function 'say'...
  3. 7804364

    CreatureEvent [TFS 1.1] Random Item Stats

    well i have 10.41 fresh install, tfs 1.1 no errors but when i kill something i get this error Lua Script Error: [CreatureScript Interface] data/creaturescripts/scripts/randomstats.lua:onKill luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'addEvent'...
  4. Hugo Patriota

    Lua addEvent erro

    hi guys The script is working perfectly, but the server returns me this error in the console, and I would like to remove it Lua Script Error: [Spell Interface] in callback: data/spells/scripts/pbot/utevo mort.lua:onTargetTile (Unknown scriptfile) LuaScriptInterface::luaAddEvent(). Argument #3...
  5. Ahilphino

    Spell New Spell

    Coolio! :) But using it for tfs 1.x it gives us this error: Lua Script Error: [Spell Interface] data/spells/scripts/attack/berserk.lua:onCastSpell luaAddEvent(). Argument #4 is unsafe stack traceback: [C]: in function 'addEvent' data/spells/scripts/attack/spellscript.lua:76: in...
  6. I

    Lua Multiple damage system request

    It work perfectly, but the TFS did warn me about the unsafe script: Can you suggest a way to fix it?
  7. Ninja

    CreatureEvent [TFS 1.1] Random Item Stats

    Passing userdata objects to addEvent is unsafe and might crash the server. Change addEvent(find_loot_Container, 2, player, target:getPosition()) to addEvent(find_loot_Container, 2, player.uid, target:getPosition()) Change function find_loot_Container(player, pos) to function...
  8. Ichito123

    TFS 1.X+ Error spell console

    Hello Everyone i have problem i use this spell: And i have this error. Any Ideas how i can repair this script ? Lua Script Eror: [Spell Interface] data/spells/script/my/ue/mort.lua:onCastSpell LuaSctiptInterface::luaAddEvent<>. Argument #4 in unsafe stack trackback: [C]: in funcion 'addEvent'...
  9. Aeronx

    Solved Storage with spells TFS 1.2

    Now i get the storage working right, but get this error and then it crashes. Lua Script Error: [Spell Interface] data/spells/scripts/custom/vampiric.lua:onCastSpell LuaScriptInterface::luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'addEvent'...
  10. Shyzoul

    Script Unsafe

    Never use userdata as a parameter of addEvent, it is just like pointer in C, if your userdata doesnt exist anymore on memory at event time then you got a dangling pointer and your server get crashed, instead use player name uid or id as parameter e.g: addEvent(doAreaCombatHealth, 100...
  11. Infernum

    Lua [TFS 1.0] Stamina gain when Training on "monks"

    because you were using the wrong function arguments staminaEvents = {} local config = { timeToAdd = 3, addTime = 5, } local function addStamina(cid) local player = Player(cid) if not player then stopEvent(staminaEvents[cid]) staminaEvents[cid] = nil...
  12. E

    [help] addEvent to remove Summons

    hello my friends, i'm working in a summon action script and I want to remove the summon after x time, and put exhaustion (y time) on this script .. i have tryed make this with "addEvent" but i dont know how to make it correctly... TFS 1.3, 10.98 version i'm using this script as a base...
  13. Perun

    [help] addEvent to remove Summons

    It's because tfs 1.3 have warnings about unsafe scripts parameters, i.e if you will pass not exist monster [removed or killed before event execute] there can be a problem. You can disable warnings in config.lua or protect your scripts. To avoid this warning you can pass monster as id like this...
  14. L

    Lua TFS 1.4 OnStepIn

    I have an item that when I step over it activates this example code you mentioned. But when I replaced this error appeared. Lua Script Error: [MoveEvents Interface] data/movements/scripts/riftdemoniolv10.lua:onStepIn LuaScriptInterface::luaAddEvent(). Argument #3 is unsafe stack traceback...
  15. silveralol

    Monster Monsterpack, spellpack and creaturescriptspack for Tibia 10.7(TFS 1.1) based on Real Tibia

    I get debug in client, and erros on line 11 and 13... with this doCreatureAddHealth
  16. president vankk

    Problems with script tfs 1.2

    @mdwilliams @silveralol Lua Script Error: [Action Interface] data/actions/scripts/lever.lua:onUse luaAddEvent(). Argument #4 is unsafe stack traceback: [C]: in function 'addEvent' data/actions/scripts/lever.lua:149: in function <data/actions/scripts/lever.lua:127> Lua Script Error: [Main...
  17. Lava Titan

    Lua onThink [TFS 1.1]

    console error Lua Script Error: [CreatureScript Interface] data/creaturescripts/scripts/login.lua:onLogin LuaScriptInterface::luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'addEvent' data/lib/compat/compat.lua:1101: in function 'timeLeftMessage'...
  18. Hugofasima

    [TFS 1.1] Teleport wand for admins

    Sorry for disturbing, I can't add it on my tfs 1.1 :/ I got this errors: Lua Script Error: [Action Interface] data/actions/scripts/other/admin_tp.lua:onUse LuaScriptInterface::luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'addEvent'...
  19. Hugo Patriota

    Lua Spells

    I do not understand, as I said above the script was working perfectly, today when I got the service it stopped working only thing I changed on the server was actions on levers .. does not make sense Lua Script Error: [Spell Interface] data/spells/scripts/pbot/exori stun.lua:onCastSpell...
  20. A

    Lua AddTime Storage

    Lua Script Error: [Main Interface] in a timer event called from: (Unknown scriptfile) ...quests/feaster_of_souls/the_dread_maiden/soul_vortex.lua:30: attempt to index local 'mob' (a number value) stack traceback: [C]: in function '__index'...
Back
Top