SphereCommunity

Full Version: Item Spawns in Chests
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to get an item spawn in a chest. Can't seem to get it to work, at all. I'm setting a worldgem bit, with what I want to spawn at what intervals, placing the gem in the chest, initializing it.....but nothing. What am I doing wrong? Or is there another way to accomplish this?
If i remember well, when an item is inside a container, its timer value doesn't decrease, so in your case it will never spawn.
You have to spawn instead the container that holds the items.

Example:

Code:
[DEFNAME random_template_test]
random_loot_test { i_mace 1 i_dagger 1 }


[TEMPLATE tmp_container_test]
CATEGORY=Item Templates
SUBSECTION= New Loot Templates
DESCRIPTION=Test Template
container = i_chest_metal
ITEM = random_loot_test
ITEM = i_gold,{200 300}

Then place the worldgem bit manually or by Axis2.
Remember two things when place an item spawn:
The item will disappear when its timer value reach 0
If the item is moved or activated, the spawn will generate another item.
Aaaah I'm such a dunce sometimes! Thank you kind sir!!

Where do I place that code??
Reference URL's