Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

cPacketCreateCharacter Class Reference

User selects to create a new character. More...

#include <packets.h>

Inheritance diagram for cPacketCreateCharacter:

cClientPacket cPacket List of all members.

Public Methods

 cPacketCreateCharacter ()
void receive (NXWCLIENT ps)
 Receive packet from client.


Public Attributes

UI32 pattern1
 is 0xEDEDEDED

UI32 pattern2
 is 0xFFFFFFFF

UI08 pattern3
 is 0x00

string name
 name ( 30 character )

string passwd
 password ( 30 character )

UI08 sex
 sex

UI08 st
 strenght

UI08 dx
 dexterity

UI08 in
 intelligence

UI08 skill1
 first skill

UI08 skill1value
 value of first skill

UI08 skill2
 second skill

UI08 skill2value
 value of second skill

UI08 skill3
 third skill

UI08 skill3value
 value of third skill

eCOLOR skin
 skin color

UI16 hairstyle
 hair style

eCOLOR hair
 hair color

UI16 facialhairstyle
 facial hair style

eCOLOR facialhair
 facial hair color

UI16 location
 // starting location from starting list

UI16 unknown
 unknow

UI16 slot
 account slot

UI32 clientIP
 the IP of client

eCOLOR shirt
 shirt color

eCOLOR pants
 pants color


Detailed Description

User selects to create a new character.

Author:
Endymion
Since:
0.83
Note:
0x00
pattern3 is set to 0xFF to ealy signal a Krioss client user, where it expects a 0xF0| x00 before login confim
Warning:
check for consistency before using information contained
Attention:
Str, dex and int should always sum to 65
Str, dex and int should always be between 10 and 45, inclusive
Skill1, skill2, and skill3 should never be the same value
Skill1value, skill2value, and skill3value should always sum to 100
Skill1value, skill2value, and skill3value should always be between 0 and 50, inclusive
SkinColor should always be between 0x3EA and 0x422, exclusive
HairColor and facialHairColor should always be between 0x44E and 0x4AD, exclusive
Shirt color and Pants color need bounds checking too
Todo:
Add a validate function for check consistecy


Constructor & Destructor Documentation

cPacketCreateCharacter::cPacketCreateCharacter  
 


Member Function Documentation

void cPacketCreateCharacter::receive NXWCLIENT    ps [virtual]
 

Receive packet from client.

Author:
Endymion
Since:
0.83a
Parameters:
ps  the client who send this packet
Attention:
NOT WRITE THE CMD, it's read before

Reimplemented from cClientPacket.


Member Data Documentation

UI32 cPacketCreateCharacter::clientIP
 

the IP of client

UI08 cPacketCreateCharacter::dx
 

dexterity

eCOLOR cPacketCreateCharacter::facialhair
 

facial hair color

UI16 cPacketCreateCharacter::facialhairstyle
 

facial hair style

eCOLOR cPacketCreateCharacter::hair
 

hair color

UI16 cPacketCreateCharacter::hairstyle
 

hair style

UI08 cPacketCreateCharacter::in
 

intelligence

UI16 cPacketCreateCharacter::location
 

// starting location from starting list

string cPacketCreateCharacter::name
 

name ( 30 character )

eCOLOR cPacketCreateCharacter::pants
 

pants color

string cPacketCreateCharacter::passwd
 

password ( 30 character )

UI32 cPacketCreateCharacter::pattern1
 

is 0xEDEDEDED

UI32 cPacketCreateCharacter::pattern2
 

is 0xFFFFFFFF

UI08 cPacketCreateCharacter::pattern3
 

is 0x00

UI08 cPacketCreateCharacter::sex
 

sex

eCOLOR cPacketCreateCharacter::shirt
 

shirt color

UI08 cPacketCreateCharacter::skill1
 

first skill

UI08 cPacketCreateCharacter::skill1value
 

value of first skill

UI08 cPacketCreateCharacter::skill2
 

second skill

UI08 cPacketCreateCharacter::skill2value
 

value of second skill

UI08 cPacketCreateCharacter::skill3
 

third skill

UI08 cPacketCreateCharacter::skill3value
 

value of third skill

eCOLOR cPacketCreateCharacter::skin
 

skin color

UI16 cPacketCreateCharacter::slot
 

account slot

UI08 cPacketCreateCharacter::st
 

strenght

UI16 cPacketCreateCharacter::unknown
 

unknow


The documentation for this class was generated from the following files: SourceForge.net Logo