• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. Mkalo

    Creature that disappears and reappears.

    https://github.com/orts/server/search?utf8=✓&q=versperoth Or if you prefer: https://otland.net/threads/monster-artificial-inteligence-behavior.241452/ Good luck
  2. Mkalo

    Solved Paragraph in quest log

    Nope, the extra \ is to escape to use the string "\n" instead of a new line.
  3. Mkalo

    Solved Paragraph in quest log

    \n should work, are you using TFS 1.x? https://github.com/otland/forgottenserver/blob/master/src/quests.cpp#L34 If it doesn't work we should replace it for 

  4. Mkalo

    Solved Paragraph in quest log

    Did you try "\n"
  5. Mkalo

    Programmer C++ and debugger skills

    Have we discussed before? Tarke1337, 2017
  6. Mkalo

    Solved Add another attribute

    Use bitwise-or to get the new hex value: (0x7FFE13 | (1 << 23)) if it's an int attribute or (0x1EC | (1 << 23)) if it's a string attribute. In Lua 5.3: local mask = 0x7FFE13 local bit = 1 << 23 print("0x" .. ("%x"):format(mask | bit):upper()) Output: 0xFFFE13
  7. Mkalo

    Add Player 3% Mana per sec needed

    Associative arrays (maps): https://en.wikipedia.org/wiki/Hash_table Arrays: https://en.wikipedia.org/wiki/Array_data_structure Lua table uses a combination of both to optmize it. You can read about it here: https://www.lua.org/doc/jucs05.pdf (Section 4)
  8. Mkalo

    Feature TFS 1.0/1/2/3 - otx3 from 7.7 to 10.9x Load Items from Lua

    This is a forum, if you wanna post any code here you should expect to be criticized about it, if what you really want is somewhere to display your shitty doings you can create your own forum and ban everyone that says your code is bad.
  9. Mkalo

    Feature TFS 1.0/1/2/3 - otx3 from 7.7 to 10.9x Load Items from Lua

    lua_State *L = luaL_newstate(); std::string str; uint16_t id = 1; if (!L) { throw std::runtime_error("Failed to allocate memory in items"); } luaL_openlibs(L); Doesn't seem like you understand TFS's LuaScriptInterface purpose at all.
  10. Mkalo

    Using lua instead of xml

    And why does that have to exclude the XML processing? Just to get rid of backward compatibility? One thing is: Registering events with Lua Other is: Replace XML with Lua. They're different.
  11. Mkalo

    Programmer [Kingdom Age] C++ Developer Request to fix crashes

    Then remove the skill related code from the source that is making the crash if you don't use it. Simplest fix ever.
  12. Mkalo

    Programmer [Kingdom Age] C++ Developer Request to fix crashes

    You don't have to pay $25/h for that. It's clear that your compiler is not doing a proper conversion from skills_t to uint8_t, maybe you changed something and fucked up the types, can't tell for sure without seeing it but check the types and if you don't find anything weird place a...
  13. Mkalo

    Linux Auto Restarter + Screenlog save + error + output list.

    #!/bin/sh gdb -x restarter.py Place that in a file and do chmod 755 filename
  14. Mkalo

    Linux Auto Restarter + Screenlog save + error + output list.

    Nope you didn't make what I've said, you are suposed to create a bash script with gdb -x tfs_startup.py And then execute that bash with while true; do screen -LAdmS root ./NAMEOFBASHSCRIPT --log-file "output.txt" "error.txt"; done
  15. Mkalo

    Linux Auto Restarter + Screenlog save + error + output list.

    Make a new shell script, put "gdb -x script.py" inside it and then: while true; do screen -LAdmS root ./NAMEOFTHESCRIPTFILE --log-file "output.txt" "error.txt"; done
  16. Mkalo

    Windows I NEED PAY COUNTDOWN

    Then you no need pay countdown you need pay more vps .......................... -.-
  17. Mkalo

    Linux Auto Restarter + Screenlog save + error + output list.

    The same way it was before.
  18. Mkalo

    Linux Auto Restarter + Screenlog save + error + output list.

    Instead of running ./tfs you run "gdb -x script.py"
  19. Mkalo

    Linux Auto Restarter + Screenlog save + error + output list.

    #!gdb import gdb from datetime import datetime logfile = "crashlog.txt" tfsbin = "tfs" def crash(event): if (isinstance(event, gdb.SignalEvent) and not event.stop_signal == "SIGINT"): file = open(logfile, "a+")...
  20. Mkalo

    parseAreaMap - extract positions from "map" table

    As you asked for suggestions: Here: for areaVal, posT in pairs(rawValues) do values[areaVal] = {} for _, pos in ipairs(posT) do table.insert(values[areaVal], Position({x = center.x + pos.x, y = center.y + pos.y, z = center.z})) end end Instead of storing the raw position...
Back
Top