Module:QuestDetails: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 7: Line 7:
local args = frame:getParent().args
local args = frame:getParent().args
local questJson = mw.text.jsonEncode({
mw.smw.set({
start_point = args.start_point,
start_point = args.start_point,
required_for = args.required_for,
required_for = args.required_for,
Line 16: Line 16:
enemies = args.enemies,
enemies = args.enemies,
override_seq = args.override_seq or 9999
override_seq = args.override_seq or 9999
})
mw.smw.set({
start_point = args.start_point,
required_for = args.required_for,
next_quest = args.next_quest,
requirements = args.requirements,
items = args.items and '\n'..args.items,
recommended = args.recommended and '\n'..args.recommended,
enemies = args.enemies,
override_seq = args.override_seq or 9999,
['Quest JSON'] = questJson
})
})