• 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. 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...
  2. 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...
  3. 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 =...
  4. 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 -...
  5. 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 -
  6. 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...
  7. Noupz

    macOS compiling lua error

    Error: I followed the compiling guide of edubart, everything was fine until I'm on Ventura 13.6 (22G120)
  8. 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...
  9. 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...
  10. L

    C++ Calling variable(c++) from LUA

    I use OTCv8 for my small project. I have a module for otclientv8 written in C++. The module generates numbers every second into a variable. I would like to have access to this variable from lua to use this variable in a lua script. I'm wondering and slowly eating my mustache on this code(my...
  11. D

    Lua [TFS 0.3.6]Script Party Exp

    Hello everybody! I need help with a script... I have this talkaction: <talkaction words="!partyexp" event="script" value="partyexp.lua"/> What calls this script: function onSay(cid, words, param, channel) if isInParty(cid) then local party = getPartyMembers(cid) local...
  12. Colandus

    TalkAction [GM] /stalk player

    This command will allow GM's to easier follow other players as they walk around the map. Usage: /stalk Colandus (enable stalking on player Colandus) /stalk stop (stop stalking) In data/talkactions/talkactions.xml add: <talkaction words="/stalk" script="stalk.lua" separator=" " /> In...
  13. E

    TFS 1.X+ Promotion errors after upgrading to tfs 1.5.

    Merged 1.3 alk custom rlmap together with the tfs 1.5 and this pops up in the enginelog when I attempt to buy promotion; Lua Script Error: [Npc interface] Data/npc/scripts/Queen Eloise.lua:eek:nCreatureSay data/lib/core/player.lua:59: attempt to call method 'getPremiumDays' (a nil value)...
  14. Curb

    TFS 1.X+ Issue with Item Description not being Recognized in Script

    TFS 1.4.2 I have a script that involves modifying item descriptions and interacting with specific items (a bucket of water and a sack of feed, with IDs 26415 and 26414, respectively. The script is intended to read the item description, extract a quantity value from it, and then perform certain...
  15. P

    [Canary 13.21] manage_storage.lua usage doesn't seem to find proper key-values.

    Hey there, Info: Canary 13.21 No general changes to code or scripts. Sometimes I'm having some issues with quest states, which seems perfectly natural, bugs do occur. I tend to troubleshoot these in order to find what path works and what doesn't in terms of the quest and if I can fix it in...
  16. D

    [Custom] ChestReward on Map

    I'm trying to create a script that generates some loot boxes on the map in pre-determined or random pixels, so that the player who uses it gets some pre-defined rewards. The reward system works, but I can't make the boxes appear on the map automatically when the server starts. , I also tried to...
  17. Travisani

    TFS 1.X+ How to declare an summons counter for my spells?

    I tryied to do a script for make a random summon. But i got this error: [error] Lua script error: error... boss_summon.lua:14: attempt to compare nil with number stack traceback: [C]: in function '__lt' ...boss_summon.lua:14: in function boss_summon.lua:10 local combat =...
  18. potinho

    Lua [TFS 0.X] Auction System (Trade OFF) - Bug charges

    Good afternoon folks,I have a trade off system that is connected to a web page but I saw a bug: if I try to sell an item with charges (stone skin amulet for example), if I put the item up for sale and remove it from the list, it just comes back with a charge, the same happens if a player buys an...
  19. P

    OTClient Lua Documentation

    hello, people of the forum. I've come here to share some of my resource with you all. I've just started doing modding for the client and I was a little bogged down because there is not much documentation easily found about the lua API given to us. So I've made these simple lua files with...
  20. potinho

    Lua [TFS 0.X] NPC - Correct doRemoveMoney

    Good evening guys, how are you? I have this NPC that I copied from Ralke to sell some items with charge, but he takes the item and its quantity (2160 for crystal coin and 2148 for platinum) and its real value is not included. As I added a new currency in the game, I would like to adjust this NPC...
Back
Top