Jump to content

Recommended Posts

Posted

there is any way to send hex packet in client-ip?

smthing like this

 

sendpacket(data, ip);

sendpacket("00 0A 10 22 BA A1 C8", 127.0.0.1);

 

or smthing like this

 

sendpacket(data, window-client)

sendpacket(("00 0A 10 22 BA A1 C8", "Lineage 2")

 

im loking for easy way send packets in client not server, i no have idea how works socket programming, so im loking smthink like this.

 

 

Posted

Actually you need to study a bit of Socket Programming, trust after one or two times its easy.

Anyway I will try to code you a class.

Posted

Serverpackets in Java servers...

 

A Packet Example...

 

protected void writeImpl()
{
	writeC(0xfe);
	writeH(0x39);
	writeD(_type); // 0 - system messages, 1 - your defined text
	writeD(_sysMessageId); // system message id (_type must be 0 otherwise no effect)
	writeD(_position); // message position
	writeD(_unk1); // ?
	writeD(_size); // font size 0 - normal, 1 - small
	writeD(_unk2); // ?
	writeD(_unk3); // ?
	writeD(_effect == true ? 1 : 0); // upper effect (0 - disabled, 1 enabled) - _position must be 2 (center) otherwise no effect
	writeD(_time); // time
	writeD(_unk4); // ?
	writeD(0x00); //TODO: npcString
	writeS(_text); // your text (_type must be 1, otherwise no effect)
}

 

is not that posible without to conect, like some programs send packet in process ...

like l2tower boot..

 

this in c# how can be?

 

Example, lets create packet...

 

Packet ->

 


        string _text = "Whats up ppl";
        int _time = 1000;

void PacketExShowSM()
{
	writeC(0xfe);
	writeH(0x39);
	writeD(1); // 0 - system messages, 1 - your defined text
	writeD(0); // system message id (_type must be 0 otherwise no effect)
	writeD(_position); // message position
	writeD(_unk1); // ?
	writeD(1); // font size 0 - normal, 1 - small
	writeD(_unk2); // ?
	writeD(_unk3); // ?
	writeD(_effect == true ? 1 : 0); // upper effect (0 - disabled, 1 enabled) - _position must be 2 (center) otherwise no effect
	writeD(_time); // time
	writeD(_unk4); // ?
	writeD(0x00); //TODO: npcString
	writeS(_text); // your text (_type must be 1, otherwise no effect)
}

 

And we want send this packet in process-client

smthing like..

 

sendpacket(PacketExShowSM, _processid);

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...