Your request doesn't matches what you just said above. Runemaker -> Refill Settings -> Character and on Danger will stand on a place and run to on danger sqm when some danger triggers.
Anyway, here it goes. If you need a different thing, you will need to explain exactly (maybe even step-by-step) what you need the script to do.
local SPELL_MANA = 100 -- Mana to go out and make rune.
local SPELL_WORDS = 'adori gran' -- Spellwords to make rune.
local LOCATION_MAKERUNE = { X = 12345, Y = 12345, Z = 6 } -- Location to go when Mana is higher than SPELL_MANA.
local LOCATION_WALKBACK = { X = 12345, Y = 12345, Z = 6 } -- Location to go after making rune or when no mana to make rune.
local CHECK_LOCATION = false
if runemaker_isondanger() == false and runemaker_isrefilling() == false then
if mp() >= SPELL_MANA then
if reachlocation(LOCATION_MAKERUNE.X, LOCATION_MAKERUNE.Y, LOCATION_MAKERUNE.Z, true) then
wait(400, 800)
cast(SPELL_WORDS)
wait(200, 400)
CHECK_LOCATION = true
end
else
CHECK_LOCATION = true
end
if CHECK_LOCATION and (posx() ~= LOCATION_WALKBACK.X or posy() ~= LOCATION_WALKBACK.Y) then
reachlocation(LOCATION_WALKBACK.X, LOCATION_WALKBACK.Y, LOCATION_WALKBACK.Z, true)
wait(400, 800)
end
end
This will use Alana sio instead of walking back.
local SPELL_MANA = 100 -- Mana to go out and make rune.
local SPELL_WORDS = 'adori gran' -- Spellwords to make rune.
local LOCATION_MAKERUNE = { X = 12345, Y = 12345, Z = 6 } -- Location to go when Mana is higher than SPELL_MANA.
if runemaker_isondanger() == false and runemaker_isrefilling() == false then
if mp() >= SPELL_MANA then
if reachlocation(LOCATION_MAKERUNE.X, LOCATION_MAKERUNE.Y, LOCATION_MAKERUNE.Z, true) then
wait(400, 800)
cast(SPELL_WORDS)
wait(200, 400)
say('alana sio')
end
elseif posx() == LOCATION_MAKERUNE.X and posy() == LOCATION_MAKERUNE.Y then
say('alana sio')
wait(400, 800)
end
end