Can you try to reconvert the script and see if it works? After updating your libraries, of course.Quote:
on ibot this action worked and cast UE. while converting it wont cast any UE..
Code:auto(100, 150)
local MonsterToUe = {"Souleater", "Killer Caiman", "Mutated Bat", "Mutated Tiger"}
local MonsterToGfb = {"Mutated Rat", "Souleater", "Mutated Bat", "Mutated Tiger", "Killer Caiman"}
local MonsterToMStrike = {"Souleater", "Killer Caiman", "Mutated Bat", "Mutated Tiger"}
local MonsterToSStrike = {"Souleater", "Killer Caiman", "Mutated Bat", "Mutated Tiger", "Mutated Rat"}
local MonsterToStrike = {"Souleater", "Mutated Bat", "Death Blob", "Mutated Rat", "Killer Caiman"}
local MonsterToMortStrike = {"Mutated Tiger"}
local ue = UeSpellName
local MStrike = "exori max tera"
local SStrike = "exori gran tera"
local STRIKE = "exori flam"
function ISSHOOTABLE()
for POSX, POSY, POSZ in Tile.ScreenArea() do
if Tile.GetByPosition($attacked.POSX, $attacked.POSY, $attacked.POSZ):isShootable() then
return true
end
end
return false
end
local HppcToUe = 93
local Amount = 0
local HPPC_Amount = 0
local SouleatersCount = 0
local SouleatersHp = 0
for CREATURE in Creature.GetAll("ms") do
if (table.find(MonsterToUe, CREATURE:Name()) and Spell.isOnSpellArea(CREATURE, "5x5", false)) then
if CREATURE:Name() == "Souleater" then
SouleatersCount = SouleatersCount + 1
SouleatersHp = SouleatersHp + CREATURE:HealthPercent()
end
Amount = Amount + 1
HPPC_Amount = HPPC_Amount + CREATURE:HealthPercent()
end
end
local AvgHp = HPPC_Amount/Amount
local AvgHp2 = SouleatersHp/SouleatersCount
if Self.CoolDown(SPELL_GROUP_ATTACK) == 0 and ((($targeting and LureMode) or not LureMode) or $standtime > 10000) and ($posz < 7 or $standtime > 10000)then
if CastUE and ((Amount >= CreatureToUe and AvgHp <= HppcToUe) or (SouleatersCount >= 4 and AvgHp2 <= 90)) and cancastspell(ue) and (not PvP_Server or (paroundfloor(10, 15) == 0 and ($timems-$playerlastseen) >= 12000)) and ($posz <= 6 or ($standtime > 10000 and $posz == 7)) then
cast(ue)
wait(200)
elseif ((shootarearune("great fireball rune", 2, unpack(MonsterToGfb))) or (maround(5, "Death Blob") > 2)) and (not PvP_Server or (paroundfloor(10, 15) == 0 and ($timems-$playerlastseen) >= 22000)) and itemcount("great fireball rune") > 0 then
shootarearune("great fireball rune", 1, "Mutated Rat", "Souleater", "Mutated Bat", "Mutated Tiger", "Killer Caiman", "Death Blob")
elseif $attacked.id ~= 0 and $attacked.dist <= 3 then
if UseMaxStrike and $attacked.hppc >= 60 and cancastspell(MStrike) and table.find(MonsterToMStrike, $attacked.name) and ISSHOOTABLE() then
cast(MStrike)
wait(200)
elseif UseStrongStrike and $attacked.hppc >= 45 and cancastspell(SStrike) and table.find(MonsterToSStrike, $attacked.name) and ISSHOOTABLE() then
cast(SStrike)
wait(200)
elseif cancastspell(STRIKE) and table.find(MonsterToStrike, $attacked.name) and ISSHOOTABLE() then
cast(STRIKE)
wait(200)
elseif cancastspell("exori moe ico") and table.find(MonsterToMortStrike, $attacked.name) and ISSHOOTABLE() then
cast("exori moe ico")
wait(200)
end
end
end