View Single Post
  #2  
Old 09-29-2009, 12:23 PM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

Try this one:

Code:
sub EVENT_SAY {
 if(($text=~/Hail/i)&&($ulevel<=59)) {
  quest::say("Greetings $name. Would you like me to cast some [buffs] on you?");
 }
 elsif(($text=~/buffs/i)&&($ulevel>=1)&&($ulevel<=45)) {
  quest::say("There you go $name, now off with you.");
  quest::selfcast(3692);
  quest::selfcast(11545);
  quest::selfcast(159);
  }
 elsif(($text=~/buffs/i)&&($ulevel>=46)&&($ulevel<=59)) {
  quest::say("There you go $name, now off with you.");
  quest::selfcast(3467);
  quest::selfcast(11545);
  quest::selfcast(457);
  quest::selfcast(430);
  }
 elsif(($text=~/Hail/i)&&($ulevel<=75)) {
  quest::say("Greetings $name. I believe you are tough enough, I will give you my [blessing].");
 }
 elsif(($text=~/blessing/i)&&($ulevel>=60)&&($ulevel<=69)) {
  quest::say("There you go $name, now off with you.");
  quest::selfcast(5257);
  quest::selfcast(11545);
  quest::selfcast(457);
  quest::selfcast(5350);
 }
 elsif(($text=~/blessing/i)&&($ulevel>=70)&&($ulevel<=75)) {
  quest::say("There you go $name, now off with you.");
  quest::selfcast(9732);
  quest::selfcast(11545);
  quest::selfcast(457);
  quest::selfcast(9859);
 }
}
In class, so I can't test, but that should work. You had an extra { above the "Greetings $name. I believe you are tough enough, I will give you my [blessing]" line.

Hope you don't mind that I changed your formatting a bit, but it made it easier for me to check through.
Reply With Quote