Module:Mazunki/Monsters: Difference between revisions

m
it funks?
m (not enough memory)
m (it funks?)
Line 13: Line 13:
local result = '{|\r\n'
local result = '{|\r\n'
local rows = {}
local rows = {}
-- local monsterList = Monsters.getMonsters(function(item) return true end)
-- table.sort(monsterList, function(a, b) return a.id < b.id end)


local monsterID = 0
local monsterID = 0
Line 22: Line 19:
local rowTxt = '|-\r\n'
local rowTxt = '|-\r\n'


result = result..result..'!!ID'
result = result..'!!ID'
rowTxt = rowTxt..'|'..monsterID
rowTxt = rowTxt..'|'..monsterID


Line 69: Line 66:
result = result..'!!BonePrayerValue'
result = result..'!!BonePrayerValue'
local bones = Items.getItemByID(monster.bones)  
local bones = Items.getItemByID(monster.bones)  
if bones.prayerPoints then
if bones ~= nil and bones.prayerPoints then
rowTxt = rowTxt..'|'..bones.name
rowTxt = rowTxt..'|'..bones.name
rowTxt = rowTxt..'|'..bones.prayerPoints
rowTxt = rowTxt..'|'..bones.prayerPoints
892

edits