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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 05-14-2004, 01:49 PM
m0oni9
Hill Giant
 
Join Date: Dec 2003
Posts: 166
Default

I haven't checked the accuracy of this, but the variables ($platinum, etc) may be undefined. If that is true, the following may help you out (replace your current four lines). It will assure that none of the $myMONEY variables are undefined.

Code:
$myplatinum = (defined($platinum) ? $platinum : 0);
$mygold = (defined($gold) ? $gold : 0);
$mysilver = (defined($silver) ? $silver : 0); 
$mycopper = (defined($copper) ?  $copper : 0);
edit: I didn't thoroughly read your problem! I think that all you should need to do is add a condition (on the "if ($itemcount.." line) to see if they handed any money also. After you've healed then, you could just return from the sub.
Reply With Quote
 


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 12:45 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