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 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

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