View Full Version : Stop ability to loot from low level (grey) mobs
tnsquid
08-08-2023, 10:56 PM
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!
rgagnier06
08-19-2023, 01:41 PM
You looking for a way to do this in a script or in source?
nao57
08-22-2023, 01:07 PM
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.
Shin Noir
07-19-2024, 11:42 AM
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.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.