07-04-2019, 01:20 PM
Hello.
I didn't tested the codes that i will post, but people can use it as "start" to adapt for its own needs.
Check for mana gain. If your mana's value increases more than "1" since last run, it will play a sound, flash client and pause bot.
I didn't tested the codes that i will post, but people can use it as "start" to adapt for its own needs.
Check for mana gain. If your mana's value increases more than "1" since last run, it will play a sound, flash client and pause bot.
if connected() then
LAST_MANA = LAST_MANA or mp()
local current_mana = mp()
if (current_mana - LAST_MANA) > 1 then
playsound('default')
flashclient()
pausebot(true)
end
LAST_MANA = current_mana
else
LAST_MANA = nil
end