View Single Post
  #1  
Old 03-19-2004, 07:35 AM
mByte
Hill Giant
 
Join Date: Feb 2002
Posts: 206
Default Adventure Recruters - start

no idea if this is in the code yet, but form what I got off cvs it wasnt. I added this in, it only allows you to pop-up the window for the request to get a adventure. I was going to post it when i completed but I got stuck trying to get text in the box when it poped up. *I keep getting a binary string rather then characters*

eq_packet_structs.h
Code:
//mByte : just tossed this in here
struct AdventureRecruterStruct {
	/* 001 */ int32 unknown1;
};
classes.h
Code:
#define LDONADVRECRUTER		60 //mByte
eq_opcodes.h
Code:
//mByte : LDoN attempt
/* Adventures Begin */
// Adventure Recruter
/* 699 */ #define OP_AdventureRecruterRequest		0x02bb //mByte
/* 700 */ #define OP_AdventureRecruterResponse		0x02bc //mByte

// Adventure Stats
/* 751 */ #define OP_AdventureStats					0x02ef //mByte
/* 752 */ #define OP_AdventureLeaderBoard			0x02f0 //mByte

// Adventure Merchants
#define	OP_AdventureMerchantRequest		0x02d4
#define	OP_AdventureMerchantResponse	0x02d5
#define	OP_AdventureMerchantPurchase	0x02d6
#define	OP_AdventurePointsUpdate		0x02e6

/* Adventure End   */
client_process.cpp
Code:
case OP_AdventureRecruterRequest: //mByte LDoN Code
{
APPLAYER *outapp = new APPLAYER(OP_AdventureRecruterResponse, sizeof(AdventureRecruterStruct));
AdventureRecruterStruct* advRecruter = (AdventureRecruterStruct*)outapp->pBuffer;
     //TODO: 
     //     Figure out how to allow 1 person to get missions w/out group
     //     Figure out how to get my message to be readable and not gibberish machine looking code.

     advRecruter->unknown1 = 0x02FF;
 
					
     QueuePacket(outapp);
     safe_delete(outapp);

break;
}
mob.cpp
Code:
	else if (ns->spawn.class_ == LDONADVRECRUTER)
		strcpy(ns2->spawn.last_name, "Adventure Recruter") //mByte
I am toying with the idea that the missions text and configuration should be stored in xml, but seeing everything is already in a database I guess it would make sence to just stick with that.

laters,
__________________
mByte
Reply With Quote