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