Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- init start
- if not loottotal then loottotal = 0 end
- if not droptotal then droptotal = 0 end
- local lootcheck = {
- {name = 'zaoan armor', price = 14000, counter = 0, drops = false},
- {name = 'zaoan legs', price = 14000, counter = 0, drops = false},
- {name = 'zaoan shoes', price = 5000, counter = 0, drops = false},
- {name = 'tower shield', price = 8000, counter = 0, drops = false},
- {name = 'yellow gem', price = 1000, counter = 0, drops = false},
- {name = 'small emerald', price = 250, counter = 0, drops = false},
- {name = 'small amethyst', price = 250, counter = 0, drops = false},
- {name = 'high guard flag', price = 500, counter = 0, drops = false},
- {name = 'legionnaire flags', price = 500, counter = 0, drops = false},
- {name = 'terra rod', price = 2000, counter = 0, drops = false},
- {name = 'wand of inferno', price = 3000, counter = 0, drops = false},
- {name = 'zaoan robe', price = 12000, counter = 0, drops = false},
- {name = 'drakinata', price = 10000, counter = 0, drops = false},
- {name = 'platinum coin', price = 100, counter = 0, drops = false},
- {name = 'spiked iron ball', price = 100, counter = 0, drops = true},
- {name = 'high guard shoulderplates', price = 100, counter = 0, drops = true},
- {name = 'broken halberd', price = 100, counter = 0, drops = true},
- {name = 'gold coin', price = 1, counter = 0, drops = false},
- {name = 'dragon shield', price = 4000, counter = 0, drops = false},
- {name = 'dragonbone staff', price = 3000, counter = 0, drops = false},
- {name = 'serpent sword', price = 900, counter = 0, drops = false},
- {name = 'dragon scale mail', price = 40000, counter = 0, drops = false},
- {name = 'fire sword', price = 4000, counter = 0, drops = false},
- {name = 'royal helmet', price = 30000, counter = 0, drops = false},
- {name = 'dragons tail', price = 100, counter = 0, drops = false},
- {name = 'green dragon leather', price = 100, counter = 0, drops = false},
- {name = 'red dragon leather', price = 100, counter = 0, drops = false},
- {name = 'red dragon scale', price = 100, counter = 0, drops = false},
- {name = 'green dragon scale', price = 100, counter = 0, drops = false},
- {name = 'dragon hammer', price = 2000, counter = 0, drops = false},
- {name = 'tower shield', price = 8000, counter = 0, drops = false},
- {name = 'dragon slayer', price = 15000, counter = 0, drops = false},
- {name = 'dragon lord trophy', price = 10000, counter = 0, drops = false},
- {name = 'small sapphire', price = 200, counter = 0, drops = false},
- }
- init end
- auto(200)
- foreach newmessage m do
- if m.type == 19 and m.content:sub(1,8) == 'Loot of ' then
- local content = m.content:sub(m.content:find(':')+2)
- content = content:token(nil,', ')
- for i,j in ipairs(content) do
- local a = 1
- while a <= #lootcheck and not j:find(lootcheck[a].name) do a = a+1 end
- if a <= #lootcheck then
- local amount = tonumber(j:token(1))
- if not amount then amount = 1 end
- lootcheck[a].counter = lootcheck[a].counter + amount
- loottotal = loottotal + amount*lootcheck[a].price
- if lootcheck[a].drops then droptotal = droptotal + amount*lootcheck[a].price end
- end
- end
- end
- end
- if droptotal > 0 then
- listas('Loot Counter: '.. num(loottotal).. ' GPs (' ..num(math.floor((loottotal*60*60*1000)/$exptime+1))..' GPs/h) ... GPs/SCP: ' ..num(droptotal))
- else
- listas('Loot Counter: '.. num(loottotal).. ' GPs (' ..num(math.floor((loottotal*60*60*1000)/$exptime+1))..' GPs/h)')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement