Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
Undo revision 44208 - Resulted in script errors
(Revise implementation of dungeon exceptions & correct source of "Unknown Evil" lore book)
(Undo revision 44208 - Resulted in script errors)
Tag: Undo
(2 intermediate revisions by the same user not shown)
Line 256: Line 256:
   local item = Items.getItem(itemName)
   local item = Items.getItem(itemName)
   if item == nil then
   if item == nil then
     return "ERROR: No item named "..itemName.." exists in the data module"
     return "ERROR: No item named "..itemName.." exists in the data module[[Category:Pages with script errors]]"
   end
   end
    
    
Line 534: Line 534:
   end
   end
   if item == nil then
   if item == nil then
     return "ERROR: No item named "..itemName.." exists in the data module"
     return "ERROR: No item named "..itemName.." exists in the data module[[Category:Pages with script errors]]"
   end
   end


Line 690: Line 690:
   local item = Items.getItem(itemName)
   local item = Items.getItem(itemName)
   if item == nil then
   if item == nil then
     return "ERROR: No item named "..itemName.." exists in the data module"
     return "ERROR: No item named "..itemName.." exists in the data module[[Category:Pages with script errors]]"
   end
   end


Line 727: Line 727:
   local item = Items.getItem(itemName)
   local item = Items.getItem(itemName)
   if item == nil then
   if item == nil then
     return "ERROR: No item named "..itemName.." exists in the data module"
     return "ERROR: No item named "..itemName.." exists in the data module[[Category:Pages with script errors]]"
   end
   end


Line 785: Line 785:
   local item = Items.getItem(itemName)
   local item = Items.getItem(itemName)
   if item == nil then
   if item == nil then
     return "ERROR: No item named "..itemName.." exists in the data module"
     return "ERROR: No item named "..itemName.." exists in the data module[[Category:Pages with script errors]]"
   end
   end


Line 827: Line 827:
   local item = Items.getItem(itemName)
   local item = Items.getItem(itemName)
   if item == nil then
   if item == nil then
     return "ERROR: No item named "..itemName.." exists in the data module"
     return "ERROR: No item named "..itemName.." exists in the data module[[Category:Pages with script errors]]"
   end
   end