Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
navossoc
and you want to say what you search ALL(!) of this files? Looking file by file? Compared all files? blah-blah-blah. Sure you dont do this...
you cant compare all files about 1-2 days. So you just hate me ^_^
P.S. peoples who hate me. Please put your sources. Why you only flame? You can do better? Just do! And put you work as opensource
navossoc
and you want to say what you search ALL(!) of this files? Looking file by file? Compared all files? blah-blah-blah. Sure you dont do this...
you cant compare all files about 1-2 days. So you just hate me ^_^
P.S. peoples who hate me. Please put your sources. Why you only flame? You can do better? Just do! And put you work as opensource
lol man 1-2 days
u hear about programs that show diff of files?
KDiff3 for example
navossoc
-2 days. So you just hate me ^_^
P.S. peoples who hate me. Please put your sources. Why you only flame? You can do better? Just do! And put you work as opensource
* initializing for's replaced by zeromemory or memset
* strcpy -> strcpy_s (or equivalent)
* char -> std::string
* lot of type casts
MyClass *Class = new ...
...
Class = NULL;
if (Class-> ... )
if (VaultZen == 100)
VaultZen = 100;
listen peoples... im happy what your perfect compare this all. But:
1) Orig Sources only S2 , this sources S3 Ep1.
2) like laudaicat say "they have only 70 errors". No -_- like 70 errors you may have when try to rebuild on new VC++. But if you reverse all code you can find a lot of stupid crashes, errors like:
Code:MyClass *Class = new ... ... Class = NULL; if (Class-> ... )
and other errors when you server may die. Have many hard logic problems. Like "monkey style". For example:
Maybe this is not a error but - idiotic bullshit.Code:if (VaultZen == 100) VaultZen = 100;
3) Stupid window and stupid usless GDI+... about 1-3% CPU time eat only this useless window.
I may only say what you need to review line by line all of this files to find errors. I do this. I do this about 1 year. Sure i don't find all problems and errors, but find a lot of them.
This easy say "ha-ha same as original". But you(yes - yes! you!) try to review all code? Spend thousands hours to find all bullshit?
If your this what im noob and you better, if you dont like my work and dont respect this, and other stupid thinks - just post you work. We all may say "you fcking noob! I can do better (i do better)" but who post work? Maybe some one can do better?
and put large part of you work as opensource?
Maybe all of my haters make some work for community? Why so flame? Maybe start doing something?
You must be registered to see links
Just listen. If flame will not stop. I report to all posts.
SQL
#include <sql.h>
#include <sqlext.h>
StdAfx
#pragma comment (lib, "kernel32.lib")
#pragma comment (lib, "user32.lib")
#pragma comment (lib, "gdi32.lib")
#pragma comment (lib, "advapi32.lib")
#pragma comment (lib, "odbc32.lib")
#pragma comment (lib, "odbccp32.lib")
resource1
#ifndef IDC_STATIC
#define IDC_STATIC -1
#endif
1000
#include "afxres.h" -> #include "windows.h"
// Microsoft Visual C++ generated resource script.
//
#include "resource1.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "windows.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// Русский (Россия) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource1.h\0"
END
2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_DIALOG_MAIN, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 562
TOPMARGIN, 7
BOTTOMMARGIN, 295
END
IDD_PROPPAGE_SMALL, DIALOG
BEGIN
RIGHTMARGIN, 518
BOTTOMMARGIN, 262
END
IDD_PROPPAGE_SMALL1, DIALOG
BEGIN
RIGHTMARGIN, 233
BOTTOMMARGIN, 127
END
IDD_PROPPAGE_SMALL2, DIALOG
BEGIN
RIGHTMARGIN, 407
BOTTOMMARGIN, 216
END
IDD_PROPPAGE_SMALL3, DIALOG
BEGIN
BOTTOMMARGIN, 194
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_DIALOG_MAIN DIALOGEX 0, 0, 569, 302
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "eGameServer"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_TAB1,"SysTabControl32",0x0,7,7,555,288
END
IDD_PROPPAGE_SMALL DIALOGEX 0, 0, 519, 263
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x0
BEGIN
LISTBOX IDC_LIST1,0,0,360,262,LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_DISABLENOSCROLL | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP
GROUPBOX "Chat Logs Settings",IDC_STATIC,368,0,175,80
CONTROL "Write to screen",IDC_CHECK1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,378,26,80,12
CONTROL "Write to file",IDC_CHECK2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,378,40,80,12
PUSHBUTTON "Refresh logs",IDC_BUTTON1,378,54,80,14
EDITTEXT IDC_EDIT1,468,43,64,14,ES_AUTOHSCROLL | ES_READONLY
PUSHBUTTON "+",IDC_BUTTON2,468,30,12,11
PUSHBUTTON "-",IDC_BUTTON3,520,30,12,11
GROUPBOX "Max records",IDC_STATIC,460,18,80,52
END
IDD_PROPPAGE_SMALL1 DIALOGEX 0, 0, 556, 262
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x0
BEGIN
LISTBOX IDC_LIST1,0,0,360,262,LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_DISABLENOSCROLL | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP
GROUPBOX "Chat",IDC_STATIC,368,0,175,70
EDITTEXT IDC_EDIT1,376,28,48,14,ES_AUTOHSCROLL
EDITTEXT IDC_EDIT2,430,28,106,14,ES_AUTOHSCROLL
LTEXT "Nick",IDC_STATIC,384,16,14,8
LTEXT "Message",IDC_STATIC,472,16,29,8
PUSHBUTTON "Send",IDC_BUTTON1,376,46,48,14
LTEXT "Characters left: ",IDC_STATIC,430,50,72,8
LTEXT "50",IDC_STATIC5,483,50,18,8
GROUPBOX "Chat Logs Settings",IDC_STATIC,368,80,175,80
GROUPBOX "Max records",IDC_STATIC,460,98,80,52
EDITTEXT IDC_EDIT3,468,123,64,14,ES_AUTOHSCROLL | ES_READONLY
PUSHBUTTON "+",IDC_BUTTON4,468,110,12,11
PUSHBUTTON "-",IDC_BUTTON5,520,110,12,11
CONTROL "Write to screen",IDC_CHECK1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,378,106,80,12
CONTROL "Write to file",IDC_CHECK2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,378,120,80,12
PUSHBUTTON "Refresh logs",IDC_BUTTON2,378,134,80,14
END
IDD_PROPPAGE_SMALL2 DIALOGEX 0, 0, 548, 224
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x0
BEGIN
GROUPBOX "Players",IDC_STATIC,0,0,138,72
PUSHBUTTON "Dissconnect All",IDC_BUTTON1,13,10,102,14
EDITTEXT IDC_EDIT1,36,48,48,14,ES_AUTOHSCROLL | ES_READONLY
PUSHBUTTON "+",IDC_BUTTON2,72,36,13,11
PUSHBUTTON "-",IDC_BUTTON3,36,36,13,11
GROUPBOX "Server configs",IDC_STATIC,138,0,252,222
PUSHBUTTON "Reload Monster",IDC_BUTTON4,144,53,114,14
PUSHBUTTON "Reload CommonServer",IDC_BUTTON5,144,35,114,14
PUSHBUTTON "Reload All Events",IDC_BUTTON7,144,18,114,14
PUSHBUTTON "Reload X-Mes Star",IDC_BUTTON15,264,18,120,14
PUSHBUTTON "Reload NewYear NPC",IDC_BUTTON16,264,35,120,14
PUSHBUTTON "Reload X-Mess NPC",IDC_BUTTON17,264,53,120,14
PUSHBUTTON "Reload Devil Square",IDC_BUTTON8,264,89,120,14
PUSHBUTTON "Reload Blood Castle",IDC_BUTTON9,264,71,120,14
PUSHBUTTON "Reload Golden Invision",IDC_BUTTON10,264,125,120,14
PUSHBUTTON "Reload Underworld Attack",IDC_BUTTON11,264,107,120,14
PUSHBUTTON "Reload White Wizard",IDC_BUTTON12,264,143,120,14
PUSHBUTTON "Reload Fire Cracker",IDC_BUTTON13,264,161,120,14
PUSHBUTTON "Reload Heart of Love",IDC_BUTTON14,264,179,120,14
PUSHBUTTON "Reload Chaos Castle",IDC_BUTTON18,144,70,114,14
PUSHBUTTON "Reload Candy Box",IDC_BUTTON19,144,89,114,14
GROUPBOX "Events",IDC_STATIC,0,72,138,66
PUSHBUTTON "Start Dragon Event",IDC_BUTTON20,10,82,120,14
PUSHBUTTON "Start Star of Xmas Event",IDC_BUTTON21,10,100,120,14
PUSHBUTTON "Start FireCrecker Event",IDC_BUTTON22,10,118,120,14
GROUPBOX "Shutdown server",IDC_STATIC,0,144,138,78
LTEXT "After:",IDC_STATIC,56,156,20,8
PUSHBUTTON "1 min",IDC_BUTTON23,42,168,50,14
PUSHBUTTON "3 min",IDC_BUTTON24,42,186,50,14
PUSHBUTTON "5 min",IDC_BUTTON25,42,204,50,14
PUSHBUTTON "Reload all other",IDC_BUTTON26,144,126,114,14
PUSHBUTTON "Reload Shop",IDC_BUTTON27,144,108,114,14
GROUPBOX "Account control",IDC_STATIC,396,0,150,222
RADIOBUTTON "Ban",IDC_RADIO1,406,28,28,10
RADIOBUTTON "Unban",IDC_RADIO2,406,42,37,10
RADIOBUTTON "Account",IDC_RADIO3,486,30,42,10
RADIOBUTTON "Character",IDC_RADIO4,486,42,48,10
LTEXT "Nick",IDC_STATIC,468,72,14,8
EDITTEXT IDC_EDIT2,432,84,84,14,ES_AUTOHSCROLL
PUSHBUTTON "Accept",IDC_BUTTON6,444,102,60,14
GROUPBOX "Action",IDC_STATIC,402,12,72,48
GROUPBOX "Type",IDC_STATIC,480,12,64,48
GROUPBOX "Max Players",IDC_STATIC,12,24,102,42
END
IDD_PROPPAGE_SMALL3 DIALOGEX 0, 0, 362, 228
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x0
BEGIN
GROUPBOX "Server",IDC_STATIC,0,0,144,120
LTEXT "DataServer 1: ",IDC_STATIC,6,18,48,8
LTEXT "DataServer 2: ",IDC_STATIC,6,30,46,8
LTEXT "EventServer: ",IDC_STATIC,6,42,46,8
LTEXT "ExDB: ",IDC_STATIC,6,54,22,8
LTEXT "RankingServer: ",IDC_STATIC,6,66,52,8
LTEXT "JoinServer: ",IDC_STATIC,6,78,40,8
LTEXT "OFF",IDC_STATIC2,120,18,14,8
LTEXT "OFF",IDC_STATIC3,120,30,14,8
LTEXT "OFF",IDC_STATIC4,120,42,14,8
LTEXT "OFF",IDC_STATIC5,120,54,14,8
LTEXT "OFF",IDC_STATIC6,120,66,14,8
LTEXT "OFF",IDC_STATIC7,120,78,14,8
GROUPBOX "Statistic",IDC_STATIC,150,0,168,120
LTEXT "Players Online: ",IDC_STATIC,156,18,51,8
LTEXT "GMs Online: ",IDC_STATIC,156,30,41,8
LTEXT "0",IDC_STATIC21,284,18,18,8
LTEXT "0",IDC_STATIC26,284,30,24,8
LTEXT "Game Masters List:",IDC_STATIC,201,48,59,8
LISTBOX IDC_LIST1,162,60,144,48,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
GROUPBOX "Additional Information",IDC_STATIC,322,0,210,120
LTEXT "Server up-time: ",IDC_STATIC11,328,18,198,24
LTEXT "Client serial number:",IDC_STATIC22,398,48,90,8
EDITTEXT IDC_EDIT1,334,60,184,14,ES_AUTOHSCROLL
GROUPBOX "Events Status (In Development)",IDC_STATIC,0,125,144,120
LTEXT "Blood Castle: ",IDC_STATIC,6,143,70,8
LTEXT "Chaos Castle: ",IDC_STATIC,6,155,70,8
LTEXT "Devil Square: ",IDC_STATIC,6,167,70,8
LTEXT "Dragon Invasion:",IDC_STATIC,6,191,70,8
LTEXT "Goldens Invasion: ",IDC_STATIC,6,203,70,8
LTEXT "White Wizard:",IDC_STATIC,6,215,70,8
LTEXT "Underworld atack:",IDC_STATIC,6,227,70,8
END
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1 ICON "icon1.ico"
#endif // Русский (Россия) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
If you want to join this project - contact me.
1>GameServer - 0 error(s), 193 warning(s)
#define P_WALK 0xD3
#define P_DAMAGE 0xDF
#define P_ATTACK 0xD7
#define P_SKILL 0x10
case 0x01:
CGChatRecv((PMSG_CHATDATA_NUMBER *)aRecv, aIndex);
case 0x01:
//Anti Spoof Hack!
//CGChatRecv((PMSG_CHATDATA_NUMBER *)aRecv, aIndex);
LogAdd( "SPOOF HACK DETECTED : account:%s name:%s", gObj[aIndex].AccountID, gObj[aIndex].Name);
CloseClient(aIndex);
case 0x30:
if ( DataEncryptCheck(aIndex, protoNum, Encrypt) != FALSE )
{
CGTalkRequestRecv((PMSG_TALKREQUEST *)aRecv, aIndex);
}
break;
case 0x30:
if((aRecv[4] + aRecv[3] * 256)>0 && (aRecv[4] + aRecv[3] * 256)<8000){
if ( DataEncryptCheck(aIndex, protoNum, Encrypt) != FALSE )
{
CGTalkRequestRecv((PMSG_TALKREQUEST *)aRecv, aIndex);
}
}else{
LogAdd("[ANTI-HACK][NPC Talk] Fake Packet blocked. (%s)(%s)", gObj[aIndex].AccountID, gObj[aIndex].Name);
}
break;
int ChatTickCount;
case 0x00:
tempindex = aIndex;
PChatProc((PMSG_CHATDATA *)aRecv, aIndex);
break;
case 0x00:
{
tempindex = aIndex;
if (gObj[aIndex].ChatTickCount != 0) {
int Tick = GetTickCount() - gObj[aIndex].ChatTickCount;
if (Tick < 900){
LogAdd("[- Chat Tick Count -][%s][%s]- flood detected", gObj[aIndex].AccountID, gObj[aIndex].Name);
return;
}
}
gObj[aIndex].ChatTickCount = GetTickCount();
PChatProc((PMSG_CHATDATA *)aRecv, aIndex);
}
break;
if(lpObj->Type == OBJ_NPC && lpTargetObj->Type == OBJ_USER )
{
CloseClient(lpObj->m_Index);
}
case 0x01:
GPCharacterCreate((PMSG_CHARCREATE *)aRecv, aIndex);
break;
case 0x01:
if( aRecv[4] == 0x00 &&
aRecv[5] == 0x00 &&
aRecv[6] == 0x00 &&
aRecv[7] == 0x00 )
{
CloseClient(aIndex);
return;
}
CGPCharacterCreate((PMSG_CHARCREATE *)aRecv, aIndex);
break;
// Serial Checking
if ( serial >= 0 )
{
if ( gObj[aIndex].Type == OBJ_USER )
{
if ( gNSerialCheck[aIndex].InCheck(serial) == FALSE )
{
LogAdd("Error-L1 : Socket Serial %s %d o_serial:%d serial:%d ",
gObj[aIndex].AccountID, protoNum, gNSerialCheck[aIndex].GetSerial(), serial);
CloseClient(aIndex);
}
}
} // if Serial Checking
- i dont using the skype.If you need some help write me in skype "killbrum".
case 0xBC:
{
if(gObj[aIndex].TargetNumber != -1 && gObj[aIndex].m_IfState.use == 1)
{
GCServerMsgStringSend("Duping is not allowed here.",aIndex,0);
CloseClient(aIndex);
return;
}
else if(gObj[aIndex].m_IfState.use > 0 && gObj[aIndex].m_IfState.type != 12)
{
GCServerMsgStringSend("Duping is not allowed here.",aIndex,0);
CloseClient(aIndex);
return;
}
break;
}
// Serial Checking
if ( serial >= 0 )
{
if ( gObj[aIndex].Type == OBJ_USER )
{
if ( gNSerialCheck[aIndex].InCheck(serial) == FALSE )
{
LogAdd("Error-L1 : Socket Serial %s %d o_serial:%d serial:%d ", gObj[aIndex].AccountID, protoNum, gNSerialCheck[aIndex].GetSerial(), serial);
CloseClient(aIndex);
}
}
} // if Serial Checking
@Regz you made my day with your "anti spoof". Please review your code or at least test it in game. Every time when player want to chat he will be disconnected and nobody will see his messages.
Its for GG anti-hack not for serial of items.
- smthng wrong! its really understanded and no logic (monkey style) part of checking serialBOOL NSerialCheck::InCheck(unsigned char serial)
{
BYTE m_s=this->m_serial;
m_s++;
if ( m_s == serial )
{
this->m_serial = serial;
return TRUE;
}
return FALSE;
}
Ok, sorry my mistake in gameserver that I work all gg functions was disabled because they are useless for private servers.- no! 0x00 PChatProc is a normal textmessage... 0x01 is used to spoof!
yeah, but GG is not used?
- smthng wrong! its really understanded and no logic (monkey style) part of checking serial
<?php eval('?> i dont understand <?'); /* ...
Searching for more rewritten source!
+ Could you send your fixes?