Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Utito Caster :
- local monsters = {'Wyrm', 'Elder Wyrm'} -- your targets to consider
- local monstersAmount = 4 -- Minimum number of monsters to cast spell
- local monstersRange = 6 -- Range to consider the monsters
- local diffTime = 9.5 -- Time to wait between casts in seconds
- local spellName = "utito tempo"
- local spellMana = 290
- ------- Don't change ----------
- local t2 = os.clock()
- local diff
- Module.New('utitotempo', function(module)
- local mob = Self.GetTargets(monstersRange)
- local count = 0
- for i = 1, #mob do
- if table.find(monsters, mob[i]:Name()) then
- count = count + 1
- end
- end
- if count >= monstersAmount then
- diff = tonumber(string.format("%.1f", os.clock()-t2))
- if diff >= diffTime then
- Self.Cast(spellName, spellMana)
- print("Time passed between last utito : "..diff.." seconds.")
- t2 = os.clock()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement