|
@ -4,6 +4,20 @@ local utils = require "utils" |
|
|
local yqtemplateform = utils.readfile("yqform.etlua") |
|
|
local yqtemplateform = utils.readfile("yqform.etlua") |
|
|
|
|
|
|
|
|
local form = etlua.compile(yqtemplateform) |
|
|
local form = etlua.compile(yqtemplateform) |
|
|
|
|
|
--- @type [table] |
|
|
|
|
|
local classes = { |
|
|
|
|
|
{ n = "Beast", f = "c01.beast.png" }, |
|
|
|
|
|
{ n = "Swordsman", f = "c02.swordsman.png" }, |
|
|
|
|
|
{ n = "Spirit Bird", f = "c03.spirit-bird.png" }, |
|
|
|
|
|
{ n = "Twin Blades", f = "c04.twin-blades.png" }, |
|
|
|
|
|
{ n = "Healer", f = "c05.healer.png" }, |
|
|
|
|
|
{ n = "Summoner", f = "c06.summoner.png" }, |
|
|
|
|
|
{ n = "Tamer", f = "c07.tamer.png" }, |
|
|
|
|
|
{ n = "Pugilist", f = "c08.pugilist.png" }, |
|
|
|
|
|
{ n = "Mounted Fighter", f = "c09.mounted-fighter.png" }, |
|
|
|
|
|
{ n = "Fruit Animal", f = "c10.fruit-animal.png" }, |
|
|
|
|
|
{ n = "Spellcaster", f = "c11.spellcaster.png" } |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|
desc = "Creates Yokoka’s quest-style personal status page", |
|
|
desc = "Creates Yokoka’s quest-style personal status page", |
|
@ -34,20 +48,9 @@ return { |
|
|
fcgi.print( |
|
|
fcgi.print( |
|
|
form { |
|
|
form { |
|
|
encoder = require "base64".encode, |
|
|
encoder = require "base64".encode, |
|
|
|
|
|
readfile = utils.readfile, |
|
|
args = args, |
|
|
args = args, |
|
|
classes = { |
|
|
|
|
|
"Beast", |
|
|
|
|
|
"Swordsman", |
|
|
|
|
|
"Spirit Bird", |
|
|
|
|
|
"Twin Blades", |
|
|
|
|
|
"Healer", |
|
|
|
|
|
"Summoner", |
|
|
|
|
|
"Tamer", |
|
|
|
|
|
"Pugilist", |
|
|
|
|
|
"Mounted Fighter", |
|
|
|
|
|
"Fruit Animal", |
|
|
|
|
|
"Spellcaster" |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
classes = classes |
|
|
elements = { |
|
|
elements = { |
|
|
"Fire", "Water", "Earth", "Air", |
|
|
"Fire", "Water", "Earth", "Air", |
|
|
"Wood", "Electricity", "Metals", "Dreams", |
|
|
"Wood", "Electricity", "Metals", "Dreams", |
|
|