• Vote in May Mapping Competition to select a winner!
  • 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. J

    Globalevent with storage comparison problem

    TFS 1.2 We have this function on our server, where you pull 1 of 3 levers to set a global storage in db where each lever has its dedicated storage number. What we need, is a global event to check which of the global storages that have the highest value, eg: Lever 1 = 3201 Lever 2 = 3202 Lever...
  2. Kuantikum

    STORAGE - Command to remove storage and code to remove storage in SQL.

    Hello guys! I would like to know if there is a talkaction script so that I can remove certain storage from a player. Something like that: /storage "player_name", storage, nill or 1 or -1 On the other hand I would like to know the command line to be able to execute this same function to...
  3. miguelshta

    talkaction mana train tfs 0.4

    hello i wanted for a script to train mana in my ot to make it work u need an spell an mana to say it example: !train exura vita,400 >> it will use exura vita when has 400 of mana thanks for all !! <3
  4. Jpstafe

    hide folders(HELP)

    How can I hide the folders from otclient ..? I have already compiled the otclient
  5. Kuantikum

    C++ [TFS 1.3] CTRL+ARROW KEY (Make the GODS / GM go through the walls)

    HELLO!!! :p I don't know if it's a code in the sources or a simple scrip, but I'm looking for the code to be able to make the GODS / GM go through the walls with the key combination CTRL + ARROW KEYS for TFS 1.3 please. Can anybody help me ? I'm very grateful 😍😘🥰
  6. Lessaire

    If VSCodium is not free enough for you

    🥳 🥳 🥳 Eclipse Theia 🥳 🥳 🥳 Next generation in developer environment funposting has finally reached Version 1.0 Release. Why yes, this is exactly what it looks like. A completely open-source IDE framework that can directly use VS Code extensions in its package.json. { "theiaPluginsDir"...
  7. Nu77

    [C++/Lua/Sprites] Null's Services

    Hello people! I’m available to commissioned work and Long/Short term. I'm a programmer very experienced with C++ and Lua. If you are seeking quality with good prices, then i'm your guy! I'll be able to work with both TFS & OTC and provide high quality code with awesome performance for both of...
  8. R

    TFS 1.X+ Set uniqueid to created item

    I have a quest that consists in destroying an item/object. After it's destroyed I want to let it respawn with uniqueid, but i cant get it to work. function createEgg(position) print('Egg has respawned') Game.createItem(14820, 1, position) local egg =...
  9. R

    TFS 1.X+ Teleport player out of area after x amount of time

    So i`m trying to make a boss room, the tp into the room works. But the tp after x amount of time doesn't work. since i`m using 1.3 and i think the code i got from here is 0.4? or something. local config = { room = {x = 896, y = 1048, z = 8}, kick = {x = 890, y = 1049, z = 8} } local...
  10. M

    Dual Handed deal Bleeding

    When player hits a creature wielding a two-handed melee weapon, he has 80% of chance of giving extras bleeding hit based on his skill. local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)...
  11. Walox

    Lua PokeLoot Error

    Hello guys, how are you? I'm trying to make an effect script. how does it work ? basically when a pokemon drops an evolution stone the system will identify which stone the player dropped and send a different effect to that stone. But I am not getting it because it is giving error; -; can you...
  12. N

    BOSS Monster Loot: Unique drop (reward system)

    Hello, I have been trying to solve a problem with unique items getting looted by every participant that join the fight. I found out that the code is not finished to avoid multiple people getting the unique item. I am using otservbr-global. And this is the part of the code that is unfinished...
  13. FearWar

    Lua Key Attribute 0.4

    Hi otlanders, TheForgottenServer 0.4 I have a script of a key, but when I do the quest on the server, an error happens. function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.uid == 3034) then if(getPlayerStorageValue(cid, 443) < 1) then...
  14. B

    Solved Help with Loot Slots

    Hello OTLand Community. I've downloaded the latest version of OTServBR (Version 12) and have a trouble with slots on corpses loot. Here i go: 1. In items.xml, "slain demon" is configured with this line: <attribute key="containerSize" value="24" /> 2. Then, when i kill any Demon, i have only 15...
  15. demon088

    Lua Spells with charges

    Hello again OtLand! I need some assistance making a new series of spells for my OTS, and if someone would like to use it, I'm glad to explain how it works or help to insert or edit the spell. My team had the idea to make a spell which could get one charge each time you use it. So, if you have...
  16. Lurk

    Lua onThink function help

    Hello, I'm working in this script, tfs 0.4 8.6 function onThink(cid, interval) local rate = 1.15 -- só access local ratering42 = 3.15 -- ring 200 com acces local origratering42 = 3.0 -- ring 200 sem access local ratering41 = 2.45 -- ring 130 com access local origratering41 = 2.3 -- ring 130 sem...
  17. Togu

    [OTClient] How to add new lua libraries?

    So, I want to create a button on client that download a file from internet, I need the "socket" library for that, I tried using socker = require("socket") on terminal on cliente but received: ERROR: command failed: :1: module 'socket' not found: no module 'socket' no field...
  18. C

    Why this login script doesn't work?

    Why is this script not working? I want a simple script that set the player town to 2 when he login for the first time. I am making sure to create a new char to make the LastLoginSaved = 0, still doesn't work. creaturescripts.xml <event type="login" name="changetown"...
  19. kozmo

    TFS 1.X+ 1.3 Auto Looting Help

    I am using TFS 1.3 OTServBr-Global. With the modal auto looter i have no errors accept it wont pick up items and not sure why, In TFS 1.2 Otxserver it works the same but will loot monsters. No src files used in this. If someone could help me out that would be great thanks for reading.
  20. Ovnyx

    TFS 1.X+ Validate item when using

    hi people, i was trying to validate when i use an object in a target what kind of item is(helmet, legs, armor, ring, etc) i tried with ItemType using itemType:getSlotPosition() with no success any ideas how can i do this? thanks in advice!
Top