EK & RP Simple Spells Attacker by Amol
Easy in setup - the only thing you have to do is change names of monsters in persistent.
Spells for EK: utito tempo, exori gran, exori, exori min, exori mas, exori gran ico, exori ico, exori hur
Spells for RP: exori gran con, exori con, exori san, exevo mas san
You can set in Cavebot how many monsters required to use certain spell.
Safe PvP option implemented.
Screenshots:
http://i.imgur.com/76Y318e.pnghttp://i.imgur.com/pMFsPSn.png
EK
a) JSON:
Code:
{
"type" : "group",
"name" : "Premium offensive spells",
"children" : [
{
"type" : "group",
"name" : "useExoriGran",
"text" : "Exori gran",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountExoriGran",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 6
},
{
"type" : "checkbox",
"name" : "pvpSecurityExoriGran",
"text" : "PvP security",
"value" : false
}
]
},
{
"type" : "group",
"name" : "useExori",
"text" : "Exori",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountExori",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 4
},
{
"type" : "checkbox",
"name" : "pvpSecurityExori",
"text" : "PvP security",
"value" : false
}
]
},
{
"type" : "group",
"name" : "useExoriMin",
"text" : "Exori min",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountExoriMin",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 3
},
{
"type" : "checkbox",
"name" : "pvpSecurityExoriMin",
"text" : "PvP security",
"value" : false
}
]
},
{
"type" : "group",
"name" : "useExoriMas",
"text" : "Exori mas",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountExoriMas",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 6
},
{
"type" : "checkbox",
"name" : "pvpSecurityExoriMas",
"text" : "PvP security",
"value" : false
}
]
},
{
"type" : "group",
"name" : "useExoriGranIco",
"text" : "Exori gran ico",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountExoriGranIco",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 1
}
]
},
{
"type" : "group",
"name" : "useExoriIco",
"text" : "Exori ico",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountExoriIco",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 1
}
]
},
{
"type" : "group",
"name" : "useExoriHur",
"text" : "Exori hur",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountExoriHur",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 1
}
]
},
{
"type" : "group",
"name" : "useUtitoTempo",
"text" : "Utito tempo",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountUtitoTempo",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 1
}
]
}
]
}
b) Persistent "EK spells attacker":
Code:
-- Monsters to use spells on them
local utitoTempoMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
local exoriGranMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
local exoriMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
local exoriMinMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
local exoriMasMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
local exoriGranIcoMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
local exoriIcoMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
local exoriHurMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
-- DO NOT CHANGE ANYTHING BELOW
-- Use/not use spell
local useUtitoTempo = getuseroption('useUtitoTempo')
local useExoriGran = getuseroption('useExoriGran')
local useExori = getuseroption('useExori')
local useExoriMin = getuseroption('useExoriMin')
local useExoriMas = getuseroption('useExoriMas')
local useExoriGranIco = getuseroption('useExoriGranIco')
local useExoriIco = getuseroption('useExoriIco')
local useExoriHur = getuseroption('useExoriHur')
-- Amount of monsters to use spells
local amountUtitoTempo = getuseroption('amountUtitoTempo')
local amountExoriGran = getuseroption('amountExoriGran')
local amountExori = getuseroption('amountExori')
local amountExoriMin = getuseroption('amountExoriMin')
local amountExoriMas = getuseroption('amountExoriMas')
local amountExoriGranIco = getuseroption('amountExoriGranIco')
local amountExoriIco = getuseroption('amountExoriIco')
local amountExoriHur = getuseroption('amountExoriHur')
-- PvP Security
local safePvpExoriGran = getuseroption('pvpSecurityExoriGran')
local safePvpExori = getuseroption('pvpSecurityExori')
local safePvpExoriMin = getuseroption('pvpSecurityExoriMin')
local safePvpExoriMas = getuseroption('pvpSecurityExoriMas')
-- Directions for exori min
local directions = {'n', 'w', 's', 'e'}
auto(100)
if useUtitoTempo == true and cancastspell('utito tempo') then
for _,a in ipairs(utitoTempoMonsters) do
if maround(0, a.name) >= amountUtitoTempo then
cast('utito tempo')
end
end
elseif useExoriGran == true and safePvpExoriGran == true then
for _,b in ipairs(exoriGranMonsters) do
if paround(1) == 0 and cancastspell('exori gran', $attacked) and $attacked.name == b.name and maround(1, b.name) >= amountExoriGran then
cast('exori gran')
end
end
elseif useExoriGran == true and safePvpExoriGran == false then
for _,c in ipairs(exoriGranMonsters) do
if cancastspell('exori gran', $attacked) and $attacked.name == c.name and maround(1, c.name) >= amountExoriGran then
cast('exori gran')
end
end
elseif useExori == true and safePvpExori == true then
for _,d in ipairs(exoriMonsters) do
if paround(1) == 0 and cancastspell('exori', $attacked) and $attacked.name == d.name and maround(1, d.name) >= amountExori then
cast('exori')
end
end
elseif useExori == true and safePvpExori == false then
for _,e in ipairs(exoriMonsters) do
if cancastspell('exori', $attacked) and $attacked.name == e.name and maround(1, e.name) >= amountExori then
cast('exori')
end
end
elseif useExoriMin == true and safePvpExoriMin == true then
for _,f in ipairs(exoriMinMonsters) do
if paround(1) == 0 and cancastspell('exori min', $attacked) and $attacked.name == f.name and maround(1, f.name) >= amountExoriMin then
for _,g in pairs(directions) do
if maroundspell('exori min', g) then
turn(g)
wait(200)
cast('exori min')
end
end
end
end
elseif useExoriMin == true and safePvpExoriMin == false then
for _,h in ipairs(exoriMinMonsters) do
if cancastspell('exori min', $attacked) and $attacked.name == h.name and maround(1, h.name) >= amountExoriMin then
for _,i in pairs(directions) do
if maroundspell('exori min', i) then
turn(i)
wait(200)
cast('exori min')
end
end
end
end
elseif useExoriMas == true and safePvpExoriMas == true then
for _,j in ipairs(exoriMasMonsters) do
if paround(1) == 0 and cancastspell('exori mas', $attacked) and $attacked.name == j.name and maround(3, j.name) >= amountExoriMas then
cast('exori mas')
end
end
elseif useExoriMas == true and safePvpExoriMas == false then
for _,k in ipairs(exoriMasMonsters) do
if cancastspell('exori mas', $attacked) and $attacked.name == k.name and maround(3, k.name) >= amountExoriMas then
cast('exori mas')
end
end
elseif useExoriGranIco == true and cancastspell('exori gran ico', $attacked) then
for _,l in ipairs(exoriGranIcoMonsters) do
if $attacked.name == l.name and maround(1, l.name) >= amountExoriGranIco then
cast('exori gran ico')
end
end
elseif useExoriIco == true and cancastspell('exori ico', $attacked) then
for _,m in ipairs(exoriIcoMonsters) do
if $attacked.name == m.name and maround(1, m.name) >= amountExoriIco then
cast('exori ico')
end
end
elseif useExoriHur == true and cancastspell('exori hur', $attacked) then
for _,n in ipairs(exoriHurMonsters) do
if $attacked.name == n.name and maround(1, n.name) >= amountExoriHur then
cast('exori hur')
end
end
end
RP
a) JSON:
Code:
{
"type" : "group",
"name" : "Premium offensive spells",
"children" : [
{
"type" : "group",
"name" : "useExoriGranCon",
"text" : "Exori gran con",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountExoriGranCon",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 1
}
]
},
{
"type" : "group",
"name" : "useExoriCon",
"text" : "Exori con",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountExoriCon",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 1
}
]
},
{
"type" : "group",
"name" : "useExoriSan",
"text" : "Exori san",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountExoriSan",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 1
}
]
},
{
"type" : "group",
"name" : "useExevoMasSan",
"text" : "Exevo mas san",
"checkable" : true,
"value" : false,
"children" : [
{
"type" : "spinbox",
"name" : "amountExevoMasSan",
"text" : "Amount of monsters to use:",
"suffix" : " monster(s)",
"min" : 1,
"max" : 99,
"value" : 4
},
{
"type" : "checkbox",
"name" : "pvpSecurity",
"text" : "PvP security",
"value" : false
}
]
}
]
}
b) Pesistent "RP spells attacker":
Code:
-- Monsters to use spells on them
local exoriGranConMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
local exoriConMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
local exoriSanMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
local exevoMasSanMonsters = {
{name = 'Monster1'},
{name = 'Monster2'}
}
-- DO NOT CHANGE ANYTHING BELOW
-- Use/not use spell
local useExoriGranCon = getuseroption('useExoriGranCon')
local useExoriCon = getuseroption('useExoriCon')
local useExoriSan = getuseroption('useExoriSan')
local useExevoMasSan = getuseroption('useExevoMasSan')
-- Amount of monsters to use spells
local amountExoriGranCon = getuseroption('amountExoriGranCon')
local amountExoriCon = getuseroption('amountExoriCon')
local amountExoriSan = getuseroption('amountExoriSan')
local amountExevoMasSan = getuseroption('amountExevoMasSan')
-- PvP Security
local safePvp = getuseroption('pvpSecurity')
auto(100)
if useExoriGranCon == true and cancastspell('exori gran con', $attacked) then
for _,a in ipairs(exoriGranConMonsters) do
if $attacked.name == a.name and maround(7, a.name) >= amountExoriGranCon then
cast('exori gran con')
end
end
elseif useExoriCon == true and cancastspell('exori con', $attacked) then
for _,b in ipairs(exoriConMonsters) do
if $attacked.name == b.name and maround(7, b.name) >= amountExoriCon then
cast('exori con')
end
end
elseif useExoriSan == true and cancastspell('exori san', $attacked) then
for _,c in ipairs(exoriSanMonsters) do
if $attacked.name == c.name and maround(7, c.name) >= amountExoriSan then
cast('exori san')
end
end
elseif useExevoMasSan == true and safePvp == true then
for _,d in ipairs(exevoMasSanMonsters) do
if paround(3) == 0 and cancastspell('exevo mas san', $attacked) and $attacked.name == d.name and maround(3, d.name) >= amountExevoMasSan then
cast('exevo mas san')
end
end
elseif useExevoMasSan == true and safePvp == false then
for _,e in ipairs(exevoMasSanMonsters) do
if cancastspell('exevo mas san', $attacked) and $attacked.name == e.name and maround(3, e.name) >= amountExevoMasSan then
cast('exevo mas san')
end
end
end