EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Custom (https://www.eqemulator.org/forums/forumdisplay.php?f=671)
-   -   EQLite's Chests (https://www.eqemulator.org/forums/showthread.php?t=28942)

mixxit 07-19-2009 01:31 AM

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!

Kilralpine 07-21-2009 08:18 PM

Very neat idea, almost similar to Eq2 - Good Job


All times are GMT -4. The time now is 09:39 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.