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 09-13-2009, 05:34 PM
eqemuross
Hill Giant
 
Join Date: Sep 2008
Location: South Florida
Posts: 100
Default Need some quick hjelp

I basically set a flag for seb, and I want this teleporter NPC to check if they have the flag using quest::has_zone_flag(89); before moving the character there.

If they don't have the flag, I'd want him to say something back to them.

Appreciate any help, thanks.
Reply With Quote
  #2  
Old 09-13-2009, 05:55 PM
eqemuross
Hill Giant
 
Join Date: Sep 2008
Location: South Florida
Posts: 100
Default

Would this work? I have to run out, but Ill test it when I get back....

Code:
if ($text =~/ready/i)
 {
if quest::has_zone_flag(89);
quest::say ("Good luck...");
quest::emote ("opens a portal...");
quest::movepc(89, 235, 0, 41); 
else quest::say ("Please make the trade with Smedy first.");
 }

}
Reply With Quote
  #3  
Old 09-13-2009, 06:41 PM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

This works (ignore the saylink part if you use older rev):
Code:
sub EVENT_SAY {
my $veeshan = quest::saylink("Temple of Veeshan");
my $NPCName = $npc->GetCleanName();

if ($text =~/Hail/i && !quest::has_zone_flag(124)){
	$client->Message(315, "$NPCName whispers to you, 'Hello $name. You have to kill Emperor Sshraeshza to gain access to the Temple of Veeshan.'");
	}
if ($text =~/Hail/i && quest::has_zone_flag(124)) {
		$client->Message(315, "$NPCName whispers to you, 'Good day to you, $name. If you would like to go to the $veeshan, please say so.'");
	$client->Message(6, "$NPCName nods at you.");
	}			
if ($text =~/Veeshan/i && quest::has_zone_flag(124)) {
	quest::say ("Enjoy your adventure!");
	$client->Message(6, "$NPCName casts a spell to translocate you to another place.");
	quest::doanim(42);
	quest::movepc(124, -500,-2100,-36);
	}
}
__________________
Reply With Quote
  #4  
Old 09-13-2009, 07:10 PM
eqemuross
Hill Giant
 
Join Date: Sep 2008
Location: South Florida
Posts: 100
Default

Wow... thank you Lillu!
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 11:31 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