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.
For those that are hunting, you can try this:
This script will disable runemaker for around 10 to 15 seconds if you gain more than 1 mana since last script run.
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()
LAST_MANA = nil
pausebot(true)
else
LAST_MANA = current_mana
end
else
LAST_MANA = nil
endFor those that are hunting, you can try this:
if connected() then
LAST_MANA = LAST_MANA or mp()
LAST_LEVEL = LAST_LEVEL or level()
local current_mana = mp()
local current_level = level()
if (current_mana - LAST_MANA) > 1 and current_level == LAST_LEVEL then
playsound('default')
flashclient()
LAST_MANA = nil
LAST_LEVEL = nil
pausebot(true)
else
LAST_MANA = current_mana
LAST_LEVEL = current_level
end
else
LAST_MANA = nil
LAST_LEVEL = nil
endThis script will disable runemaker for around 10 to 15 seconds if you gain more than 1 mana since last script run.
local mana_gain_alert = 1 -- More than this value means alert and disable runemaker, wait 10-15s and enable again.
if connected() then
LAST_MANA = LAST_MANA or mp()
local current_mana = mp()
if (current_mana - LAST_MANA) > mana_gain_alert then
playsound('default')
flashclient()
setsettings('Runemaker/Enabled', false)
wait(10000, 15000)
setsettings('Runemaker/Enabled', true)
end
LAST_MANA = current_mana
else
LAST_MANA = nil
end
