• 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!

Recent content by Heroid

  1. Heroid

    Quickloot TFS 0.4 REV 8996

    You are modifying the items inside the container with doRemoveItem while iterating through it which might cause it to skip items or behave unpredictably. Try to first loop it without removing the item and remove them later to see if that fixes the problem.
  2. Heroid

    TFS 1.4.2 - Coding advanced spell with for loop but spell doesn't run?

    Change: local spell = Spell("instant") function spell.onCastSpell(creature, variant) for i = 2, #areas do addEvent(castSpell, 250 * i, creature:getId(), variant, i) end return combats[1]:execute(creature, variant) end To: function onCastSpell(creature, variant) for i =...
  3. Heroid

    OTClient Letter Cores (OTCV8)

    modules/game_skills/skills.otui under SkillNameLabel & SkillValueLabel set color: black
  4. Heroid

    "Mini boss" Revscript

    There are definitely more ways you can register events to monsters. But you can put the EventCallback part here instead: https://github.com/otland/forgottenserver/blob/1.2/data/events/scripts/creature.lua#L9 But change creature:isPlayer() to self:isPlayer() and remember to change enabled to 1...
  5. Heroid

    RevScripts [TFS 1.3] 12.7 Rain of Arrows

    Try changing line 34 doAreaCombat to doAreaCombatHealth and see if it works.
  6. Heroid

    RevScripts [TFS 1.3] 12.7 Rain of Arrows

    Let me know if 1.3 doesn't have RevScript data/scripts local config = { lvlReq = 1, cooldown = 2000, combatType = COMBAT_PHYSICALDAMAGE, magicEffect = CONST_ME_HITAREA, distEffect = CONST_ANI_ARROW, dmg = {min = 100, max = 200}, rounds = 10, -- Amount of rounds...
  7. Heroid

    Lua [TFS 1.4.2] spell/rune problem.

    Change player:getVocation() to player:getVocation:getId()
  8. Heroid

    Action [Item] Quiver

    This post is from 2009 btw. 😝
  9. Heroid

    Lua Problem with rewards

    Since you’re using onKill this will trigger several times depending on how many players are attacking the monster, try to use onDeath instead and register the event to the monster. Or you could just remove the damageMap loop and use creature instead I guess since the creature argument already is...
  10. Heroid

    Lua Spell damage formula

    I think it would return 0 actually, but still always a good idea, if attack > 0 then perhaps.
  11. Heroid

    [HELP] It can only be wielded properly

    You might be able to equip it but not attack with it? I don’t remember exactly how it works honestly
  12. Heroid

    Lua Spell damage formula

    You can use something like this to get the attack of a weapon: local weapon = player:getSlotItem(CONST_SLOT_LEFT) if weapon then local attack = weapon:getAttack() end
  13. Heroid

    Help Use X Item in Monster

    data/scripts local config = { runeName = "Teleport Rune", runeId = 2275, level = 100, -- Level to use the rune magicLevel = 5, -- Magic level to use the rune cooldown = 1, -- Cooldown before you can use the rune again (seconds) magicEffect = CONST_ME_MAGIC_BLUE, --...
  14. Heroid

    [HELP] Create New Item

    Try running ItemEditor as administrator.
  15. Heroid

    Lua TFS1.5 Thais Lighthouse Quest Support

    See if this will fix it, otherwise you should add some print statements to identify where the issue occurs. function onUse(player, item, fromPosition, target, toPosition, isHotkey) --first lever to open the ladder if item.actionid == 50023 then local laddertile =...
Back
Top