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);

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..