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

lua

  1. potinho

    Lua [TFS 0.X] System Online Points

    Hi guys, how are you? Im looking for a system similar to this: https://otland.net/threads/system-online-points.250371/ local config = { storage = 20000, pointItemId = 2160, pointsPerHour = 1, checkDuplicateIps = false } local onlinePointsEvent =...
  2. potinho

    TFS 0.X [LUA] Svargrond Arena - Bug after jump in with GM

    Hello everyone, everything good? I'm using this @Gesior.pl Arena system, but I had a bug: When teleporting with the GM into the arena and trying to go to the next level, the players who came next to the arena bugged to go to the next teleport. Used system bellow...
  3. potinho

    Lua [TFS 0.X] Info Command - Error with specifics monster

    I have this script to show monster life, exp and loots: function ExistMonsterByName(name) -- by vodka local monster = io.open("data/monster/monsters.xml", "r"):read("*all") local get = monster:lower():match('name="' .. name:lower() ..'"') if get == nil or get == "" then...
  4. Czaja Ziom

    OTClient Boss Lever cd

    Hey, so script its working good, the small issue is i can return to boss after killing multiple times, how can i make on it timer 20h at least to kill boss again. I am pretty sure there is small bit missing halp! been working on in half day :D 1.3 TFS Version also how to make auto serv save...
  5. 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...
  6. potinho

    Lua [TFS 0.X] Training AFK Script - Kicking char

    Good morning people, everything fine? I have a talkaction on the server that is an afk workout, eats food, releases magic and should have an anti-idle, but it doesn't always work correctly. Occasionally I get complaints from players who report that they had their char kicked. Could you help me...
  7. MrVilhelm

    Lua Tfs 1.4 crit system

    Hola amigos! 🐥 Im fairly new to Lua and Im trying to rap my head around how the TFS functions work etc. So I was planning on adding a simple crit chance + crit damage system. So I thought that was a good place to start! But Im running into some problems (error free). I wrote this in...
  8. A

    ERROR EVENT TIME

    What can this error be happening in the function? tfs1.3 Lua Script Error: [Main Interface] in a timer event called from: (Unknown scriptfile) data/lib/lever.lua:131: attempt to index a nil value stack traceback: [C]: in function '__index' data/lib/lever.lua:131: in function...
  9. potinho

    Lua [TFS 0.X] Global event daily

    Hello everyone, everything good? I have a global event where a TP is created for a room. If I put in the setup just one day, it works. If I put it every day, it doesn't start, it doesn't give an error on the console and it doesn't work. can you help me? local configuration = { day =...
  10. C

    Lua Attempting to understand the Purse (TFS 1.4)

    Goal: I want a player to be able to always have a specific item in their purse which never moves. With this item, I'm going to setup an onUse script to pop-up a modalWindow for various things. This will function as a low effort custom menu within OTClient. Issue: I'm not able to figure out how...
  11. C

    Lua Attempting to better understand custom wands/rods (API docs?)

    Thanks in advance to whomever is taking the time to look this over with me. The short and sweet is that I'm trying to figure out how to best script in LUA with TFS 1.4 (unaltered source). I'm undertaking what I thought was a simple task: Make a custom wand which consumes less mana for a...
  12. T

    RevScripts Convert spell to revscript

    i need convert this seplls to RevScript, if is possible i need without event. I've tried to perform the conversion in numerous ways and I couldn't, so my last alternative is to ask you for help local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE...
  13. potinho

    Lua [TFS 0.X] Reputation System - Help to improve conditionals

    Hello everyone, everything good? I put a reputation system on my server, to encourage the creation of a friendly atmosphere among players, giving rewards to those who achieve more points in this system, but players are managing to circumvent it, using VPN for example. The system checks the...
  14. tibiamaniak

    Lua function 'getPlayerItemCount' tibia 12.85

    [C]: in function 'getPlayerItemCount' /home/ots/data/scripts/actions/shop/sklep3.lua:14: in function </home/ots/data/scripts/actions/shop/sklep3.lua:11>] Tibia 12.85 problem with script lever script shop :( Help!
  15. potinho

    Lua [TFS 0.X] Reputation System

    Hello everyone, everything good? I need a reputation system for OTX 2 (TFS 0.X) that works like this: Reputation will be stored in storage (144712). Will work with talkaction using command: /rep player_name 1 rep every 24 hours per IP Each injustice kill reduces rep by 1 (not obligatory) I...
  16. APTGET

    TFS 1.X+ [Problem] Query Player Containers - NO WORK

    Hey guys. How are things? I currently have a problem, and I'm a little lost trying to solve it. The problem is Casting some rune, or even buying something from any NPC. Although I have several backpacks inside my main backpack, if the main backpack is full, it ignores additional backpacks and...
  17. Schlangemann

    LUA Monster onDeath give storage id to party

    TFS 1.4 Hi! I am trying to make a boss give storage id to all party members who have damaged it when it dies. I am using a variation of Slavi's code from this post Lua - onKill players on party sharing xp to get task counted...
  18. wizinx

    TFS 1.X+ funcion add outfit and addon in shop.lua otclient

    Hello, I installed the otclient shop, but the function of adding the outfits and addon are not finished, anyone with a good heart who knows?, thanks -- BETA VERSION, net tested yet -- Instruction: -- creaturescripts.xml <event type="extendedopcode" name="Shop" script="shop.lua" /> -- and...
  19. R

    Problem with npc quest based on keywords (lua understanding)

    Hi I'm trying to understand lua to edit properly in the server, tfs 1.5, windows, 8.0 client with orts2 datapack. Is it possible someone help me understand why this rookgard quest is not working? (present for legion helmet in seymour npc, the following is its lua script. local boxKeyword =...
  20. M

    Lua [HELP] Fishing Script

    Hi, I found a fishing script here on the forum, I'm using an OTX2 engine. The script does not work, an error appears in the console as below in the picture. How to fix it? local config = { [1] = {item = {1294, 1}, chance = 25000, fishing = 0, quest = {enable = false, storage = nil}}...
Back
Top