• 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. Hugofasima

    Solved Broadcast message debug

    The following script is for TFS 1.0, and my TFS is 1.1. I can't see what is wrong with the script, heeelp :/ Problems: -Distro error - I can't send broadcast msgs with GOD account (debug error) This error show up: Lua Script Error: [Chat Interface] data/chatchannels/scripts/events.lua:onJoin...
  2. K

    TFS 1.X+ addEvent spells monster

    Hello I have such a script for a spell and I have a problem with addEvent: Position.directionOffset = { [DIRECTION_NORTH] = {x = 0, y = -1}, [DIRECTION_EAST] = {x = 1, y = 0}, [DIRECTION_SOUTH] = {x = 0, y = 1}, [DIRECTION_WEST] = {x = -1, y = 0}, [DIRECTION_SOUTHWEST] = {x...
  3. R

    TFS 1.X+ Lua remove item charges

    why are u removing addEvent inside removeCharges function? i need this add event repeat... with uncomment addEvent i get error: Lua Script Error: [Action Interface] data/actions/scripts/wandSkills.lua:onUse LuaScriptInterface::luaAddEvent(). Arguments #3 and #4 are unsafe stack traceback...
  4. Raikou

    TFS 1.X+ Teleport player out of area after x amount of time

    So i`m trying to make a boss room, the tp into the room works. But the tp after x amount of time doesn't work. since i`m using 1.3 and i think the code i got from here is 0.4? or something. local config = { room = {x = 896, y = 1048, z = 8}, kick = {x = 890, y = 1049, z = 8} } local...
  5. Crixpx

    Lua add tibia coins every hour by charge

    Hello :D I have edited this script so that every one of the characters connect you to a load every 1 hour with a limit of 5 loads "5 hours" to complete the 5 hours of as a reward 25 coins and the time will be saved even when disconnected so that Continue running the time when you connect and...
  6. Jfrye

    Lua data/chatchannels/scripts/spells/lua

    Hey all, Im getting a console error regarding the title above. Im not sure how to fix it. Does anyone know how to fix this so I can get rid of this annoying pop up on the console? EDIT: This error happens everytime a player logs in. Lua Script Error: [Chat interface]...
  7. D

    Rune doesn't heal

    Thanks It's working with these errors Lua Script Error: [Spell Interface] (Unknown scriptfile) attempt to call a nil value Lua Script Error: [Spell Interface] (Unknown scriptfile) attempt to call a nil value Lua Script Error: [Spell Interface]...
  8. Mateus Robeerto

    spells cooldown

    can someone convert to tfs 1x? local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0, -3500, -0, -3500) local condition =...
  9. A

    TFS 1.X+ Addevent - Error!

    I'm using TFS 1.3: local stone_id = 19959 function vinteMinutos(toPosition) -- Recreate the stone after 20 minutes. Game.createItem(stone_id, 1, toPosition) return true end function vinteVezes(player, toPosition) -- Repeat this function every second. Repeat this twenty times. if...
  10. Obito

    spell ERROR AddEvent() Argument # 3 is unsafe

    you generally cannot pass user data directly like cid and var so you are going to use getId local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, TRUE) setCombatParam(combat...
  11. zxzxzx

    DHQ for 1.2

    Hello! I have errors when using this dhq on tfs 1.2+ how to solve it? errors: Argument #3 is unsafe function addevent (lua 27, lua 18) main interface (lua 57, lua 52) (attempt to index local "lever" (a number value) the code: local pinkstonepos1 = {x=32670, y=32806, z=8, stackpos=1} --...
  12. Codinablack

    Lua TFS 1.0 BAD ARGUEMENT SPELLS

    NEXT SPELL This spell still works fine, I just get an error in the console and I don't want it to be there, sure I can turn of "warn about unsafe scripts" in my config, but I would rather know if there is a problem with my script. So here it is... -- SpellCreator generated. --...
  13. Shoorkill

    someone convert this script to work in tfs 1.5 nekiro 8.0 ?

    there was an error answering you in the other tab ;\ 1685299319 Lua Script Error: [Action Interface] data/actions/scripts/tp.lua:onUse LuaScriptInterface::luaAddEvent(). Argument #3 is unsafe stack traceback: [C]: in function 'addEvent' data/actions/scripts/tp.lua:59: in...
  14. ranita

    Lua Custom Spells error

    Hi all, I've already referred to Error spell console and attempted to fix but no luck. I've been trying to create a custom spell but I keep on getting errors I'm on TFS 1.2 My problem is: "Lua Script Error: [Spell Interface] data/spells/scripts/attack/holy_light.lua:eek:nCastSpell...
  15. Lessaire

    Rune doesn't heal

    One second, this should be easy. 1584535981 I believe this should eliminate the unsafe argument warnings. The COMBAT_PARAM_TYPE being set to COMBAT_HEALING means this technically already does heal HP. It's just a very low amount since I included basic amounts vestigial from the code example...
  16. Z

    TFS 1.X+ Teleport player out of area after x amount of time

    Try now: local config = { room = {x = 896, y = 1048, z = 8}, kick = {x = 890, y = 1049, z = 8} } local t = { a = {x = 894, y = 1044, z = 8}, -- top left corner b = {x = 907, y = 1054, z = 8} -- bottom right corner } function onStepIn(creature, item, position, fromPosition)...
  17. Gesior.pl

    [TFS 1.x+] How to NOT write LUA scripts or how to crash server by LUA script

    There are many tutorials about writing scripts for TFS 1.x, so I decided to write short tutorial how to NOT write scripts for TFS 1.x. In this tutorial I will describe two common mistakes that result in server crash! First thing that everyone notice when they change engine from TFS 0.x to 1.x...
  18. Shoorkill

    TFS 1.X+ Spell THAT LEAVES THE OPPONENT EXHAUSTED

    Good morning friends, I'm using Nekiro's TFS 1.5 and I need this spell that causes it to prevent the opponent from healing or attacking, spells, runes for 3 seconds. MY SCRIPT: My error: Any help will be welcome, thank you in advance!
  19. D

    Rune doesn't heal

    Worked , but i get this error Lua Script Error: [Spell Interface] (Unknown scriptfile) attempt to call a nil value Lua Script Error: [Spell Interface] (Unknown scriptfile) attempt to call a nil value
  20. H

    TFS 1.X+ // LUA: Spell with a countdown (addevent issue)

    Hello! I've been searching through the forums, asked AIs for help but to no avail, so here I am! :( I have this issue: I've tried creating a script for a delayed spell by creating an addevent spell with multiple areas, where: 1st tick of the spell is just registering player position and...
Back
Top