// *************************************************************** // Function: CheckRPGCharacterCreate.cpp // *************************************************************** #include "Main.h" //************************************ // Name: CheckCharacterCreate // // Check if the player is a creating a character. Will send data required for character creation. // // Parameters: // pLir - Player's data // // Return: // //************************************ void CheckCharacterCreate(PLAYER_DATA* pLir) { //check for RPG character creation if (pLir->pCharCreate!=NULL && pLir->establishedEncryptedConnection) { //respond with the first two packets if (pLir->pCharCreate->step==0) { NetMessage s; s.networkId=pLir->networkId; //build the directory name char file[200]; sprintf(file, "Data/Packets/CharacterCreation/"); gPacketManager.DirSwitch(file); while((s.pData=gPacketManager.GetData("Data1", &s.dataSize, 2920))!=NULL) { gpGameServer->SendData(&s); } pLir->pCharCreate->step++; } } }