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

    Lua [TFS 1.X] Random Reward Action

    Hello OtLand! I wanted to share this action script that I have written with other scripts posted in this site. Review it and if someone wants to use, it would be cool! I'm using TFS 1.2 and it is working fine! It is useful to make this a random reward box. In my own OTS I use 6 different items...
  2. CoolBuys1290

    TFS 1.X+ TFS 1.3 Nekiro's Downgrade 7.72 not working

    The Forgotten Server - Version 1.3 Compiled with Microsoft Visual C++ version 14.2 Compiled on Jul 14 2020 22:43:56 for platform x64 A server developed by Mark Samman Downgraded and further developed by Nekiro Visit our forum for updates, support, and resources: http://otland.net/. Server...
  3. Lurk

    TFS 0.X help with this null value

    Helo, I have this script that allows players to use their website points in tradow windows with other players I have this on my libs function getAccountPoints(cid) local Points = 0 local Result = db.getResult("SELECT `points` FROM `znote_accounts` WHERE `account_id` = " ...
  4. Lurk

    TFS 0.X Save pet health for 2 minutes

    Hello, I have a pet system and I have this problem: You summon your pet and it spawns full life, as intented. You can also at any time unspawn it by using the item again; If my pet loses let's say 80% of it's health, I can simply use my item again to unspawn and then use again to spawn it full...
  5. stefbox99

    Lua Trying to remove(clean) items from tiles with startPos to endPos

    startPos = Position(1064, 853, 7) endPos = Position(1088, 875, 7) function cleanTiles(startPos, endPos) for x = startPos.x, endPos.x do for y = startPos.y, endPos.y do for z = startPos.z, endPos.z do local item = Tile(Position(x, y, z)):getItems()...
  6. Lurk

    Lua how to get accountId using lua

    Hello, I have this code function getAccountPoints(cid) local id = db.getResult("SELECT `account_id` FROM `players` WHERE `name` = '" ..getPlayerName(cid).. "';") print("id: " ..id.. "") local res = db.getResult('select `points` from `znote_accounts` where `account_id` = \''..id..'\'')...
  7. bury

    Lua Skipping Potar's antibot script with an item?

    Hello! I'm using TFS 0.4 and this item would skip the antibot system for x hours. I'm using the potar's Antibot script that works perfect on my rev. On lib.lua: AB_SYSTEM_BASE = 77000 -- this storage must be free, from 77000 to 77006 --done idk if skipping any storage of this could be...
  8. 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...
  9. 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...
  10. 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
  11. Jpstafe

    hide folders(HELP)

    How can I hide the folders from otclient ..? I have already compiled the otclient
  12. 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 😍😘🥰
  13. 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"...
  14. 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...
  15. Raikou

    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 =...
  16. Raikou

    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...
  17. 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)...
  18. 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...
  19. 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...
  20. 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...
Back
Top