Thread: Unique ID
View Single Post
11/14/17, 10:57 AM   #3
gamemodul
Join Date: Nov 2017
Posts: 3
Hi Baertram

Yes, don't need an Item related ID.

Basically I'm adding items to a table. The key constructed with os.time() inside allows me to parse the items ordered by time (also saves an extra value inside the item itself). Adding that os.rawclock() because that might be the most unique thing that I can get if items where added really fast.

Like this:
Code:
sometable = {
    ["D20171114"] = 
    {
        ["T1510677345:358673"] = "8217,8215,2,1",
        ["T1510677322:336346"] = "8248,8254,-6,64",
        ["T1510677322:336140"] = "8254,8257,-3,64",
        ["T1510677330:343808"] = "8214,8211,3,1",
        ["T1510677322:335642"] = "8257,8267,-10,64",
        ["T1510677332:346033"] = "8215,8214,1,1",
        ["T1510677322:336460"] = "8247,8248,-1,64",
        ["T1510677323:336834"] = "8245,8247,-2,64",
        ["T1510677323:336931"] = "8211,8245,-34,64",
    },
    ...,
    ...
}
  Reply With Quote