PDA

View Full Version : xenobot problem with files lua (scripter)



Mariox
03-08-2018, 03:00 PM
hello, I have a problem with lua scripts, I copy them and re-write them in a notepad or notepad+ and do not work throw them back to the list


return math.abs(Self.Mana() / (Self.MaxMana() * 0.01))

end



Module.New('WasteMana', function()

if Self.ManaPercent() >= 95 then -- Mana parcent if higher cast both spells.

Self.Cast('Utana Vid', 500)

wait(200)

Self.Cast('Exura Vita',160)

end

end)

L!p3
03-08-2018, 09:56 PM
hello, I have a problem with lua scripts, I copy them and re-write them in a notepad or notepad+ and do not work throw them back to the list

function ManaPercent()
return math.abs(Self.Mana() / (Self.MaxMana() * 0.01))
end


Module.New('WasteMana', function(wmana)
if ManaPercent() >= 95 then -- Mana parcent if higher cast both spells.
Self.Cast('Utana Vid', 500)
wait(200)
Self.Cast('Exura Vita',160)
end
wmana:Delay(100)
end)