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

    Solved Spell crashing server [TFS 1.2]

    You should never pull stunts like that with items. In this scenario, it most likely crashes the server due to one (or more) item(s) are no longer available in the game. I have prepared a snippet that should take care of the issue you're currently facing: function onCastSpell(creature, var)...
  2. Ninja

    Lua Lua Issue (math related)

    It should be running now after altering a few lines: Revisions - Lua Issue (math related) P.S. I'm not going to rewrite the script for you this time, so you're on your own now! ;)
  3. Ninja

    Lua Code Efficiency

    If you wish to make it even more efficient: Let it go through the Z-axis first & construct the posit table once (before the for loops) and simply assign new x/y/z values. local posit = { x = 0, y = 0, z = 0, stackpos = 253 } for posz = positions['a'].z, positions['b'].z do...
  4. Ninja

    Feature [TFS 1.2] Monster:onSpawn(position, startup, artificial)

    The event ’onSpawn’ is called before ’Game::internalPlaceCreature’ which means that the monster’s ID has yet to be assigned.
  5. Ninja

    C++ Player::canWalkthrough() TFS 1.2

    Can you at least show me the code you're using? I'm unable to reproduce the issue with the snippet from my previous post.
  6. Ninja

    C++ Player::canWalkthrough() TFS 1.2

    Could it be that you’re walking through a protected player? :p
  7. Ninja

    C++ Player::canWalkthrough() TFS 1.2

    Have you tried to relog (or walk out of its sight) before attempting to walk through the summon? Tested this snippet a minute ago, and it worked just fine. -- Edit -- If you wish to avoid doing the things I mentioned above, simply add the following to...
  8. Ninja

    I'll tell you what

    Why don’t you just move on like any sane person would do if they’re dissatisfied with something? It’s not like we have got anything against you personally (which you probably think we do), but you will have to follow the rules just like everyone else if you want to be a part of this community...
  9. Ninja

    Stamina Assistance

    player:setStamina(math.max(0, player:getStamina() - charge))
  10. Ninja

    Can someone from

    What happened to you in the last 24 hours or so!? You were the Chosen One! You were supposed to destroy the Leechers, not join them. You were supposed to bring balance to OTLand, not leave it in darkness. :( Joking aside, knowing how to code is definitely not a requirement to build a server...
  11. Ninja

    Lua TFS 0.3.7, NPC default speech, how to change?

    If you had gone through the content of npchandler.lua thoroughly, you would have seen that you're presented with two options ;) npcHandler:setMessage(MESSAGE_GREET, "someGreetMessage") <parameter key="message_greet" value="someGreetMessage" /> -- Edit -- Sorry, the XML approach can be found...
  12. Ninja

    ULTIMATE PING/CRASH/LAGS BY 1 CHAR !

    It looks like your dedicated server uses OVH's custom kernel. This may very well be inconvenient for you, but you most likely will have to reinstall the OS (and while doing so, you should select Use default kernel).
  13. Ninja

    ULTIMATE PING/CRASH/LAGS BY 1 CHAR !

    Install a profiling tool to gain more insight: Linux - High CPU Usage ;)
  14. Ninja

    [USA][Custom] ArchlightOnline - Legacy - Coming May 13th 2022

    Please refrain from bringing money into the discussion as it's irrelevant. I most certainly wouldn't blame the encryption we utilize for the lack of Linux support. The demand for it has pretty much always been non-existent (excluding the two requests above), and is simply not worth the effort...
  15. Ninja

    Lua Position of spell when mooving!

    That works in TFS 1.x as well (if you take advantage of compat.lua that is), otherwise you could just use Variant(number or string or position).
  16. Ninja

    Linux High CPU Usage

    Have you installed perf onto your system? If you haven't already, please visit the following link: How to install "perf" monitoring tool?. Please keep in mind that the package tool might be unable to find the appropriate packages (One reason could be that your server uses a custom kernel). Once...
  17. Ninja

    Linux High CPU Usage

    There is most likely nothing wrong with the dedicated server itself (rarely is), and I don't think his playerbase would be too eager to play on a server that uses the default OTX datapack (even if temporarily). Here are a few suggestions (for now): Install a profiling tool (preferably perf)...
  18. Ninja

    Lua Can you make this script shorter?

    I honestly can't fathom why you would avoid using a simple table lookup in this instance. The content is already minimal, and what you possibly gain/lose performance-wise (we are talking about nanoseconds now) is simply not worth the trouble.
  19. Ninja

    One-time Raids

    What TFS version are you using? Let me guess, either 0.3 or 0.4? As far as I can see, there is no 'repeat' attribute for raids in 0.3/4 but it does exist in the TFS 1.x series (raids are non-repeatable by default there). So if you've got any C++ experience, you could easily add it to your own...
  20. Ninja

    Editing posts

    Sure you did, but do you remember what you submitted? If not, here is a friendly reminder (see image below)! :) I'm sure you can understand why we were unable to process it.
Back
Top