• 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. Sarah Wesker

    Spell Ascuas Funkeln Spell's

    for your version 1.x+ local function eventRegeneration(playerId, seconds) local player = Player(playerId) if seconds > 0 and player then local healvalue = ((player:getLevel() * 0.2) + (player:getMagicLevel() * 2)) player:addHealth(healvalue)...
  2. M

    broadcast Message boss summon(action)

    first erro Lua Script Error: [Action Interface] data/actions/scripts/custom/summon.lua:onUse LuaScriptInterface::luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'addEvent' data/actions/scripts/custom/summon.lua:9: in function <data/actions/scri...
  3. 7804364

    Action [TFS 1.1] - Slot system

    i see the items with [.3%] mana ext but i get this error Lua Script Error: [CreatureScript Interface] data/creaturescripts/scripts/slot.lua:onLogin luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'addEvent' data/creaturescripts/scripts/slot.lua:166: in...
  4. Snavy

    Lua AddTime Storage

    🤔 try this -- remove -1 from storage after 20seconds: addEvent(function(cid, storage) local mob = Creature(cid) if not mob then return end mob:setStorageValue(Storage.Quest.FeasterOfSouls.Bosses.TheDreadMaiden.Souls, storage - 1) end, 10 * 1000, maiden:getId(), oldStorage + 1)
  5. M

    Wall Lever not working

    Ok it got strange, so it's working now with this code: function onUse(cid, item, fromPosition, itemEx, toPosition, isHotkey) local pillarTile = Tile(406, 705, 7) local lever = 1945 if item.itemid == 1945 then pillarTile:getPosition():sendMagicEffect(CONST_ME_POFF)...
  6. T

    Lua addEvent + creture:say problem

    Hi there. I want to make my function run in addEvent but i get problems. I have added a global function in global.lua that i want to use for other things function monsterSayPos(creature,text,position) creature:say(text,TALKTYPE_ORANGE_1,false,nil,position) end and when people enter a certain SQM...
  7. sevengym

    Dungeon System [ 0.4 / 0.3.7 / 0.3.6 ]

    @Xikini Could we make it work for tfs 1.5 by nekiro? Im using the version with BOSS and I'm trying with chatgpt for like 5 hours. I succesfuly get teleported, kill monsters,get reward and get teleported to temple but it still gives those errors but I can activate the dungeon monster spawn by...
  8. Printer

    Lua addEvent erro

    To be honest, no idea what your script was trying to do. But anway you were sending an unsafe argument (in this case creature) on the addevent. You can either fix it manually which i prefer or let the server handle it by enable it throug config: convertUnsafeScripts = true Here is what i would...
  9. I

    TFS 1.X+ magic error help

    bug: Lua Script Error: [Spell Interface] data/spells/scripts/attack/genki dama.lua:onCastSpell LuaScriptInterface::luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'addEvent' data/spells/scripts/attack/genki dama.lua:33: in function...
  10. Yan18

    TFS 1.X+ Doubt About How Can I Use Creature Functions in AddEvent?

    Hello Everyone! The first of all, Happy New Year folks!!! My doubt as the title says, how can I use creture functions in addEvent? For example, I want to use the following function inside addEvent: player:getPosition():sendMagicEffect(effect) I made a local function to return...
  11. Hugo Patriota

    Lua addEvent erro

    sorry tfs 1.3 I wanted to leave my thanks here, the script worked perfectly and without errors, thanks !!!
  12. Moj mistrz

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

    local condition = Condition(CONDITION_REGENERATION) condition:setParameter(CONDITION_PARAM_SUBID, 88888) condition:setParameter(CONDITION_PARAM_TICKS, 7 * 1000) condition:setParameter(CONDITION_PARAM_HEALTHGAIN, 0.01) condition:setParameter(CONDITION_PARAM_HEALTHTICKS, 7 * 1000) function...
  13. X

    TFS 1.X+ magic error help

    change addEvent(castSpellEvent2, 300, creature:getTarget()) to addEvent(castSpellEvent2, 300, creature:getTarget():getId())
  14. Gesior.pl

    TFS 1.X+ Crash Server SIGSEGV, Segmentation fault

    I would not search for function that execute getName inside addEvent call. I would search for addEvent that pass creature or player as parameter to function (which it should never do). It's most common mistake. As I showed in [TFS 1.x+] How to NOT write LUA scripts or how to crash server by LUA...
  15. Thorn

    TFS 1.X+ addevent for lever

    Hello guys, i have tfs 1.3, and im trying to add an addevent so lever goes back to it's original position and also the floor (this is from lighthouse quest) but i can't make it work, anyone knows why im failing?? if item.itemid == 1945 then...
  16. Ovnyx

    Lua [TFS 1.2] execute function while player online

    hi thanks for this information, im sorry if im too annoying with a lot of question, but i like to learn new things and practice them, i only got another queston: this is the function im using to test the add event: function test(player) local position = player:getPosition()...
  17. Codex NG

    Lua [1.2] Animated Spell Conversion.

    Errors are always a good sign :) Now we encounter this line of code within the for loop addEvent(executeCombat, time_[t], cid, combat[t], var) Since cid isn't defined within the scope of onCastSpell, we will ommit this as an argument of addEvent, lets come back to a bit later. For now lets...
  18. J

    Pay exp for Time Problem

    Hello guy I use Tfs 1.5 And when I click on lever I have this error in console How I can fix it? error Lua Script Error: [Action Interface] data/actions/scripts/online/exp3.lua:onUse luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'addEvent'...
  19. Q

    TFS 1.X+ Crash Server SIGSEGV, Segmentation fault

    In config.lua warnUnsafeScripts and convertUnsafeScripts are enabled, I'll do the research more carefully thx 1641916087 I have a question, where do I see this scriptid? the logs tell me this timerEventDesc = {scriptId = 1016, function = 219, parameters
  20. M

    Antytrap Tile [help]

    is possible convert this script for tfs 1.2 ? someone help me please original script by @narko https://otland.net/threads/antytrap-tile.146887/#post-1413006
Back
Top