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

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 08-09-2008, 06:45 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

Thanks Trevius,

I will actually use this in a modified form on my own server. Any particular reason you used quest::pvp to turn it on but $client->SetPVP to turn it off?
Reply With Quote
  #3  
Old 08-09-2008, 08:55 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Because quest::PVP(off) doesn't work lol. Though, it could be set to use the other way for both.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #4  
Old 08-09-2008, 11:07 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

Lol; well that explains why my script breaks at that point. I will change it to the object instead.
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 09:35 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3