Jump to content

Mangos Anti Cheat HELP


Guest reiperuzzo

Recommended Posts

git clone git://github.com/mangos/mangos.git (this clones the lastest mangos reversion)

cd mangos (makes the mangos directory master)

git pull git://github.com/gimli/mangos.git anticheat (pulls the changes from gimli's repo)

You will have to resolve some conflicts of course, when compiling.

Link to comment
Share on other sites

Well, it gets erros in just two files. Level3 and SperAuras. I will look for the erros and link to you. But i think one for the level3 file i did make it work...but i cant get past the erros in SpellAuras file. So how do u prefere i link the modds in the 2 files or just the erros that appear when compiling?

Link to comment
Share on other sites

In MovementHandler.cpp : http://pastebin.ca/1947425

6>..\\..\\src\\game\\MovementHandler.cpp(171): error C2664: 'World::BanAccount'*: impossible de convertir le paramètre 3 de 'std::string' en 'uint32'
6>          Aucun opérateur de conversion définie par l'utilisateur disponible qui puisse effectuer cette conversion, ou l'opérateur ne peut pas être appelé
6>..\\..\\src\\game\\MovementHandler.cpp(175): error C2065: 'loginDatabase'*: identificateur non déclaré
6>..\\..\\src\\game\\MovementHandler.cpp(175): error C2228: la partie gauche de '.PQuery' doit avoir un class/struct/union
6>          le type est ''unknown-type''
6>..\\..\\src\\game\\MovementHandler.cpp(183): error C2664: 'World::BanAccount'*: impossible de convertir le paramètre 3 de 'std::string' en 'uint32'
6>          Aucun opérateur de conversion définie par l'utilisateur disponible qui puisse effectuer cette conversion, ou l'opérateur ne peut pas être appelé

In SpellAuras.cpp : http://pastebin.ca/1947428

..\\..\\src\\game\\SpellAuras.cpp(7461): error C2065: 'm_target'*: undeclared identificator

Errors like this > 100 = Fatal error

Link to comment
Share on other sites

..\\..\\src\\game\\SpellAuras.cpp(4282) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(4282) : error C2227: left of '->SetCanFly' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(4288) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(4288) : error C2227: left of '->SetCanFly' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(4291) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(4291) : error C2227: left of '->GetPackGUID' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7311) : error C2047: illegal default

..\\..\\src\\game\\SpellAuras.cpp(7316) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

..\\..\\src\\game\\SpellAuras.cpp(7318) : error C2059: syntax error : 'if'

..\\..\\src\\game\\SpellAuras.cpp(7319) : error C2143: syntax error : missing ';' before '{'

..\\..\\src\\game\\SpellAuras.cpp(7319) : error C2447: '{' : missing function header (old-style formal list?)

..\\..\\src\\game\\SpellAuras.cpp(7329) : error C2059: syntax error : 'else'

..\\..\\src\\game\\SpellAuras.cpp(7330) : error C2143: syntax error : missing ';' before '{'

..\\..\\src\\game\\SpellAuras.cpp(7330) : error C2447: '{' : missing function header (old-style formal list?)

..\\..\\src\\game\\SpellAuras.cpp(7341) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

..\\..\\src\\game\\SpellAuras.cpp(7341) : error C2374: 'SetInUse' : redefinition; multiple initialization

..\\..\\src\\game\\SpellAuras.cpp(7316) : see declaration of 'SetInUse'

..\\..\\src\\game\\SpellAuras.cpp(7342) : error C2059: syntax error : '}'

..\\..\\src\\game\\SpellAuras.cpp(7342) : error C2143: syntax error : missing ';' before '}'

..\\..\\src\\game\\SpellAuras.cpp(7342) : error C2059: syntax error : '}'

..\\..\\src\\game\\SpellAuras.cpp(7345) : error C2143: syntax error : missing ';' before '{'

..\\..\\src\\game\\SpellAuras.cpp(7345) : error C2447: '{' : missing function header (old-style formal list?)

..\\..\\src\\game\\SpellAuras.cpp(7355) : error C2084: function 'void Aura::HandleAuraUntrackable(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(242) : see previous definition of 'HandleAuraUntrackable'

..\\..\\src\\game\\SpellAuras.cpp(7357) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7357) : error C2227: left of '->SetByteFlag' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7359) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7359) : error C2227: left of '->RemoveByteFlag' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7363) : error C2084: function 'void Aura::HandleAuraModPacify(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(325) : see previous definition of 'HandleAuraModPacify'

..\\..\\src\\game\\SpellAuras.cpp(7364) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7364) : error C2227: left of '->GetTypeId' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7368) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7368) : error C2227: left of '->SetFlag' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7370) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7370) : error C2227: left of '->RemoveFlag' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7374) : error C2084: function 'void Aura::HandleAuraModPacifyAndSilence(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(348) : see previous definition of 'HandleAuraModPacifyAndSilence'

..\\..\\src\\game\\SpellAuras.cpp(7375) : error C2264: 'Aura::HandleAuraModPacify' : error in function definition or declaration; function not called

..\\..\\src\\game\\SpellAuras.cpp(7380) : error C2084: function 'void Aura::HandleAuraGhost(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(326) : see previous definition of 'HandleAuraGhost'

..\\..\\src\\game\\SpellAuras.cpp(7381) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7381) : error C2227: left of '->GetTypeId' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7386) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7386) : error C2227: left of '->SetFlag' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7390) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7390) : error C2227: left of '->RemoveFlag' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7395) : error C2084: function 'void Aura::HandleAuraAllowFlight(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(327) : see previous definition of 'HandleAuraAllowFlight'

