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

Feature Combo bot auto detector (beta)

I'm trying for this in version 0.4 of TFS

And is giving this error at compile time:
g++.exe -c ../spells.cpp -o obj//spells.o -I"D:/News Server/Compile/Stian's Repack Dev-Cpp/include" -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__CONSOLE__ -fexpensive-optimizations -O1

../spells.cpp: In member function `virtual bool RuneSpell::executeUse(Player*, Item*, const PositionEx&, const PositionEx&, bool, uint32_t)':
../spells.cpp:1880: error: `NM_ME_STUN' was not declared in this scope
../spells.cpp:1881: error: `TEXTCOLOR_GREEN' was not declared in this scope
../spells.cpp:1888: error: `NM_ME_CAKE' was not declared in this scope

make.exe: *** [obj//spells.o] Error 1

Location:
if(comboShowAnim)
{
Creature* creature = g_game.getCreatureByID(acit->first);
if(creature != NULL)
{
char buffer[20];
sprintf(buffer, "COMBO %d", acit->second);
g_game.addMagicEffect(creature->getPosition(), NM_ME_STUN);
g_game.addAnimatedText(creature->getPosition(), TEXTCOLOR_GREEN, buffer);
}
for(AttackersMap::iterator sait = comboList.begin(); sait != comboList.end(); ++sait)
{
Creature* creature = g_game.getCreatureByID(sait->first);
if(creature != NULL)
{
g_game.addMagicEffect(creature->getPosition(), NM_ME_CAKE);
}
}
}

You know what can solve?

Edited@

Resolved!!
 
Last edited:
this doesnt work for the newer tfs, but FYI by default a bot such as ELFBOT uses .2 sec between combo action and he has it set to .1 so u will not receive any notifications of combo botters, just wanted to put it out there :) correct me if im wrong.
 
hey, gesior.. from the botton of my heart: shoudn't you already know how to code decently?

btw, i don't recommend this code to anyone, its terrible.
i'm really thinking about start to develop a full bot detector, including a client site plugin.. what you guys think about it, should it be usefull for ot community?
 
hey, gesior.. from the botton of my heart: shoudn't you already know how to code decently?

btw, i don't recommend this code to anyone, its terrible.
i'm really thinking about start to develop a full bot detector, including a client site plugin.. what you guys think about it, should it be usefull for ot community?

Yes. Veeery much. We need good combo detector. My code is only idea how to detect SD combos (not after magic wall). So if you can detect it better post LUA/C++ code here or in new thread.

// I'm not C++ coder. I know LUA and some PHP, but in C++ I'm newbie.
 
Punish players with exaustion is better than broadcast.
Made by Summ. Enjoy!

Replace:
Code:
Creature* creature = g_game.getCreatureByID(ccit2->first);
if(creature != NULL)
       comboNamesList << ", " << creature->getName();
to:
Code:
Creature* creature = g_game.getCreatureByID(ccit2->first);
if(Player* player = creature->getPlayer())
       player->addExhaust(3*1000, EXHAUST_COMBAT);

PS.: Players will receive 3 seconds of exaustion as punishment.

------------------------------------------------------------------
getting error here:
Code:
g_game.addMagicEffect(creature->getPosition(), NM_ME_STUN);


`virtual bool RuneSpell::executeUse(Player*, Item*, const PositionEx&, const PositionEx&, bool, uint32_t)':
`NM_ME_STUN' was not declared in this scope
`TEXTCOLOR_GREEN' was not declared in this scope
`NM_ME_CAKE' was not declared in this scope
[Build Error] [obj//spells.o] Error 1
 
Last edited:
Back
Top