-
Established Member
how to check a box is locked?
I've tested ItemFlags however failed.
plz give me a hint.
-
Elite User
-
Established Member
Originally Posted by
charles420
Locktype search that
@charles420
I searched but nothing. could you share me a couple of links?
-
Active Member
Originally Posted by
oiramario
I've tested ItemFlags however failed.
plz give me a hint.
ItemFlags is the right approach. You are looking for flag 0x00000004. (I think)
As far as I've seen there is no direct "Item is locked" flag (please someone correct me if there is), instead there is the flag 0x00000004 which (according to the trinity source) means "UNLOCKED".
So you want to check if the item is "UNLOCKED" rather than if its locked. If it does not have this flag, it's locked.
-
Post Thanks / Like - 1 Thanks
oiramario (1 members gave Thanks to SatyPardus for this useful post)