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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-28-2008, 10:29 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default Could use some help with == vs. eq

Here is my zone/player.pl
Quote:
sub EVENT_ENTERZONE
{
if(plugin::check_hasitem($client, 13732))
{
$client->SetPVP(1);
quest::settimer("aggro",20);
$client->Message(257, "A mysterious voice whispers to you, 'I'm coming for you!' ");
}
}

sub EVENT_TIMER
{
if($timername eq "aggro")
{
my $guard_one = $entity_list->GetMobByNpcTypeID(999243);

if ($guard_one)
{
my $hate_guard_one = $guard_one->CastToNPC();
$hate_guard_one->AddToHateList($client, 1);
}
quest::stoptimer("aggro");
}
}
Each time I enter this zone, everything is white and the aggro function does not work. When I look at the log, it gives me this line (several instances of it):
Quote:
[08.28. - 20:02:38] Use of uninitialized value in string eq at quests/eastkarana/player.pl line 14.
When I change the eq operator to == , the aggro function works, but everything is still white. When I look at the log, it gives me this line:
Quote:
[08.28. - 18:17:46] Argument "aggro" isn't numeric in numeric eq (==) at quests/eastkarana/player.pl line 14.
[08.28. - 18:17:46] Use of uninitialized value in numeric eq (==) at quests/eastkarana/player.pl line 14.
I can't seem to win for losing on this. Which is it, and why does the "right" one still give me an error in the log? And why is everything white?
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 03:34 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