ElEditors, Interface administrators, Administrators
70,868
edits
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 26: | Line 26: | ||
local character = args[1] | local character = args[1] | ||
local data = args[2] | local data = args[2] | ||
local isBase = not data or data == base; | local isBase = not data or data == "base"; | ||
local pathIndex = "" | local pathIndex = "" | ||
local jobIndex = "" | local jobIndex = "" | ||
Line 33: | Line 33: | ||
local lang = args.link and args.lang and ("/" .. args.lang) or "" | local lang = args.link and args.lang and ("/" .. args.lang) or "" | ||
local scale = args.scale or 1 | local scale = args.scale or 1 | ||
local charId = string.len( | local id = CHARACTER_ID[character] | ||
local charId = string.len(id) == 1 and ("0" .. id) or id | |||
if isBase then | if isBase then | ||
jobIndex = "NO_OCCUPATION" | jobIndex = "NO_OCCUPATION" | ||
else | |||
local arr = split(data, "x"); | local arr = split(data, "x"); | ||
if not #arr then | if not #arr then |