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

    TFS 1.X+ Block monsters from being roped

    Is there any flag to include in the XML so that monsters cannot be "roped"?
  2. 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...
  3. 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...
  4. 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?
  5. 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 =...
  6. 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.
  7. 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 =...
  8. 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...
  9. 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...
  10. 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...
  11. C

    Monster Image RME

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

    TFS 1.X+ Cannot rope invisible

    I can't rope players and monsters that are with invisible condition.
  13. C

    C++ How to Print in Console

    I would like to click on the corpse and then return who owns it, because I have a bug on reward system and I want to know who are stealing the kill. uint32_t corpseOwner = container->getCorpseOwner(); if (container->isRewardCorpse()) { //only players who participated...
  14. C

    Lua Attempt to index a number value

    I don't know exactly where the problem is with this spectator check to clean the room, does anyone have an opinion? -------------THIS SCRIPT WAS MADED BY VANKK AT 15TH DECEMBER 2016 AT 4 P.M (GMT - 3) ------------- local config = { [22606] = { targetId = 22636, -- Target ID...
  15. C

    TFS 1.X+ Block ITEMID to be moved out of house

    How could I block a specific item from being placed outside a house tile? I have eventcallback on my TFS 1.X downgrade 8.6.
  16. C

    Lua Include extra text in an item description

    The default script overwrites the item description with the buyer's name. How do I keep the original description and include the buyer's name with it? For example: function addItem(player, transactionId, itemId, itemCount, offerId) local _itemId = tonumber(itemId) local _itemCount =...
  17. C

    Count only 4 player otservlist status.cpp

    I'm trying to configure the source to respect the otservlist rules. Using this code from this post, and with 7 player online on the same IP for example it registers 5 as online in otservelist. What can be wrong? I change status.cpp this: sprintf(buffer, "%d", g_game.getPlayersOnline())...
  18. C

    TFS 1.X+ Weapon and Defense system

    I noticed that using a one handed weapon + shield it ignores the weapon's defense, is this normal? If weapon have extradef this count, but normal def not.
  19. C

    Cannot buy 'egg' from NPC

    The item appears correctly in the trade window, looking like the ID is correct too, but when trying to buy nothing happens, no error message. items.xml <item id="2695" article="an" name="egg" plural="eggs"> <attribute key="weight" value="30" /> </item> npc.xml <?xml...
  20. C

    Talkaction with check words

    Is there any way to check words inside talkaction with param? I would like something like if msgcontains return false, but talkactions doesn't accept "msg" or "message" as a function or something. I would like to block for example /b idiot , /b stupid local broadcast = TalkAction("/b")...
Back
Top