View Single Post
  #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