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

    Scripter [Offering] Canary 3.2 / TFS Lua Scripter — Custom Scripts, Setup & Bug Fixes | Zeno Tide Dev

    Hello OTLand, I'm Alfredo, developer of Zeno Tide. I'm opening professional development services to the OpenTibia community. ═══════════════════════════════════════════ ABOUT ME & MY SERVER ═══════════════════════════════════════════ Name: Alfredo Chiu Developer of: Zeno Tide Website...
  2. lukatxd

    TFS 1.X+ TFS 1.4.2+OTC mehah - Is there a way to force mount a player and/or change outfit when entering Protection zone

    I'm thinking of making a sci-fi/mecha/robots custom server and I'm looking for guidance since I'm kinda struggling with a few points, kinda getting the hang of the code flow. Here's my line of tought: - Robots are mounts -> Change mount change robots -> by changing a robot, change player...
  3. Michy

    Release OTA RME 4.2.0 - LUA Scripting

    Hello, it's been many years since I've been here. I've been quite active in the community recently and have become a contributor to the OTA Remeres Map Editor repository. On this occasion, I'm here to present update 4.2.0, which I believe is quite disruptive because it allows you to extend the...
  4. potinho

    TFS 0.X [LUA/C++] Upgrade elemental damage on weapon

    Hello guys, i'm in correct way to create this upgrade system who add elemental damage on weapon? I'm using OTX2, it will necessary some C++ change? The script add description but weapon is not dealing elemental damage. Follow code:
  5. B

    RevScripts REVSCRIPT - Quest does not appear in the quest log and does not start the quest

    Guys, I'm new to this Revscript and I need some help. The quest doesn't show as started (which isn't that relevant to me), and when I click on the chest, I choose which item I want and take one of them (which is where I finish the quest), but it doesn't appear in the quest log that the quest was...
  6. potinho

    Lua [OTX 2] Simple Reward System

    Hey everyone, I'm trying to create a simple reward system where predefined rewards with fixed chances are distributed to players within the boss's line of sight (the value is also defined). However, I've been experiencing issues such as rewards being sent incorrectly, bosses dying and not...
  7. miguelshta

    Scripter Experienced LuaScript Developer Looking to Join a Team

    👋 Hello Otland Community! Let me introduce myself 👋 👤 Who am I? Hello everyone! My name is Miguel, a software engineer from Mexico. While my professional expertise is in Python 🐍, I also have a great passion for Lua and LuaScripts 📜. 🎮 My Tibia Experience I've been involved in the...
  8. Darkenes

    RevScripts Change the Gold Rate for Monsters in TFS 1.5 Without Modifying XML Files

    any idea to make a script or where to start editing in c++ that will allow me to change the gold rate of all monsters on my TFS 1.5 server globally, without having to modify any XML file. The goal is to apply a new gold rate value centrally and dynamically so that it affects all monsters without...
  9. P

    Lua NPC Guardian

    I'm creating an NPC so that if the player gets the magic word right, the player is teleported to a specific area. The NPC can't interact, it just hears the right word and teleports the player, but it's not working. local internalNpcName = "Guardian" local npcType =...
  10. 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"}...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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&...
  16. 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...
  17. 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)...
  18. 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...
  19. 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 = {...
  20. 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...
Back
Top