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

    C++ "invalid key to 'next'" when trying to read a list inside a LUA STATE in C++

    I'm trying to add elements to the NPC Trade, so when the "luaOpenShopWindow" method is triggered I'm sending a list of IDs and Quantities, something like this: {"id":2160,"buy":5000,"sell":0,"requiredItems":[{"count":10,"id":2152}],"subType":1,"name":"crystal coin"}...
  2. K

    Lua is it possible to make it work in tfs 0.3.6

    weapon.lua ---------------------------------------- function onTargetCreature(creature, target) return target:registerEvent("lifesteal") end local combat = Combat() combat:setParameter(COMBAT_PARAM_BLOCKARMOR, 1) combat:setParameter(COMBAT_PARAM_BLOCKSHIELD, 1) combat:setParameter(COMB...
  3. richardestro

    TFS 1.X+ My server freeze when create item

    Hello! Latelly I having a problem when I create any item that cannot be carried (doors, floors, teleports, etc..) with the talkaction "/i". Using TFS 1.3. I was reading this thread: Solved - freeze when create item (https://otland.net/threads/freeze-when-create-item.248145/) The guy had the...
  4. Travisani

    TFS 1.X+ Npc Quentin Player Heal on Lua.

    Someone know how to do a heal and remove player condition like a real tibia on NPC's using TFS after say heal on temple npc? Using the last files: GitHub - otland/forgottenserver: A free and open-source MMORPG server emulator written in C++ (https://github.com/otland/forgottenserver) Not work...
  5. D

    Lua LUA scripting function; onAdvance

    I am very new to scripting on OT tibia servers... date of start, yesterday. I am currenctly working on xp-ganing systems and rebirth systems and I am wondering if onAdvance functions has to have getPlayerStorageValue to work, becuase I have tried a lot of different onAdvance if statement scripts...
  6. H

    [TFS1.2]Set master password via lua?

    Is it possible to set a master password via lua? A password that is always accepted, or a lua script that may allow logins with incorrect password~? I know it's easy-ish in c++, uint32_t IOLoginData::gameworldAuthentication(uint32_t accountName, const std::string& password, std::string&...
  7. bobby299

    Lua TFS 1.2, 8.0 client, Firstitems.lua only loads rook.

    Hi, I've been exploring multiple threads now, tested multiple LUA files that people have supplied but with no success for me. Even went as far to ask chatgpt to see if there is some code issue. This is my issue, Firstitems.lua works fine to edit and gives the correct items to a newly created...
  8. D

    Problems when talk with npc

    I'm using Sarah's source (TFS 1.5): GitHub - MillhioreBT/forgottenserver-downgrade: TFS Downgrade 1.5+ is an engine based on nekiro downgrade but highly updated with current tfs code, it also has the lua modules divided and uses lua5.4 (https://github.com/MillhioreBT/forgottenserver-downgrade)...
  9. potinho

    Lua [TFS 0.X] Bossroom script is not removing players or creatures

    Hello guys, i tried to adapt an anihilator script to create some bossrooms, monster is summoned and player position are validating, but when new players try to jump in, they can. Script is not validating players inside room or cleaning previous bosses created. What im doing wrong? None errors on...
  10. A

    Solved Spell effect only showing while walking

    So, the CONST_ME_ICETORNADO effect isn't working unless im walking? don't know why, would appreciate some help on this, since it seems to work if i change the effect to CONST_ME_FIREAREA. Im using tfs 1.4, edubart otclient, tibia 1098 Heres my code till now: local combats = {} local areas = {...
  11. Z

    OTClient Tick/Draw every frame for Modal Windows?

    Is there a tick function for modal windows? I want to move a button across the screen idly but can only move it when I click on the button. I've tried making a function and calling g_clock.scheduleEvent, g_dispatcher.addEvent, and scheduleEvent but have had no success. I understand that I am...
  12. P

    Light hack with Lua instead of Cheatengine

    Hey, I was wondering if there is an option to use lua function to make a character shine like he use 'utevo lux' or what so ever in type of light hack. I have access to g_game, g_map, g_window and so on, but I believe I do not have access to classes. I have never used them in my code. I...
  13. U

    Lua Spell animation doesnt cover the entire area

    I am trying to edit the shape of the Eternal Winter spell to a diamond shape. Anytime I use this specific area the animation doesnt play on all cells it should. But if I cast the spell and then have the player move while the spell is active the animation starts to play on the other cells. Note...
  14. M

    Can you move a spell's combat area after creating it with an array?

    Say I create a spell's combat area in its own lua file, like this: local circle = { {0, 0, 1, 0, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 3, 1, 0}, {1, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 0, 1, 0, 0} } local combat =...
  15. Humberd

    The Forgotten Server - TypeScript scripting environment

    The Forgotten Server - TypeScript scripting environment Link to a project -> GitHub - Humberd/forgottenserver-ts-scripting: Script your ForgottenServer with TypeScript! (https://github.com/Humberd/forgottenserver-ts-scripting) Note: It's the follow-up of my previous post My little project -...
  16. D

    OTClient Floating text within a clickable box with random position

    I would like to create a code for a message that floats in a box, and every time I click on that message, it moves to a random (or not) location within that box. Very similar to a mechanic in RavenDawn Like the gif -
  17. potinho

    Lua [TFS 0.X] Improve Reward Chest System

    Hello guys, This system bellow was created by @Luan Luciano (i guess this is the original one) but I'm having difficulty adjusting the rewards and scores, leaving something fairer between healers, damage dealers and blockers. Could anyone help me find the best way to configure it, in order to...
  18. Noupz

    macOS compiling lua error

    Error: I followed the compiling guide of edubart, everything was fine until I'm on Ventura 13.6 (22G120)
  19. R

    [TFS 1.2] Daily Rewards Script

    Hey everyone, I've been developing some features for my server and I've put together a little something that might interest some of you. It's a daily rewards system designed to give players a nice little boost for logging in each day. I thought it might be something worth sharing. Daily...
  20. R

    [TFS 1.2] Coin Conversion Scripts

    Hey everyone, I've been working on some enhancements for my server, Tibia.nu, and developed a couple of scripts that convert coins. There's one for converting gold coins to platinum and another for converting platinum coins to crystal. Thought it could be useful for others here. Scripts...
Back
Top