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

    C++ [Help] Error compiling - "Level and vocation instead of world name on character login"

    TFS 0.4 Rev3996 I found this script "Level and vocation instead of world name on character login" here on the forum, but it is giving error during compilation. As shown in the picture. Can anyone help me to solve it? Link: Fix/Patch - Level and vocation instead of world name on character login...
  2. Yan18

    C++ [TFFS 1.3 - Source] Error C2280 'spellBlock_t &spellBlock_t::operator =(const spellBlock_t &)'

    Hi folks! I need help with a error in the source, it is being headache 😂. I tried to figured out the problem at the internet, but I didn't understand the issue yet. The issue is: Console Error List: Error C2280 'spellBlock_t &spellBlock_t::operator =(const spellBlock_t &)': attempting to...
  3. El Man

    C++ monster spawn in different place not on players

    HELP ! i have problem when monster spawn he goes down in the same place where the player is standing .. all just i need when the monster comes down it descends in a different place than the place in which the player stands I turn : allowBlockSpawn = false : to spawn and there are people in...
  4. G

    [C++] Prevent generating number below 20 with function rand() twice in a row

    I execute this script every second and I do not want the message "I must be only once in a row!" to display more than once in a row. It can be displayed multiple times but never one after another one. // int x = 1; int chance = uniform_random(1, 100); if (20 <= chance)...
  5. Yan18

    C++ [TFS 1.3] - How to Get When a Monster use Melee Attack (Basic Attack) and When the Monster uses Spell in Monster.xml in Tag <attacks> from C++Source?

    Hi Guys, As the title says, how can I get in the source when a monster uses melee attack (Basic Attack) and when the monster uses a Spell attack contained in tag <attacks> in the Monster.xml ?
  6. potinho

    C++ Server respect outfits.xml

    Hello everyone, I have an OTX 2 server (TFS 0.3.7) 7.72 protocol, where I define the outfits range in the sources, as below in protocolgame.cpp: Im using OTCv8 as client. void ProtocolGame::sendOutfitWindow() { NetworkMessage_ptr msg = getOutputBuffer(); if(!msg) return...
  7. ZeroSkyer

    TFS 1.X+ Exhaust Equip c++

    Hello, currently I have exhausted the equip hotkey, now I am trying to move the exhaust for each slot since the idea is to exhaust the rings and amulets but not the equip hotkey in general but I can not do it, someone who can help me? if (player->isMoveExhausted()) {...
  8. potinho

    OTClient NPC Highlight speech blue

    You know when you put any words into "{ }" in a NPC phrase and it gets highlighted in a deeper blue? Well, I'm looking for the code that make this works. Had a look in the npc lua system and in the some sources, but haven't found anything. Could you help me deploy this on my server? It's an OTX...
  9. Jaki Maoh

    C++ Quiver system source modification attempt

    Hello Community! I was searching the forum for a way to implement a quiver system and found this post: After following the tutorial and experimenting some things here and there, I tried to make some alterations. First of all, a little modification to @Infernum 's edit, allowing to add multiple...
  10. S

    C++ How to get item ID by ClientID

    Hi, I made a script that sends the ClientID of an item to the server, so the server can send me info about the item, but i can't manage to get those informations through clientId. What i am trying to do is to convert the ClientId to ServerID, but because of my lack of experience in C++, i...
  11. cocacola13

    Have problem compilando add new scripts

    hello trying to copy the reborn system, but an error pops up during compilation [ 2%] Building CXX object CMakeFiles/tfs.dir/src/game.cpp.o /home/ots/src/game.cpp: In member function ‘bool Game::combatChangeHealth(Creature*, Creature*, CombatDamage&)’: /home/ots/src/game.cpp:3791:44: error...
  12. MaSc

    Programmer [MaSc] Jerop's Services {TFS,OTSBR,OTX, OTCLIENT , OTCV8,php}

    Are you looking for a professional programmer to upgrade your server, add unique features, increase performance, fix crash bugs, or modify your website? Look no further – I can handle all of these tasks for you. I have extensive experience working with OTServ and The Forgotten Server. Although...
  13. 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.
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. El Man

    Monsters disappearing

    monsters disappearing automatic when i make hunt and after it tibia get bugs ;/ how to fix this problem ? Version : OTX
  19. 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...
  20. 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...
Back
Top