Feature Combo bot auto detector (beta)

FabianoBN

l|¬¬"|l
Joined
Jan 23, 2009
Messages
745
Reaction score
21
Location
Goias - Brazil
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:

Johnny Zoo

New Member
Joined
May 28, 2007
Messages
46
Reaction score
0
Location
Lokeren, Belgium
Nice script, but what if some people make a natural sd combo?
I think this is really possible if u communicate with ventrilo.
 

Triggah

TrigCore
Joined
Aug 1, 2007
Messages
434
Reaction score
0
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.
 

tklucas

Member
Joined
Jul 20, 2009
Messages
30
Reaction score
0
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?
 
OP
Gesior.pl

Gesior.pl

Mega Noob&LOL 2012
Premium User
Joined
Sep 18, 2007
Messages
1,973
Reaction score
870
Location
PLand
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
Reaction score
88
Location
Brazil
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