Too funny. I literally just did one of these up last night for a toon. Dont want to hijack this(can delete if its not the right place for it) but since there are virtually no scripts here, figured a different style might be nice. A little less elegant, and just based on the stratics guide. I just started learning java when i started on the client last month.
function necroBot(){
var beastset = 0;
while(Orion.SkillValue('Necromancy') < 1200){
var skill = Orion.SkillValue('Necromancy');
if(Player.Mana() < 30){
do {
if(!Orion.BuffExists('Meditation'))
Orion.UseSkill('Meditation');
Orion.Wait(2000);
} while (Player.Mana() < Player.MaxMana() - 15);
}
if(!Player.IsHuman() && beastset == 1)
Orion.Cast('Horrific Beast');
if(Player.Hits() < Player.MaxHits() - 40)
Orion.Cast('Greater Heal', self);
if(skill < 400){
Orion.Print("Buy some skill");
Orion.PauseScript();
}
if(skill > 399 && skill < 500)
Orion.Cast('Pain Spike', self);
if(skill > 500 && skill < 700){
Orion.Cast('Horrific Beast');
bestset = 1;
}
if(skill > 699 && skill < 900)
Orion.Cast('Wither', self);
if(skill > 899 && skill < 1000)
Orion.Cast('Lich Form');
if(skill > 999 && skill < 1200)
Orion.Cast('Vampiric Embrace');
Orion.Wait(1500);
Orion.ClearJournal();
}
}