• 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. Codex NG

    Solved [TFS 1.2] Remove monster doesn't always work

    ok, i fixed both examples
  2. Lucifer

    Advanced Task NPC

    @Itutorial Lua Script Error: [Npc interface] data/npc/scripts/Task.lua:onCreatureSay LuaScriptInterface::luaAddEvent(). Argument #7 is unsafe Lua Script Error: [Npc interface] data/npc/scripts/Task.lua:onCreatureSay data/npc/scripts/Task.lua:136: bad argument #1 to 'find' (string expected, got...
  3. Sigoles

    Solved What is wrong? Lua

    I using this addEvent and got error on screen (but works) addEvent(EventOrsha.spawnMonster, 2 * 1000, getPlayerPosition(cid), cid, item_monsters) error: luaAddEvent(). Argument #4 is unsafe stack traceback: [C]: in function 'addEvent'
  4. SebbePwnyou

    Spell Ascuas Funkeln Spell's

    In TFS 1.2 you get this error: luaAddEvent(). Argument #3 is unsafe data/spells/scripts/support/regen.lua:21: in function 'Regeneration' data/spells/scripts/support/regen.lua:32: in function <data/spells/scripts/support/regen.lua:25> any fixes?
  5. 115820

    Action [TFS 1.1] - Slot system

    I have this error Lua Script Error: [CreatureScript Interface] data/creaturescripts/scripts/slot.lua:onLogin LuaScriptInterface::luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'addEvent' data/creaturescripts/scripts/slot.lua:164: in function...
  6. W

    Action Moving Boat

    Got this error: Lua Script Error: [Action Interface] data/actions/scripts/other/movingboat.lua:onUse LuaScriptInterface::luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'doTravel' data/actions/scripts/other/movingboat.lua:107: in function <data/actions...
  7. Majster12

    Solved Ring of Ending Argument #3 is unsafe

    function onEquip(cid, item, slot) local messages = { {m = "The ring feels quite heavy now. Nothing else happens.", e = CONST_ME_MAGIC_GREEN}, {m = "The ring feels even heavier. You feel slightly stronger, however.", e = CONST_ME_MAGIC_GREEN}, {m = "You feel better, more energetic than ever...
  8. Infernum

    Solved What is wrong? Lua

    that is argument 4 of addEvent can you post the EventOrsha.spawnMonster function? you have to pass creature id through the function and recreate the creature object with the creature id
  9. Shitobu

    Lua [TFS 1.2] addEvent with userdata

    Thanks for the answer, silveralol! Somehow it indeed worked, but it sends an error on console saying the fourth argument of addEvent is unsafe. (probably creature) I heard you can`t really use userdatas on addEvent... Is it the case? If you can`t work with userdata on addEvent, how am I supposed...
  10. K

    Lua Script repeat every second

    https://pastebin.com/raw/3WaE7xtW
  11. D

    Spell doesn't target monster

    Error on casting the spell Lua Script Error: [Spell Interface] data/spells/scripts/energyballs.lua:onCastSpell LuaScriptInterface::luaAddEvent(). Argument #4 is unsafe stack traceback: [C]: in function 'addEvent' data/spells/scripts/energyballs.lua:142: in function...
  12. zxzxzx

    make it do damage.

    good! now working but my console show this: argument #3 is unsafe, "in function add event' function onCastSpell(cid, var) addEvent(doCombat, 500, cid, combat2, var) addEvent(doCombat, 1000, cid, combat3, var) addEvent(doCombat, 1500, cid, combat4, var) return doCombat(cid...
  13. Majster12

    Solved Need Little Help with enchanting. Moonlight Crystals / Werewolf Amulet / Werewolf Helmet

    Thanks!! If you have some time maybe can you help me with https://otland.net/threads/ring-of-ending-argument-3-is-unsafe.245571/#post-2389194
  14. Fabi Marzan

    TFS 1.X+ Error "Argument #3 is unsafe" in Spells (Addevents)

    Use: TFS 1.X (1.3) Very well, I have a problem with a spell that when I execute it I get the following error: The scripts that I use: local combatOne = createCombatObject() setCombatParam(combatOne, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combatOne...
  15. J

    Action Moving Boat

    I get this error, udinh TFS 1.2 Lua Script Error: [Action Interface] data/actions/scripts/other/movingboat.lua:onUse LuaScriptInterface::luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'doTravel' data/actions/scripts/other/movingboat.lua:174: in function...
  16. Moj mistrz

    CreatureEvent [TFS 1.1] Random Item Stats

    Attack attribute now works, but still duration is not working for rings etc. PS. is there any way to add speed boost to bohs for example? like ITEM_ATTRIBUTE_SPEED - does it exist anyways?
  17. M

    MoveEvent Antytrap Tile

    Res post this script working fine but have this error tfs 1.2
  18. Bayzel

    Action [TFS 1.1] HomeStone (Based on WoW Hearthstone) - teleport home rock for RPG servers!

    Hello, I followed all the steps and check several times, I get this error on the console, but everything works fine. Could you help me ?.
  19. trustjah

    Action [TFS 1.1] - Slot system

    Anyone willing to help with this one? using TFS 1.0 and i'm guessing i'm using the old script, anyways, everything works just fine but i am getting an error in the console; argument 3 unsafe [C]: in funtion 'addEvent' lua: 165 function onLogin(cid) local player = Player(cid)...
  20. X

    Solved Script question TFS 1.2

    function onThink(interval) onThink only uses interval. Changing "interval" to "creature" doesn't change the function parameters. -- afaik So your very first line is currently asking if 'interval is not a monster, end function" You can test this by adding print(1) -- check if monster print(2)
Back
Top