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

    What were the blockers for you when developing a server?

    Where TF is continue in Lua? 🤪 @zbizu if you code in java at college, let me know and project will be done in a blink of an eye ;)
  2. Z

    (TFS 1.3) Need Exura Gran with non-variable heal

    In data/spells/scripts/healing/intense_healing.lua Change this function onGetFormulaValues(player, level, magicLevel) local min = (level / 5) + (magicLevel * local max = (level / 5) + (magicLevel * 5.4) + 40 return min, max end To this function onGetFormulaValues(player, level...
  3. Z

    Teleport to random locations

    Tfs 1.3. For this you need to specify rectangle or square area to where players can be teleported and must be filled with tiles local xRange = {x1, x2} local yRange ... local zRange ... function teleportToRandomPosition(player) local isWalkable = false local x = 0 local y = 0 local z = 0 repeat...
  4. Z

    (TFS 1.3) Need Exura Gran with non-variable heal

    Just take a look at link that @M0ustafa provided for you and think a while. You should come up with solution
  5. Z

    (TFS 1.3) Need Exura Gran with non-variable heal

    Predictable = constant Return the same value for min and max. Maybe this will work. Haven't tested myself
  6. Z

    C++ Need help in compiling TFS 1.3

    https://github.com/otland/forgottenserver/wiki Idiot-proof, step-by-step tutorials for many distros
  7. Z

    TFS 1.X+ Define Item

    Try for i = 1, #offers.thingId do print(offers.thingId[i]) end Not tested
  8. Z

    TFS 1.X+ Define Item

    Alright, you are trying to add boolean to parcel. So what you really try to add to parcel?
  9. Z

    TFS 1.X+ Define Item

    What isInArray return? Show also error stack trace from consol if there is one.
  10. Z

    TFS 1.X+ Define Item

    Dunno if there is Item constructor with id. Try ItemType instead. If wont work show how do you obtain item id
  11. Z

    TFS 1.X+ bad argument #2 to 'random' (interval is empty)

    @oen432 is right. At some point second random will generate number < 1 and you will get error again. Better change your code ;)
  12. Z

    TFS 1.X+ bad argument #2 to 'random' (interval is empty)

    Good to know, thank you ;)
  13. Z

    TFS 1.X+ bad argument #2 to 'random' (interval is empty)

    Try to print random arguments to the console so you can see what cause error
  14. Z

    TFS 1.X+ bad argument #2 to 'random' (interval is empty)

    which random causes error?
  15. Z

    Lua Registering GlobalEvent onTime dynamically tfs 1.3

    Yes. I just found about addEvent(callback, delay, ...) function in luascript.cpp. It should be fine if I'm gonna be able to pass arguments to callback. Will let know here EDIT @zbizu I wanted to call registerEvent(plusMinutes) from another lua function. Alright, addEvent works just fine...
  16. Z

    Lua Registering GlobalEvent onTime dynamically tfs 1.3

    Hi! I'm trying to register global event dynamically inside function. My code looks like this: function registerEvent(plusMinutes) local someEventCreatedDynamically = GlobalEvent("event_name") function someEventCreatedDynamically.onTime(interval) do some stuff on time end...
  17. Z

    [TFS 0.3/0.4 and 1.x] Vocation interval effect system - configurable in vocations.xml

    I guess you need to provide different position to this line g_game.addMagicEffect(getPosition(), vocation->getEffect());
Back
Top