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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes

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 04:19 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