hello im trying to find a simple persistent for invisible spell to cast when is not invisible
i tried doing it with condition healer but it wont work no matter how i set it
hello im trying to find a simple persistent for invisible spell to cast when is not invisible
i tried doing it with condition healer but it wont work no matter how i set it
bump,
it's like $invisible doesnt work...
does it work for anyone through condition healer or through a persistent?
edit: silly me.. seems this function doesnt work inside safe zone, but outside works fine
Last edited by shokerlol; 08-12-2017 at 12:40 AM.
Persistent complete
auto(1000)
local UseInvisible = true
local CheckMonsters = true
local CheckPlayer = true
local SafeListPlayer = {"name1", "name2"}
local Monsters = {"name1", "name2"}
local NumberMonsters = 3 --larger or equal
local Sections = {"Hunt"} -- {"Hunt"} or {"Floor 1", "Floor 2"}
local LessTime = 2 --seconds, seconds left of invisibility
--=====================================
if $connected then
if UseInvisible then
if table.find(Sections, $wptsection) then
if (not CheckMonsters) or (CheckMonsters and maroundreachable(10, unpack(Monsters)) > NumberMonsters) or (not CheckPlayer) or (CheckPlayer and paround(10) > 0 - paround(10, unpack(SafeListPlayer))) then
if $invistime <= LessTime*1000 and cancastspell("utana vid") then
cast("utana vid")
wait(300,500)
end
end
end
end
end
Persistent simple
auto(1000)
local UseInvisible = true
local LessTime = 2 --seconds, seconds left of invisibility
--=====================================
if $connected then
if UseInvisible then
if $invistime <= LessTime*1000 and cancastspell("utana vid") then
cast("utana vid")
wait(300,500)
end
end
end