// Use this for initialization void Start() { //Making boots buyable GreyBoots.onClick.AddListener(BuyGreyBoots); OrangeBoots.onClick.AddListener(BuyOrangeBoots); RedBoots.onClick.AddListener(BuyRedBoots); GreenBoots.onClick.AddListener(BuyGreenBoots); WhiteBoots.onClick.AddListener(BuyWhiteBoots); BlueBoots.onClick.AddListener(BuyBlueBoots); //Makes the confirmation text for the buttons to be false confirmText.enabled = false; yesText.enabled = false; noText.enabled = false; buyConfirmButton.enabled = false; buyConfirm.enabled = false; yesBuyButton.enabled = false; yesBuyButton.GetComponent <Image>().enabled = false; background.GetComponent <Image>().enabled = false; noBuyButton.enabled = false; noBuyButton.GetComponent <Image>().enabled = false; BootsControlButton.enabled = false; BootsControlButton.GetComponent <Image>().enabled = false; GreyBoots.enabled = true; GreyBoots.GetComponent <Image>().enabled = true; OrangeBoots.enabled = true; OrangeBoots.GetComponent <Image>().enabled = true; RedBoots.enabled = true; RedBoots.GetComponent <Image>().enabled = true; GreenBoots.enabled = true; GreenBoots.GetComponent <Image>().enabled = true; WhiteBoots.enabled = true; WhiteBoots.GetComponent <Image>().enabled = true; BlueBoots.enabled = true; BlueBoots.GetComponent <Image>().enabled = true; buyGreyBoots = false; buyOrangeBoots = false; buyRedBoots = false; buyGreenBoots = false; buyWhiteBoots = false; buyBlueBoots = false; ownsGreyBootsBool = GameObject.Find("Global_Gamemanager").GetComponent <GlobalGameManager>().GreyBootsOwned; ownsOrangeBootsBool = GameObject.Find("Global_Gamemanager").GetComponent <GlobalGameManager>().OrangeBootsOwned; ownsRedBootsBool = GameObject.Find("Global_Gamemanager").GetComponent <GlobalGameManager>().RedBootsOwned; ownsGreenBootsBool = GameObject.Find("Global_Gamemanager").GetComponent <GlobalGameManager>().GreenBootsOwned; ownsWhiteBootsBool = GameObject.Find("Global_Gamemanager").GetComponent <GlobalGameManager>().WhiteBootsOwned; ownsBlueBootsBool = GameObject.Find("Global_Gamemanager").GetComponent <GlobalGameManager>().BlueBootsOwned; //Gets the value of the boots bought from the hard drive greyBootsBought = PlayerPrefs.GetInt("greyBootsOwned"); orangeBootsBought = PlayerPrefs.GetInt("orangeBootsOwned"); redBootsBought = PlayerPrefs.GetInt("redBootsOwned"); greenBootsBought = PlayerPrefs.GetInt("greenBootsOwned"); whiteBootsBought = PlayerPrefs.GetInt("whiteBootsOwned"); blueBootsBought = PlayerPrefs.GetInt("blueBootsOwned"); //gets audiosource for yes and no buttons //audio = GetComponent<AudioSource>(); }
public BlueKaysa() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Kaysa"; Title = "the Turquoise Druid"; Female = true; Race = Race.Elf; Body = 606; SpeechHue = 1436; Hue = 33773; SetStr(500); SetDex(125); SetInt(1000); SetHits(25000); SetDamage(17, 21); SetDamageType(ResistanceType.Poison, 100); SetResistance(ResistanceType.Physical, 40); SetResistance(ResistanceType.Fire, 35); SetResistance(ResistanceType.Cold, 30); SetResistance(ResistanceType.Poison, 95); SetResistance(ResistanceType.Energy, 45); SetSkill(SkillName.Magery, 120.0); SetSkill(SkillName.EvalInt, 100.0); SetSkill(SkillName.Meditation, 120.0); SetSkill(SkillName.MagicResist, 120.0); SetSkill(SkillName.Tactics, 120.0); SetSkill(SkillName.Wrestling, 100.0); Fame = 28000; Karma = -28000; VirtualArmor = 64; HairItemID = 0x203D; HairHue = 1119; #region Equipment // Chest BlueShirt chest = new BlueShirt(); chest.ItemID = 0x1C0A; chest.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { chest.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1436, chest); // Legs BluePants legs = new BluePants(); legs.ItemID = 0x1C00; legs.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { legs.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1436, legs); // Arms BlueArms arms = new BlueArms(); arms.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { arms.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1436, arms); // Boots BlueBoots boots = new BlueBoots(); boots.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { boots.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1436, boots); #endregion }
public BlueQuina() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Body = 400; Name = "Quina"; Title = "Quen"; Hue = 2219; SpeechHue = 2219; Female = Utility.RandomBool(); SetStr(120); SetDex(90); SetInt(200); SetHits(7000); SetDamageType(ResistanceType.Physical, 0); SetDamageType(ResistanceType.Cold, 100); SetResistance(ResistanceType.Physical, 45, 55); SetResistance(ResistanceType.Fire, 45, 55); SetResistance(ResistanceType.Cold, 100); SetResistance(ResistanceType.Poison, 45, 55); SetResistance(ResistanceType.Energy, 35, 45); SetSkill(SkillName.MagicResist, 145.1, 160.0); // Damage Pitchfork 13~14. Str +25% SetSkill(SkillName.Fencing, 100); // +25% SetSkill(SkillName.Tactics, 80.0); // +50% SetSkill(SkillName.Anatomy, 200.0); // +45% // Total 145% // Output: 31.85~34.3 Fame = 15000; Karma = -15000; VirtualArmor = 50; PackItem(new FrogDropBag()); // Weapon Pitchfork weapon = new Pitchfork(); weapon.Name = "<BASEFONT COLOR='#800000'>Fork of Maiming"; weapon.Attributes.AttackChance = 25; weapon.WeaponAttributes.HitLowerDefend = 100; weapon.AosElementDamages.Fire = 100; Ability.GiveItem(this, 1294, weapon); // Hat BlueHat hat = new BlueHat(); hat.ItemID = 5907; hat.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { hat.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1436, hat); // Chest BlueShirt chest = new BlueShirt(); chest.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { chest.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1194, chest); // Belt BlueBelt belt = new BlueBelt(); belt.ItemID = 5435; belt.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { belt.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 2017, belt); // Legs BluePants legs = new BluePants(); legs.ItemID = 5422; legs.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { legs.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1619, legs); // Boots BlueBoots boots = new BlueBoots(); boots.ItemID = 5901; boots.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { boots.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1436, boots); }