• 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+ Cannot rope invisible

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

    C++ How to Print in Console

    Print this:
  3. C

    C++ How to Print in Console

    Dont crash now, but don't print. Maybe I put this on a wrong way? uint32_t corpseOwner = container->getCorpseOwner(); if (corpseOwner != 0) { Creature* ownerName = g_game.getCreatureByID(corpseOwner); if (ownerName) { std::cout...
  4. C

    C++ How to Print in Console

    TFS crash when login. This print a big number in console, but unfortunately that didn't help me to find the owner of the loot, since all corpses, even the ones that say I don't own it, print the same number. Thank you guys anyway
  5. 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...
  6. 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...
  7. C

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

    Working! Thank you!
  8. C

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

    That way it allowed it to move in and prevented it from moving out, but when trying to drag it out it gives this error in the distro.
  9. C

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

    Yes, I just need a check for a specific ITEMID, so it can only be moved inside the house, not outside it.
  10. C

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

    It's a wardrobe, not pickuable, but moveable.
  11. 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.
  12. C

    Lua Include extra text in an item description

    That worked! Thanks!
  13. C

    Lua Include extra text in an item description

    Apparently the code is not finding the original description to insert into the currentdesc variable. If I use deliver.item:setAttribute('description', 'Hi' .. currentDesc) the description appears only as: Hi but if use deliver.item:setAttribute('description', 'Hi' .. boughtBy) appears as: Hi...
  14. C

    Lua Include extra text in an item description

    There was no error now, but he just put "Bought by" in the item description.
  15. C

    Lua Include extra text in an item description

    Thanks for answering. There was an error on one line: /data/scripts/globalevents/shop.lua:150: unexpected symbol near ':' Line 150: local boughtBy = '(Bought by %s)':format(playerName);
  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

    status.cpp #include "otpch.h" #include <libxml/xmlmemory.h> #include <libxml/parser.h> #include "status.h" #include "const.h" #include "tools.h" #include "connection.h" #include "networkmessage.h" #include "outputmessage.h" #include "configmanager.h" #include "game.h" #include "resources.h"...
  18. C

    Count only 4 player otservlist status.cpp

    I always compile using make clean, but thanks for the suggestions.
  19. C

    Count only 4 player otservlist status.cpp

    I try that, but still count 5 with 7 online.
  20. 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())...
Back
Top