• 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

    [TFS 1.X] Rarity Rolls & Custom Attributes Library

    Here are the 10.94+ files for the latest version of TFS. It uses the native Crit and Leech system. Here is a branch you can simply merge: https://github.com/Leo32onGIT/forgottenserver/tree/rarity-custom-attributes Comparison can be found here. Alternatively, follow the instructions below if...
  2. Leo32

    Feature [TFS 1.2] Monster:onSpawn(position, startup, artificial)

    If your pulls are up-to-date. Don't do this: Do this instead: replace: if (methodName == "onDropLoot") { info.monsterOnDropLoot = event; } else { with: if (methodName == "onDropLoot") { info.monsterOnDropLoot = event; } else if (methodName == "onSpawn") { // put it here instead...
  3. Leo32

    [TFS 1.X] Rarity Rolls & Custom Attributes Library

    < 10.94 The first post is for versions earlier than 10.94, before crit and mana/life leech was added to the game. Someone should try it on an 8.6 server ;) 10.94+ If you are using the latest TFS release, refer to the post here. What is this? A newer version of this...
  4. Leo32

    Spell [TFS 1.X] Shove

    lib/core/position.lua function Position:getNextPosition(direction, steps) local offset = Position.directionOffset[direction] if offset then steps = steps or 1 self.x = self.x + offset.x * steps self.y = self.y + offset.y * steps end return self end
  5. Leo32

    Spell [TFS 1.X] Shove

    Does your lib/core/position.lua have this? https://github.com/otland/forgottenserver/blob/1697826d74c914b7a7d9aee574a9c74aaa23ebc6/data/lib/core/position.lua#L12-L19
  6. Leo32

    Tibia Hack and Slash Project

    This is the future.
  7. Leo32

    monsters drop empty bags

    This tells me that you just add child nodes: https://otland.net/threads/tfs-1-0-loot-inside-bag.221626/#post-2128118 So put monster.lua and container.lua back to stock. And try this in your monster xml file, as an item: <item id="1987" chance="10000"> <item id="7588" chance="10000" /><!--...
  8. Leo32

    monsters drop empty bags

    Capital letter I stuffed it: Change: if ItemType(monsterLoot[i].ItemId):isContainer() then to: if ItemType(monsterLoot[i].itemId):isContainer() then on line 12
  9. Leo32

    monsters drop empty bags

    I don't think the stock TFS code cares for bags properly, as bags were removed from loot entirely way before this was added. Leave this with me for a bit. Alternatively, the stock code does try to look for childloot: So maybe try using the oldschool inside flags and see if that works with the...
  10. Leo32

    Lua Task system - tfs 1.3

    Do you get console errors if you use this npc script instead?
  11. Leo32

    Spell [TFS 1.X] Shove

    You've made changes because line 135 can't throw that error in the original script. Post your shove.lua here and I'll fix it for you.
  12. Leo32

    monsters drop empty bags

    Post your container.lua It should already only be dropping bags if there are items in them because of this.
  13. Leo32

    TFS 1.X+ Stun Spell

    https://otland.net/threads/tfs-1-x-shield-bash.268433/#post-2591129 Players and creatures will not stop moving without source edits. Mays well just add the STUN condition from the post above.
  14. Leo32

    TFS 1.X+ First items

    Delete the rows for that sample character in player_items. DELETE FROM `player_items` WHERE `player_id`=X Replace X with the sample characters ID. https://www.google.com/search?q=how+to+run+sql+query+in+mysql
  15. Leo32

    Hole id 7932 not working

    local holes = {468, 481, 483, 7932} function onUse(player, item, fromPosition, target, toPosition, isHotkey) if target then if table.contains(holes, target.itemid) then target:transform(target.itemid + 1) target:decay() elseif target.itemid == 231 then...
  16. Leo32

    Rare, Epic and Legendary Loot Rolls

    Made some more changes to these items. Mainly to try and make use of all rare/obscure items and make specific monsters valuable to hunt. Extra drops similar to world drops in mmos like WoW, except the loot isn't global - it's tailored to the theme of the monster. local jewel = 0 local...
  17. Leo32

    Team Nutopia Contributors

    Added you on discord. Aussie here too. Can help you out with anything on the scripting side. I've cut some of your spawns from your V2 and V3 map releases - may as well pay my dues 😂
  18. Leo32

    CIP Files Spawns (monster.db) - Location, radius, etc.

    I'd use radius data, spawn on random square in spawn radius.
  19. Leo32

    TFS 1.X+ [TFS 1.3] onHealthChange problems

    Health potions are classed as ORIGIN_SPELL so they will crit. Change line 8: if attacker:isPlayer() then to: if attacker:isPlayer() and primaryType ~= 128 then EDIT: Maybe not then. attacker must == nil when using potions.
  20. Leo32

    TFS 1.X+ [TFS 1.3] onHealthChange problems

    function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if attacker then if attacker:isPlayer() then if origin == ORIGIN_MELEE or origin == ORIGIN_RANGED or origin == ORIGIN_SPELL then if...
Back
Top