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

    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...
  2. 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...
  3. 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...
  4. 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
  5. 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
  6. 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 =...
  7. 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...
  8. 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...
  9. 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...
  10. 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
  11. 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
  12. 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...
  13. 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...
  14. Ralumbi

    OTClient ERROR: protected lua call

    OTClient game_skills module error: ERROR: protected lua call failed: LUA ERROR: /modules/game_skills/skills.lua:107: attempt to index local 'skill' (a nil value) stack traceback: [C]: in function '__index' /modules/game_skills/skills.lua:107: in function 'setSkillValue'...
  15. thegood

    attempt to call global 'getCastleConfig' (a nil value)

    I need help with this Castle War script, all works good, but when the event finish, i recive this message: And have this error: This is my castlekill.lua: function onDeath(cid, corpse, killer) if (getCreatureName(cid) == getCastleConfig("monster")) then Castle_endEvent(true...
  16. Niloahs

    Lua Teleport player to previous position

    Hello guys, I have a script that makes player be teleported to the temple of the city he have the current citizenship, i use this script to make player leave the training room. Each city has a teleport targeted to training area, but what I wanted to see was if it is possible to get the player to...
  17. aqubjukr

    Lua [TFS1.3] Time Guardian Spell

    I have a script from the boss time guardian (to change the phases), and I wanted to know what the reason for the error would be, since the "index" was set in top as a random number between 1 and 2. If you have a possible way to fix it, I would be grateful. Console: Lua Script Error: [Spell...
  18. N

    TFS 1.X+ Need help with reducing skills

    Can someone please point me of where I can find a script that can either lower player skills or a script that can place a soft cap on players' skills TFS 1.3 basically players have been able get much higher skills than I would like. I would like to lower their skills to place a soft cap...
  19. thegood

    Add bosses to Grizzly Adams script

    Hello, I have a Grizzly Adams script and all works fine, but it don't have boss script, I searched in a lot of threads and all scripts I found don't works in my server, I need help to implement this system in this script. I use TFS 0.4 3777. And this is the script that I use:
  20. Niloahs

    Lua TFS 1.3 - Lever that requires few specific items on basin

    I tried editing other existing scripts with a similar function but i couldn't make it work. So, all i need is: I-) Items must be dropped on specific basin. II-) Once all items are on their basins, someone pulls the lever and Items + walls disappear. III-) The lever only can be pulled after 1...
Back
Top