Cytuj:
init start
generalStatus = {
fontSize = 7,
font = 'Tahoma',
fontSpace = 4,
marging = 2,
defaultColor = color('white'),
titleColor = color('white'),
space = 2,
maxChar = 17,
secondBlock = 115,
showPriceLoot = true,
showPriceSupplie = true,
showAllLoot = false,
showAllSupplie = false,
showMed = true,
showStatus = true,
bkGcolor = color(60,60,60,60)
}
supplies = {
suppliesname = {'strong mana potion', 'great health potion', 'soft boots'},
defineprice = {
{name = 'soft boots', price = 10000}
}
}
loots = {
itemlist = {'Quara Tentacle', 'Quara Eye', 'White Pearl', 'Black Pearl', 'Small Amethyst', 'Small Emerald', 'Small Ruby', 'Small Diamond', 'Wand of Cosmic Energy', 'Knight Armor', 'Blue Robe', 'Glacier Shoes', 'Quara Pincers', 'Warrior Helmet', 'Glacier Robe', 'Crown Armor', 'Quara Bone', 'Skull Helmet', 'Relic Sword', 'Fish Fin'},
defineprice = {
{name = 'nazwaitema', price = 0}
{name = 'nazwaitema', price = 0}
{name = 'nazwaitema', price = 0}
}
}
generalStatus.fontSpacing = generalStatus.fontSize+generalStatus.fontSpace
function additemcounter(name, amount)
local amount = amount or 1
local index = table.find(suppliescount, name, 'name')
if index then
suppliescount[index].count = suppliescount[index].count+amount
else
printerror('Unable to find ' .. name .. ', please add it on supplies list!')
end
end
function clearcounter(type)
local type = type or 0
if type == 'loot' then
lootcheck = {}
elseif type == 'supplies' then
suppliescount = {}
else
suppliescount = {}
lootcheck = {}
end
end
init end