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.

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 10-25-2013, 03:04 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Looks like you many parens?

Nevermind, one was hiding.
Reply With Quote
  #3  
Old 10-25-2013, 03:17 PM
Furniture
Hill Giant
 
Join Date: Aug 2012
Posts: 205
Default

I had forgotten to enable qglobals on npc.. works now
Reply With Quote
Reply


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 01:48 PM.


 

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