All pastes #585293 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-23 05:10 UTC
rendered paste body
            bool hasCTABeenFound = false;

            for(int tries=0;tries<10;tries++)
            {
                if(game.Hero.GetItemAt(EquipmentLocation.LeftHand) != null)
                    if(game.Hero.GetItemAt(EquipmentLocation.LeftHand).Runeword == BaseRuneword.GetByName("Call to Arms"))
                        hasCTABeenFound = true;

                if(game.Hero.GetItemAt(EquipmentLocation.RightHand) != null)
                    if(game.Hero.GetItemAt(EquipmentLocation.RightHand).Runeword == BaseRuneword.GetByName("Call to Arms"))
                        hasCTABeenFound = true;

                if(hasCTABeenFound)
                    break;

                game.SwitchWeaponSlotWait();
            }