Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-13-2014, 12:05 PM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,290
Default

You need Character:LeaveCorpses enabled
LeaveNakedCorpses is only applicable in that case if they are below the DeathItemLossLevel, guess it really depends on how you want the server setup.

if(RuleB(Character, LeaveCorpses) && GetLevel() >= RuleI(Character, DeathItemLossLevel) || RuleB(Character, LeaveNakedCorpses))
{

the PVPreward value can be:

3 = uses pvp item set in PvPitem variable
2 = full loot
1 = allow one item to be looted
0 = no loot

database.GetVariable("PvPreward", tmp, 9);
int reward = atoi(tmp);
if(reward==3){
database.GetVariable("PvPitem", tmp2, 9);
int pvpitem = atoi(tmp2);
if(pvpitem>0 && pvpitem<200000)
new_corpse->SetPKItem(pvpitem);
}
else if(reward==2)
new_corpse->SetPKItem(-1);
else if(reward==1)
new_corpse->SetPKItem(1);
else
new_corpse->SetPKItem(0);

This can all be found around here:
https://github.com/EQEmu/Server/blob...tack.cpp#L1632
https://github.com/EQEmu/Server/blob...tack.cpp#L1641


I should add a few reasons why the pvp reward system possibly doesn't work for you:

1) We never get the owner of the guy who is killing the player, so it can be a pet or npc that gets the final kill
2) if you have #gm on this code is bypassed
__________________
www.eq2emu.com
EQ2Emu Developer
Former EQEMu Developer / GuildWars / Zek Seasons Servers
Member of the "I hate devn00b" club.
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 06:16 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