05-03-2019, 04:40 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.
This script will ENABLE the runemaker every X seconds AFTER MAKING LAST RUNE, but it will only do that if have mana enough. After enabling runemaker, it will wait 10 seconds (which you can increase, this time must be enough to move blanks, cast spell and move "made" rune back to backpack) and disable it.
I didn't tested the codes that i will post, but people can use it as "start" to adapt for its own needs.
This script will ENABLE the runemaker every X seconds AFTER MAKING LAST RUNE, but it will only do that if have mana enough. After enabling runemaker, it will wait 10 seconds (which you can increase, this time must be enough to move blanks, cast spell and move "made" rune back to backpack) and disable it.
local Time_MakeRune = 300 -- Time to wait between runes to enable Runemaker, in seconds.
local manaCondition = 'Mana above' -- Condition to mane runes: Mana above or Mana percent
local manaValue = 500 -- Value to make runes.
LAST_RUNE_TIME = LAST_RUNE_TIME or 1
local currentValue = mppc()
if manaCondition:lower() == 'mana above' then
currentValue = mp()
end
local timeNow = runningtime()
if currentValue >= manaValue and (timeNow - LAST_RUNE_TIME) >= Time_MakeRune then
setsettings('Runemaker/Enabled', true)
wait(10000)
LAST_RUNE_TIME = timeNow
setsettings('Runemaker/Enabled', false)
else
local runemakerEnabled = getsettings('Runemaker/Enabled')
if runemakerEnabled then
setsettings('Runemaker/Enabled', false)
end
end