Page 1 of 1

ContainerOf

Posted: 2004-09-17 22:09:19
by Fonzy
Anyone can tell me why this doesn't work?

if (UO.ContainerOf(obj)==0xFFFFFFFF) then
UO.Print("The Object is on earth")
end if

I absolutely can't know if an object is on the ground. I also tried =="0xFFFFFFFF" but nothing too.

Posted: 2004-09-18 00:07:32
by Yoko
uo.print(UO.ContainerOf("self"))
look at output, check up completely incedence of chars, including case

Posted: 2004-09-18 01:58:32
by Fonzy
Yes Yoko, there's something wrong, maybe with casting. However setting ==UO.ContainerOf("self") worked good for me. Thanks.

Note: if I put after the == the RESULT of ContainerOf("self") it doesn't work.

Posted: 2004-09-18 22:02:43
by Yoko
it will work exactly as good if you will ATTENTIVELY rewrite the result
i'm quite sure in this

Posted: 2004-09-19 20:43:56
by Fonzy
i did, it didn't :) however no problem :)