PDA

View Full Version : cant get my exura sio script to work!!



huntmaster
02-23-2016, 07:15 PM
i converted to .lua script but it seems that something is wrong. im using this script i found

local namesList = {"x", "x"}
local sioPercent = 60

while true do
for n, c in Creature.iPlayers() do
if (table.find(namesList, n, false) and c:HealthPercent() < sioPercent) then
if (getSelfSpellCooldown("exura sio") == 0 and Self.Mana() >= 140) then
Self.Say("exura sio "" ..n)
end
end
end
wait(200)
end

Jontor
02-23-2016, 07:24 PM
huntmaster
Should look like this:


local namesList = {"x", "x"}
local sioPercent = 60

while true do
for n, c in Creature.iPlayers() do
if (table.find(namesList, n, false) and c:HealthPercent() < sioPercent) then
if (getSelfSpellCooldown("exura sio") == 0 and Self.Mana() >= 140) then
Self.Say("exura sio \"" ..n)
end
end
end
wait(200)
end

Make sure to use capital letters in namesList table

huntmaster
02-24-2016, 02:54 AM
idk what im doing wrong, but its not working.

huntmaster
02-24-2016, 02:56 AM
what im doing is copy paste in a notepad and converting into lua, that is possible right?

Jontor
02-24-2016, 07:25 AM
what im doing is copy paste in a notepad and converting into lua, that is possible right?

Are you getting any error? OT?