EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Possible with a script, or all database side? (https://www.eqemulator.org/forums/showthread.php?t=30140)

Pretentious 12-22-2009 11:27 PM

Possible with a script, or all database side?
 
Right now, working on setting up loot tables, except I'm trying to figure out a few things.

Would it be possible to script a certain item to drop based off of a creature's level, or just do it through the database?

Thanks. :D

antioch 12-23-2009 07:28 AM

I've not tried this out but give it a go, might work, the idea being when the mob spawns if it's above/equal a certain level it'll script it to add your specific item - otherwise it'll add something else.

Code:

sub EVENT_SPAWN {
        if ($mlevel => level) {
                quest::addloot(itemid,charges);
        }
        else {
                quest::addloot(itemid,charges);
        }
}


Pretentious 12-23-2009 12:30 PM

Very cool. That's extremely helpful. :D

Is there a way to apply this globally so ALL monsters level 1-5 will have a % to drop X item, so on and so forth until 70, or just go manually?

Randymarsh9 12-23-2009 01:48 PM

Try GeorgeS's diablo loot tool. It sounds like that would help you the most.


All times are GMT -4. The time now is 12:26 PM.

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