• 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. Sarah Wesker

    Lua Check if specified monster is in specified position

    the onThink event in creatures is executed approximately 1 time per second, and if this interval is defined in the sources. if the monster is inactive, this event will not be executed.
  2. Sarah Wesker

    i am trying to put the creaturescript or revscript TFS 1.5 8.0

    If you only want to affect players yes, login is fine.
  3. Sarah Wesker

    i am trying to put the creaturescript or revscript TFS 1.5 8.0

    data/scripts/file.lua local items = { [itemId] = 200, -- 200% more damage } local function onDamage(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if not attacker or not attacker:isPlayer() then return primaryDamage, primaryType...
  4. Sarah Wesker

    RME Map editor, how to make item unmovable? TFS 1.4.2

    you can try: data/scripts/file.lua local BLOCK_ITEM_WITH_ACTION = 8000 local action = Action() function action.onUse(player, item, fromPos, target, toPos, isHotkey) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You can't use this item.") return true end...
  5. Sarah Wesker

    [TFS 1.2] Client debug reason

    those bytes are related to the stack of a creature and the description of the map probably if there are many corpses or items stacked up and a creature walks over it, it will get a stackpos greater than 9 and if this is sent to the client it will crash This can include creatures on another...
  6. Sarah Wesker

    C++ +9 players in some stack debug

    I already solved the GM problem, I had simply eliminated something that I shouldn't have, I already added the IF that I had before.
  7. Sarah Wesker

    C++ Can I print human readable userdata?

    You must provide a metamethod __tostring and __concat for this to happen. here a example with Position in TFS https://github.com/otland/forgottenserver/pull/4334/files
  8. Sarah Wesker

    How to extract spell icons and spell groups icons from new client?

    For now, it is sufficient to simply post that the solution has worked for you and someone from the team will mark it for you. This feature was removed for regular users because some were abusing it to farm solution points, which is inappropriate behavior. I suppose that when we have a better...
  9. Sarah Wesker

    C++ +9 players in some stack debug

    Here are the commits, but only look for what is related to the stackpos keyword fix stacking bug stack fix fix stack Basically they are just if to prevent sending wrong stackpos to the client, that's all, in fact I copied it from the FireElement777 engine
  10. Sarah Wesker

    C++ +9 players in some stack debug

    The limit is up to the tibia client, however, it doesn't have to crash, it just won't render the player or creature in the battle list. In my TFS Nekiro Downgrades 1.5 860 repository, I have made some changes so that the client does not crash. If you have time, you can review it and copy it.
  11. Sarah Wesker

    Lua Check if specified monster is in specified position

    Please remember to mention which version you are using, otherwise you may not get an accurate answer. No one is a mind-reader 🔮
  12. Sarah Wesker

    RevScripts Points system by killing monster

    local storage = 100 local monsterList = { ["demon"] = 1, ["dragon"] = 1, ["dragon lord"] = 1 } local anyMonsterPoints = 1 -- -1 to disable local killPoints = CreatureEvent("KillPoints") function killPoints.onKill(player, target) if not target:isMonster() then return...
  13. Sarah Wesker

    How to install forgottenserver.exe

    You can use TFS Nekiro Downgrades 860, it has been a while since it was last updated but it still works. You can also try 🍒 TFS Nekiro Downgrades 🍒 modified and updated by me. In any case, you must compile it. If you are using Windows 10/11, you may be able to try some compiled files of TFS...
  14. Sarah Wesker

    Lua Dodge system for TFS 1.3

    You just need to create a .lua file in the data/scripts/ folder and place the code in that file. That's it, the rest is just configuring it.
  15. Sarah Wesker

    TFS 1.X+ Help with onDeath creaturescript function crashing the server

    function onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified) local chance = math.random(1, 100) if chance <= 20 then local timer = math.random(2000, 4000) local pos = creature:getPosition() addEvent(function(pos)...
  16. Sarah Wesker

    Lua 'hasEventCallback'

    That means you don't have the EventCallback system installed in your datapack, which is strange... because TFS 1.4.2 already comes with this system included by default. What you can do is add it to your datapack: data/scripts/lib/event_callbacks.lua
  17. Sarah Wesker

    TFS 1.X+ How to show animated text when removing an object from a corpse

    That goes inside the onMoveItem event. Here's an example: function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder) -- onMoveItem Event if fromCylinder and fromCylinder:isItem() then if fromCylinder:getId() == 3065 then if toCylinder...
  18. Sarah Wesker

    TFS 1.X+ How to show animated text when removing an object from a corpse

    Maybe something like this could work for you? data/events/scripts/player.lua -- onMoveItem Event if fromCylinder and fromCylinder:isItem() then if fromCylinder:getId() == 3065 then if toCylinder ~= fromCylinder then player:say(string.format("x%d %s", count...
  19. Sarah Wesker

    TFS 1.X+ How to show animated text when removing an object from a corpse

    I thought you were adding an actionId to the Tile, for Tiles you need the label I mentioned before. For an item, you just need to specify the itemId and the script, and that's it. data/movements/movements.xml <movevent event="RemoveItem" itemid="3065" script="test.lua" />...
  20. Sarah Wesker

    TFS 1.X+ How to show animated text when removing an object from a corpse

    missing tileitem tag in xml: <movevent event="RemoveItem" uniqueid="0" actionid="0" itemid="0" tileitem="1" script="your_script.lua" /> Your script
Back
Top