Feature Combo bot auto detector (beta)

Joined
Jan 23, 2009
Messages
745
Best answers
0
Likes
21
Location
Goias - Brazil
#41
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?

[email protected]

Resolved!!
 
Last edited:
Joined
Aug 1, 2007
Messages
434
Best answers
0
Likes
0
#44
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.
 
Joined
Jul 20, 2009
Messages
30
Best answers
0
Likes
0
#47
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?
 

Gesior.pl

Mega Noob&LOL 2012
Premium User
Joined
Sep 18, 2007
Messages
1,967
Best answers
17
Likes
858
Location
PLand
#48
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.
 

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,856
Best answers
0
Likes
88
Location
Brazil
#49
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:
Top