17,101
edits
(_getThievingNPCLootTables: Remove area unique drops total, as each drop can (theoretically) be obtained from the same pickpocket attempt) |
(Use printError function) |
||
Line 157: | Line 157: | ||
local gemDataKey = validTypes[gemType] | local gemDataKey = validTypes[gemType] | ||
if gemDataKey == nil then | if gemDataKey == nil then | ||
return ' | return Shared.printError('No such gem type "' .. gemType .. '"') | ||
end | end | ||
Line 432: | Line 432: | ||
local npc = Skills.getThievingNPC(npcName) | local npc = Skills.getThievingNPC(npcName) | ||
if npc == nil then | if npc == nil then | ||
return | return Shared.printError('Invalid Thieving NPC "' .. npcName .. '"') | ||
end | end | ||
Line 527: | Line 527: | ||
local category = GameData.getEntityByName(SkillData.Farming.categories, categoryName) | local category = GameData.getEntityByName(SkillData.Farming.categories, categoryName) | ||
if category == nil then | if category == nil then | ||
return ' | return Shared.printError('Invalid farming category. Please choose Allotments, Herbs, or Trees') | ||
end | end | ||
local seedList = GameData.getEntities(SkillData.Farming.recipes, | local seedList = GameData.getEntities(SkillData.Farming.recipes, | ||
Line 616: | Line 616: | ||
local category = GameData.getEntityByName(SkillData.Farming.categories, areaName) | local category = GameData.getEntityByName(SkillData.Farming.categories, areaName) | ||
if category == nil then | if category == nil then | ||
return ' | return Shared.printError('Invalid farming category. Please choose Allotments, Herbs, or Trees') | ||
end | end | ||
local patches = GameData.getEntities(SkillData.Farming.plots, | local patches = GameData.getEntities(SkillData.Farming.plots, |