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 06-06-2015, 08:43 PM
jpyou127's Avatar
jpyou127
Discordant
 
Join Date: Nov 2005
Posts: 270
Default Plane of Mischief Sphynx Dancers

I am working on getting the sphynx to dance. I have Roxxanne responding to hails and dancing the marinara as well as teaching a PC to dance. I cannot seem to figure out how to call the other 3 in the room to "say" and "doanim"

Here is what I have so far:

Code:
sub EVENT_SAY {
  if ($text=~/hail/i) {
    quest::say("Well hello! We are great dancers. Would you like to see us dance? Or maybe you would like us to teach you to dance?");
	quest::settimer("do_the_marinara", 3);
  }
  elsif($text=~/see you dance/i) {
    quest::say("Hey! Yeah! Do the Marinara!");
	quest::doanim(33)
  }
  elsif($text=~/teach me dance/i) {
    quest::say("Look at you! You can dance! Go, go, go! That's the spirit, you got it! Keep up the good work! Don't get too tired now, you are looking a little pale!");
	quest::selfcast(1246)
  }	
}	
sub EVENT_TIMER{
    if($timer eq "do_the_marinara"){
       my @nlist = $entity_list->GetNPCList();
        foreach my $n (@nlist){
			if($n->GetMob()=Roxxanne){
                $n->Say("Hey! Yeah! Do the Marinara!");
                $n->DoAnim(33);
			}
            if($n->GetMob()=Ashley){
                $n->Say("Hey! Yeah! Do the Marinara!");
                $n->DoAnim(33);
            }
            if($n->GetMob()=Brittina){
                $n->Say("Hey! Yeah! Do the Marinara!");
                $n->DoAnim(33);
            }
			if($n->GetMob()=Diana){
                $n->Say("Hey! Yeah! Do the Marinara!");
                $n->DoAnim(33);
        }
        quest::stoptimer($timer);
    }
}
I realize I have Roxxanne emoting 2 times. Just trying to determine if I am going about this the right way or the wrong way. I am learning the scripting as I go along also


Peyton
Reply With Quote
 

Tags
dancers, mischief, npc, pearl, scripting

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 11:39 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 - 2019, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3