2024-08-10 00:35:03 +00:00
|
|
|
local function cmd(args)
|
|
|
|
local entries = env.xmlFindTags(env.db,"entries")[1]
|
|
|
|
for i,v in pairs(entries.children) do
|
|
|
|
if v.attrs.id == args[2] then
|
2024-08-10 01:03:57 +00:00
|
|
|
for i,v in pairs(env.xmlFindTags(v,"fields")[1].children) do
|
2024-08-10 00:35:03 +00:00
|
|
|
if v.attrs.name == args[3] then
|
|
|
|
print(v.children[1].text)
|
2024-08-12 00:40:40 +00:00
|
|
|
return v.children[1].text
|
2024-08-10 00:35:03 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return cmd
|