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 12-29-2010, 03:01 AM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default

Quote:
Originally Posted by joligario View Post
You may be looking for something like this? (Not tested)

Code:
sub EVENT_SAY {
  if (($text=~/hail/i) && ($ulevel<=60)) {
    quest::say("Sorry $name, your level is too low for my buffs.");
  }
  elsif (($text=~/hail/i) && ($ulevel=>61)) {
    my $Group = $client->GetGroup();
    if ($Group) {
      my $Valid = 1;
      for ($count = 0; $count < $Group->GroupCount(); $count++) {
        if ($Group->GetMember($count)-GetLevel() < 61) {
          $Valid = 0;
         }
      }
      if ($Valid == 1) {
        quest::say("Incoming Gallantry for $name's group.");
        $Group->CastGroupSpell($npc, 18323);
      }
      else {
        quest::say("Sorry $name, someone's level in your group is too low for my buffs.");
      }
    }
    else {
      quest::say("Incoming Gallantry for $name");
      quest::selfcast(18248);
    }
  }
}
Thank you joligario. I was just testing this out. The script will cast a single
buff on a toon 61+ when he's not grouped, and also give the "too low"
message to a lower toon that hails, but it won't cast the group buff, or
give any response, no matter what level the toons are in the group.
If the lower toon in the group hails, it gives the right message, but if the
61 toon hails, the npc won't cast or give any response.
I tried it with group toons, lvl 61 and 62, and the npc would not respond
or cast either.
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:44 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