Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dofile("SyntaxLuaLib.lua")
- local info = [[
- Name: Auto Area Attack
- Description: Executes area spells on certain conditions
- Author: Cavitt Glover (Syntax)
- Version: 2.0.10 (updated 02.07.2012)]]
- local config = {
- attacks = {
- --[[
- spells should be prioritized from top to bottom, 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 gran", threshold=5, mana=50, radius=1, aggressive=0, players=false},
- {words="exori", threshold=2, mana=30, radius=1, aggressive=0, players=false},
- --{words="exori mas", threshold =7, mana=80, radius=4, aggressive=0, players=false}
- }
- }
- local function think()
- for _, info in ipairs(config.attacks)do
- local amount = areaTargetAmount(info.radius, info.aggressive, info.players)
- if(amount)then
- if(amount >= info.threshold)then
- cast(info.words, info.mana)
- end
- end
- end
- end
- print(info)
- wait(5000)
- while (true) do
- think()
- wait(500)
- end
Advertisement
Comments
-
- Amigo, aqui esta dando este erro...
- Error: attempt to call global 'areaTargetAmount' (a nil value)
Add Comment
Please, Sign In to add comment
Advertisement