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

    TFS 0.3 Count monsters, fromX, toX.

    I would like to know if it is possible to count how many monsters there are in an area fromX toX ?? local top_left_corner = {x = 3341, y = 804, z = 6} local bottom_right_corner = {x = 3352, y = 811, z = 6} if monsters_summoned[1] then local monster_count = 0 for i = 1...
  2. MrVilhelm

    Lua TFS 1.3 remove object on target.y offset

    Hiii me again, Im stuck at some coding again, and since you guys always help me out and teach me a lot of new stuff for every post I do, I will ask you for guidens! ^^ So basically I want to remove an item on my target offset. So I tried creating a variable like this : local activeTileGrid1 =...
  3. MrVilhelm

    Lua Check if target.x offset == an item

    Hi! Me again 🤓 ! So Im trying Lua again and Im trying to search for a target.x offset. basically what I want is that when you use an item anywhere the script checks if that position you used the item on - 9 x has an object on it. I tried this but got an error elseif (target.x - 9):getId() ==...
  4. Q

    revscript aura system

    Good night people I was using a tfs 1.3 pack more, I decided to migrate to otservbr (revscript) I have an aura system, on tfs 1.3 it works perfectly, on otservbr when equipped, it has a multiplied effect, you can equip more than 1x, I tried several modes ... Maybe you could have expressed me...
  5. Snavy

    Lua Snavy & Levi - Free Scripting Service - TFS 1.3

    @Levi999x and I will be providing scripting service for free. The thread will be locked after a while but might be unlocked again later. [ REQUIREMENTS ] TFS: 1.3(+) ( github.com/otland/forgottenserver ) SCRIPTS: Actions, Creaturescripts, Globalevents, Movements, Talkactions INFO: Give...
  6. Simonalina

    Lua Failed to load map..

    Okay, so i get this error now? this happend after i restarted my server with a new "Training Room".. it worked perfect and no error logs before this.. could it be something wrong with the map? or what happend.. hmm [Error - LuaScriptInterface::luaGameLoadMap] Failed to load map: failed opening...
  7. potinho

    TFS 0.X [7.72] Functional script returning error

    Hello everyone, everything good? I have a script that is bothering me: it searches for the monsters that I have and some information about it. Everything works normal, including when I type a wrong or invalid name, it shows me the table with the name of the monsters and the alert that I typed...
  8. Ü

    Lua Exp Bonus

    Hello everyone. Could someone help me with this, I want to make a 10% bonus for having a client 12 and a 10% bonus for having a premium. But I think that the 2 codes collapse, the percentage does not give well it is disproportionate. Because if I remove 1 the other works fine. Thanks in...
  9. A

    Lua Spells do not dmg

    Hi, Can someome tell me why this spell do not dmg ? local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) combat:setArea(createCombatArea(AREA_SQUAREWAVE5)) function onGetFormulaValues(cid, level, magicLevel) local min = (level / 5) + (magicLevel * 1.4) + 8...
  10. Ovnyx

    TFS 1.X+ [TFS 1.3] New creatureevent not working

    Hi everyone, I was trying to add another creature event to allow me to handle with lua when a creature actually gets experience. I know there is already a onGainExperience function under the /events/player.lua file, but I'm trying to handle this even for summons and I was wondering if I could...
  11. A

    TFS 1.X+ Problem with spell after transform

    Hi, I have little problem... bcs in my server I have transform system ( once vocation going to new vocation ) due to when player got new vocation he must relog bcs without relog he can't use any spell for him vocation. Someone have idea where can be problem ? TFS 1.3 , 8.6
  12. A

    Lua Addexperience in lever

    Hi, I need very simple script ( simple for you not for me xD ) . When player use lever , lever add to player experience (1945 example id lever). I don't need add storage, player can use always lever not only once :D . TFS 1.3 , 8.6
  13. Snavy

    TFS 1.X+ Reading 2D table from lua in sources

    I have been trying to read a 2D lua-table in sources and I am not sure how to debug this. The error msg that shows up is "attemp to index a boolean value". What is going on here? myLuaFunction({ { a = 0, b = 123, c = "string", d = true, e = true, f = true }, { a = 0, b = 123, c =...
  14. nugo

    Lua Lua Monsters and RME

    Hello all, I have been experimenting with lua monsters, one little issue i have run into and just wana double check im not missing somthing stupid. so RME can only import monster files with extension .xml (im using 3.7 the latest release). To load my exisiting monsters i have been creating...
  15. demon088

    Lua Consult experience left to level up using a Talkaction

    Hello OtLand! I have a simple request this time... Is there any script to consult experience using a talkaction? Like... Saying !tolvl and then a message appears showing 'You need X experience points to level PlayerLv+1.' I have been searching through the forum, but couldn't find something...
  16. Mr Noxi

    Best way to add description for item attribut? TFS 1.3 , LUA

    Hey there! Question! Am adding attributes to items.xml exampel a Shield of honour, the attributes am trying to give the item is <attribute key="maxhitpointspercent" value="133" /> <attribute key="maxmanapointspercent" value="133" /> My issue is why does the attribute not show when you...
  17. CoolBuys1290

    OTClient How to Toggle Chat on and Off with Enter Key in Otclient

    How do I change Otclient to toggle chat on and off with the Enter key? I'm using Otclient 0.6.6 with Tibia version 7.72. Thanks, CoolBuys1290
  18. CoolBuys1290

    OTClient WASD Walking in Otclient

    I can turn on the WASD walking with the checkbox, but I can't turn chat on and off with the enter key like in other tibia clients. What is the code modification in lua I need to enable chat toggle using the enter key? Thanks, CoolBuys1290
  19. zbizu

    Reading console errors

    For some reason a lot of people have trouble reading console errors and it makes me feel as if ability to read console errors was some ancient wisdom. In this tutorial you will learn to understand errors in your scripts. case 1: server closes and you can't read the error message: If you're on...
  20. D

    Programmer TFS Services [Lua/C++], OTClient Services[Modules/C++], VPS/WINDOWS Installation

    Hello im Lucas i am 29 y/o from Poland. Currently jobless so im looking for some job based on TFS. Looking for job: Programer/Scripter(C++ / Lua based on TFS), Additionally: Install OTS on Linux (Acc Maker, Engine, Required libs) Contact; Dakos#7633 Experience; 8 Years with Tibia Servers...
Back
Top