• 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!

c++

  1. potinho

    C++ [OTX 2] Game::playerRequestOutfit running slow

    I dont know why its happening, there's something can i do to improve this? Appearly exhaust its not being applied correctly. bool Game::playerRequestOutfit(uint32_t playerId) { Player* player = getPlayerByID(playerId); if(!player || player->isRemoved()) return false...
  2. S

    C++ "invalid key to 'next'" when trying to read a list inside a LUA STATE in C++

    I'm trying to add elements to the NPC Trade, so when the "luaOpenShopWindow" method is triggered I'm sending a list of IDs and Quantities, something like this: {"id":2160,"buy":5000,"sell":0,"requiredItems":[{"count":10,"id":2152}],"subType":1,"name":"crystal coin"}...
  3. S

    C++ Error SpectatorVec Undefined when compile in Debug Mode

    I am getting this error when trying to compile in Debug mode: "Erro C2079 'std::pair<const Position,SpectatorVec>::second' usa class 'SpectatorVec' indefinido theforgottenserver" Can anyone help me? I don't understand why it works in Release mode but not in Debug, unfortunately I...
  4. Z

    looking for a scripter or programmer to convert a sharp map tracker version 7.6.

    hello, I am looking for a programmer to create a Sharp map tracker for version 7.6. Compensation will be provided upon completion of the work, of course. With the price to be discussed privately. Contact me here or on discord: Discord: zfartem373
  5. M

    C++ Summon Position

    Gostaria de saber onde preciso alterar para definir a posição que os summons fica em relação ao jogador, eu já efetuei as alterações para eles ficarem do lado do jogador, porém gostaria que eles ficassem seguindo um de cada lado o jogador, como na imagem, porém eles ficam só atrás do jogador...
  6. potinho

    C++ [TFS 0.X] Adjust loot message to party members

    I have a loot message in my server. The problem here is loot message isn't sent in party members screen, just in loot channel. I tried to adjust C++ but i cant understand the logic to keep sending message to screen and loot channel for party members, I want to send loot message on party members...
  7. fschuindt

    Best distro for 7.7 with custom map?

    Hello there, I'm wondering what would be the best fit as a C++ OTserv distro for a 7.7 custom map server? It should have a good map editor available and be easy to write NPCs, actions, etc. And, of course, as stable as possible. Any recommendations before I start digging? Thank you!
  8. G

    C++ Playing/analyzing cams recorded by server to spot botters

    Hello, I am trying to implement @Gesior.pl 's solution (GitHub - gesior/tmp-cams-system (https://github.com/gesior/tmp-cams-system)) for recording player actions server side for developing anti-bot system. I managed to make the code record .cam files and I tried using OTClient (GitHub -...
  9. charlyhustle

    C++ [TFS 1.3] Charges are not removed from custom weapon type

    Hi guys! As the title suggests I created a new weapon type called gloves. I'm using gloves to train my attack speed skill. I created a glove weapon and put in in weapons.xml (I'm using sniper gloves' id): <!-- Attack Speed --> <melee id="5875" action="removecharge" /> items.xml looks like...
  10. felpscouto

    Outfit outline

    Hello, I'm starting to learn otclient, so can you teach me how I can write an outfit outline for all outfits? I am really newbie with these codes and I need help 😥
  11. D

    OTClient Floating text within a clickable box with random position

    I would like to create a code for a message that floats in a box, and every time I click on that message, it moves to a random (or not) location within that box. Very similar to a mechanic in RavenDawn Like the gif -
  12. Sanzenkai

    Target by sprite (OTCv8)

    Hello, i'm triying to use target with sprites instead of the client itself make the square but every code i find its for OTC 0.6.6, and i'm using the last version released.. If someone is able to help me, thanks. Mine: void Creature::draw(const Point& dest, bool animate, LightView*...
  13. L

    C++ Calling variable(c++) from LUA

    I use OTCv8 for my small project. I have a module for otclientv8 written in C++. The module generates numbers every second into a variable. I would like to have access to this variable from lua to use this variable in a lua script. I'm wondering and slowly eating my mustache on this code(my...
  14. Sanzenkai

    TFS 0.X PVP Zone Bug

    Hello, it seems that my source has the same bug as this guys source, can somebody help me? his post have the correct answer i guess but its not the same version, mine is source TFS 0.4 (8.60) My PvP Zone on the arena of my server keep making people get PZ Locked, i would like to fix that...
  15. potinho

    TFS 0.X Unexpected Crash

    Hello guys, everything good? My server has had no crash problems for over a year, but today I had one and I am not able to interpret the generated GDB. Could you help me to fix it? #6 ServiceManager::run (this=0x7fff81299fd0) at server.cpp:249 it = {px = 0x5599ac4a6310, pn = {pi_ =...
  16. potinho

    TFS 0.X [C++] Player does not get PZ after attacking PK

    Good morning everyone, today I realized that my server is behaving (I don't know if expected) but unwanted, let's think about the following scenario: Player 1 Attacks Player 2 (and takes White Skull) Player 2 attacks player 1 back and manages to enter a Protection Zone (shouldn't/would't) After...
  17. Zerox009

    [C++] Item.xml skills negative

    Hello, I'm working on a project, which is that depending on your weapons you can have a certain ability in the game, but I noticed that when a condition such as the attribute of an item becomes negative, it becomes positive, causing it to automatically turn positive Example: <item...
  18. kaincer

    C++ [c++][1.5] Function only applicable to OTC

    How can I make an if function so that it can only be seen in OTC(if I don't have player or creature as argument)? networkmessage.cpp in this example void NetworkMessage::addItem(const Item* item) I don't have the creature or player argument my goal is that void NetworkMessage::addItem(const...
  19. C

    Help with attribute of IncreaseMagicPercent

    Hey guys, good night, good morning or good afternoon! I'm Brazilian and I'm using google translator. So guys, I would like some help from you. I'm using nekiro's tfs 1.5, downgrade 8.0 to use as base for my 7.92 server. In this version, there is an attribute on the item called...
  20. kaincer

    C++ [src] Angles of the block missiles

    Hello, good afternoon. Nekiro 1.5 downgrade 8.0 I think I have a problem in c++ with respect to the angles of the block missiles I rule out that it is the .dat because the "block Missiles" is selected. How can I make the angles of attack more restricted? At some angles it should return...
Back
Top