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.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2003, 09:24 PM
used_pawn
Sarnak
 
Join Date: Apr 2003
Posts: 53
Default Added fix to givecash() in quests

The function givecash() was not working correctly (coin type was backwards, no platinum given, no messages) so, as it started to annoy me, hehe, i fixed it.

at line 866 or thereabouts, replace entire else if () {} statement for givecash() function with this:

../zone/parser.cpp : line 866

Code:
			else if (strstr(strlwr(arglist[0]),"givecash")) {
				APPLAYER* outapp = new APPLAYER(OP_MoneyOnCorpse, sizeof(moneyOnCorpseStruct));
				moneyOnCorpseStruct* d = (moneyOnCorpseStruct*) outapp->pBuffer;
		
				d->response		= 1;
				d->unknown1		= 0x5a;
				d->unknown2		= 0x40;
				d->unknown3		= 0;
				if (mob->IsClient()) { 
					d->copper		= atoi(arglist[1]);
					d->silver		= atoi(arglist[2]);
					d->gold			= atoi(arglist[3]);
					d->platinum		= atoi(arglist[4]);
					mob->CastToClient()->AddMoneyToPP(d->copper, d->silver, d->gold, d->platinum,true);
					mob->CastToClient()->QueuePacket(outapp); 
					if(d->platinum>0) mob->CastToClient()->Message(MT_Emote,"You recieve %i platinum pieces",d->platinum);
					if(d->gold>0) mob->CastToClient()->Message(MT_Emote,"You recieve %i gold pieces",d->gold);
					if(d->silver>0) mob->CastToClient()->Message(MT_Emote,"You recieve %i silver pieces",d->silver);
					if(d->copper>0) mob->CastToClient()->Message(MT_Emote,"You recieve %i copper pieces",d->copper);
				}
				delete outapp;
			}
The textcolor MT_Emote might be wrong, but it looks correct to my memory, heh.
Reply With Quote
  #2  
Old 06-20-2003, 02:51 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Thanks... Should be available in cvs
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #3  
Old 06-20-2003, 07:21 AM
used_pawn
Sarnak
 
Join Date: Apr 2003
Posts: 53
Default

Thanks!
I also updated my locked doors code, if ya didnt see it.
hmm...maybe next I'll work on...fishing?
Reply With Quote
Reply


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 05:22 PM.


 

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