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 01-15-2018, 05:16 AM
N0ctrnl's Avatar
N0ctrnl
Discordant
 
Join Date: Jan 2007
Posts: 443
Default

It's been a long while, but since I never posted how I actually did this, I figure it might be a good time to do that.

Here's the solution I came up with. Basically it runs a timer all the time for the PAL/CLR class and clears the Yaulp buffs (by ID) when those classes sit. It's probably not real efficient, but it does work.

In quests/global/global_player.pl

Code:
sub EVENT_ENTERZONE {
  if($class eq "Cleric" || $class eq "Paladin") {
    quest::settimer("yaulp",2);
  }
}

sub EVENT_TIMER {
  if ($timer eq "yaulp") {
    quest::stoptimer("yaulp");
    if ($client->IsSitting() && ($client->FindBuff(3186) || $client->FindBuff(2326) || $client->FindBuff(1534) || $client->FindBuff(210) || $client->FindBuff(44) || $client->FindBuff(43))) {
      $client->BuffFadeBySpellID(3186);
      $client->BuffFadeBySpellID(2326);
      $client->BuffFadeBySpellID(1534);
      $client->BuffFadeBySpellID(210);
      $client->BuffFadeBySpellID(44);
      $client->BuffFadeBySpellID(43);
    }
    quest::settimer("yaulp",1);
  }
}
__________________
Ender - Lead GM/Developer
Vegarlson Asylum Server - http://www.vegarlson-server.org/
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 04:56 AM.


 

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