Merge pull request #14 from Olion17/develop21

[Warden] DB log: correct check ID
This commit is contained in:
Antz 2015-04-19 22:25:30 +01:00
commit f2329704f5
3 changed files with 6 additions and 6 deletions

View File

@ -299,7 +299,7 @@ void Warden::LogPositiveToDB(WardenCheck* check)
SqlStatement stmt = LoginDatabase.CreateStatement(insWardenPositive, "INSERT INTO warden_log (`check`, `action`, `account`, `guid`, `map`, `position_x`, `position_y`, `position_z`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
stmt.addUInt8(check->CheckId);
stmt.addUInt16(check->CheckId);
stmt.addInt8(check->Action);
stmt.addUInt32(_session->GetAccountId());
if (Player* pl = _session->GetPlayer())

View File

@ -103,10 +103,10 @@ void WardenWin::InitializeModule()
Request.Unk2 = 0;
Request.Type = 1;
Request.String_library1 = 0;
Request.Function1[0] = 0x00024F80; // 0x00400000 + 0x00024F80 SFileOpenFile
Request.Function1[1] = 0x000218C0; // 0x00400000 + 0x000218C0 SFileGetFileSize
Request.Function1[2] = 0x00022530; // 0x00400000 + 0x00022530 SFileReadFile
Request.Function1[3] = 0x00022910; // 0x00400000 + 0x00022910 SFileCloseFile
Request.Function1[0] = 0x002485F0; // 0x00400000 + 0x002485F0 SFileOpenFile
Request.Function1[1] = 0x002487F0; // 0x00400000 + 0x002487F0 SFileGetFileSize
Request.Function1[2] = 0x00248460; // 0x00400000 + 0x00248460 SFileReadFile
Request.Function1[3] = 0x00248730; // 0x00400000 + 0x00248730 SFileCloseFile
Request.Command2 = WARDEN_SMSG_MODULE_INITIALIZE;
Request.Size2 = 8;

View File

@ -27,5 +27,5 @@
#define REVISION_NR "21000"
#define REVISION_DB_CHARACTERS "required_21000_01_warden_action"
#define REVISION_DB_MANGOS "required_21000_08_warden_checks"
#define REVISION_DB_REALMD "required_20150412_auth_realmlist"
#define REVISION_DB_REALMD "required_20150420_warden_db_log"
#endif // __REVISION_H__