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

    Scripter [TFS 1.x ONLY] Scripting Service

    I only work with TFS 1.x because it speeds up the process, however the biggest reason is that I do not have 0.4 test environment :rolleyes:. I would do 0.4 scripting service only if the task is worth the time.
  2. Westwol

    Scripter [TFS 1.x ONLY] Scripting Service

    Available for work.
  3. Westwol

    [TFS 1.3] Script Optimization - Mount taming

    The script should work as intended. It could be written other way but when it comes to performance I don't think it would make any difference. Edit: I would use hasMount check instead of storage. Something like this: local config = { ["Wailing Widow"] = {mount_id = 1, tamingItemId =...
  4. Westwol

    TFS 1.X+ spell crashing server? why? 0.4 -> 1.2

    Edited my post.
  5. Westwol

    Lua First Items not stable

    You should start by debugging each part of the script, new characters most likely have promoted vocations and that's why the script exits return true. Post what you get on console. local SORCERER = 1 local DRUID = 2 local PALADIN = 3 local KNIGHT = 4 local items = { [SORCERER] = {...
  6. Westwol

    TFS 1.X+ spell crashing server? why? 0.4 -> 1.2

    Your server is crashing because your passing userdata directly without verifying its integrity. This might solve your issue, not tested. local combat1 = Combat() combat1:setParameter(COMBAT_PARAM_TYPE, COMBAT_NONE) combat1:setParameter(COMBAT_PARAM_EFFECT, 167)...
  7. Westwol

    rewriting

    https://github.com/otland/forgottenserver/pull/2058
  8. Westwol

    Scripter [TFS 1.x ONLY] Scripting Service

    Bump. Available for work.
  9. Westwol

    rewriting

    Not tested. local function regenerateMana(monsterId, percents) local creature = Creature(monsterId) local master = creature:getMaster() if creature and master then master:addMana(master:getMaxMana() / 10) addEvent(regenerateMana, 7000, monsterId, 10) end end...
  10. Westwol

    TFS 1.X+ onHealthChange tfs 1.2

    Edited my post.
  11. Westwol

    TFS 1.X+ onHealthChange tfs 1.2

    function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType) if primaryType ~= COMBAT_HEALING or secondaryType ~= COMBAT_HEALING then local player = creature:getPlayer() if player and creature ~= attacker then if...
  12. Westwol

    Convert from 1.2 to 0.4

    Not tested. local rewardRoom = {x = 1031, y = 1373, z = 13} function onDeath(cid, corpse, killer) doTeleportThing(killer, rewardRoom) doSendMagicEffect(rewardRoom, CONST_ME_TELEPORT) unregisterCreatureEvent(killer, "bossroom death") bossRoom.player = nil bossRoom.boss = nil...
  13. Westwol

    Scripter [TFS 1.x ONLY] Scripting Service

    Sure, add me on Discord.
  14. Westwol

    Open 8.6 with currently tfs sources "payment by paypal"

    Everyone will say OTX is full of bugs, however, it is a great approach to get started as it is based on TFS 1.2. https://github.com/mattyx14/otxserver/tree/otxserv3/path_8_6
  15. Westwol

    Item that deals 5% more

    This should work, if you want the bonus damage to be applied in monsters you will have to register an event aswell. local specialRings = {2123, 2124} function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if creature and attacker then...
  16. Westwol

    Item that deals 5% more

    Did you configure the ID of the ring? Maybe the event is not registered correctly. local specialRings = {2123, 2124} function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) print("This script is being executed") if not attacker then...
  17. Westwol

    Item that deals 5% more

    Any console error?
  18. Westwol

    Item that deals 5% more

    The script goes in creaturescripts folder. creaturescripts.xml <event type="healthchange" name="ringDamage" script="damage_ring.lua" /> login.lua player:registerEvent("ringDamage")
  19. Westwol

    Item that deals 5% more

    Edited my post
  20. Westwol

    Item that deals 5% more

    Not tested. local specialRings = {2123, 2124} function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if not attacker then return true end local ring = attacker:getSlotItem(CONST_SLOT_RING) if creature then if primaryType ==...
Back
Top