View Single Post
  #3  
Old 10-18-2011, 10:13 PM
Emmeric
Sarnak
 
Join Date: Aug 2011
Posts: 72
Default

I made the guards a quest mob where each are Hail-able and send you by port to a /loc up or down.

Took about 20 minutes.

Code:
#npc - Gfaydark Guard Protectors
#zone - Gfaydark
#by Angelox

sub EVENT_COMBAT {
   if($combat_state == 1) {
   quest::say("For the defense of Kelethin!!");
   }
}
sub EVENT_SAY {
      if($text=~/hail/i) {
        quest::say("Need to get up to [Kelethin]?");
      }
      if($text=~/kelethin/i) {
        quest::emote("begins to cast a spell.");
        quest::selfcast(25003); #Teleport Gfay kelethin
      }
}

sub EVENT_SIGNAL {
   quest::say("For the protection of all Fier'Dal, there shall be no mercy for your kind.");
}
Copied a port spell already existing and changed the parameters to be Gfay and the loc I wanted.

Three lifts, 6 different new spells (up and down). Wasn't that hard.

As to the lifts, apparently they only work going down, but not up. Known issue.
Reply With Quote