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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2008, 06:55 PM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Question PvP Rewards, Events, and QGlobals

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.
Reply With Quote
  #2  
Old 05-16-2008, 07:42 PM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Default

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.
Reply With Quote
  #3  
Old 05-17-2008, 08:47 AM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

From zone/questmgr.cpp:
Code:
  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.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #4  
Old 05-17-2008, 02:02 PM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Default

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.
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 11:35 PM.


 

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