View Single Post
  #32  
Old 10-22-2006, 03:08 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Quote:
Originally Posted by fathernitwit
we added EVENT_NPC_SLAY a while back for when an NPC kills another NPC, so that would prolly cut it.
This is nice - I'm working off an old Lexicon manual, this wasn't there at they time it was made I guess. I'll try it out in a while.

Quote:
Originally Posted by fathernitwit
as im looking at EVENT_ATTACK, the code is only doing it when the NPC is attacked, as you stated. Im almost wondering if that functionality mihgt be useful to somebody sometime... so im thinking about adding an EVENT_COMBAT which would trigger when an NPC starts "combat" mode, which would be defined as somebody attacking the NPC, or being attacked by the NPC in any manner, or the NPC having somebody on their hate list (in case they are running away or something), and would wear off like 12 seconds after neither of those actions were true... what do you think?
This would be a great idea - In my case EVENT_NPC_SLAY is a solution, but the real answer would be something like EVENT_COMBAT.

Also, while working on big events I noticed I couldn't get the mob to make a zone wide "ooc" or emote. example;
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)
I was hoping for the quest::me to go out zone wide, but it stays as a "say". Again, I tried the other commands i found in the Lexicon, but I guess it's outdated and maybe theres something I can use?
Reply With Quote