I would appreciate so so much if someone can help me to solve this ^^ , i'm using this hotkey to attack monsters but it use exori san even if bolt isn't thrown yet , what i mean it don't wait till bolt is thrown to use san and i want to use bolt and then san how can i solve it? XD or if someone have a different hotkey with a getuseroption of safe spell i would love it :
init start
local SAFELIST = {"Raphael"}
local MONSTERS = {"Demon", "Massive Fire Elemental"}
local SPELLS = {
FIRST = {words = "exevo mas san", mp = 340, count = getuseroption("AmounttoMasSan")},
SECOND = {words = "exori san", mp = 200, count = 1},
}
local AREAS = {
}
local function insideArea()
if getuseroption("SafeExori") then
for _, SPECIAL_AREA in ipairs(AREAS) do
if ($posx >= SPECIAL_AREA[1][1] and $posy >= SPECIAL_AREA[1][2] and $posx <= SPECIAL_AREA[2][1] and $posy <= SPECIAL_AREA[2][2] and $posz == SPECIAL_AREA[3]) then
return true
end
end
end
return false
end
init end
auto(100)
if getuseroption("SafeExori") then
if (paround(10) - paround(10, unpack(SAFELIST))) == 0 and not insideArea() then
if maround(1, unpack(MONSTERS)) >= SPELLS.FIRST.count and $attacked.id ~= 0 then
if $mp >= SPELLS.FIRST.mp and cooldown(SPELLS.FIRST.words) < 500 then
cast(SPELLS.FIRST.words)
end
if $mp >= SPELLS.SECOND.mp and $attacked.id ~= 0 and cooldown(SPELLS.SECOND.words) < 500 then
cast(SPELLS.SECOND.words)
end
elseif maround(4, unpack(MONSTERS)) >= SPELLS.SECOND.count and $attacked.id ~= 0 then
if $mp >= SPELLS.SECOND.mp and cooldown(SPELLS.SECOND.words) < 500 then
cast(SPELLS.SECOND.words)
end
end
end
elseif not getuseroption("SafeExori") then
if maround(1, unpack(MONSTERS)) >= SPELLS.FIRST.count and $attacked.id ~= 0 then
if $mp >= SPELLS.FIRST.mp and cooldown(SPELLS.FIRST.words) < 500 then
cast(SPELLS.FIRST.words)
end
if $mp >= SPELLS.SECOND.mp and $attacked.id ~= 0 and cooldown(SPELLS.SECOND.words) < 500 then
cast(SPELLS.SECOND.words)
end
elseif maround(4, unpack(MONSTERS)) >= SPELLS.SECOND.count and $attacked.id ~= 0 then
if $mp >= SPELLS.SECOND.mp and cooldown(SPELLS.SECOND.words) < 500 then
cast(SPELLS.SECOND.words)
end
end
end
Also is there an option to count demon dust on monitor my hunting that are obtained by staking monsters?