Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 08-02-2009, 09:26 PM
eqwarrior
Sarnak
 
Join Date: Jul 2009
Location: United States
Posts: 40
Question Log - Use of uninitialized value...

I edited most of my quest to do globals the right way, and now I'm getting a new error, just wondering how I can fix it.


Quote:
Use of uninitialized value $qst2700245::qglobals{"qviclevel"} in numeric eq (==) at quests/qrg/Custom_Zones.pl line 139.
Code:
if ($qglobals{qviclevel} == 15 &&  $ulevel == 70)  {
Also I redid one of turn in quest, and getting another error:

Quote:
Use of uninitialized value $qst2700248::itemcount{"99711"} in numeric eq (==) at quests/qrg/Epic_Vendor.pl line 229.
Code:
if ($itemcount{99711} == 1)  {
And I know there are multiple ways of doing item turn ins, but this seemed like the easier and shortest way to do, since I have over 100 possible turn in with elsif with a final else return items.

Any insight how to fix the errors from showing up would be appreciated.
Reply With Quote
  #2  
Old 08-02-2009, 10:03 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

The first one is most likely telling you it is not defined. Before $qglobals, check if defined before checking value.
Code:
if (defined($qglobals{qviclevel}) && $qglobals{qviclevel} == 15 &&  $ulevel == 70)  {
For the second one, it is better to use the plugin.
Code:
if (plugin::check_handin(\%itemcount, 99711 => 1)) {
Reply With Quote
  #3  
Old 08-03-2009, 05:24 AM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Default

Thanks much !!!
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 03:50 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3