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

    What are you using to protect your custom client?

    There is plenty of reasons to protect your files besides keeping people from stealing your scripts. Sprites, antibot, stopping edits to client for gameplay advantage. If you want to keep your scripts open for viewing yet protected you could look into getting checksum of files and comparing...
  2. Apollos

    TFS 1.X+ Problem?

    It'll be fine for now, but as it states in later updates it will be phased out completely.
  3. Apollos

    Killstreak give a spell

    Well the learnSpell function is there. Are you sure all vocations are set up to be able to use it? Or maybe something what in spells.xml is prohibiting you.
  4. Apollos

    Killstreak give a spell

    That's what it should be doing. Is it sending the text message when you kill? And does it say you learned spell at 10 kills?
  5. Apollos

    TFS 1.2 Kill monster, remove stone

    Mines an onKill event that needs to be registered to player at login
  6. Apollos

    TFS 1.2 Kill monster, remove stone

    You can try this, hope i understand what you are requesting. Untested so let me know. local config = { -- reset is per hour {name = {"Rat Boss"}, reset = 2, pos = Position(1000, 1000, 7), itemid = 1304}, {name = {"Rat Boss Second", "Rat Boss Third"}, reset = 2, pos = Position(1000, 1000...
  7. Apollos

    TFS 1.X+ Problem?

    I don't know which files you need to change, only you can find that out. I can only suggest you use a code editting software like VS Code, Sublime, or Atom that allows you to use a search within an entire directory in order for you to find where these are written.
  8. Apollos

    TFS 1.X+ Problem?

    Find any combat:setCondition in your server scripts and change them to combat:addCondition
  9. Apollos

    How to edit serversave.lua script

    Yeah, that is strange. You can try this alternative, but if this doesn't go to server log then I'm not sure. broadcastMessage("Map cleaning in 5 minutes.", MESSAGE_STATUS_WARNING) addEvent(function() broadcastMessage("Map cleaning in 3 minutes.", MESSAGE_STATUS_WARNING) end, 2 * 60 *...
  10. Apollos

    How to edit serversave.lua script

    Try this one: function onThink(interval) broadcastMessage("Map cleaning in 5 minutes.", MESSAGE_STATUS_WARNING) addEvent(broadcastMessage, 2 * 60 * 1000, "Map cleaning in 3 minutes.", MESSAGE_STATUS_WARNING) addEvent(broadcastMessage, 4 * 60 * 1000, "Map cleaning in 1 minute."...
  11. Apollos

    Not sure how to add lvl requirement in action

    This must be some editted/alternate version of TFS 1.2? Hence why you guys are using the wrong onUse parameters and legacy functions?
  12. Apollos

    How to edit serversave.lua script

    Change function onTime(interval) to function onThink(interval)
  13. Apollos

    Killstreak give a spell

    You can try this: creaturescripts/creaturescripts.xml <event type="death" name="Kill_Streak" script="other/kill_streak.lua" /> creaturescripts/scripts/other/kill_streak.lua local kill_streak = {} -- DO NOT CHANGE local spell_name = "YOU CUSTOM SPELL NAME HERE" function onDeath(creature...
  14. Apollos

    How to edit serversave.lua script

    Looks like it should work fine. Best way to know for sure is to test it.
  15. Apollos

    Not sure how to add lvl requirement in action

    Try this one. local config = { minLevel = 250, destination = Position(76, 129, 7) } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getCondition(CONDITION_INFIGHT, CONDITIONID_DEFAULT) then...
  16. Apollos

    Action [TFS 1.X] Train/Ore Wagon System

    Features: Set your own speed of wagon Option to prohibit player from leaving track during transit Goes up and down stairs/holes Supports multiple uses at the same time Credit to @Mock for the inspiration to rewrite my own version. Notes: Using loops in track may cause infinite looping Does...
  17. Apollos

    OTC Compile

    Editted my first post btw. But from what I've experienced OTC compiles best with the 2015 toolset. Also it may be useful to note that I do use vcpkg for TFS but with OTC I use the otclient sdk instead.
  18. Apollos

    OTC Compile

    This is from compiling guide on OTC github repo: Dx9 Support Layer If you would like to enable the dx9 support layer for otclient you need to compile with the -DOPENGLES=2.0 preprocessor on Codeblocks or the OPENGL_ES=2 preprocessor on Microsoft Visual Studio 2015. Now otclient.exe will ask for...
  19. Apollos

    OTClient Module (a nil value)

    If there is a client_about module directory then make sure you have otmod for it set up correctly and also it is linked within modules/client/client.otmod.
  20. Apollos

    For some reason vocation id for spells doesnt work

    Looks like your issues is here: otland/forgottenserver (https://github.com/otland/forgottenserver/blob/bcb86eac0655c58b8dc9a35c652f8953a0edd033/src/spells.cpp#L512) You can try this but I'm no pro at C++ for (auto vocationNode : node.children()) { if (!(attr = vocationNode.attribute("id")))...
Back
Top