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

    Weird error on RME

    Go to Edit -> Border Options -> Border Automagic and try again.
  2. Heroid

    Lua Lever Teleport

    data/scripts local config = { leverId = {1945, 1946}, -- {defaultId, pulledId} actionId = 1234, -- ActionID on lever leverPos = Position(959, 1082, 7), resetTime = 2, -- Seconds tilePos = Position(Position(959, 1081, 7)), -- Position player has to stand on to pull the lever...
  3. Heroid

    Lua talkaction task points

    Remember to specify TFS version! This is for TFS 1.4+ data/scripts local config = { words = "!test", storage = 5151, itemId = 19654, } local talk = TalkAction(config.words) function talk.onSay(player, words, param) local storage = player:getStorageValue(config.storage)...
  4. Heroid

    Lua Help with a spell

    Weird, variant:getNumber() did not work in RevScripts and variant:getString() did not work here. Try this: local config = { range = 5, -- Max range from player you want to heal duration = 10, -- How long the heal should last (seconds) delay = 1, -- Delay between each heal (seconds) }...
  5. Heroid

    Lua Help with a spell

    Did you add these lines to the spell in spells.xml? playernameparam="1" params="1"
  6. Heroid

    TFS 1.X+ Problem with changing items

    Not sure what script that first picture is representing, but you can add this line to the item in items.xml: <attribute key="slotType" value="ammo" />
  7. Heroid

    Lua Help with a spell

    local config = { range = 5, -- Max range from player you want to heal duration = 10, -- How long the heal should last (seconds) delay = 1, -- Delay between each heal (seconds) } local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)...
  8. Heroid

    Lua Help with a spell

    RevScript, goes into data/scripts. Usage: healFriend "playerName local config = { range = 5, -- Max range from player you want to heal duration = 10, -- How long the heal should last (seconds) delay = 1, -- Delay between each heal (seconds) } local combat = Combat()...
  9. Heroid

    Lua Change Attack Wand/ice-fire

    combat is returning false from the function find_combat(id), and in this case you are setting the creatureStorage to 5 but never calling or redefining combat which leaves it to false when it's getting called in doCombat function onUseWeapon(cid, var) local combat =...
  10. Heroid

    TFS 1.4.2 CLICK ON STATUE OR CHEST GIVE OUTFIT/MOUNT

    And are you sure your account is premium?
  11. Heroid

    TFS 1.4.2 CLICK ON STATUE OR CHEST GIVE OUTFIT/MOUNT

    Maybe the outfit is either only for premium or not enabled in outfits.xml And I'm pretty sure player:addOutfit() only takes one argument (lookType), so you can change: player:addOutfit(outfitScript.outfitMale, 3) player:addOutfit(outfitScript.outfitFemale, 3) To...
  12. Heroid

    TFS 1.X+ The use of the Spell consumes more mana according to the player's level.

    local config = { manaLevel = 200, -- Additional mana will be consumed every 10 levels after this level manaIncrease = 100, -- How much more mana the spell requires for every 10 levels defaultMana = 800, -- How much mana the spell normally needs (in spells.xml) } local combat =...
  13. Heroid

    TFS 1.X+ // LUA: Spell with a countdown (addevent issue)

    I guess this is the result you're trying to achieve? RevScript, goes into "data/scripts" folder. local config = { damageType = COMBAT_PHYSICALDAMAGE, magicEffect = {87, 10}, damage = {min = 300, max = 360}, } local function delayedDamage(pid, position) local player =...
  14. Heroid

    Lua Click item get promoted problem

    Thanks alot, working just as I want now! :]
  15. Heroid

    Lua Click item get promoted problem

    @Static_ :rolleyes:
  16. Heroid

    Lua Click item get promoted problem

    Everything works good except that I turn invisible when I use the item. :d
  17. Heroid

    Lua Magic Shield Toggle

    Works just as I want, thanks! But as @BahamutxD said, -1 doesn't work as infinite for me either and keeps returning the damage to health instead of mana. Changing it to a high number made it work though.
  18. Heroid

    Lua Magic Shield Toggle

    I need some help making a spell that will toggle Magic Shield on/off. This is what I've got so far but it's really messy and I don't really know what I'm doing no more because I've been trying to get it to work by doing all kind of different things. TFS 1.2 local combat = Combat()...
  19. Heroid

    Lua Click item get promoted problem

    12: attempt to index local 'vocOutfit' edit: and btw I don't know what 'clientid' means in vocations.xml if that can have something to do with it.
  20. Heroid

    Lua Click item get promoted problem

    function onUse(player, item, fromPosition, target, toPosition, isHotkey) local outfits = { [1] = {male = 145, female = 149}, -- [2] = {male = 725, female = 724}, -- [3] = {male = 129, female = 137}, -- [4] = {male = 131, female = 139}, -- } local voc =...
Back
Top