• 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. 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 😥
  2. 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 -
  3. 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*...
  4. 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...
  5. 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...
  6. 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_ =...
  7. 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...
  8. 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...
  9. K

    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...
  10. 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...
  11. K

    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...
  12. Yan18

    TFS 1.X+ [TFS 1.3] Doubt in a verification inside the function combatChangeHealth from game.cpp

    Hello there I have a doubt in the following verification inside the function Game::combatChangeHealth from game.cpp: if (damage.origin != ORIGIN_NONE) { const auto& events = target->getCreatureEvents(CREATURE_EVENT_HEALTHCHANGE); if (!events.empty())...
  13. Addams

    C++ Life leech chance using decimal numbers

    TFS version: 1.4.2 How can I make chance accepts decimal numbers? I am trying to use from 0.1, 0.2, 0.02, 5, 7, 30, etc.. and up to 100 like it is. I tried to divine chance / 1.0 and then multiply it below * 1.0 but that didn't work. if (casterPlayer->getHealth() < casterPlayer->getMaxHealth())...
  14. Manigold

    TFS 1.X+ Help with protocollogin piece of code tfs 1.2

    I am trying to convert some old code from a multiworld system to tfs 1.2, but I am stuck at the last part. I tried all day but every attempt resulted in the client crashing. It is only the protocollogin.cpp part that is very different from the one I am using(mine don't have addWorldInfo...
  15. Sarah Wesker

    Feature [TFS 1.5] Talkaction on/off Old Magic Wall

    Changes: Old Magic Wall Talkaction Go to your config.lua and set the clientId of the wall you want to change: magicWallId = 2129 -- magic wall Add the clientId of the old magic wall: oldMagicWallId = XXXX You can change the storage value where the ON / OFF state of the command will be saved...
  16. Obito

    Custom Memory Allocation in C++

    Is it possible to implement a custom memory allocator in C++ that performs better than the default allocator provided by the standard library, in terms of both speed and memory efficiency, and if so, how might this be done?
  17. Error 502

    C++ change your stats percent // Points

    1.5 Nekiro downgrade. I don't have much experience in C++. I come to ask how to do an IF function without dying trying xd I want to know if the way of coding in c++ is correct, especially the storage Context: how to change the way to display HP and mana according to storage , changing them...
  18. K

    Add more attributes in doItemSetAttribute

    *I'm using tfs 0.X (0.4 or 0.6) *Client 8.60 I would like to know how I can add more attributes to doItemSetAttribute, for example: doItemSetAttribute(item, "maxhealth", 300) doItemSetAttribute(item, "maxmana", 700) doItemSetAttribute(item, "speed", 300) doItemSetAttribute(item...
  19. D

    TFS 1.3 8.6 MOUNT SYSTEM

    Hello, I'm looking to use the tfs 1.3 downgrade 8.6 mount system I already have a sprite added for testing, but when I use outfit.lookMount = ID it doesn't work. Can anyone shed some light on how to resolve this?
  20. F

    Downgrading TFS 1.2

    Hello, I'm downgrading tfs version 1.2(10x) to 854, I have no errors in my client's terminal and no errors in my server's terminal, the client is just "Connecting to the game server...", I changed the settings .cpp, protocollogin.cpp and items.cpp, I'm out of errors and out of ideas to follow...
Back
Top