Korvacs,
I added some new command called /hair, and i tried to fixed it with CoEmu version's command/packets and its works, likes /hair <hair id>. I guess u're still remember it "the CoEMU codes". Well, can you list all the hair ids? Plus, the hair codes is easy to code, well its in your "Character packet" structures, and im sure you know
Edit: haha nvm, already found it.. which u added in coemu forum last time =)
Code:
10 - 15, 21 - 25, 30 - 41
thats all of the styles,
colours are 3 - 9
Edit: But finally, i fixed the command to /hair <color> <style id> lol.. Now trying to help you by giving some clues of guild implemention.
Code:
public static byte[] setGuild(Character _char)
{
byte[] packGuild = new byte[0x0f];
packGuild[0x00] = 0x0f; //packet lenght... easy... idk...s 20 00 F4 03
packGuild[0x01] = 0x00;
packGuild[0x02] = 0xf7;
packGuild[0x03] = 0x03;
packGuild[0x04] = (byte)(_char.CharID & 0xff);
packGuild[0x05] = (byte)((_char.CharID >> 8) & 0xff);
packGuild[0x06] = (byte)((_char.CharID >> 16) & 0xff);
packGuild[0x07] = (byte)((_char.CharID >> 24) & 0xff);
packGuild[0x08] = 0x03; //03 01 0c
packGuild[0x09] = 0x01;
packGuild[0x0a] = 0x04;
/*for (int x = 0; x < _tempGuild.Length; x++)
{
packGuild[11 + x] = Convert.ToByte(_tempGuild[x]);
}*/
string testGuild = "ABCD";
packGuild[0x0b] = Convert.ToByte(testGuild[0]);
packGuild[0x0c] = Convert.ToByte(testGuild[1]);
packGuild[0x0d] = Convert.ToByte(testGuild[2]);
packGuild[0x0e] = Convert.ToByte(testGuild[3]);
return packGuild;
}
This is the one I implemented by reading some co logs, but doesnt worked, but the packets was succesfully sent without any errors (such as different size or etc.).. maybe there's some clues? Did I set the wrong packet or something else? any idea? Below was the logs from Qonquer packets, which Cafe|Qonquer appear infront of my screen, so recorded this logs...
Code:
Server to Client - Length:25 PacketID:0x3f7
19 00 f7 03 5e 02 00 00 03 01 0c 43 61 66 65 7c ; ....^......Cafe|
51 6f 6e 71 75 65 72 00 00 ; Qonquer..