View Single Post
  #1  
Old 08-12-2011, 02:28 AM
Ignorance
Fire Beetle
 
Join Date: Jun 2006
Location: baconland
Posts: 14
Default Problem encountered when several mobs are polling a global...

Here is the error text I get when the server is run.

Quote:
[Quest] Use of uninitialized value $qst999175::qglobals{"FightClubFreeportController" } in int at quests/freporte/LocalController.pl line 46.
Three NPCs from three different zones are polling qglobals{"FightClubFreeportController"} every 5 seconds.
One NPC reads the value fine; the other two don't.

They all run the same script, and here is line 46...
Code:
$controller = int($qglobals{FightClubFreeportController});
From what I can gather, whichever NPC spawns first somehow takes control of $qglobals{FightClubFreeportController}.

$qglobals{FightClubFreeportController} is defined, well before any of the accessing NPCs spawn, as...
Code:
quest::setglobal( "FightClubFreeportController", 1, 7, "F" );
Any thoughts are welcome.
I can drop the related scripts if requested.
Reply With Quote