SphereServer BugTracker - SphereServer
View Issue Details
0002294SphereServerexecutable - windows buildpublic25-03-14 05:1719-04-14 20:52
Coruja 
XuN 
normalminoralways
resolvedfixed 
 
0.56c Nightly 
Automated (specify build number)
None
None
0002294: DYE property not working properly
[ITEMDEF 9860]
DEFNAME=i_death_shroud
DYE=1

[ITEMDEF i_robe_lol]
DISPID=i_death_shroud
DYE=0

After these items got created ingame, both return 1 if I try to read the DYE property (.xshow DYE, or <DYE> on scripts)

I think it occours because sphere tries to read the DYE property on the item DISPID instead BASEID

So 'i_death_shroud' will search the DYE property on 'i_death_shroud' and will return DYE=1 (no problem here), but on 'i_robe_lol' it will search the property on 'i_death_shroud' instead 'i_robe_lol' and will return 1 too, even if i_robe_lol has DYE=0 set
Using 24 march nightly
No tags attached.
Issue History
25-03-14 05:17CorujaNew Issue
13-04-14 09:12XuNAssigned To => XuN
13-04-14 09:12XuNStatusnew => assigned
14-04-14 03:19AvatarNote Added: 0002042
14-04-14 03:21AvatarNote Edited: 0002042bug_revision_view_page.php?bugnote_id=0002042#r598
14-04-14 03:24AvatarNote Edited: 0002042bug_revision_view_page.php?bugnote_id=0002042#r599
14-04-14 03:24AvatarNote Edited: 0002042bug_revision_view_page.php?bugnote_id=0002042#r600
14-04-14 03:24AvatarNote Edited: 0002042bug_revision_view_page.php?bugnote_id=0002042#r601
14-04-14 03:28AvatarNote Edited: 0002042bug_revision_view_page.php?bugnote_id=0002042#r602
14-04-14 03:33AvatarNote Edited: 0002042bug_revision_view_page.php?bugnote_id=0002042#r603
19-04-14 20:52XuNNote Added: 0002061
19-04-14 20:52XuNStatusassigned => resolved
19-04-14 20:52XuNFixed in Version => 0.56c Nightly
19-04-14 20:52XuNResolutionopen => fixed

Notes
(0002042)
Avatar   
14-04-14 03:19   
(edited on: 14-04-14 03:33)
I do not get what you are trying to but why dont you use "COLOR" insted or if you want to do other things you can assign TAG.* to itemdef like TAG.DYE 0 or 1
[ITEMDEF 9860]
DEFNAME=i_death_shroud
TAG.DYE 1 ( if this is what you are looking for. )

then you can check it on triggers like under on=@dclick trigger

on=@dclick
if <TAG.DYE> // for 1

else // for 0

endif


I'll look at what is wrong with this.

I just checked and you are right, DYE states 01 for any items but if you want to see what colors items have then you can use .xshow color and state under on=@create like

on=@create
color 1 / color 0 / color xx

(0002061)
XuN   
19-04-14 20:52   
Solved.