PDA

View Full Version : Possible with a script, or all database side?


Pretentious
12-22-2009, 11:27 PM
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.


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.