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

    Programmer Bounty added to grant Object Builder 10.76 Support.

    Don't mind me Ed, it's just a frustated programmers rage :( Could you explain the inner workings of the Object Builder for someone that doesn't know a line about AS?
  2. Lordfire

    Script for online time.

    Guys guys guys, aren't you forgetting the "onlinetime" field on EVERY SINGLE PLAYER?
  3. Lordfire

    [TFS 1.2] ORTS-walking through players

    Don't do that, ever. Go to that function and remove those lines: if (!playerTile || !playerTile->hasFlag(TILESTATE_PROTECTIONZONE)) { return false; } For me it's around line 833. Then recompile and you're good to go.
  4. Lordfire

    Fix/Patch House list edit bug

    So TFS has a bug where, if a player opens up the aleta sio dialog before getting kicked from the house he can still edit it and click ok to save the list. That way, he can either cleanup the list and kick everybody from the house or put himself on the list silently and come back later to rob...
  5. Lordfire

    [TFS 1.2] ORTS-walking through players

    What is TFS 1.2 that you are saying? 1.2 was not released yet, so I guess you are talking about bleeding edge from GitHub, right?
  6. Lordfire

    [TFS 1.2] ORTS-walking through players

    You want to allow or you want to disallow them walking through?
  7. Lordfire

    Compiling Exp Party by Members in Party

    The memberList size is the amount of members minus one, since the leader does not count. You have to use +1 if you want to get the member count. I would go for the following (notice it's another function): void Party::shareExperience(uint64_t experience, Creature* source/* = nullptr*/) {...
  8. Lordfire

    error at data

    The first tag should not have a slash, i.e. it's only <actions> The last line is missing the closing tag, </actions> So it is: <?xml version="1.0" encoding="UTF-8"?> <actions> (...) </actions>
  9. Lordfire

    Feature Simple passive monsters

    Hello again, today I bring you a very simple patch I made to enable monster passivity to be set on a monster XML configuration. The monster will not attack on sight, instead it will wait until it is attacked to fight back. Video example: (sorry for the shameless self promotion) Monsters will...
  10. Lordfire

    Lua System accepting only 2 cases

    If you want a clue, don't return everywhere. Calculate the bonus progressively, then return the final value. For instance: bonus = 1.0 if player:getVipDays() > 0 then bonus = bonus * 1.2 end if player:isPremium() then bonus = bonus * 1.5 end return bonus
  11. Lordfire

    Lua System accepting only 2 cases

    I think you are hitting a short circuiting. It happens when you have all ands and one of them is false, or all ors and one of them is true. When one of the conditions is false, all of them together can't be true (by the rule X and FALSE = FALSE), so if the second one is false, the third and...
  12. Lordfire

    Feature True dual wielding for TFS 1.x

    I have ported experience stages and bug report to Lua, I have made that Tibia system that gives bonus experience for low level players, I have skill stages and passive monsters, and also a major fix to NPC idling that reduces CPU usage by half, all of which I pretend to post here sometime. Also...
  13. Lordfire

    [TFS 1.0] red skull time

    config.lua timeToDecreaseFrags = 24 * 60 * 60 * 1000 IIRC this means each frag adds 24 hours to the skull time.
  14. Lordfire

    Compiling TFS 1.1 on Raspberry Pi or Debian 7

    Wtf that guy is trying to compile on 16M memory If I may, I suggest having a look on distcc cross-compiling, I've successfully ran Gentoo (the one that requires compiling every single package) with distributed compilation on a Raspberry, so much faster and easy as Pi.
  15. Lordfire

    Promoted Players gets downgraded to LVL1

    The above code willl NOT work on TFS 1.x, as it relies solely on the blessings field of the database. Check data/lib/core/player.lua to see how it works.
  16. Lordfire

    Compilation time windows/linux

    You can speed up compilation on Linux using ninja instead of make. Install (it is named ninja-build for me) ninja and, when issuing cmake, use: cmake -GNinja Followed by the same parameters you use to generate makefile, then run ninja. Ninja was build by the Google team that develops...
  17. Lordfire

    Tsf 1.0

    Use TFS 1.0, it's made for 10.41
  18. Lordfire

    laptop

    Please, a "modern OS" (I assume you are talking about Windows) does **not** use that much, it buffers/caches that memory to speed up things when it sees there is memory available. You can test it: run Windows on a 1GB machine and it will use about 300 MB of memory, run on 4GB that memory and it...
  19. Lordfire

    laptop

    False. For a small map, and by small I say under 20 megabytes, 2GB is enough, though I rarely see notebooks with under 4G nowadays. Multiple cores do not help that much. TFS, for example, has a game thread that runs constantly, and two helper threads for networking and database, but those two...
  20. Lordfire

    Windows Database

    Of course, you are returning the incremental id of the query run.
Back
Top