Welcome message thru proxy

10/01/2015 16:48 ​Goofie​#16
Wait wait... Really?
People do not see the mistake? 0x7001 is the charname packet, you need to send it when he enters the game world.

When this packet sent (0x3012):
Send welcome message.

Correct char entering
Code:
string charname = string.Empty; < should be declared outside the loop

if(_pck.blabla == 0x7001) {
this.charname = _pck.ReadAscii();
}
Also if you wanna send a PM, the function should be like this:
Code:
            Packet packet = new Packet(0x3026);
            packet.WriteUInt8((byte)2); < DECLARES PM
            packet.WriteAscii("MyBOT"); < FROM
            packet.WriteAscii("MESSAGE HERE"); < MESSAGE
For notice it should be:
Code:
            Packet packet = new Packet(0x3026);
            packet.WriteUInt8((byte)7); < DECLARES NOTICE
            packet.WriteAscii("HELLO BOY"); < MESSAGE
So in order to get it correctly working:
Code:
public bool startnotice = false; < THIS SHOULD NOT BE DECLINED INSIDE THE LOOP OR FOREACH VARIABLE, REMEMBER THIS.

if(_pck.blabla == 0x3012 && (!this.startnotice)) {

this.SendPM("Hello u made it, gg wp");
this.startnotice = true;

}
10/02/2015 02:29 Isoline*#17
Quote:
Originally Posted by ​Goofie​ View Post
Wait wait... Really?
People do not see the mistake? 0x7001 is the charname packet, you need to send it when he enters the game world.

When this packet sent (0x3012):
Send welcome message.

Correct char entering
Code:
string charname = string.Empty; < should be declared outside the loop

if(_pck.blabla == 0x7001) {
this.charname = _pck.ReadAscii();
}
Also if you wanna send a PM, the function should be like this:
Code:
            Packet packet = new Packet(0x3026);
            packet.WriteUInt8((byte)2); < DECLARES PM
            packet.WriteAscii("MyBOT"); < FROM
            packet.WriteAscii("MESSAGE HERE"); < MESSAGE
For notice it should be:
Code:
            Packet packet = new Packet(0x3026);
            packet.WriteUInt8((byte)7); < DECLARES NOTICE
            packet.WriteAscii("HELLO BOY"); < MESSAGE
So in order to get it correctly working:
Code:
public bool startnotice = false; < THIS SHOULD NOT BE DECLINED INSIDE THE LOOP OR FOREACH VARIABLE, REMEMBER THIS.

if(_pck.blabla == 0x3012 && (!this.startnotice)) {

this.SendPM("Hello u made it, gg wp");
this.startnotice = true;

}
Thanks for the help but i had a problem with my overall proxy regardless of what you mentioned above as i was migrating the socket server to async, was merely a mistype mistake lol, got stuck for hours >.>
10/02/2015 10:57 ​Goofie​#18
Quote:
Originally Posted by eitai123 View Post
Thanks for the help but i had a problem with my overall proxy regardless of what you mentioned above as i was migrating the socket server to async, was merely a mistype mistake lol, got stuck for hours >.>
If you need future help, contact me young padawan<3
11/04/2015 14:19 trickish#19
good