Module:Store locations list: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 100: Line 100:
         '?Sold by.Is members only = Is members only',
         '?Sold by.Is members only = Is members only',
         '?Sold by.NPC location = NPC location',
         '?Sold by.NPC location = NPC location',
'?Sold item Members',
         '?Sold by.Has subobject.NPC location=NPC location subobj',
         '?Sold by.Has subobject.NPC location=NPC location subobj',
         '?Sold item image',
         '?Sold item image',
Line 120: Line 121:
     end
     end
     mw.log(string.format('SMW (store locations list): entries: %d, time elapsed: %.3f ms.', #smwdata, (t2 - t1) * 1000))
     mw.log(string.format('SMW (store locations list): entries: %d, time elapsed: %.3f ms.', #smwdata, (t2 - t1) * 1000))
   
    mw.log("smw data", dump(smwdata))


     table.sort(smwdata, function(a, b) return b['Store sell price'] < a['Store sell price'] end)
     table.sort(smwdata, function(a, b) return b['Store sell price'] < a['Store sell price'] end)

Navigation menu