Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-08-2008, 07:16 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default $EntityList->DeleteNPCCorpses();

Does anyone know if it is possible to make quests so that an NPC will delete it's own corpse when it dies? I have many cases where mobs don't have loot for certain reasons and I would love if I could just make the corpses automatically poof when they die. One case is a zone that is purely for experience, so it has no loot. People like to AE in there alot, but it causes quite a heavy load on my server and the zone can crash sometimes. Another reason is for adds that spawn during certain encounters that don't have any loot, and their corpses can cause lag to players after too many build up. So, these are 2 good reasons why I would love to just have the corpses vanish.

So far, I have tried:

Code:
sub EVENT_DEATH {

#quest::depop();
#$Corpse->Delete(2700660);
$EntityList->GetCorpseByID(2700660);
$NPC->DeleteNPCCorpses();

}
And a couple of other ways, but none seem to work. If there isn't currently a way to do it, then it might be a good idea for some new custom code to write. I think this would come in handy on pretty much every server in certain cases.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
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 05: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