Go Back   EQEmulator Home > EQEmulator Forums > General > General::General Discussion

General::General Discussion General discussion about EverQuest(tm), EQEMu, and related topics.
Do not post support topics here.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2023, 10:56 PM
tnsquid
Fire Beetle
 
Join Date: Jun 2018
Location: Chesapeake Va
Posts: 2
Default Stop ability to loot from low level (grey) mobs

Anyone know how to stop the ability of a player to loot from a low level mob after it has been killed? I have searching everywhere but haven't found a way to make this happen as of yet. Thanks in advance for any help provided!
Reply With Quote
  #2  
Old 08-19-2023, 01:41 PM
rgagnier06
Fire Beetle
 
Join Date: Apr 2020
Posts: 2
Default

You looking for a way to do this in a script or in source?
Reply With Quote
  #3  
Old 08-22-2023, 01:07 PM
nao57
Fire Beetle
 
Join Date: Aug 2023
Location: Censored
Posts: 4
Default

Why would you want to do that? its already hard enough to play as it is. People sometimes hunt low level stuff to save plat so that they can buy gear... that's overpiced and that they can't afford. So if you not let them loot lower level stuff than they can get into a situation where if they have no gear they are stuck.
Reply With Quote
  #4  
Old 07-19-2024, 11:42 AM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

You need to know how to write the quest api to do it.

There's a lot of edge cases to decide on to make this happen, I'll briefly note them as I break down the steps.

Inside the file quests/global/global_npc.lua (or .pl), add an entry or create one for event_death.

Inside event_death, Check the killer's ID argument, and if they're in the zone via entity_list, then check their level compared to the dying NPC. It may also be wise to check if the killer id is in a group, and if that group is in zone, and the highest level of a group mate. If there's a level problem, then iterate all the loot on the mob and remove it.

There's a chance you may need to use event_death_complete instead, and also killer_id may be 0, in cases e.g. a dot kills a mob after the owner zones. This is a way to get around the loot flushing as well, dot a mob, zone, zone back, loot. Not sure there's a way to really counteract this.
__________________

~Shin Noir
DungeonEQ.com
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 02:13 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