• 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

    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."...
  2. 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?
  3. Apollos

    How to edit serversave.lua script

    Change function onTime(interval) to function onThink(interval)
  4. 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...
  5. Apollos

    How to edit serversave.lua script

    Looks like it should work fine. Best way to know for sure is to test it.
  6. 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...
  7. 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...
  8. 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.
  9. 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...
  10. 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.
  11. 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")))...
  12. Apollos

    TFS 1.X+ Crash server - bt GDB

    Is your Player:onLook editted? If so post that here, the issue is likely in there, it looks like you're cloning something during a look event and that's causing it.
  13. Apollos

    Passing tile only possible wearing specific item id TFS 1.2

    local required_armor = 2463 function onStepIn(creature, item, toPosition, fromPosition) local player = creature:getPlayer() if not player then return true end local armor = player:getSlotItem(CONST_SLOT_ARMOR) if not armor or armor.itemid ~= required_armor then...
  14. Apollos

    how do i do Tfs 1.2 Anni Style quests?

    You will add same action id to all chests and register that aid in actions.xml: <action actionid="2000" script="quests/annihilator_chest.lua.lua" /> Then each chest will have a different unique id which needs to be added in the rewards array: local rewards = { [1] = {chest_uid = 2001...
  15. Apollos

    How to add multiple monsters in this code

    My mistake, forgot to add it: local config = { {mobs = {"Golgordan", "Latrivan"}, pos = Position(1000, 1000, 7), destination = Position(1000, 1000, 7), duration = 10}, {mobs = {"Orshabaal"}, pos = Position(1000, 1000, 7), destination = Position(1000, 1000, 7), duration = 10}, }
  16. Apollos

    How to add multiple monsters in this code

    Your explanations never cease to confuse me. lol Try this one, it checks if any of the creatures exist in the name array, and if they do it wont create teleport. So if you have another boss of the same name in another positions on map it wont work. If you need to keep two of the same bosses on...
  17. Apollos

    how do i do Tfs 1.2 Anni Style quests?

    You should be using all different unique id's and the same action id. You can use the annihilator_chest.lua I have in this thread, and you can add more tables inside the rewards table to work for your system: Action - [TFS 1.3] Advanced Annihilator System...
  18. Apollos

    Automatically open the trade chat

    Post your questions in support or request board. This resources board is for releases not questions.
  19. Apollos

    How to add multiple monsters in this code

    Probably better to do this script as an onDeath instead of onKill, since it'll call the function less often. creaturescripts.xml <event type="death" name="ScriptName" script="scriptName.lua" /> In each monsters xml file that is used: <script> <event name="ScriptName" />...
  20. Apollos

    request Lua script TFS[1.2]

    Try this instead, hopefully no errors local toItem = toPosition.y <= 10 and self:getSlotItem(toPosition.y) or isInArray({64, 65, 66}, toPosition.y) and toCylinder:getItem(toPosition.z) or toCylinder if toItem and isContainer(toItem.uid) and containers[toItem.itemid] then if not...
Back
Top