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
  #3  
Old 08-22-2006, 07:33 AM
Teppen
Banned
 
Join Date: Jan 2002
Posts: 80
Default

sub EVENT_SAY{
quest::emote("hisses at you, its sharp teeth gnashing for your flesh!");
}

the problem is that you have started an event but have not set a trigger to the emote. for this to work properly you would need to use this:
---
sub EVENT_SAY {
if($text=~/hail/i){
quest::emote("hisses at you, its sharp teeth gnashing for your flesh!");
}
}
---
however, say you would like for him to emote if you walk within a certain proximity of him you would use this:
---
sub EVENT_SPAWN {
$x = $npc->GetX();
$y = $npc->GetY();
#Set proximity
quest::set_proximity($x-50,$x+50,$y-50,$y+50);
}

sub EVENT_ENTER {
quest::emote("hisses at you, its sharp teeth gnashing for your flesh!");
}
}
---
you could also if needed target specific whatever's to trigger the EVENT_ENTER like so:
---
sub EVENT_ENTER {
if($class eq "Warrior") && ($level <= 50){
quest::emote("hisses at you, its sharp teeth gnashing for your flesh!");
}
}
---
just gave example above of how you could customize other quests to be triggered by specific whatever's.
---
hope this helps.
Reply With Quote
 


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 06:57 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