• 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

    [TFS 1.x] How to create new callbacks

    If you look back, you will see that our CreatureEvents' playerSay function calls an onSay scripts, returns false if any of the Lua functions return false, or returns true if all of them succeeded (or if there aren't any "say" events). So I add the following right after the above piece of code...
  2. Lordfire

    [TFS 1.x] How to create new callbacks

    The lines that we are interested are the last ones: m_scriptInterface->pushFunction(m_scriptId); LuaScriptInterface::pushUserdata<Creature>(L, creature); LuaScriptInterface::setCreatureMetatable(L, -1, creature); lua_pushnumber(L, interval); return m_scriptInterface->callFunction(2)...
  3. Lordfire

    [TFS 1.x] How to create new callbacks

    Hello, my fellows! Today I come with a tutorial on how to write your own useful callbacks for TFS versions 1.0 and up. It is easier than you might think and you can have much more customized behavior of your very own server scripts :) This is my first tutorial in English, so sorry if I extend...
  4. Lordfire

    Compiling Asking for TFS 0.4 without SALT

    Why, you want to spy on your players' passwords?
  5. Lordfire

    Gaming Level 100 finally!

    Those new merged worlds have porn actress names. Congratz for that loot, probably worth more money than I've ever had on Tibia
  6. Lordfire

    Solved Updating map.

    Backup your map and try. There may or may not be problems depending on the items you use.
  7. Lordfire

    Windows Searched everywhere, old xml server help!

    You might find it on forums that keep maintaining old versions, I can point all brazilian forums and I think polish too, if you can read any of those idioms. Most of them will indeed have broken links, however. XML is long gone.
  8. Lordfire

    Lua Tibia natural day/night (ambient light): how to always be day?

    These are the lines that checks the time and sets the light to "sunrise", "sunset", "day" and "night", as you can see. If you remove it entirely, the game will never bother to check what daylight should be, it would just run the clock but ignore daylight changes.
  9. Lordfire

    Lua Tibia natural day/night (ambient light): how to always be day?

    What server are you using? On TFS 1.x you can remove this entirely: https://github.com/otland/forgottenserver/blob/master/src/game.cpp#L4320-L4362 And world light will stop changing, while clocks still work.
  10. Lordfire

    Destroy.lua

    What do you want to achieve?
  11. Lordfire

    Need items.xml

    Don't bump that often, and just grab the latest one from https://github.com/otland/forgottenserver if your server is updated (10.76)
  12. Lordfire

    Spell Silence TFS 1.0

    I'm pretty sure you never had a Haskell or Lisp code in front of you :) let's fire up a topic on an offtopic board, we're polluting this question.
  13. Lordfire

    Spell Silence TFS 1.0

    Then go ask on XTibia, OTBR or TibiaKing. I can help you there. Objection. You aren't considering different paradigms.
  14. Lordfire

    NPC [TFS 1.2] NPC Dialogue Tree

    You might also point to a function on the script field, instead of your string approach :P I think it would be cleaner.
  15. Lordfire

    Lua onKill Problem HELP! [TFS 1.1]

    onKill is meant to fire for the killer, not the dead. It will fire multiple times if multiple players kill the monster, too.
  16. Lordfire

    Compiling changes for 10.80

    Just wait for it, this requires a lot of trial and error from people who know very much what they're doing.
  17. Lordfire

    Client 10.36

    He could use the search function anyway.
  18. Lordfire

    Lua Error while loading actions

    Do it, but please, this script deserves a major refactor. Find patterns and rework on them.
  19. Lordfire

    Lua Error while loading actions

    Yeah. It's pretty much too large, but the vast majority of the lines could be reduced to a single for, changing the values. Now what I know about this control structure too big problem is that you have a too long jumpable section of code, and I'm pretty sure it is the very first if. You might...
  20. Lordfire

    HELP ! Broadcast at Kill and Death

    My bet is that you have one extra end somewhere. Edit: had.
Back
Top