Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-13-2016, 10:05 PM
bigsol81
Fire Beetle
 
Join Date: Sep 2008
Location: California
Posts: 24
Default Allowing full looting of players?

I have a server where I want players, upon death, to be fully lootable by other players. Is it possible to do this, or is this client controlled?
Reply With Quote
  #2  
Old 08-13-2016, 10:53 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

https://github.com/EQEmu/Server/blob...orpse.cpp#L928

Looks like it is possible...


This is where it gets the rule value: https://github.com/EQEmu/Server/blob...tack.cpp#L1466

But, it doesn't look like that rule is in our `variables` table in the database - so, it defaults to '0'

Try adding a new variable `PvPreward` and set the value to '-1' and see if that helps.

(You may need to rerun shared_memory..)
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #3  
Old 08-13-2016, 11:24 PM
bigsol81
Fire Beetle
 
Join Date: Sep 2008
Location: California
Posts: 24
Default

I tried that, but when I kill a player, it still says "You may not loot this corpse at this time."
Reply With Quote
  #4  
Old 08-16-2016, 02:51 PM
EQEMU2010's Avatar
EQEMU2010
Sarnak
 
Join Date: Nov 2010
Location: United States
Posts: 53
Default

Thats usually a timer message like used to be 5 min 54 sec your could loot a corpse they only had 8 mins from death iirc and a 30 min coprse was something like 27 min 54 sec
__________________
>---Bruteforce---Obsidian---Dragonslayer---Nitesky---Ragefury---Draco---Dragonmist---Godzilla---<


Reply With Quote
  #5  
Old 08-17-2016, 07:36 AM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,289
Default

The problem is we never pass an AddLooter for the player that killed their PC target (this allows CanMobLoot to pass):

https://github.com/EQEmu/Server/blob...tack.cpp#L1474

need something along the lines of

new_corpse->AddLooter(killerMob);

the catch is killerMob doesn't check for owner -- so if a client pet comes in this won't trigger you have to get the owner of killermob if it is available and replace it.

Also AddLooter doesn't properly handle NULL, so make sure killerMob is a valid pointer.
__________________
www.eq2emu.com
EQ2Emu Developer
Former EQEMu Developer / GuildWars / Zek Seasons Servers
Member of the "I hate devn00b" club.
Reply With Quote
  #6  
Old 08-17-2016, 08:43 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Quote:
Originally Posted by image View Post
The problem is we never pass an AddLooter for the player that killed their PC target (this allows CanMobLoot to pass):

https://github.com/EQEmu/Server/blob...tack.cpp#L1474

need something along the lines of

new_corpse->AddLooter(killerMob);

the catch is killerMob doesn't check for owner -- so if a client pet comes in this won't trigger you have to get the owner of killermob if it is available and replace it.

Also AddLooter doesn't properly handle NULL, so make sure killerMob is a valid pointer.
The check above all that reward stuff checks for nullptr and if the killer is a client. So assuming that the line you posted is the proper syntax, that's all he should have to add.
Reply With Quote
  #7  
Old 08-19-2016, 12:10 AM
bigsol81
Fire Beetle
 
Join Date: Sep 2008
Location: California
Posts: 24
Default

So, how would I go about making the corpse lootable by ANYONE, whether they killed the player or not?
Reply With Quote
  #8  
Old 08-22-2016, 12:25 PM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,289
Default

you would have to change the line that was noted previously to not include the CanPlayerLoot check.. then anyone could loot it without any restrictions, any time.

https://github.com/EQEmu/Server/blob...orpse.cpp#L928
__________________
www.eq2emu.com
EQ2Emu Developer
Former EQEMu Developer / GuildWars / Zek Seasons Servers
Member of the "I hate devn00b" club.
Reply With Quote
  #9  
Old 04-25-2017, 01:43 PM
Five
Fire Beetle
 
Join Date: May 2016
Posts: 4
Default

So would this work in a PvE setup or just PvP? I'm ultimately wanting any corpse to be lootable by anyone at any time.
Reply With Quote
  #10  
Old 04-25-2017, 01:54 PM
GRUMPY
Discordant
 
Join Date: Oct 2016
Posts: 445
Default

Quote:
Originally Posted by Five View Post
So would this work in a PvE setup or just PvP? I'm ultimately wanting any corpse to be lootable by anyone at any time.
In rule_values table (in database),

NPC:CorpseUnlockTimer 150000 (ms)
Reply With Quote
Reply

Thread Tools
Display Modes

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:25 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3