All pastes #407465 Raw Edit

Someone

public text v1 · immutable
#407465 ·published 2007-03-24 01:18 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Text;
using LavishVMAPI;
using ISXWoW;  

namespace Bytebot
{
    class Rogue : IToon 
    {
        public int MinimumCombatRange()
        {
            return 0;
        }

        public int MaximumCombatRange()
        {
            return 5;
        }

        public bool Rest()
        {
            Frame.Lock();
            try
            {
                if (Bytebot.Global.WoW.Me.HealthPercent < 99)
                {
                    //eat drink sit and return true if I did.
                    return true;
                }
            }
            finally
            {
                Frame.Unlock();
            }
            return false;
        }

        public void Attack()
        {
            Frame.Lock();
            try
            {
                if (Bytebot.Global.WoW.Me.Attacking && Bytebot.Global.WoW.Me.ComboPoints >= 1
                    && Bytebot.Global.WoW.Me.CurrentTarget.Health < (Bytebot.Global.WoW.Me.CurrentTarget.MaxHealth * .35))
                {
                    WoWSpell.Get("Eviscerate").Cast();
                }
                if (Bytebot.Global.WoW.Me.Attacking && Bytebot.Global.WoW.Me.ComboPoints > 4)
                {
                    WoWSpell.Get("Eviscerate").Cast();
                }
                if (Bytebot.Global.WoW.Me.Attacking && Bytebot.Global.WoW.Me.Action("Sinister Strike").Usable)
                {
                    WoWSpell.Get("Sinister Strike").Cast();
                }
                if (!Bytebot.Global.WoW.Me.Attacking)
                {
                    Bytebot.Global.WoW.Me.ToggleAttack();
                }
            }
            finally
            {
                Frame.Unlock();
            }
        }
    }
}