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

    Spell [TFS 1.X]] Brutal Swing

    Edit: Fked the title again 🤡 This is a replacement for exori ico on my server. It's basically the brutal strike spell, except; you can lock on to targets when you're in range it changes the hit area if the targeted monster is diagonal to you. One-handed weapons have a smaller hit area...
  2. Leo32

    Bug Summon drop loot and xp

    No that's not it, that's for when players die. Something is editing your normal monster drops, if you haven't any loot changes via sources then IT IS one of those scripts. one of these maybe? <event type="death" name="Generator_Death" script="events/CastleWar/Generator_Death.lua" /> <event...
  3. Leo32

    Bug Summon drop loot and xp

    My best guess would be here: <event type="death" name="DropLoot" script="others/droploot.lua" /> Post this script and we should be able to solve this.
  4. Leo32

    Bug Summon drop loot and xp

    Post your creaturescripts.xml and scripts for onDeath. You are likely missing the summon check in one of them. function onDeath(monster, corpse, killer, mostdamagekiller, lasthitunjustified, mostdamageunjustified) if not monster:isMonster() or monster:getMaster() then return true...
  5. Leo32

    TFS 1.X+ Loot Channel can't be done accurately?

    Doesn't seem to be the case: https://github.com/otland/forgottenserver/blob/8628da5b90d392b3f1b7e3ac9be9ab9e5ded7c7a/src/protocolgame.cpp#L1344-L1380 OOOOO found it: https://github.com/otland/forgottenserver/pull/2158 So this works, but can be flakey depending on your client and can make it...
  6. Leo32

    TFS 1.X+ Loot Channel can't be done accurately?

    We don't really have a way of sending messages to channels without an author, or speaker representing a string. For example: local message = "Hello" player:sendChannelMessage(player, message, TALKTYPE_CHANNEL_Y, channelId) 01:00 Benji: Hello player:sendChannelMessage("", message...
  7. Leo32

    Lua Gold coin rate and gold coin to bank

    Edited. https://otland.net/threads/gold-coin-rate-and-gold-coin-to-bank.268224/#post-2590303 Try that.
  8. Leo32

    Lua Gold coin rate and gold coin to bank

    function Monster:onDropLoot(corpse) if configManager.getNumber(configKeys.RATE_LOOT) == 0 then return end local currencies = { [2148] = 1, [2152] = 100, [2160] = 10000 } local player = Player(corpse:getCorpseOwner()) local mType =...
  9. Leo32

    adding an item to the inbox

    Understand and use this: https://github.com/otland/forgottenserver/blob/master/data/actions/scripts/quests/quests.lua if you're trying to send it to the players inbox? you mean depot? depot can be done: Copy and use this script and replace: local townId = XXX local depot =...
  10. Leo32

    Lua Gold coin rate and gold coin to bank

    you'd have to post the whole monster.lua
  11. Leo32

    HELP on my oberon lever .

    change this: local function OberonIsOccupied(centerPosition, rangeX, rangeY) local spectators = Game.getSpectators(config.centerPosition, false, false, config.rangeX, config.rangeX, config.rangeY, config.rangeY) if #spectators ~= 0 then return true end return false end...
  12. Leo32

    HELP on my oberon lever .

    My changes didn't touch that. It's is just checking the room for players... local function OberonIsOccupied(centerPosition, rangeX, rangeY) local spectators = Game.getSpectators(config.centerPosition, false, false, config.rangeX, config.rangeX, config.rangeY, config.rangeY) if...
  13. Leo32

    HELP on my oberon lever .

    Maybe its not millisecond. Try this, I've updated it: https://otland.net/threads/help-on-my-oberon-lever.268300/#post-2590147
  14. Leo32

    Spell [TFS 1.X] Player Teleport

    Teleport spell players can use. Starts at teleporting you 2 squares, gain an extra sqm per 20 magic levels. This allows normal players to teleport to any square they can normally walk to (because we check for pathing). However you can also teleport straight to PZ TILES and HOUSE TILES if you're...
  15. Leo32

    HELP on my oberon lever .

    Get rid of the extra ) playerTile:setStorageValue(Storage.TheSecretLibrary.TheOrderOfTheFalcon.OberonTimer, os.time() + 5000) -- 5 seconds What? Thats what you want right? player cant pull the lever for another 20 hours. We're just testing with 5 seconds.
  16. Leo32

    HELP on my oberon lever .

    replace: if player:getStorageValue(Storage.TheSecretLibrary.TheOrderOfTheFalcon.OberonTimer) >= 1 then with: if player:getStorageValue(Storage.TheSecretLibrary.TheOrderOfTheFalcon.OberonTimer) > os.time() then replace...
  17. Leo32

    TFS 1.X+ Double loot rate for single player

    Wow its in global.lua monster.lua, container.lua, container.lua, global.lua To fix your current solution change: local randomDoubleItem = monsterLoot[math.random(#monsterLoot)] To: local randomDoubleItem = monsterLoot[i] This has flaws where you're basically just duplicating existing drops...
  18. Leo32

    HELP with paralyze rune

    Try adding COMBAT_PARAM_DISPEL to get rid of CONDITION_HASTE: paralyze rune.lua local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_HASTE) local condition = Condition(CONDITION_PARALYZE)...
Back
Top