Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Plugins & Mods

Quests::Plugins & Mods Completed plugins for public use as well as modifications.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2015, 05:51 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default Zone Plugins.

These two plugins will allow you to aggro an entire zone on a client or repop an entire zone in a script.

RepopZone (plugin::RepopZone()):
Code:
sub RepopZone {
    quest::clearspawntimers();
    quest::repopzone();
    plugin::Whisper("Zone repopped!");
}
AggroZone (plugin::AggroZone()):
Code:
sub AggroZone {
    my $c = plugin::val('client');
    my $e = plugin::val('entity_list');
    my @n = $e->GetNPCList();
    foreach my $p (@n) {
        if ($p->GetLevel() <= 70) { ## I would recommend changing this if your NPCs go beyond 70.
            $p->AddToHateList($c);
        }
    }
    plugin::Whisper("Zone aggroed, beware!");
}
Here is an example of their uses:
Code:
sub EVENT_SAY {
    if ($text=~/Repop/i) {
        plugin::RepopZone();
    } elsif ($text=~/Aggro/i) {
        plugin::AggroZone();
    }
}
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 03:30 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3