SendToServerNew usage...

07/14/2013 02:58 iamdss#1
Hello! I have an address the SendToServerNew and I can set breakpoint on it. Everything works that I want. but I don't know how to use SendToServerNew with my program (I write on delphi). Whether someone can give any code example or show the right way for work? What parameters to set? Earlier the declaration of SendToServerNew was

public: void __thiscall CMessageDispatcher::SendToServerNew(class CNetworkMessage const &,int)

May I correctly call this function with Delphi? And sorry for my poor English...
07/14/2013 09:08 dsfgd#2
note 1: this code is for an injected dll, you cannot use this in a exe, the reason is the packet encryption and session id
note 2: you need the CNetworkMessage Class from engine.dll source code (i will not give you this, don't ask me, ask google)
note 3: this code is outdated and will not work on current EP2 server (Gamigo, Aeria, Destiny, ... )

types.h:
Code:
typedef signed __int64     SQUAD;
typedef signed long  int   SLONG;
typedef signed short int   SWORD;
typedef signed char	       SBYTE;
typedef signed int         SINT;
typedef unsigned __int64   UQUAD;
typedef unsigned long  int ULONG;
typedef unsigned short int UWORD;
typedef unsigned char      UBYTE;
typedef unsigned int       UINT;
typedef int BOOL;		        // this is for TRUE/FALSE
typedef long int RESULT;		// for error codes
typedef long int INDEX;     // for indexed values and quantities
typedef SLONG  PIX;    // pixel coordinates
typedef SLONG  TEX;    // texel coordinates
typedef SLONG  MEX;    // texels in mip-level 0
typedef float  FLOAT;
typedef double DOUBLE;
typedef float  ANGLE;
typedef float  TIME;
typedef FLOAT  RANGE;
typedef ULONG  COLOR;  // color is always in 32 bit true-color format

class CNetworkMessage;
class CTString;
network.h:
Code:
typedef void (__stdcall* funcSendToServerNew)(const CNetworkMessage&, BOOL);
void SendToServerNew(const CNetworkMessage &nmMessage, BOOL bLogin = false);
network.cpp:
Code:
void SendToServerNew(const CNetworkMessage &nmMessage, BOOL bLogin)
{
	funcSendToServerNew function = (funcSendToServerNew)GetProcAddress(GetModuleHandle("Engine.dll"), "?SendToServerNew@CMessageDispatcher@@QAEXABVCNetworkMessage@@H@Z");
	function(nmMessage, bLogin);
}
to use this: (example: delete item)
Code:
void SendItemDelete(SBYTE iTab, SBYTE iRow, SBYTE iCol, INDEX UniIndex, SQUAD count)
{
	CNetworkMessage nmItem(MSG_ITEM);
	nmItem << (SBYTE)MSG_ITEM_DELETE << iTab << iRow << iCol << UniIndex << count;
	SendToServerNew(nmItem);
}
07/14/2013 11:17 iamdss#3
Thanks a lot! I will try it when I'll come from work. Is CNetworkMessage Class the common for some other apps? Or is the native for Last Chaos?
07/14/2013 12:41 Samker#4
CNetwork: [Only registered and activated users can see links. Click Here To Register...]
It is not the newest but it should do the job

Greets
07/14/2013 20:07 iamdss#5
Thank you very much! But file is expired, i'll try to find by myself...

Quote:
Originally Posted by dsfgd View Post
this code is outdated and will not work on current EP2 server (Gamigo, Aeria, Destiny, ... )
Whether only because receiving the function address by symbolname? isn't critical, I think.

CNetworkMessage - I took it from svn: [Only registered and activated users can see links. Click Here To Register...]
(If to be useful to somebody)
07/15/2013 01:25 PizzaGuy#6
Quote:
Originally Posted by iamdss View Post
Thank you very much! But file is expired, i'll try to find by myself...



Whether only because receiving the function address by symbolname? isn't critical, I think.

CNetworkMessage - I took it from svn: [Only registered and activated users can see links. Click Here To Register...]
(If to be useful to somebody)
Correct with function names stripped, you will just need to migrate over to using signature scans.
07/15/2013 02:53 dsfgd#7
Quote:
Originally Posted by iamdss View Post
CNetworkMessage - I took it from svn: [Only registered and activated users can see links. Click Here To Register...]
(If to be useful to somebody)
The CNetworkMessage class is a Last Chaos specific class, no other game or tool uses this, you NEED the full engine.dll source code, because you need more then just CNetworkMessage to get it working, it is illegal to post this code, because it's copyright protected.

And yes, for the current EP2 server you need signature (AOB) scans, but also lots of other stuff was changed to protect against my private hack.
07/15/2013 08:48 iamdss#8
You're right, I use sginature search but also debugger, which works perfectly.

Quote:
Originally Posted by dsfgd View Post
it is illegal to post this code, because it's copyright protected.
I got it. And my question "is there a chance to find source code of engine.dll?" :) I still look for...

Other question, isn't better to use encrypt function and send packets directly?
07/27/2013 14:16 Алёна#9
я играю в игру Last Chaos я 162 уровня и уже тяжко качать персонажа мне нужен чит помогите пожалуйста с уважением Алёна
07/27/2013 18:34 destro1#10
Quote:
Originally Posted by Алёна View Post
я играю в игру Last Chaos я 162 уровня и уже тяжко качать персонажа мне нужен чит помогите пожалуйста с уважением Алёна
Use google translator and the .Net Trainer from Show.
07/27/2013 19:26 Алёна#11
вы не поняли мне нужен чит что бы увеличить силу атаки что бы момбы падали с одного или двух ударов в Тарне (Google Translator) это что за чит?

Quote:
Originally Posted by destro1 View Post
Use google translator and the .Net Trainer from Show.
Quote:
Originally Posted by dsfgd View Post
The CNetworkMessage class is a Last Chaos specific class, no other game or tool uses this, you NEED the full engine.dll source code, because you need more then just CNetworkMessage to get it working, it is illegal to post this code, because it's copyright protected.

And yes, for the current EP2 server you need signature (AOB) scans, but also lots of other stuff was changed to protect against my private hack.
помоги пожалуйста
07/27/2013 20:47 dsfgd#12
English:
There is no damage hack!!!
Stop spamming my private messages.

Russian (Google Translate):
Там нет никаких повреждений рубить!
Остановите спам моего личного сообщения.
07/27/2013 21:04 Алёна#13
Quote:
Originally Posted by dsfgd View Post
English:
There is no damage hack!!!
Stop spamming my private messages.

Russian (Google Translate):
Там нет никаких повреждений рубить!
Остановите спам моего личного сообщения.
а где его скачать? (Google Translate) где скачать ссылку можно?

Quote:
Originally Posted by destro1 View Post
Use google translator and the .Net Trainer from Show.
где скачать играю Арбалетчицей Last Chaos очень тяжкий кач нужен чит
09/01/2013 10:56 PizzaGuy#14
Quote:
Originally Posted by dsfgd View Post
English:
There is no damage hack!!!
Stop spamming my private messages.

Russian (Google Translate):
Там нет никаких повреждений рубить!
Остановите спам моего личного сообщения.
There is if we're talking about DPS.