I'm having a problem where none of my arrows that drop on the ground after shooting a bow will disappear.... I thought that the 'decay=1' tag was supposed to make them decayable but maybe I'm not understanding what 'decaying' means haha....
Thoughts and tips?
Arrows don't disappear!
- Xuri
- Site Admin
- Posts: 3704
- Joined: Mon Jun 02, 2003 9:11 am
- Location: Norway
- Has thanked: 48 times
- Been thanked: 8 times
- Contact:
Arrows on the ground are (until next version) spawned "blank" through code, and are not using the normal DFN version of the arrows. If you want those to decay (and weigh properly!) you must set them up in DFNDATA/HARDITEMS/harditems.dfn - which is where you can assign DFN values to otherwise "blank" or non-DFN items. When spawning a blank item UOX3 will check this file to see if there's an entry for the item-ID it's trying to spawn, and if there is, it will assign whatever values are specified there.
For the next version I'm changing this so it spawns the normal DFN version of those items (arrows, gold coins from various locations, some other items), but for now you'll need to do a workaround.
For the next version I'm changing this so it spawns the normal DFN version of those items (arrows, gold coins from various locations, some other items), but for now you'll need to do a workaround.
-= Ho Eyo He Hum =-
-
LeoX9
- UOX3 Novice
- Posts: 55
- Joined: Fri Nov 18, 2011 9:19 am
- Location: Arizona, USA
- Has thanked: 0
- Been thanked: 0
I got the following code off of another post and put it in my harditems.dfn file... But I seem to be still having this problem...
[/code]
Code: Select all
//Arrows and Crossbow-bolts
{0xf3fx1bfb]
{
weight=1
pileable=1
decay=1
}- Xuri
- Site Admin
- Posts: 3704
- Joined: Mon Jun 02, 2003 9:11 am
- Location: Norway
- Has thanked: 48 times
- Been thanked: 8 times
- Contact:
Argh. That was my fault, sorry. In the other post I apparently messed up and used a { for the leading bracket before the item-IDs instead of a [.
This should work:
Replace your current lines in harditems.dfn with the above, reload the DFN files (or restart the server) and then check if the arrows get the decay flag properly through the 'TWEAK menu (target one of the arrows that end up on the ground after this point).
This should work:
Code: Select all
//Arrows and Crossbow-bolts
[color=red][[/color]0xf3fx1bfb]
{
weight=1
pileable=1
decay=1
}-= Ho Eyo He Hum =-