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

    TFS 1.X+ Spell Monster Damage

    I'm trying to create a creature that, when casting a custom spell, would apply area damage and then be removed. When casting the spell, the creature sends the effect, but deals no damage. local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)...
  2. C

    Lua player:addItemEx(item) best practice

    Comparing the two codes, which would be the most logical and safe? local shovel = TalkAction("!shovel") local cost = 100 function shovel.onSay(player, words, param) local item = Game.createItem(2554, 1) if not item then player:sendCancelMessage("An error occurred while...
  3. C

    TFS 1.X+ Check tile/item elevation

    Is there any way to check if an item has an elevation in TFS 1.3+?
  4. C

    RME Teleports losing destination

    I turned some items in teleport in items.XML (same file in server and RME). I set destinations in RME for these new teleports. It worked, but over time the positions disappear. Has anyone been through this and knows what causes it? RME OTA 4.1.2
  5. C

    TFS 1.X+ Bank Withdraw Gold checks

    The bank script does not have a check for free slots in the player's container. When withdrawing amounts that occupy more slots, items are thrown to the floor. Apparently there is no specific function in TFS for this, how could this check be done before handing over the gold to the player...
  6. C

    TFS 1.X+ Crash getOutfitByLookType

    TFS 1.3+ After the server save the server crashed after 2 minutes and did not return. The website was also offline until the tfs screen on Ubuntu was closed. In the last log record there were 25 players online, the same number of console errors. Console error log: [Error - mysql_real_query]...
  7. C

    TFS 1.X+ Invisible/Ghost Effect

    I would like to change the effect of the invisible/ghost mod. I tried to find the code where the effect is set in the source, but I couldn't find it. Could anyone tell me where or how the effect is determined?
  8. C

    TFS 1.X+ Teleport Function

    I'm trying to assign the teleport function to an item. I modified the XML, it now allows destination assignment in RME. I set the coordinate, but when passing by the item nothing happens. Is there any other configuration required for it to work? <item id="25403" article="a" name="ultimate...
  9. C

    Lua addEvent/stopEvent remove item

    In this creaturescript code, when a creature is killed, a green vortex is created. If the same creature dies in the position of the green vortex, it turns purple and, with the same logic, turns red. I would like each vortex created/transformed to have 30 seconds before being removed. So if the...
  10. C

    TFS 1.X+ Block monsters from being roped

    Is there any flag to include in the XML so that monsters cannot be "roped"?
  11. C

    TFS 1.X+ Level Item Restriction

    I would like to limit an amulet from being equipped only at level 200, however there is an event where the player's level is temporarily lowered to 150, and even when equipped the amulet does not give the attributes. Is there any way to get around this so that attributes continue to be validated...
  12. C

    TFS 1.X+ Construction Kit

    This script basically transforms construction kits into the respective items. Could anyone help me modify it so that it performs the functions below? -When using the construction kit it would transform into the item, but if I use the item it would return to being the construction kit. -If use...
  13. C

    TFS 1.X+ pool of lifefluid

    When a creature dies like an elf, dwarf, hunter, a pool of lifefluid is created. The correct would be pool of blood right? If so, where can I find the code that manages the creation of this pool in corpses?
  14. C

    TFS 1.X+ getLostPercent

    Would it be possible to include a check in the source so that, if the player has a storage 12345 = 1 he receives a reduction in the loss percentage, as it already happens if he has promotion and bless? double Player::getLostPercent() const { int32_t blessingCount =...
  15. C

    TFS 1.X+ Check items container onTrade

    How do I check items inside containers to see if they have an AID assigned? I would like to do this check within the onTradeRequest function and block if player tried trade a bag/parcel/backpack with some item inside with AID.
  16. C

    Lua Use ladder with fluid underneath

    In this specific case where the ladder is created in the quest, if there is any fluid below where this occurs, it is not possible to use the ladder. local ladderPosition = Position(32854, 32321, 11) function onStepIn(creature, item, position, fromPosition) local player =...
  17. C

    TFS 1.X+ Attack/Spell "outfit"

    I'm trying to make a script to tame Donkey, but the Incredibly Old Witch only changes the player's outfit, it doesn't change the outfit of other monsters. I saw that the attack/spell "outfit" is declared in the source, but I didn't find any formula about it. Does anyone know where the code for...
  18. C

    Add custom functions Gesior website

    I have created a table in my database and I would like to create functions to make it easier for the website to read and write the data in this table. I created a copy of one of those pages of functions inside the Classes folder and followed the same example, but the functions don't work. Is it...
  19. C

    OTCv8 New mount window problem

    I use a downgraded version of TFS 8.6 and when I updated OTCv8 to the version that brings the new outfit/mount selection window I noticed a problem. The problem is that, now, when the player gets the first mount he can't select/use it. This is only possible if he receives a second mount, that...
  20. C

    Monster Image RME

    How do I make the monsters image appear correctly in RME? Some get an all-white mage outfit.
Back
Top