Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-24-2010, 07:05 PM
Auxie
Fire Beetle
 
Join Date: Mar 2005
Posts: 21
Default Getting a player's PVP status.

Hi Everyone,

In the interest of keeping things brief i'll cut out a snippet of what i'd like to do overall.

I'm interested in having the perl quest return SOMETHING that shows if a player is PVP flagged or if they are NON PVP flagged. Be it a 1 or a 0, true/false no matter.

Here is some super basic code to get an npc to tell you if you are PVP flagged or not. I searched to see what I could find with SetPVP but couldn't find anything and found some GetPVP references in the cpp code. Not sure if this is the right direction or not but would appreciate any help.

Code:
sub EVENT_SPAWN {
me $pvpstatus;
$pvpstatus = $client->GetPVP();

} 
sub EVENT_SAY {

if ($text =~/Hail/i){
	quest::say("Your pvpstatus is $pvpstatus");
    }
}
Thanks.
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 07:21 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