Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-25-2013, 03:01 PM
Furniture
Hill Giant
 
Join Date: Aug 2012
Posts: 205
Default qglobal help

I'm not sure what I'm doing wrong. For some reason I am having trouble getting my qglobals properly read. I've done it fine in the past so this is bewildering to me.

Heres an example:
Code:
sub EVENT_SPAWN
{
	
	quest::settimer("boatcheck", 5);
}

sub EVENT_TIMER
{

if(!defined $qglobals{bbtest4})
{
	if($timer eq "boatcheck") {
	quest::shout("TEST");
	
	quest::setglobal("bbtest4", 1, 7, "F");

	}
	}

}
Running this script, an npc repeadetly shouts every 5 seconds, yet there is definitely the bbtest4 global variable entered into my databse so it seems the if(!defined $qglobals{bbtest4}) if where the problem lies.

From what I understand, this code should just result in the npc shouting after the first 5 seconds and then stop. Can anyone recognize what i'm doing wrong?
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 11:02 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