• 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. El Man

    formula bug

    Formula bugs! when add this damage in wand setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -9000, 0, -11500) and start server for test wand attack ( 200-900 ) -- dont give the damage i add in weapons combat.cpp max = (int32_t)((player->getLevel() * 2 + player->getMagicLevel() * 3) * 1. *...
  2. El Man

    Dead Message Request

    Error when player dead. should message is supposed to come after death sendTextMessage(MSG_EVENT_ADVANCE, "You are dead.");
  3. helviio

    C++ Addon/Outfit System | Nostalrius 7.7 TFS 1.2

    I Search For Help To Install Outfit / Addon System on Nostalrius 7.7 TSF 1.2 [ Member Based Image ... wizinx ] I tried to use the tfs 1.2 server from celohere/forgottenserver (https://github.com/celohere/forgottenserver) but I was not successful my map bugged the char was not walking bug...
  4. Ascuas Funkeln

    C++ Damage output with Separator

    Hello, I have problem in my goldfish knowledge in the field of C++, and its create big number separator on dmg dealing. message.primary.value = damage.primary.value; // int32, when change manually to any number visible output of damage is the same as manually entered, so this is...
  5. Ovnyx

    TFS 1.X+ [TFS 1.3] New creatureevent not working

    Hi everyone, I was trying to add another creature event to allow me to handle with lua when a creature actually gets experience. I know there is already a onGainExperience function under the /events/player.lua file, but I'm trying to handle this even for summons and I was wondering if I could...
  6. War-Ots

    Solved Storage System explanation

    Helo guys, I hope is everyone doing well :) I have been studying TFS again recently and i am currenctly building a server (ending a project). I already have managed to implement some stuff based on study i have been making here in otland and also reading code, testing etc. I am currently...
  7. Snavy

    TFS 1.X+ Reading 2D table from lua in sources

    I have been trying to read a 2D lua-table in sources and I am not sure how to debug this. The error msg that shows up is "attemp to index a boolean value". What is going on here? myLuaFunction({ { a = 0, b = 123, c = "string", d = true, e = true, f = true }, { a = 0, b = 123, c =...
  8. Kuantikum

    Lua REGISTER on login.lua

    Hello guys, I have founded this codes that use the Fist fighiting skills to add attack speed bonus: Name: Fist Fighting / Attackspeed Type: C ++ Author: Oneshot I have already seen some requests in the forum about the skill Fist Fighting, where the more you trained it, the faster you would...
  9. Snavy

    Solved Send std::map to LUA as a table

    TFS: 1.3 I have the following std::map and I am trying to push this to lua. std::map<AccountType_t, std::vector<std::string>> finalMap; desired result & example usage: local result = resultFromMethod() -- finalMap for i=1, #result[ACCOUNT_TYPE_NORMAL] do local tableOfStrings =...
  10. Yan18

    C++ [TFS1.3] TFS.exe Closing Suddenly

    Hello folks! I need support with a problem. I had create a new Attribute on source and I compiled. But, when I executed the application, it close suddenly and before was normal. I unmade all changes and after that I can't run my application. There aren't errors. I search the problem at the...
  11. P

    Compiling Errors with OTclient 1.0

    Hey all, i have weird problem when compiling OTClient 1.0 in VS19 I tried VS 15/17 but this one needs v142 from VS 19... I have followed edubart tutorial with vcpkg for VS 17 and vcpkg package is in A:/vcpkg included and registred with .bat files (in ss) I can add that i can compile TFS engine...
  12. Alberto Cabrera

    Items are not stacked [OTX] 2.15

    Hi people, could someone help me, the items are not stacked, only the first one is stacked, why? Could someone tell me where I should compile that? first of all, thank you Bug Stack Item [OTX] 2.15
  13. kor

    Feature [DLL] Simple WSAD in C++

    Hello. At the beginning I wanted to ask a few questions how to approach the topic of DLL injection and hooking into functions in memory, but to be fair to this community, I am sharing with you a very very simple code that allows you to control your character using WSAD keys...
  14. Crx Molten

    C++ Autoloot TFS1.3

    Hi, I'm checking that a lot of servers 12.X have the auto loot system without the common talkaction(!autoloot). So how does this work: You just simple add the item on your container looter on the client, and it simple goes directly to your bag when monsters died. Does anyone has this script...
  15. Switch

    C++ Crash when reloading creaturescripts

    I'm trying to pass an "NetworkMessage" in creaturescripts, everything works perfect, but when I try to reaload the creaturescripts the server goes down Follow the code snippet I added void CreatureEvent::executeOpcode(Player* player, uint8_t recvbyte, NetworkMessage& msg) {...
  16. check

    C++ OllyDbg - PrintFPS info

    Hello. I need some help with OllyDbg - how to find pointer for PrintFPS function and how to reveal it's argument list? I know it was discovered in the past and those addresses are well known (ianobermiller/tibiaapi...
  17. diarmaint

    Skills increasing together

    can someone tell me, how do I change the source so that the skill ax, level up with the skill sword and club? when using club or sword, the skill ax go up together
  18. Yan18

    C++ Doubts About C++ Source TFS 1.3

    Hello everyone! I'm learning C++ to developing my own server. I would like to understand somethings that I can't understand. I have difficult in understading Lua_State *L. I understood the concept, but in the practice, I don't understand. int...
  19. S

    C++ Check if backpack is full

    Hey guys, I'm using this code to auto loot items. uint32_t corpseOwner = container->getCorpseOwner(); if (corpseOwner != 0 && !player->canOpenCorpse(corpseOwner)) { return RETURNVALUE_YOUARENOTTHEOWNER; } else { if (player->autoLootList.size() !=...
  20. guguinha12

    TFS 1.X+ Spells with solid walls in front are not cast

    Hello, I noticed a problem in the TFS source and it seems to be a common error that has never been solved. As you can see in this image if a solid object is exactly in position 1, in front of the player, the spell is not sent (image 3). Would anyone have an efficient solution for this? I...
Back
Top