Anonymous

Module:ItemsTable: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 15: Line 15:
function p.getItemsTable(frame)
function p.getItemsTable(frame)
   local itemList = {}
   local itemList = {}
   local i = 1
   local i = 0
   while i < itemCount do
   while i < itemCount do
     local item = Items.getItemByID(i)
     local item = Items.getItemByID(i)
Line 21: Line 21:
     table.insert(itemList, Icons.Icon({item.name, size=50, type='item'}))
     table.insert(itemList, Icons.Icon({item.name, size=50, type='item'}))
     table.insert(itemList, '||')
     table.insert(itemList, '||')
     table.insert(itemList, i - 1)
     table.insert(itemList, i)
     table.insert(itemList, '||')
     table.insert(itemList, '||')
     table.insert(itemList, item.category)
     table.insert(itemList, item.category)
444

edits