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 04-08-2014, 11:38 AM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default Quest to grant level IF you have a flag

Basically trying to make it so if you have completed a raid tier(and gotten that flag) you're able to get another level.

Just testing, and have confirmed my flag is actually working but cannot get the part after: "if (defined $qglobals{blackburrow_access})" to work.

I'm not exactly sure if this is even the way to do it, I took it from this excerpt in the Seer quest from PoK:

Code:
if($text=~/unlock memories/i) {



		$client->Message(9,"At the moment, your credit is as follows");

		



		if(defined $qglobals{pop_pon_hedge_jezith}) {



			$client->Message(12,"You have spoken to Jezith within the Plane of Tranquility for the Hedge preflag by saying tormented by nightmares.");



			}

		else {

		$client->Message(9,"You have NOT spoken to Jezith within the Plane of Tranquility for the Hedge preflag by saying tormented by nightmares.");

		}
My Code:

Code:
sub EVENT_SAY {
my $level = quest::saylink("level", 1);

if ($text=~/hail/i) {
	
	plugin::Whisper("Greetings $name, I can grant you a [$level] if you have defeated a raid tier.");
	
	}

if ($text=~/level/i) {
	
		plugin::Whisper("You have been granted levels");
			
		if (defined $qglobals{blackburrow_access}) {
		
			quest::level(71);
			plugin::Whisper("This shit is working");
			}
		}
}
Reply With Quote
  #2  
Old 04-08-2014, 03:23 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

Do you have the NPC's qglobals set to 1? Try #npcedit qglobal 1.
Reply With Quote
  #3  
Old 04-08-2014, 04:25 PM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default

Quote:
Originally Posted by Kingly_Krab View Post
Do you have the NPC's qglobals set to 1? Try #npcedit qglobal 1.
That worked, thanks Krab!
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 10:13 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3