Page 1 of 1
Arrows don't disappear!
Posted: Tue Nov 29, 2011 10:38 pm
by LeoX9
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?
Posted: Wed Nov 30, 2011 1:02 am
by Xuri
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.
Posted: Thu Dec 01, 2011 2:02 am
by LeoX9
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: Select all
//Arrows and Crossbow-bolts
{0xf3fx1bfb]
{
weight=1
pileable=1
decay=1
}
[/code]
Posted: Thu Dec 01, 2011 2:19 am
by Xuri
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:
Code: Select all
//Arrows and Crossbow-bolts
[color=red][[/color]0xf3fx1bfb]
{
weight=1
pileable=1
decay=1
}
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).
Posted: Thu Dec 01, 2011 2:21 am
by LeoX9
Oh my gosh! Lol.... Not your fault... As a fellow coder I should have caught that!!! Thanks man.