Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2010, 06:51 PM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default quest::delglobal();

Does quest::delglobal(); still work?

All examples of usage I have seen show it being used like this:

quest::delglobal([varname]);

Now if that is true then this should work:

Test.pl
Code:
sub EVENT_SAY {

if($text=~/Hail/)
	{
	quest::setglobal("Hailed_NPC", 1, 5, "F");
	$client->Message(4,"You receive character flag....Hailed_NPC");
	quest::setglobal("Hailed_NPC_2", 1, 5, "F");
	$client->Message(4,"You receive character flag....Hailed_NPC_2");
	$client->Message(4,"If you ask me to [remove these character flags] and I will do so.");
	}
if($text=~/remove these character flags/)
	{
		quest::delglobal("Hailed_NPC");
		$client->Message(4,"The character flag Hailed_NPC has been removed.");
		quest::delglobal("Hailed_NPC_2");
		$client->Message(4,"The character flag Hailed_NPC_2 has been removed.");
	}
}
The problem is that script doesn't completely work...it stops at quest::delglobal("Hailed_NPC");

I have also tried writing it like this quest::delglobal(Hailed_NPC); and quest::delglobal([Hailed_NPC]); but I end up with the same result everytime.

I can comment out the quest::delglobal(); and it will work flawlessly. I can create and mofify qglobals but I can not delete them. I made sure to set the qglobal field for the npc so I know that isn't it.

What I am missing or doing wrong?
Reply With Quote
  #2  
Old 11-19-2010, 03:02 PM
steve
Discordant
 
Join Date: Jan 2002
Posts: 305
Default

Did you try a global name that does not have an underscore?

Searching of older posts show that you are using the syntax correctly.
Reply With Quote
  #3  
Old 11-19-2010, 04:09 PM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default

Turns out it was the underscores that caused it not to work. That is odd because both setglobal and targlobal work when using underscores. Thanks for the help.
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 05:37 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