public static void CreateReward(EventRewardInfo info, Mobile m) { if (m == null) return; Item item = null; switch (info.IncrID) { case 0: item = new MagicSewingKit(1); break; case 1: string str = "PottedCactus"; int randint = Utility.Random(6); if (randint > 0) str = str + randint.ToString(); Type type = ScriptCompiler.FindTypeByName(str); item = (Item)Activator.CreateInstance(type); item.Weight = 100; break; case 2: if (Utility.RandomBool()) item = new PottedTree(); else item = new PottedTree1(); break; case 3: switch (Utility.Random(3)) { case 0: item = new PottedPlant(); break; case 1: item = new PottedPlant1(); break; case 2: item = new PottedPlant2(); break; } break; case 4: item = new SpecialHairDye(); break; case 5: item = new SpecialBeardDye(); break; case 6: item = new TempHorseEthereal(50); item.Hue = Utility.Random(795, 7); break; case 7: item = new FireworksWand(99); break; case 8: item = new LayeredSashDeed(); break; case 9: item = new SkillBall(1); break; case 10: item = new SkillBall(5); break; case 11: item = new SkillBall(10); break; case 12: item = new SkillBall(25); break; case 13: item = new SkillBall(50); break; case 14: item = new PersonalisationDeed(); break; case 15: item = new CrystalPedestalAddonDeed(); break; case 16: item = new FountainStoneAddonDeed(); break; case 17: item = new FountainSandstoneAddonDeed(); break; case 18: item = new SquirrelStatueEastDeed(); break; case 19: item = new SquirrelStatueSouthDeed(); break; case 20: item = new ArcanistStatueEastDeed(); break; case 21: item = new ArcanistStatueSouthDeed(); break; case 22: item = new WarriorStatueEastDeed(); break; case 23: item = new WarriorStatueSouthDeed(); break; case 24: item = new TempRobe(31); ((BaseClothing)item).Attributes.RegenHits = 3; break; case 25: item = new TempCloak(31); ((BaseClothing)item).Attributes.RegenHits = 3; break; case 26: item = new CampfireDeed(); break; case 27: item = new FireDeed(); break; case 28: item = new SoulstoneFragment(); ((SoulstoneFragment)item).Account = m.Account.Username; break; case 29: item = new NameChangeDeed(); break; case 30: item = new SexChangeDeed(); break; case 31: item = new KillResetDeedAOS(); break; case 32: item = new PetBondingDeed(); break; case 33: item = new WarHorseBondingDeed(); break; case 34: item = new AntiBlessDeed(); break; case 35: item = new WhisperingRose(m.Name); break; case 36: item = new WeddingDeed(); break; case 37: item = new KillBook(); ((KillBook)item).BookOwner = m; break; } if (item != null) { m.AddToBackpack(item); m.SendMessage("The reward item has been placed into your backpack, have fun!"); } else { m.SendMessage("That item is not available. Please report the bug at the site that will open in your browser."); m.LaunchBrowser( "http://bug.casiopia.net/" ); m.AddToBackpack( new CopperBar(info.Price) ); } }
public BondTarget(PetBondingDeed charge) : base(10, false, TargetFlags.None) { m_Powder = charge; }
public BondTarget( PetBondingDeed charge ) : base ( 10, false, TargetFlags.None ) { m_Powder=charge; }
public BondingTarget( PetBondingDeed deed ) : base( 1, false, TargetFlags.None ) { m_Deed = deed; }
public BondingTarget(PetBondingDeed deed) : base(1, false, TargetFlags.None) { m_Deed = deed; }