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.
Mana
Health
Mana and Health
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.
Mana
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
Health
if connected() then
LAST_HEALTH = LAST_HEALTH or hp()
local current_health = hp()
if (current_health - LAST_HEALTH) > 1 then
playsound('default')
flashclient()
pausebot(true)
end
LAST_HEALTH = current_health
else
LAST_HEALTH = nil
end
Mana and Health
if connected() then
LAST_MANA = LAST_MANA or mp()
LAST_HEALTH = LAST_HEALTH or hp()
local current_mana = mp()
local current_health = hp()
if (current_mana - LAST_MANA) > 1 or (current_health - LAST_HEALTH) > 1 then
playsound('default')
flashclient()
pausebot(true)
end
LAST_MANA = current_mana
LAST_HEALTH = current_health
else
LAST_MANA = nil
LAST_HEALTH = nil
end