Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 07-19-2009, 01:31 AM
mixxit
Hill Giant
 
Join Date: Sep 2006
Posts: 155
Default EQLite's Chests

Hey all,

Thought i'd share our servers chests drops on npc death

Code:
sub EVENT_DEATH
{
$rand = quest::ChooseRandom(1,2,3,4,5,6,7,8,9,10);
if ($npc->GetLevel() >= $ulevel)
{
	if ($rand > 6)
	{

		if ($ulevel < 10)
		{
			quest::emote(" was holding extraordinary treasure!");
			quest::spawn(346316,0,0,$x,$y,$z);
		} else {
			if ($ulevel < 20)
			{
				quest::emote(" was holding extraordinary treasure!");
				quest::spawn(346317,0,0,$x,$y,$z);
			} else {
				if ($ulevel < 31)
				{
					quest::emote(" was holding extraordinary treasure!");
					quest::spawn(346318,0,0,$x,$y,$z);
				} else {
					// We don't support level 30+ characters
				}
			}
		}
	} else {
		quest::emote(" was worth no treasure this time.");
	}
} else {
	quest::emote(" is worth no treasure as it is weaker than you.");
}
}

You will need to create some chest spawns for this

I'm using the numbers above with loot tables with 3 100 item loot drop lists

346316 - low chest
346317 - medium chest
346318 - high chest

Enjoy!
Reply With Quote
  #2  
Old 07-21-2009, 08:18 PM
Kilralpine
Sarnak
 
Join Date: Jul 2004
Posts: 98
Default

Very neat idea, almost similar to Eq2 - Good Job
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 07:57 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