This spawns the item, but sets it to hue 0 every time.
I'd appreciate any help.
ArteGordon- 10-13-2007
the problem is that this
{GETONPARENT,hue}
will be substituted immediately when the attachment is added. You need to pass that on as a part of the actual deathaction string. You need to put substitution brackets around each of brackets like this
{{}GETONPARENT,hue{}}
Dusk- 10-13-2007
Thank you, I didn't know about the extra brackets to pass it through.
Still drops the item as hue 0, while the mob itself is in the 2000- range.
hmm, I think that may be because the parent refers to the corpse and not the mob itself. I'm not sure if the corpse retains the hue of the mob.
(edit)
no, corpse does retain hue of the mob so it should work. I'll check it out.
(edit)
oh, and another little tip, you can change this
static,8444/movable/true/
to this
item,8444
It is the same thing. 'static' is just 'item' with movable set to false.
Dusk- 10-13-2007
That makes that a lot easier, hehe.
But yes, the corpse retains the color. I just spawned a snake with that attachment, and the corpse is hue 2006 and the item itself 0.
Might just have to do a rndlist of the colors instead of matching them.
ArteGordon- 10-13-2007
ah, ok, I figured it out. It has to do with the way that the xmldeathaction attachment handles the reference to the corpse.
THIS is what actually refers to the corpse instead of PARENT. Just as SETONTHIS refers the corpse for setting, adding etc., you would use GETONTHIS to get properties off of it.
but it doesn't work... is a syntax problem (i hope) or something other?
(of course, I'm Always sorry for my english... hope your understand)
Bye, tnx for the help
try
GETONPARENT,controlmaster.serial
Xerocrates- 10-13-2007
It work *_*
tnx...
ah... sorry another question, where i can find the complete syntax aviable? Maybe whit that i finally stop to post every 3 days for a syntax problem
Tnx tnx tnx
ArteGordon- 10-13-2007
QUOTE (Xerocrates @ October 13, 2007 05:13 pm)
It work *_*
tnx...
ah... sorry another question, where i can find the complete syntax aviable? Maybe whit that i finally stop to post every 3 days for a syntax problem
Tnx tnx tnx
all keyword syntax for things like GETONPARENT can be found in xmlspawner2.txt
Syntax like controlmaster.serial is just standard c# syntax for accessing class properties. Controlmaster is a Mobile and Serial is a property in the Mobile class.
Xerocrates- 10-13-2007
All Right.... i'm a little bit before the madness...