Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-05-2008, 04:53 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default PVP Toggler

This quest is pretty straight forward and simple. But, I figured some people might like to have it if they ever run PVP events on their server. I know it is a pain for players that accidentally get left in PVP mode, so this quest takes care of that.

Code:
#pvp Toggler

sub EVENT_SAY {

 if($text=~/hail/i) {
      quest::say("I can change your Player vs. Player status if you wish.  Just ask if you would like it set to [on] or [off].  I will fill out all of the formal paperwork for you to change your registration in the PVP events."); }

  if ($text =~/^on$/i) {
    quest::say ("You are now set for Player vs. Player combat!  Beware of anyone who may like to see you dead!");
    quest::pvp(on);
$client->Message(15, "Your PVP Flag has been enabled!"); }

  if ($text =~/^off$/i) {
    quest::say ("You are no longer set for Player vs. Player combat.  You can let your guard down.");
$client->SetPVP(0);
$client->Message(15, "Your PVP Flag has been disabled."); }

}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
 


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 10:45 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