local rank_neutral = .75
local function getTable()
itemsList = {
{name="ring", id=2208, buy=100, sell=(500 * rank_neutral)},
{name="necklace", id=2209, buy=100, sell=(500 * rank_neutral)},
{name="trinket", id=2188, buy=1000, sell=(600 * rank_neutral)}
}
return itemsList
end
local userInput = io.read("*l")
rank_neutral = userInput
local tab = getTable()
for k, v in pairs(tab) do
print(v.name .. " : " .. v.sell)
end
To embed this project on your website, copy the following code and paste it into your website's HTML: