Thread: PVP Toggler
View Single Post
  #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