PDA

View Full Version : Repeated Zone log error.


jpyou127
02-17-2016, 04:28 PM
I am getting this zone error (steamfont):

[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:

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 :)


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