Loading...   


client_packet.cpp
void Client::Handle_OP_DzQuit(const EQApplicationPacket *app) {
	// packet size: 8
	// needs a return to quit
	ExpeditionQuit();
	this->Message(15, "Client::Handle_OP_DzQuit() - Client version: %i, packet size: %i", this->ClientVersion, app->size);
}

client.cpp

void Client::Duck() {
	SetAppearance(eaCrouching, false);
	ExpeditionInfoUpdate();
}

//this never works.
void Client::ExpeditionInfoUpdate()
{
	EQApplicationPacket* outapp = new EQApplicationPacket(OP_DzExpeditionInfo, sizeof(ExpeditionInfo_Struct));
	ExpeditionInfo_Struct *eis = (ExpeditionInfo_Struct*)outapp->pBuffer;
	
	strcpy(eis->expedition_name, "Expedition Info Test Entry");
	strcpy(eis->leader_name, this->GetName());
	eis->max_players = 54;
	FastQueuePacket(&outapp);
	safe_delete(outapp);
}
//this works.
void Client::ExpeditionQuit() {
	EQApplicationPacket* outapp = new EQApplicationPacket(OP_DzExpeditionInfo, sizeof(ExpeditionInfo_Struct));
	ExpeditionInfo_Struct *eis = (ExpeditionInfo_Struct*)outapp->pBuffer;

	strcpy(eis->expedition_name, "Expedition Quit Test Entry");
	strcpy(eis->leader_name, "YouLeft");
	eis->max_players = 54;
	FastQueuePacket(&outapp);
	safe_delete(outapp);
}

Raw Paste Data