Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 04-23-2002, 01:12 PM
Malevolent
Hill Giant
 
Join Date: Mar 2002
Posts: 171
Default

This might be considered authentic verant. I turned in jboots and got a bronze claymore. Dah. :P

Rewards snippet -- replace the obvious below with this update. Also may need

client_process.cpp
Code:
if (tmp->IsNPC()) { 
										if (TradeList[0]==tmp->CastToNPC()->GetItemRequested()) {
											
											this->Message(MT_Say, "%s says, 'Thank you for your hard work!'", tmp->GetName());
											
											if (tmp->CastToNPC()->GetMaster() !=0)
												this->Message(MT_Say, "%s says, 'I'm sure %s will look kindly upon this act'", tmp->GetName(), entity_list.RemoveNumbers(tmp->CastToNPC()->GetMaster()));
											uint32 somenum=rand()%32531;
											Item_Struct* award_item = database.GetItem(somenum);
											if (award_item->name!=0) {
												this->Message(MT_Emote, "%s opens a small box and hands you a %s'", tmp->GetName(), award_item->name);
												this->Message(MT_Say, "%s says, 'I hope you enjoy it!'", tmp->GetName());
												this->PutItemInInventory(0,award_item);
											} else {
												this->Message(MT_Say, "%s says, 'I haven't anything spare, but maybe you'll have learned something.'", tmp->GetName());
												this->AddEXP(somenum*10);
											}

										} else {
											
											this->Message(MT_Emotey, "%s looks oddly at what you just handed them.'", tmp->GetName());
										}
										CheckQuests(zone->GetShortName(), "%%item%%", tmp->CastToNPC()->GetNPCTypeID(), TradeList[0]); 

									}
npc.cpp::process

Code:
	if (this->MerchantType>0) 
		if (rand()%650==2){
			uint32 someitem = rand()%32531;
			Item_Struct* item = database.GetItem(someitem);
			
			if (item->name!=0) 
			if (rand()%2==0) {
				
				entity_list.Message(0,MT_Auction, "%s auctions, 'WTS %s'", GetName(), item->name);

			} else {
				this->SetItemRequested(someitem);
				entity_list.Message(0,MT_Auction, "%s auctions, 'WTT %s'", GetName(), item->name);
			}
			//else WTB
		}
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:38 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3