I made this up for my low level druid when he gets low on mana
hope someone else finds this useful
--Rod to Weapon Changer
local Rod = 3070 -- Id of Rod
local Sword = 3271 -- Id of Weapon
auto(1000)
if ($mppc < 40 and $rhand.id == Rod) then --at less than 40% mana changes to weapon
equipitem('Sword', 'rhand') wait(200, 300)
elseif ($mppc > 55 and $rhand.id == Sword) then -- at more than 55% mana it changes back to rod
equipitem('Rod', 'rhand') wait(200, 300)
end
and I put it in cavebot scripts (for our newer members)