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

    Programmer Jerop's Services

    I'm a software engineer fourth year at engineering faculty. Since ten years i am working at 860 version. I have a big database of maps / scripts / websites. I have contributed in making new scripts such as (Depot Password - Death tiles - Mount system for 860-Anti push max (ELFBOT/ Magebot) )...
  2. Alkenyx

    TFS 1.3 - Implementing Quiver Problem

    Hello Folks. I'm trying to implement a quiver for pallys but my bow don't want to shoot. https://otland.net/threads/quiver-tfs-1-x-0-x.264070/page-2 Working with TFS 1.3.
  3. danilopucci

    OTClient Rect Class

    Hello guys, I am currently experimenting some codes on OTClient and I have a conceptual question about width/height in Rect class There is a bunch of "+1" and "-1" corrections on its values, which does not look right. I am blowing my mind trying to understand that and why and how it works as...
  4. F

    passing an old code(0x) to the current one 1.3x NetworkMessage

    hello, I need help to understand about sending and receiving bytes, if anyone can explain this I will be grateful! I'm passing code from version 0x to 1.3 and I need to understand about bytes, this is the 0x function, this is 1.3x the code edited by min (1.3) does not have the...
  5. F

    C++ how to send opcodes from server to otclient 1.3

    hello I need to send information from the server to otclient, this information would be to update the name of a summon, I still don't understand mt well about opcodes, I made a code but it doesn't work SpectatorVec spectators; g_game.map.getSpectators(spectators...
  6. Silba

    C++ [C++/Lua] Percentage level range for pvp-enforced exp instead of flat level range

    Hello I would like to modify the source code or create a script which will allow me to set the level range for pvp-enforced experience to be based on a percentage rather than the normal level range which never changes. Right now in config.lua I have expFromPlayersLevelRange = 80 and this is...
  7. El Man

    Monsters disappearing

    monsters disappearing automatic when i make hunt and after it tibia get bugs ;/ how to fix this problem ? Version : OTX
  8. zbizu

    useful tricks in Visual Studio for beginners

    Introduction This thread purpose is to get more people into experimenting with TFS sources. Most beginners (and plenty of advanced users) prefer using Windows when it comes to running tfs locally. This is not a disadvantage - most of user friendly tools to build a decent game world are for...
  9. El Man

    Formula damage error

    This is my third post for formula and problem still not fixed .. need someone help me to fix it .. my problem is : damage formula is error in spells and in weapons too like i write this damage in weapons setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -14500000, 0, -15500000) and after...
  10. 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. *...
  11. El Man

    Dead Message Request

    Error when player dead. should message is supposed to come after death sendTextMessage(MSG_EVENT_ADVANCE, "You are dead.");
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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 =...
  17. 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...
  18. 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 =...
  19. 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...
  20. 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...
Back
Top