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 09-29-2009, 12:06 PM
JDeverkrack
Fire Beetle
 
Join Date: Apr 2009
Location: USA
Posts: 7
Default My buffer need help

I'm new at this, so can anyone lend a hand please. I can't seem to get it to work.
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);
  }
}
Reply With Quote
  #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
  #3  
Old 09-29-2009, 05:05 PM
JDeverkrack
Fire Beetle
 
Join Date: Apr 2009
Location: USA
Posts: 7
Thumbs up Thank you So_1337

It worked great and again I'm new at this.
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 05:46 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3