• 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!

Search results

  1. dudeim

    Would you play this type of ot server?

    Hey, I always wanted to create rpg maps, though as I always work alone it's too big to handle without spending years on it. So I thought how about I create a endgame type ot server, meaning it will have lots of instances, pvp, daily quests stuff like that and NO leveling. So basicly you start...
  2. dudeim

    Lua Question about functions in tables and using vars from table with indexes

    Hey, I'm currently trying to modify variables from a table inside a function that's inside a table. t = { } function someFuncThatIsCalled() for i = 1,10 do t[i] = { vals131 = 0, --the value that is changed, I gave it some stupid name so I'm sure it's never used somewhere...
  3. dudeim

    Lua Serializing and unserializing a metatable

    Hey, So I got this problem I have a table containing a metatable and well I want to serialize that table, but the built in function only works for non metatables. These are the functions I'm talking about: function table.serialize(x, recur) local t = type(x) recur = recur or {}...
  4. dudeim

    Lua Anyway to call functions in 050-functions.lua (so it calls it at start)

    Hey, I have a little problem currently, I have this very big table that requires alot of data set that needs to be accessed globaly (so I need to set it befor hand and not in some creature/action/globalscript or whatever) So I wrote this function that sets that data for me so I have to write...
  5. dudeim

    Lua Getting all creatures currently alive

    Hey, is there anyway I can get all living creatures? Something like getOnlinePlayers() but then for creatures (getOnlineCreatures())? Is that possible? Thanks!
  6. dudeim

    Lua Removing a line in a .txt file

    Hey, I want to remove a specific line from a file through the use of lua code, but I would have no idea how to do that. for example I have a file like this: val 1 = 10 val 2 = 11 val 3 = 12 val 4 = 13 val 5 = 14 etc.. note that the actual numbers don't matter now how would I for example...
  7. dudeim

    Loading a table from a .txt file (lua) (textToTable)

    Hey all, I've been out of ot a while so scripting is harder again:P I'm currently trying to save a table to a txt file on my pc and then load it back to a table again, the saving is working (thanks to mock for a function) though I have no idea how I would go about loading it back to a table so...
  8. dudeim

    Lua Question about tables inside tables etc..

    Hey, I want to know how to use tables inside tables. Here is a script and I want to know if there is a correct way in there or I need to use another way ExampleTable = { Example1 = { Example2 } } -- ok so now I can have something like: ExampleTable.Example1.Example2 right? function...
  9. dudeim

    More items attributes in lua scripting

    Well yesterday I tried to make a lua script but then came to the conclusion I was missing function so I couldn't finish it. So I want to ask if someone can make me a functions like setItemAttack(uid,attack) but then for magic level, max health, max mana, all element protections including...
Back
Top