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

    Lua error: attempt to call global 'require' (a nil value)

    Hello. I have a problem with lua script on my local server. I added a command for GameMaster in talkactions.xml. And when I call a command in game I receive an error in console Lua Script Error: [TalkAction Interface] data/talkactions/scripts/eqSpawn.lua:onSay...
  2. potinho

    Lua [TFS 0.X] Svarground Arena - Bug sometimes

    Hello everyone, everything good? I'm using this @Gesior.pl Arena system, but I had a bug sometimes after player try to jump in arena. https://otland.net/threads/real-tibia-svargrond-arena-for-tfs-0-3-4-ver-3.33938/ After some players do arena, i have followed errors on console: 2023-07-20...
  3. aqubjukr

    TFS 1.X+ Get a value by showTextDialog

    Does anyone know how to tell me the correct way to get the text value typed by the player inside the showTextDialog? I know that the function is structured in the following way: showTextDialog(id, text, canWrite, length), but I couldn't do it at all. local function processValue(cid) local...
  4. potinho

    Lua [TFS 0.X] NPC Responds to "instant buy"

    Hello guys, how are you? I saw this in another retro OTs a very interesting thing. How to NPC answer a player without put it in a queue, like some servers have "bring me to" in boaters NPC without need to say "hi". I want the same thing for my sellers and buyers NPCs. If u want to buy a SD just...
  5. MrUnFantastic

    How to change weapon level?

    So, as the title states, I am trying to figure out how to change a weapon's level. I wanted to lower the level requirement for a snakebite rod. However, after chaging it from 7 to 5: <wand id="2182" level="7" mana="2" min="8" max="18" type="earth"> <!-- Snakebit Rod --> <vocation...
  6. potinho

    Lua [TFS 0.X] Error when kill 2 bosses with reward system

    Hello guys, I have a script for Reward Chest (who send parcel to DP with loot, and calculate reward by damage or heal), but when people kill 2 bosses script got this error on console: 2023-06-01 20:46:51 - [Error - CreatureScript Interface] 2023-06-01 20:46:51 - In a timer event called...
  7. imperius

    TFS 0.X Help! How to Prevent the player from executing any actions within the server?

    Hi, can someone assist me? I'm using [TFS 0.4 | 8.60] and I'd like to know how I can "freeze" a player. Is it possible to do this just using LUA or will I have to configure it in the server source? I need to ensure that, upon logging into the server, I check if the player has a storage X. If...
  8. Sprrw

    Lua Sending messages "private" without using NPC's chat.

    So what Im trying to do is something like this : pos:sendMagicEffect(effect, cid) But with text something like this : say(msg, player) So I basically want to send a say text msg but that only displays on the client side of things like pos:sendMagicEffect(effect, cid) does. Im not even sure if...
  9. Udun

    TFS 1.X+ Help with this script: Treasure Action.

    Hi guys! I'm having problems with this script. TFS 1.2, Tibia 10.98 Should do this: The player use a shovel (or any item of your election) and you can make a hole in any ground (grass, desert, snow etc.) could be a custom "hole" item, and you can hide items inside like a depot, then after a X...
  10. Sprrw

    Lua Hello folks! How would I go about an alternativ way of adding npc focus?

    So basically Im looking for ways to enter a npc convo without having to speak. Example: Enter a room and the npc says "Hello, and welcome. Please browse my shop". Idk if thats a super good idea but you kinda get the feel of it. Im asuming this is not doable thorugh a normal moveevent. Would this...
  11. Sprrw

    Lua Creating items on no ground tile

    Hello folks how would I go about adding an item in the air (so not on a ground tile). so atm Im trying to use doCreateItem(itemId, count, pos) and that works great when creating items on ground tiles but it doesnt seem to work like I want it to. Bonus question, is there any better looking way...
  12. Q

    Help with Shop delivery script - canary 2.6.1

    Hi guys, I have Canary 2.6.1 and myaac with Shop system by gesior. The payment system on the website works, u have points after purchase but the purchased items do not reach the client in store backpack Button. Im use: myaac-plugins/gesior-shop-system-latest at master ·...
  13. 44 Hunter

    TFS 1.X+ /attr uid not working

    Using.. The command /attr aid, 1234 works, but the command /attr uid, 1234 does not work, how to fix it? /attr unique, 1234 and /attr uniqueid, 1235 doesn't work either
  14. Sprrw

    TFS 1.X+ Simple boss system by me

    Hey guys, I made a simple boss system (as said in title).... xd Well with the help of you guys ofc! Well after a couple of hours of trail and error I came up with this. CreatureScript: (This script was inspired like 100% by someone, I cant remember who. If you recognise this script. Please hmu...
  15. Sprrw

    TFS 1.X+ Tfs 1.4+ cid:teleportTo(fromPosition, true) doesnt work

    As the title says, I cant get this to work. It does tp the player if I set a fixed value instead of the fromPosition. But I just cant get it to work Here is my code: function onStepIn(cid, item, fromPosition, itemEx, toPosition) if(cid:getStorageValue(28003) > 0) then if...
  16. potinho

    TFS 0.X Players staying online at training area - IP 0.0.0.0

    Hello guys, how are you? I dont know why, but recently, players are quitting game and staying online (just getting hitted by trainer, dont hit and not conjure spell), the area its not preventing to log-out. There's a way to prevent this? Here's my idle.lua local config = { idleWarning =...
  17. Mr Noxi

    Looking for lua scripter for TFS 1.4+ 10.98

    Yo ! As headline goes, am looking for a scripter for my project. I already have a main scripter and need someone that works as extra, smaller things, could also become as main if proven to be worthy and trustful ofcourse. Requirment: Mainly c++ Lua anything extra is always good, Payment...
  18. D

    TFS 1.3 8.6 MOUNT SYSTEM

    Hello, I'm looking to use the tfs 1.3 downgrade 8.6 mount system I already have a sprite added for testing, but when I use outfit.lookMount = ID it doesn't work. Can anyone shed some light on how to resolve this?
  19. K

    create a new tooltip in .lua otclientv8

    I'm implementing a rarity system on my server, but for that, it seems I need to do everything from 0 (since I can't find it anywhere around) One of the things in the rarity system that I want to do, is also to put the item description for when I hover over it. I'm doing it based on what...
  20. K

    Lua Request item that unequips after X seconds and goes back to bp

    Hello, I would like to know if anyone could help me with an item I need to make (actually there are 3 items, but if you can help me with any amount I will be immensely grateful) I've already added the item on the server and everything else, I put its ID and put it as ring, however, I would...
Back
Top