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 08-22-2006, 04:05 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default I need help with some quests

Code:
# Raid event for #Garudon (109107)
# Angelox


sub EVENT_SAY { 
if($text=~/Hail/i){
quest::say("Traveler, you must help me. I have been tortured in this city for generations. The mark of Kylong adorns the walls of the theater that houses my remains. These markings are preventing me from passing into the theater and rejoining with my body so that I may pass on in peace. If you can reclaim four samples and return them to me, it may be enough to draw power from. With this power I will pass into the theater and rejoin my body and rest in peace. You do this for me, the torture of eternal capture is more than I can bear.");
 }
}

sub EVENT_ITEM {
 if ($itemcount{65574} == 4){
  quest::spawn2(109107,0,0,-142.884,-120.265,18.226,189.875);
  quest::me("As you place the remains of the dragon on the ground, a cold draft fills the air. Suddenly in a great vortex, the bones begin to rise up and move carried by the wind. They jut through the air and come down inside of the nearby theater. You hear the faint sound of bones clanking together, which is then followed by a massive moan. A sharp bolt of fear trickles up your spine as you feel anticipation fill the air.");
  quest::depop();
 }
}

# EOF zone: Veksar NPCs:#Garudon (109107)
This works ok, but on the quest::me part , it still includes the "say" text as in quest::say.
example: Spirit of Garudon says, "As you place the remains of the dragon...", instead of whats needed "As you place the remains of the dragon..." - What am I doing wrong here?



Code:
# Angelox

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

sub EVENT_DEATH{
 quest::delglobal("rage");
 quest::setglobal("rage","2","3","F");
 $rage=undef;
}

# EOF zone: veksar NPCs: spawn a_raging_bloodgill_goblin (109093)
I can't get the quest::emote part of this to work - he says nothing, but the rest of the script is working. I also tried quest::say and quest::me with same results.
Reply With Quote
  #2  
Old 08-22-2006, 05:22 AM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

Quote:
Originally Posted by Angelox
Code:
# Angelox

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

sub EVENT_DEATH{
 quest::delglobal("rage");
 quest::setglobal("rage","2","3","F");
 $rage=undef;
}

# EOF zone: veksar NPCs: spawn a_raging_bloodgill_goblin (109093)
I can't get the quest::emote part of this to work - he says nothing, but the rest of the script is working. I also tried quest::say and quest::me with same results.

This might be the way to go with that one? You have what he is supposed to do but you have no trigger for it.
Code:
sub EVENT_ATTACK { 
quest::emote("hisses at you, its sharp teeth gnashing for your flesh!"); }
Reply With Quote
  #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
  #4  
Old 08-22-2006, 07:57 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Thanks a ton for your help - this one is fixed with this;
Code:
sub EVENT_ATTACK{
 quest::emote("hisses at you, its sharp teeth gnashing for your flesh!");
}

sub EVENT_DEATH{
 quest::delglobal("rage");
 quest::setglobal("rage","2","3","F");
 $rage=undef;
}

# EOF zone: veksar NPCs: spawn a_raging_bloodgill_goblin (109093)
since this is a "spawn on death" event , He always comes out "hissing" at me.

Still i have the problem with the quest::me coming out as a quest::say - I wonder if quest::me is working?
Reply With Quote
  #5  
Old 08-22-2006, 08:39 AM
Aramid
Discordant
 
Join Date: May 2006
Posts: 356
Default

It appears that quest::me and quest::echo are coming out the same way as quest::say. Always starting the line with NPC_NAME says.
Reply With Quote
  #6  
Old 08-22-2006, 10:47 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Quote:
Originally Posted by Aramid
It appears that quest::me and quest::echo are coming out the same way as quest::say. Always starting the line with NPC_NAME says.
Thanks - I guess I'll have to settle for what I have. maybe it will get fixed later.
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 03:41 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