need to spawn some magic items

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
erekose
UOX3 Novice
Posts: 52
Joined: Sun Feb 18, 2007 4:30 pm
Has thanked: 0
Been thanked: 0

need to spawn some magic items

Post by erekose »

Apologies if this is in the slightly wrong area, but I am needing just a little guidance with some of the files found here in the vault.

I have just deployed a copy of Stranf's new world kit, and we are going forward with it, for (mostly) better or worse. I have a two part question relative to wanting monsters to loot something other than gold and scrolls.

1. What is the bug I keep seeing mentioned in past posts that "broke" magic items/weapons? Is this resolved?

2. Assuming that I want to get a decent list of items, for which I can setup spawning, and want to do so in a hurry, what do I need to do?

Thanks!
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

No apology needed, I've moved the thread to the correct forum. The Script Vault is only for posting completed custom scripts for others to download. :)

As for your questions..

1) Not sure which bug that was. Could be it was the one where bladed weapons (swords, axes) couldn't be used as magic items (of TYPE 15). If so, that has been fixed on the CVS - but no idea how up-to-date stranf's worldstarter kit is with that.

2) Assuming that what you're after is a way to add more loot to monsters, I'd setup one or more itemlists in either DFNDATA\ITEMS\lootlists.dfn or in a new, custom file using the same setup as lootlists.dfn. Lootlists are setup using the following format:

Code: Select all

[LOOTLIST uniquename]
{
item-id1
item-id2
item-id3
item-id4
}
...where you use a unique name (not used in any other lootlists) in the header and then list the IDs of all the items from the DFNs you want in that lootlist. One quick way of looking up the ID of a certain item (as long as it is defined with the same ID in the DFNs) is to look it up in a program like InsideUO

Then add a new tag to the DFN section of the NPC you want to assign the lootlist to, like this:

Code: Select all

LOOT=uniquename
A random item from the lootlist will then be added as loot to that NPC. To add more than 1 item from a lootlist, add more LOOTLIST=uniquename entries.
-= Ho Eyo He Hum =-
Post Reply