Okay, so my friend was bugging me on MSN about the face packet for NPC's. I decided to shut him up and write it, before that I checked ePvP to see if anyone had released it yet; they had. However, those who released it knew nothing about the packet; not even to offset.
What am I talking about? For example, someone released this code:
People say, well it worked; so what's wrong with it? They didn't read THE DAMN PACKET!
The offset of the image to the actual directory, as per the client; is 11.
They put:
For BoxerLi.. First off, that's the incorrect image ([Only registered and activated users can see links. Click Here To Register...]); Secondly, that image didn't even show up, this one did ([Only registered and activated users can see links. Click Here To Register...])
This is because they didn't take into account the offset of 11, so they got an incorrect image; on top of their incorrect code. The correct code would be:
So
Actually gives ([Only registered and activated users can see links. Click Here To Register...])
Also, the correct image is ([Only registered and activated users can see links. Click Here To Register...]) to my knowledge, anyway.
Feel free to use that graphic list for finding the right face for your NPC's, that's why I made it.
@programmers: Look up a packet before you post code, k? </rant>
What am I talking about? For example, someone released this code:
Code:
public static void Face(int Face, ClientSocket CSocket)
{
CSocket.Send(ConquerPacket.NPCTalk(2544, Face, 255, 4));
}
The offset of the image to the actual directory, as per the client; is 11.
They put:
Code:
Face(30, CSocket);
This is because they didn't take into account the offset of 11, so they got an incorrect image; on top of their incorrect code. The correct code would be:
Code:
public static void Face(int Face, ClientSocket CSocket)
{
CSocket.Send(ConquerPacket.NPCTalk(2544, Face + 11, 255, 4));
}
Code:
Face(30, CSocket);
Also, the correct image is ([Only registered and activated users can see links. Click Here To Register...]) to my knowledge, anyway.
Feel free to use that graphic list for finding the right face for your NPC's, that's why I made it.
@programmers: Look up a packet before you post code, k? </rant>