• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action [SOLVED] Checking if item has unique id

trou

ot revolution is comming
Senator
Joined
Aug 12, 2008
Messages
1,351
Reaction score
36
Hi,

How to check if item has unique.id?
Code:
if (item.uid ~= -1) then
Fails,

Code:
if (item.uid) then
Fails too.... item.uid (when item haven't got unique id returns random value.

So, how to check if it has unique id?



Edit:
Ok, so random assigned item.uid's are:
Code:
11:57 72496
11:57 72497
11:57 72499
11:57 72501
11:57 72503
11:57 72504
11:57 72505
11:57 72506
11:57 72508
11:57 72510
11:57 72511
11:57 72512
11:57 72513
11:57 72514
11:57 72518
11:57 72519
11:57 72520
11:57 72521
11:57 72522
11:57 72523
11:57 72524
11:57 72525
11:57 72526
11:57 72527
11:57 72528
11:57 72530

I'm checking if (item.uid < 10000 and item.uid > 1000)


And it's solved.
 
Back
Top