Content added Content deleted
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
p.getLootTable = function(frame) |
p.getLootTable = function(frame) |
||
for i=1, #lootTable, 1 do |
for i=1, #lootTable, 1 do |
||
return lootTable[i] |
return lootTable[i][1] |
||
end |
end |
||
end |
end |
Revision as of 18:06, 28 November 2021
This module retrieves data from the "Loot tables.json" template according to the {{PAGENAME}} (usually, an NPC name) provided as an argument value.