Author Topic: Train Bushido  (Read 2699 times)

0 Members and 1 Guest are viewing this topic.

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 2998
  • Activity:
    3.4%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Referrals: 2
    • View Profile
Train Bushido
« on: October 23, 2021, 09:43:01 PM »
Code: [Select]
function trainBushido() {
    const castSpellDelay = 3000;
    const skillValueGoal = 1000;
    const target = Player.Serial();
    const useSkillDelay = 10250;
    var SkillValue = Orion.SkillValue('Bushido', 'real');

    while (SkillValue < skillValueGoal) {
          if (SkillValue < 600)
              var spell = 'Confidence';
        else if (SkillValue < 750)
            var spell = 'Counter Attack';
        else
            var spell = 'Evasion';
 
           
        while (Player.Mana() < 15) {
            var meditating = false;
            while (!meditating) {
                Orion.ClearJournal();
                Orion.UseSkill('meditation');
                Orion.Wait(250);
                if (Orion.InJournal('You cannot focus your concentration|You stop meditating')){
                    Orion.Wait(useSkillDelay);
                    }
                else
                    var meditating = true;
            }
            Orion.WaitJournal('You are at peace', 0, Orion.Now() + 60000);
        }
        Orion.Cast(spell, target);
        Orion.Wait(castSpellDelay);

        skillValue = Orion.SkillValue('Bushido', 'real');
    }
}
« Last Edit: October 24, 2021, 04:50:54 AM by Crisis »

Tags: