Page 1 of 1

Newbie regarding spawning loot for monsters

Posted: Sat Oct 22, 2005 4:49 am
by deadinnuendo
Hello all,
I can't seem to figure out how to have random items spawn on the monsters. I'm using the latest UOgateway, latest UOX3 version 0.98-3.0g. I read the post by ravyn on using the keyword LOOT, but it doesn't make much sense to me. I'm not any good with JS having never used it before. I don't know much, but can do a monkey see monkey do approach.

I'm able to add items with the command PACKITEM= followed by the hexcode, but don't know how to make it random. I did see the lootlists file in the dfndata folder, and it looks like it could be used, but I don't know how. Would someone be kind enough to enlighten me on that? I'd rather not have the same item spawn all the time on one monster, which would happen the way I can figure out.

I've tried all kinds of changes to make it work but have not had success yet, and would welcome any help. Thanks.

Posted: Sat Oct 22, 2005 5:50 am
by Xuri
You can use the itemlists with the EQUIPITEM and PACKITEM tags, but you need to specify a "lootlist-object", as listed in the bottom of itemlists.dfn.

Example

PACKITEM=listobject51
would point to
[listobject51] in itemlists.dfn, which again is a pointer to itemlist 51 - which is a list of items to choose from =) There should probably be a better way of doing it than this, but at the moment that is how it works (I believe).

Posted: Mon Oct 24, 2005 9:40 pm
by deadinnuendo
That worked! Thank you very much. That's what I get for not scrolling all the way down in the itemlists.dfn. =P