PDA

View Full Version : PvP Rewards, Events, and QGlobals


thepoetwarrior
05-16-2008, 06:55 PM
Im looking at making a pvp event similar to the movie "Battle Royal" in just one zone.

I figure making a Player.pl to turn on players pvp flag for that zone, and a default Player.pl for all other zones that turn off pvp.

What I need some a variable or qglobal for when a player kills another player. Maybe even an EVENT trigger so I make make penalty of my choice such as quest:level($ulevel -= 1) for each time a player dies to slow down any exploiting of someone 2boxing for pvp rewards.

Another thing that would help is being able to specify an item reward when you 'loot' the players corpse, like on Sullon Zek where a player would get a token for a reward of the kill. Then I could have players make X number of player kills and hand in items looted for reward.

Any ideas or help would be appreciated.

thepoetwarrior
05-16-2008, 07:42 PM
Well quest::pvp(on); works but not off. Also tried with quotes. Tried both on Player.pl and off an npc.pl and cant get someones pvp flag to turn off, only on.

AndMetal
05-17-2008, 08:47 AM
From zone/questmgr.cpp (http://eqemulator.cvs.sourceforge.net/eqemulator/EQEmuCVS/Source/zone/questmgr.cpp?view=markup#l_687):

687 void QuestManager::pvp(const char *mode) {
688 if (!strcasecmp(mode,"on"))
689 if (initiator)
690 initiator->SetPVP(true);
691 else
692 if (initiator)
693 initiator->SetPVP(false);
694 }


As long as it's something other than on (case insensitive), it should set to false. The only thing I can think of offhand is if it has to do with how the quest is called, referencing to initiator.

thepoetwarrior
05-17-2008, 02:02 PM
I've tried thru Player.pl on EVENT_ENTERZONE and also thru NPC_ID.pl when hailed in EVENT_SAY.

I've tried with and without quotes. Im at a loss how to turn off pvp flag. Running most current windows binary.