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

    TFS 1.3 8.6 MOUNT SYSTEM

    Hello, I'm looking to use the tfs 1.3 downgrade 8.6 mount system I already have a sprite added for testing, but when I use outfit.lookMount = ID it doesn't work. Can anyone shed some light on how to resolve this?
  2. K

    create a new tooltip in .lua otclientv8

    I'm implementing a rarity system on my server, but for that, it seems I need to do everything from 0 (since I can't find it anywhere around) One of the things in the rarity system that I want to do, is also to put the item description for when I hover over it. I'm doing it based on what...
  3. K

    Lua Request item that unequips after X seconds and goes back to bp

    Hello, I would like to know if anyone could help me with an item I need to make (actually there are 3 items, but if you can help me with any amount I will be immensely grateful) I've already added the item on the server and everything else, I put its ID and put it as ring, however, I would...
  4. K

    Topmenu bugging all

    I've been trying to solve this problem for about 5 hours and I finally decided to ask you for help... If I put the "20-topmenu.otui" in "styles" this happens: *note that the panel items are on the right and organized, but there is a black band around it, on the lower arrow, note that the...
  5. potinho

    TFS 0.X [LUA] Offer expire auction system - Not sending amount of items

    Hello everyone, everything good? I'm using the script from the post below but I found a bug: If an offer is for more then 1 items (20 SSA, for example) it only returns one within the parcel. Can you help me fix the script? function getPlayerNameByGUID(guid) local name = 0 local resultId...
  6. potinho

    Lua [TFS 0.X] Door with cooldown between use

    Hello everyone, everything good? I didn't find anything like it so I'm asking you: is there a way to put a cooldown on a door, where each player has a cooldown to open and cross it? I want each player to be able to access a certain room after "x" hours.
  7. potinho

    Lua [SOLVED] TFS 0.X No loose items or container bellow certain level

    Hello guys, how are you? I have this script to not loss experience bellow level 9 and remove AOL. I want to make a few change, not lose itens before level 60 (with ou without aol). I already have this script who not remove experience bellow level 9. function onDeath(cid, corpse, deathList)...
  8. 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 =...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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 =...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Back
Top