EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   Repeated Zone log error. (https://www.eqemulator.org/forums/showthread.php?t=40412)

jpyou127 02-17-2016 04:28 PM

Repeated Zone log error.
 
I am getting this zone error (steamfont):

Code:

[02-17-2016 :: 15:22:52] [Quests] Use of uninitialized value $qst_npc_56105::targetname in pattern match (m//) at quests/steamfont/Cargo_Clockwork.pl line 50.
56105 refers to the NPC Cargo Clockwork.

I have a memory leak and I think it maybe coming from this zone in conjunction with this error.

Line 50-51 of the perl script is:

Code:

if ($targetname=~/highway_bandit/i) {
    $npc->WipeHateList();


Any ideas?


Celestial

NatedogEZ 02-17-2016 06:13 PM

That quest error is just because the timer is triggering and the npc doesn't have a target. So $targetname is uninitialized.. and comparing it to another value is a warning.

Change to... if you don't want to see the error a bunch of times :)

Code:

if ($npc->GetTarget() && $targetname=~/highway_bandit/i) {
    $npc->WipeHateList();
}


jpyou127 02-18-2016 12:44 PM

Thank you sir! Will give this a go!

Celestial


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

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.