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

    Lua Random results

    local exemple = table.random{"A", "B", "C", "D", "E"} Hello guys! Im trying to get a random value from "exemple ". It give me a random value, but when ill repeat the function again it give me the same value and it just give me a different one when i restart the server. Exemple: The firs try...
  2. Manigold

    Lua TFS 1.X a nil value

    I'm having a problem ,(line 22 :attempt to index local 'conjureItem' <a nil value>) With this function : function Player:conjureItem(reagentId, conjureId, conjureCount, effect) if not conjureCount and conjureId ~= 0 then local itemType = ItemType(conjureId) if...
  3. Fabi Marzan

    Spawn - Block certain monster.

    Hello, I wanted to know if it is possible to block the spawn of certain monsters... In my sources I modified the block spawn code that would be if a player is on screen the monster still respawns. https://otland.net/threads/disable-player-block-spawn-in-tfs-1-x.277962/post-2672488 The thing...
  4. Jaki Maoh

    Lua Help with "Basic" .Lua (movements) Scripting

    Hello Community! I can't figure out what is wrong with the script. 😵‍💫 The idea is to add back (to the original tile) a small stone after x time with addEvent function. The problems: 1 when the item is created, it spawns without the aID needed to activate the onRemoveItem function. 2 when the...
  5. Q

    Solved [TFS] Undefined reference for lua_*

    Hello all, I was searching for that topic on this forum and found some threads but none was solving my issue :| I have a problem with undefined reference. During compiling everything works fine till 100% and then I get errors for undefined references for lua_* files. All packages I've always...
  6. K

    Skrypt LUA

    Witam poszukuje osoby która była by w stanie przerobić dla mnie skrypt do gry Farming Simulator 19 z starszej odsłony tej gry, gra posiada dokumentacje dla skrypterów na swojej stronie więc nie powinno być problemu, wynagrodzenie do ustalenia. Pozdrawiam
  7. L

    Talkaction teleport for guild members

    i would like if someone can introduce me to a talkaction that would work like this: "/realm = only members of the realm can use that command, go to npc and choose whether realm" if the player is already from a realm "/realm= teleport, x=00.y=00,z=00 i have a kingdom system but i can't...
  8. M

    Spamming Error Creature not found

    [Error - CreatureScript Interface] data/creaturescripts/scripts/reflect.lua:eek:nStatsChange Description: (luaDoTargetCombatHealth) Creature not found [Error - CreatureScript Interface] data/creaturescripts/scripts/reflect.lua:eek:nStatsChange Description: (luaDoTargetCombatHealth) Creature not...
  9. Loremaster7

    How to create an item and then remove it with certain time? (using addEvent)

    I created a lever, and I need it to disappear after 3 seconds ... My code 1 : function onUse(cid, item, frompos, item2, topos) time = 3 lever = {x = 2892, y = 2687, z = 8, stackpos=1} getlever = getThingfromPos(lever) if item.uid == 60115 and item.itemid == 1945 then...
  10. Loremaster7

    Script Remove 2 Stone with time and make a new lever (help)

    Hello, my friends, how are you? I'm trying to make a lever that removes a stone and under that stone another lever appears and that lever removes another stone, but the 2 stones with a time of 5 seconds to go back (stones) and remove the lever that was created under the first stone ...
  11. absorc

    TFS 1.X+ Destroy Field, Animate dead - Not working.

    Hey guys I am currently trying to find errors on the server I am planning on using in the future. Atm I am using RealOTX 7.72 TFS 1.3 by mattyx14. Now the problems I've encountered so far is that destroy field or animate dead are not working. When I am trying to use Destroy field nothing...
  12. bok

    AAC Gesior Shop.lua

    shop.lua function onThink(interval, lastExecution) local queryShop = db.storeQuery('SELECT * FROM `z_ots_comunication`') if queryShop ~= false then repeat local id, player = result.getNumber(queryShop, 'id'), Player(result.getString(queryShop, 'name'))...
Back
Top