..\\..\\src\\game\\SpellAuras.cpp(7404) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7404) : error C2227: left of '->SetCanFly' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7410) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7410) : error C2227: left of '->SetCanFly' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7412) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7412) : error C2227: left of '->GetPackGUID' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7414) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7414) : error C2227: left of '->SendMessageToSet' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7418) : error C2084: function 'void Aura::HandleModRating(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(328) : see previous definition of 'HandleModRating'

..\\..\\src\\game\\SpellAuras.cpp(7423) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7423) : error C2227: left of '->GetTypeId' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7428) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7428) : error C2227: left of '->ApplyRatingMod' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7432) : error C2084: function 'void Aura::HandleModRatingFromStat(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(329) : see previous definition of 'HandleModRatingFromStat'

..\\..\\src\\game\\SpellAuras.cpp(7437) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7437) : error C2227: left of '->GetTypeId' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7442) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7442) : error C2227: left of '->ApplyRatingMod' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7446) : error C2084: function 'void Aura::HandleForceMoveForward(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(351) : see previous definition of 'HandleForceMoveForward'

..\\..\\src\\game\\SpellAuras.cpp(7447) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7447) : error C2227: left of '->GetTypeId' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7450) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7450) : error C2227: left of '->SetFlag' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7452) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7452) : error C2227: left of '->RemoveFlag' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7456) : error C2084: function 'void Aura::HandleAuraModExpertise(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(350) : see previous definition of 'HandleAuraModExpertise'

..\\..\\src\\game\\SpellAuras.cpp(7457) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7457) : error C2227: left of '->GetTypeId' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7460) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7460) : error C2227: left of '->UpdateExpertise' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7461) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7461) : error C2227: left of '->UpdateExpertise' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7465) : error C2084: function 'void Aura::HandleModTargetResistance(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(330) : see previous definition of 'HandleModTargetResistance'

..\\..\\src\\game\\SpellAuras.cpp(7472) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7472) : error C2227: left of '->GetTypeId' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7473) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7473) : error C2227: left of '->ApplyModInt32Value' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7476) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7476) : error C2227: left of '->GetTypeId' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7477) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7477) : error C2227: left of '->ApplyModInt32Value' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7481) : error C2084: function 'void Aura::HandleShieldBlockValue(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(339) : see previous definition of 'HandleShieldBlockValue'

..\\..\\src\\game\\SpellAuras.cpp(7486) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7486) : error C2227: left of '->GetTypeId' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7487) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7487) : error C2227: left of '->HandleBaseModValue' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7491) : error C2084: function 'void Aura::HandleAuraRetainComboPoints(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(341) : see previous definition of 'HandleAuraRetainComboPoints'

..\\..\\src\\game\\SpellAuras.cpp(7496) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7496) : error C2227: left of '->GetTypeId' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7499) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7504) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7509) : error C2084: function 'void Aura::HandleModUnattackable(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(324) : see previous definition of 'HandleModUnattackable'

..\\..\\src\\game\\SpellAuras.cpp(7512) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7512) : error C2227: left of '->CombatStop' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7513) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7513) : error C2227: left of '->RemoveAurasWithInterruptFlags' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7515) : error C2065: 'm_target' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7515) : error C2227: left of '->ApplyModFlag' must point to class/struct/union/generic type

type is ''unknown-type''

..\\..\\src\\game\\SpellAuras.cpp(7519) : error C2084: function 'void Aura::HandleSpiritOfRedemption(bool,bool)' already has a body

c:\\users\\reinaldo\\desktop\\mangos\\mangos\\src\\game\\SpellAuras.h(336) : see previous definition of 'HandleSpiritOfRedemption'

..\\..\\src\\game\\SpellAuras.cpp(7529) : error C2065: 'spell' : undeclared identifier

..\\..\\src\\game\\SpellAuras.cpp(7529) : fatal error C1003: error count exceeds 100; stopping compilation

Link to comment
Share on other sites

..\\..\\src\\game\\MovementHandler.cpp(171) : error C2664: 'World::BanAccount' : cannot convert parameter 3 from 'std::string' to 'uint32'

No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

..\\..\\src\\game\\MovementHandler.cpp(175) : error C2065: 'loginDatabase' : undeclared identifier

..\\..\\src\\game\\MovementHandler.cpp(175) : error C2228: left of '.PQuery' must have class/struct/union

type is ''unknown-type''

..\\..\\src\\game\\MovementHandler.cpp(183) : error C2664: 'World::BanAccount' : cannot convert parameter 3 from 'std::string' to 'uint32'

No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

Link to comment
Share on other sites

Sorry...i didint...i still ger erros in the SpellAuras.cpp and MovementHandler.cpp, maybe i didnt express my erros very well. So before i started working on this i was getting 3 major erros when compiling, but now when i try i get just one and this one is in the two files. SpellAuras.cpp and MovementHandler.cpp. But i was looking in the code and i was thinking that in the SpellAuras.cpp file when shows m_target variable we should put just target in the place, cose this anti_cheat is for the olders versions of mangos and they used m_target and know in the new version they use targe. Well just an idea.

Link to comment
Share on other sites

In MovementHandler.cpp : http://pastebin.ca/1947425

In SpellAuras.cpp : http://pastebin.ca/1947428

Errors like this > 100 = Fatal error

Fix for:

sWorld.BanAccount(BAN_CHARACTER,Player,duration_secs,(char*)"Cheat",(char*)"Anticheat");

QueryResult *result = LoginDatabase.PQuery("SELECT last_ip FROM account WHERE id=%u", Acc);

sWorld.BanAccount(BAN_IP,LastIP,duration_secs,(char*)"Cheat",(char*)"Anticheat");

In SpellAuras.cpp

GetTarget()->RemoveFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FORCE_MOVE);

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use