Untitled
Anonymous
lua
08/30/2022 5:51 AM
436 B
20
Indexable
function AutoLoot.ExistItemByName(name)
local items = io.open("data/items/items.xml", "r")
if items then
local contents = items:read("*all"):lower()
local getItem = contents:match('name="' .. name:gsub('%p', ''):lower() ..'"')
if (not getItem or getItem == "") then
return false
end
end
return true
endEditor is loading...