Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local info = [[
- Name: Auto Area Attack
- Description: Executes area spells on certain conditions
- Author: Cavitt Glover (Syntax)
- Version: 2.1.00 (updated 04.25.2012)]]
- local config = {
- attacks = {
- --[[
- spells should be prioritized from top to bott om, eg: exori gran will be attempted before exori or exori mas.
- players:
- true = the area will include players in the threshold
- false = the area will only count the monsters in the area
- aggressive:
- 0 = attack triggers when no players are in the area.
- 1 = attack triggers when only war enemies and skulled players, noone else.
- 2 = attack triggers when innocents are in the area but not when friendlies are.
- 3 = attack triggers when friendlies are in the area but not when innocents are.
- 4 = attack triggers without any regards to players in the area.
- ]]
- {words="exori", threshold=1, mana=115, radius=7, aggressive=0, players=false, needsTarget=true}
- }
- }
- local function think()
- for _, info in ipairs(config.attacks)do
- local amount = getTargetsInArea(Self.Position(), info.radius, info.aggressive, info.players)
- if(amount)then
- if(amount >= info.threshold)then
- Self.Cast(info.words, info.mana)
- end
- end
- end
- end
- print(info)
- wait(300)
- while (true) do
- think()
- wait(200)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement