using System;
using Server;
using Server.Items;
using System.Collections;
using System.Collections.Generic;
using Server.ContextMenus;
using Server.Gumps;
using Server.Multis;
using Server.Targeting;
using Server.Mobiles;
namespace Server.Items
{
public class FlatScreenTvEastAddon : BaseAddon
{
public override BaseAddonDeed Deed
{
get
{
return new FlatScreenTvEastAddonDeed();
}
}
[ Constructable ]
public FlatScreenTvEastAddon()
{
// TV Screen - Hued Black:
AddComplexComponent( (BaseAddon) this, 268, 0, 0, 2, 1, -1, "4k Flat Screen", 1);// 1
AddComplexComponent( (BaseAddon) this, 268, 0, 1, 2, 1, -1, "4k Flat Screen", 1);// 2
// TV Frame One Side - Hued Grey:
AddComplexComponent( (BaseAddon) this, 64, 0, -1, 1, 2106, -1, "Frame", 1);// 3
//AddComplexComponent( (BaseAddon) this, 64, 0, 1, 2, 2106, -1, "Frame", 1);// 4
// TV Frames Top Bottom - Hued Grey:
AddComplexComponent( (BaseAddon) this, 81, 0, 0, 12, 2106, -1, "Frame", 1);// 5
AddComplexComponent( (BaseAddon) this, 81, 0, 1, 12, 2106, -1, "Frame", 1);// 6
AddComplexComponent( (BaseAddon) this, 81, 0, 1, 0, 2106, -1, "Frame", 1);// 7
AddComplexComponent( (BaseAddon) this, 81, 0, 0, 0, 2106, -1, "Frame", 1);// 8
// TV Channel Button - Hued Green:
AddComplexComponent( (BaseAddon) this, 273, 0, 1, 7, 2702, -1, "Channel Button", 1);// 4
// TV On/Off Button - Hued Red:
AddComplexComponent( (BaseAddon) this, 696, 0, 1, 2, 2642, -1, "On/Off Button", 1);// 4
}
public FlatScreenTvEastAddon( Serial serial ) : base( serial )
{
}
private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource)
{
AddComplexComponent(addon, item, xoffset, yoffset, zoffset, hue, lightsource, null, 1);
}
private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource, string name, int amount)
{
AddonComponent ac;
ac = new AddonComponent(item);
if (name != null && name.Length > 0)
ac.Name = name;
if (hue != 0)
ac.Hue = hue;
if (amount > 1)
{
ac.Stackable = true;
ac.Amount = amount;
}
if (lightsource != -1)
ac.Light = (LightType) lightsource;
addon.AddComponent(ac, xoffset, yoffset, zoffset);
}
public virtual bool CanUseFromHouse { get { return true; } }
public override void OnComponentUsed(AddonComponent ac, Mobile from)
{
BaseHouse house = BaseHouse.FindHouseAt(this);
if (house != null && !house.IsOwner(from))
{
from.SendMessage("You do not own this.");
return;
}
if (!from.InRange(GetWorldLocation(), 2))
{
from.SendMessage("You are too far away.");
return;
}
int firewrk = Utility.RandomList( 1065, 1066, 1082, 1089, 1099, 1071, 1073, 1076, 1102 );
int firewrks = Utility.RandomList( 1066, 1082, 1089, 1099, 1102, 1088, 1088 );
if(TurnedOn(this, 7916))
{
TurnOff(from, this, 7916); // head east
TurnOff(from, this, 7897); // head south
TurnOff(from, this, 10984); // galaxy
TurnOff(from, this, 15536); // garland south
TurnOff(from, this, 15542); // garland east
TurnOff(from, this, 15686); // candles south
TurnOff(from, this, 15682); // candles east
TurnOff(from, this, 3676); // rune Y
TurnOff(from, this, 3679); // rune P
TurnOff(from, this, 3682); // rune M
TurnOff(from, this, 3685); // rune F
TurnOff(from, this, 3688); // rune N
TurnOff(from, this, 15442); // Small rune F
TurnOff(from, this, 15448); // Small rune Z
TurnOff(from, this, 15446); // Small rune T
TurnOff(from, this, 15445); // Small rune X
TurnOff(from, this, 15444); // Small rune Y
TurnOff(from, this, 15443); // Small rune B
TurnOff(from, this, 15447); // Small rune X
TurnOff(from, this, 15449); // Small rune Y
TurnOff(from, this, 3855); // Star Sapphire R
TurnOff(from, this, 3862); // Amethyst R
TurnOff(from, this, 3869); // Ruby R
TurnOff(from, this, 3873); // Sapphire R
TurnOff(from, this, 3884); // Citrine R
TurnOff(from, this, 3887); // Emerald R
TurnOff(from, this, 3888); // Diamond R
TurnOff(from, this, 3870); // Toumaline L
TurnOff(from, this, 3885); // Toumaline L
TurnOff(from, this, 14360); // energy
TurnOff(from, this, 14133); // fizzle
TurnOff(from, this, 14201); // blue sparkles
TurnOff(from, this, 10980); // lava small
TurnOff(from, this, 13401); // lava big
TurnOff(from, this, 7193); // exploding oil flask
TurnOff(from, this, 7878); // dropping coins
TurnOff(from, this, 3555); // campfire
TurnOff(from, this, 6571); // a fire
TurnOff(from, this, 14052); // fireball small V
TurnOff(from, this, 14265); // glow big
TurnOff(from, this, 14270); // glow small
TurnOff(from, this, 4390); // mushroom
TurnOff(from, this, 8903); // Crescent Moon
TurnOff(from, this, 8099); // water wave Lt to Rt
TurnOff(from, this, 8113); // water wave Rt to Lt
TurnOff(from, this, 6686); // Lava Falls E
TurnOff(from, this, 6691); // Lava Falls E
TurnOff(from, this, 6696); // Lava Falls E
TurnOff(from, this, 6701); // Lava Falls E
TurnOff(from, this, 6706); // Lava Falls E
TurnOff(from, this, 6732); // Lava Falls S
TurnOff(from, this, 6737); // Lava Falls S
TurnOff(from, this, 6742); // Lava Falls S
TurnOff(from, this, 6747); // Lava Falls S
TurnOff(from, this, 6752); // Lava Falls S
TurnOff(from, this, 2557); // candle facing E
TurnOff(from, this, 2562); // candle facing S
TurnOff(from, this, 11517); // Sm Beetle S
TurnOff(from, this, 11519); // Sm Beetle E
TurnOff(from, this, 11523); // Lrg Beetle S
TurnOff(from, this, 11521); // Lrg Beetle E
TurnOff(from, this, 7961); // Green Glowing Crystal
TurnOff(from, this, 7964); // Prple Glowing Crystal
TurnOff(from, this, 7885); // Green Glowing Crystal
TurnOff(from, this, 7888); // Red Glowing Crystal
TurnOff(from, this, 15404); // Necro Pendant
TurnOff(from, this, 6880); // small skull E
TurnOff(from, this, 6882); // small skull E
TurnOff(from, this, 6884); // small skull forward
TurnOff(from, this, 6881); // small skull S
TurnOff(from, this, 6883); // small skull S
TurnOff(from, this, 4341); // evil head
TurnOff(from, this, 4342); // evil head Animated
TurnOff(from, this, 4348); // larger evil head S
TurnOff(from, this, 4350); // evil head Animated S
TurnOff(from, this, 6161); // Sand Clock
TurnOff(from, this, 3877); // Amber for Sun
TurnOff(from, this, 4893); // Flower
TurnOff(from, this, 4942); // Flower
TurnOff(from, this, 4986); // Flower
TurnOff(from, this, 4987); // Flower
TurnOff(from, this, 4988); // Flower
TurnOff(from, this, 4975); // Flower
TurnOff(from, this, 6377); // Ginseng Flower
TurnOff(from, this, 6378); // Ginseng Flower
TurnOff(from, this, 6809); // Flax Flower
TurnOff(from, this, 6810); // Flax Flower
TurnOff(from, this, 9035); // Rose of Trinsic
TurnOff(from, this, 15459); // Holly Berries
TurnOff(from, this, 4993); // Mushrooms
TurnOff(from, this, 5003); // Mushroom
TurnOff(from, this, 5001); // Lrg Cherries
TurnOff(from, this, 5002); // Cherries
TurnOff(from, this, 13258); // Tiger Toy
TurnOff(from, this, 13259); // Wyrm Toy
TurnOff(from, this, 15101); // Fish
TurnOff(from, this, 15102); // Fish
TurnOff(from, this, 15103); // Fish
TurnOff(from, this, 15104); // Fish
TurnOff(from, this, 15105); // Fish
TurnOff(from, this, 15107); // Fish
TurnOff(from, this, 15108); // Fish
TurnOff(from, this, 15109); // Fish
TurnOff(from, this, 15110); // Fish
TurnOff(from, this, 15111); // Fish
TurnOff(from, this, 15112); // Fish
TurnOff(from, this, 15113); // Fish
TurnOff(from, this, 15114); // Fish
TurnOff(from, this, 15115); // Fish
TurnOff(from, this, 7086); // Fish Food
from.SendMessage("You turn the TV off");
}
//END If Turned ON
else
{
switch ( Utility.Random( 7 ) )
{
case 0: switch ( Utility.Random( 5 ) )
{
//Head and Galaxy:
case 0: AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 0, -1, "4K Flat Screen", 1);
AddComplexComponent( (BaseAddon) this, 10984, 1, 1, 11, 1102, -1, "4K Flat Screen", 1); break;
case 1: AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 33, -1, "4K Flat Screen", 1);
AddComplexComponent( (BaseAddon) this, 10984, 1, 1, 11, 1089, -1, "4K Flat Screen", 1); break;
case 2: AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 59, -1, "4K Flat Screen", 1);
AddComplexComponent( (BaseAddon) this, 10984, 1, 1, 11, 1089, -1, "4K Flat Screen", 1); break;
case 3: AddComplexComponent((BaseAddon)this, 7916, 1, 0, 9, 59, -1, "4K Flat Screen", 1);
AddComplexComponent( (BaseAddon) this, 10984, 1, 1, 12, 2951, -1, "4K Flat Screen", 1); break;
case 4: AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 91, -1, "4K Flat Screen", 1);
AddComplexComponent( (BaseAddon) this, 10984, 1, 1, 12, 1099, -1, "4K Flat Screen", 1); break;
} break;
case 1: switch ( Utility.Random( 16 ) )
{
//Head and Energy Wave:
case 0: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 0, -1, "4K Flat Screen", 1); break;
case 1: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2946, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2946, -1, "4K Flat Screen", 1); break;
case 2: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2947, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2947, -1, "4K Flat Screen", 1); break;
case 3: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2950, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2950, -1, "4K Flat Screen", 1); break;
case 4: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2981, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2981, -1, "4K Flat Screen", 1); break;
case 5: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2991, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2991, -1, "4K Flat Screen", 1); break;
case 6: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2995, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2995, -1, "4K Flat Screen", 1); break;
case 7: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2831, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2831, -1, "4K Flat Screen", 1); break;
case 8: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2848, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2848, -1, "4K Flat Screen", 1); break;
case 9: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2865, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2865, -1, "4K Flat Screen", 1); break;
case 10: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2876, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2876, -1, "4K Flat Screen", 1); break;
case 11: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2879, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 91, -1, "4K Flat Screen", 1); break;
case 12: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2817, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2817, -1, "4K Flat Screen", 1); break;
case 13: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2802, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2802, -1, "4K Flat Screen", 1); break;
case 14: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2792, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2792, -1, "4K Flat Screen", 1); break;
case 15: AddComplexComponent((BaseAddon)this, 14360, 1, 1, 13, 2779, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7916, 1, 0, 8, 2779, -1, "4K Flat Screen", 1); break;
} break;
case 2: switch ( Utility.Random( 9 ) )
{
//Runes and Gems:
case 0: AddComplexComponent((BaseAddon)this, 3676, 1, 1, 13, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3855, 1, 1, 12, 0, -1, "4K Flat Screen", 1); break;
case 1: AddComplexComponent((BaseAddon)this, 3679, 1, 1, 12, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3888, 1, 1, 17, 0, -1, "4K Flat Screen", 1); break;
case 2: AddComplexComponent((BaseAddon)this, 3682, 1, 1, 12, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3888, 1, 1, 16, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3869, 1, 1, 17, 0, -1, "4K Flat Screen", 1); break;
case 3: AddComplexComponent((BaseAddon)this, 3888, 1, 1, 17, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3685, 1, 1, 13, 0, -1, "4K Flat Screen", 1); break;
case 4: AddComplexComponent((BaseAddon)this, 3688, 1, 1, 12, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3884, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 5: AddComplexComponent((BaseAddon)this, 15442, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 15449, 1, 1, 12, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 15448, 1, 1, 10, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3869, 1, 1, 14, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 7, 0, -1, "4K Flat Screen", 1); break;
case 6: AddComplexComponent((BaseAddon)this, 15443, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 15446, 1, 1, 11, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3884, 1, 1, 17, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 5, 0, -1, "4K Flat Screen", 1); break;
case 7: AddComplexComponent((BaseAddon)this, 15445, 1, 1, 14, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 15444, 1, 1, 11, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3888, 1, 1, 17, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 4, 0, -1, "4K Flat Screen", 1); break;
case 8: AddComplexComponent((BaseAddon)this, 15447, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 15449, 1, 1, 10, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3888, 1, 1, 14, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3870, 1, 0, 9, 0, -1, "4K Flat Screen", 1); break;
} break;
case 3: switch ( Utility.Random( 8 ) )
{
//Fireworks:
case 0: AddComplexComponent((BaseAddon)this, 14201, 1, 1, 10, 2104, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 10980, 1, 1, 11, firewrk, -1, "4K Flat Screen", 1); break;
case 1: AddComplexComponent((BaseAddon)this, 14201, 1, 1, 10, 2104, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 10980, 1, 1, 11, firewrk, -1, "4K Flat Screen", 1); break;
case 2: AddComplexComponent((BaseAddon)this, 14201, 1, 1, 10, 2104, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 13401, 1, 1, 11, firewrks, -1, "4K Flat Screen", 1); break;
case 3: AddComplexComponent((BaseAddon)this, 14201, 1, 1, 10, 2104, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 13401, 1, 1, 11, firewrks, -1, "4K Flat Screen", 1); break;
case 4: AddComplexComponent((BaseAddon)this, 14201, 1, 1, 10, 2104, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 14133, 1, 1, 11, firewrks, -1, "4K Flat Screen", 1); break;
case 5: AddComplexComponent((BaseAddon)this, 14201, 1, 1, 10, 2104, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 14133, 1, 1, 11, firewrks, -1, "4K Flat Screen", 1); break;
case 6: AddComplexComponent((BaseAddon)this, 14201, 1, 1, 10, 2104, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7878, 1, 1, 12, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7193, 1, 0, 10, 0, -1, "4K Flat Screen", 1); break;
case 7: AddComplexComponent((BaseAddon)this, 14201, 1, 1, 10, 2104, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7878, 1, 1, 12, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7193, 1, 0, 10, 0, -1, "4K Flat Screen", 1); break;
} break;
case 4: switch ( Utility.Random( 13 ) )
{
//Flowers:
case 0: AddComplexComponent((BaseAddon)this, 4893, 1, 1, 13, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 1161, -1, "4K Flat Screen", 1); break;
case 1: AddComplexComponent((BaseAddon)this, 4942, 1, 1, 13, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 2: AddComplexComponent((BaseAddon)this, 4986, 1, 1, 13, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 3: AddComplexComponent((BaseAddon)this, 4987, 1, 1, 11, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 4: AddComplexComponent((BaseAddon)this, 4988, 1, 1, 11, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 5: AddComplexComponent((BaseAddon)this, 4975, 1, 1, 12, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 6: AddComplexComponent((BaseAddon)this, 6377, 1, 1, 11, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 7: AddComplexComponent((BaseAddon)this, 6378, 1, 1, 12, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 8: AddComplexComponent((BaseAddon)this, 6809, 1, 1, 9, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 9: AddComplexComponent((BaseAddon)this, 4993, 1, 1, 13, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 10: AddComplexComponent((BaseAddon)this, 5003, 1, 1, 13, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 11: AddComplexComponent((BaseAddon)this, 5001, 1, 1, 14, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
case 12: AddComplexComponent((BaseAddon)this, 5002, 1, 1, 14, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3877, 1, 1, 16, 0, -1, "4K Flat Screen", 1); break;
} break;
case 5: switch ( Utility.Random( 14 ) )
{
//Fish:
case 0: AddComplexComponent((BaseAddon)this, 15101, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 1: AddComplexComponent((BaseAddon)this, 15102, 1, 1, 16, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 2: AddComplexComponent((BaseAddon)this, 15103, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 3: AddComplexComponent((BaseAddon)this, 15105, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 4: AddComplexComponent((BaseAddon)this, 15104, 1, 1, 16, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 5: AddComplexComponent((BaseAddon)this, 15107, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 6: AddComplexComponent((BaseAddon)this, 15113, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 7: AddComplexComponent((BaseAddon)this, 15112, 1, 1, 16, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 8: AddComplexComponent((BaseAddon)this, 15108, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 9: AddComplexComponent((BaseAddon)this, 15109, 1, 1, 14, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 10: AddComplexComponent((BaseAddon)this, 15110, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 11: AddComplexComponent((BaseAddon)this, 15114, 1, 1, 16, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 12: AddComplexComponent((BaseAddon)this, 15111, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
case 13: AddComplexComponent((BaseAddon)this, 15115, 1, 1, 14, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7086, 1, 0, 12, 1161, -1, "4K Flat Screen", 1); break;
} break;
case 6: switch ( Utility.Random( 10 ) )
{
//Stars and Moon:
case 0: AddComplexComponent((BaseAddon)this, 8903, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3887, 1, 1, 13, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3870, 1, 0, 10, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 7, 0, -1, "4K Flat Screen", 1); break;
case 1: AddComplexComponent((BaseAddon)this, 8903, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 8, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3870, 1, 0, 10, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 6, 0, -1, "4K Flat Screen", 1); break;
case 2: AddComplexComponent((BaseAddon)this, 8903, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3873, 1, 1, 10, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3870, 1, 0, 10, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 4, 0, -1, "4K Flat Screen", 1); break;
case 3: AddComplexComponent((BaseAddon)this, 8903, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3862, 1, 1, 13, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3870, 1, 0, 10, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 4, 0, -1, "4K Flat Screen", 1); break;
case 4: AddComplexComponent((BaseAddon)this, 8903, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3869, 1, 1, 16, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3870, 1, 0, 10, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 4, 0, -1, "4K Flat Screen", 1); break;
case 5: AddComplexComponent((BaseAddon)this, 8903, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3884, 1, 1, 16, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3870, 1, 0, 10, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 4, 0, -1, "4K Flat Screen", 1); break;
case 6: AddComplexComponent((BaseAddon)this, 8903, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3888, 1, 1, 14, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3870, 1, 0, 7, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 10, 0, -1, "4K Flat Screen", 1); break;
case 7: AddComplexComponent((BaseAddon)this, 8903, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7878, 1, 1, 13, 1161, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3870, 1, 0, 7, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 10, 0, -1, "4K Flat Screen", 1); break;
case 8: AddComplexComponent((BaseAddon)this, 8903, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7878, 1, 1, 13, 1161, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3869, 1, 1, 16, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 10, 0, -1, "4K Flat Screen", 1); break;
case 9: AddComplexComponent((BaseAddon)this, 8903, 1, 1, 15, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 7878, 1, 1, 13, 1161, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3873, 1, 1, 11, 0, -1, "4K Flat Screen", 1); AddComplexComponent((BaseAddon)this, 3885, 1, 0, 10, 0, -1, "4K Flat Screen", 1); break;
} break;
}
from.SendMessage("You turn the TV on");
return;
}
}
//END OnComponent Use
public virtual bool TurnedOn(BaseAddon addon, int itemid)
{
bool ison = false;
foreach (AddonComponent abc in addon.Components)
{
if ( abc.ItemID == 7916 || abc.ItemID == 7897 || abc.ItemID == 10984 || abc.ItemID == 15536 || abc.ItemID == 15542 || abc.ItemID == 14360 || abc.ItemID == 3555 || abc.ItemID == 14265 || abc.ItemID == 14270 || abc.ItemID == 14133 || abc.ItemID == 14201 || abc.ItemID == 14052 || abc.ItemID == 10980 || abc.ItemID == 13401 || abc.ItemID == 4390 || abc.ItemID == 3676 || abc.ItemID == 3679 || abc.ItemID == 3682 || abc.ItemID == 3685 || abc.ItemID == 3688 || abc.ItemID == 15682 || abc.ItemID == 15686 || abc.ItemID == 15442 || abc.ItemID == 15443 || abc.ItemID == 15444 || abc.ItemID == 15445 || abc.ItemID == 15446 || abc.ItemID == 15447 || abc.ItemID == 15448 || abc.ItemID == 15449 || abc.ItemID == 6571 || abc.ItemID == 7193 || abc.ItemID == 8099 || abc.ItemID == 8113 || abc.ItemID == 6686 || abc.ItemID == 6691 || abc.ItemID == 6696 || abc.ItemID == 6701 || abc.ItemID == 6706 || abc.ItemID == 6732 || abc.ItemID == 6737 || abc.ItemID == 6742 || abc.ItemID == 6747 || abc.ItemID == 6752 || abc.ItemID == 2557 || abc.ItemID == 2562 || abc.ItemID == 11517 || abc.ItemID == 11519 || abc.ItemID == 11523 || abc.ItemID == 11521 || abc.ItemID == 7961 || abc.ItemID == 7964 || abc.ItemID == 7885 || abc.ItemID == 7888 || abc.ItemID == 7878 || abc.ItemID == 8903 || abc.ItemID == 3855 || abc.ItemID == 3862 || abc.ItemID == 3869 || abc.ItemID == 3873 || abc.ItemID == 3877 || abc.ItemID == 3884 || abc.ItemID == 3887 || abc.ItemID == 3888 || abc.ItemID == 3870 || abc.ItemID == 3885 || abc.ItemID == 15404 || abc.ItemID == 6880 || abc.ItemID == 6882 || abc.ItemID == 6884 || abc.ItemID == 6881 || abc.ItemID == 6883 || abc.ItemID == 4341 || abc.ItemID == 4342 || abc.ItemID == 4348 || abc.ItemID == 4350 || abc.ItemID == 6161 || abc.ItemID == 4893 || abc.ItemID == 4986 || abc.ItemID == 4987 || abc.ItemID == 4988 || abc.ItemID == 4975 || abc.ItemID == 4942 || abc.ItemID == 6377 || abc.ItemID == 6378 || abc.ItemID == 6809 || abc.ItemID == 6810 || abc.ItemID == 9035 || abc.ItemID == 15459 || abc.ItemID == 4993 || abc.ItemID == 5003 || abc.ItemID == 5001 || abc.ItemID == 5002 || abc.ItemID == 13258 || abc.ItemID == 13259 || abc.ItemID == 15101 || abc.ItemID == 15102 || abc.ItemID == 15103 || abc.ItemID == 15104 || abc.ItemID == 15105 || abc.ItemID == 15107 || abc.ItemID == 15108 || abc.ItemID == 15109 || abc.ItemID == 15110 || abc.ItemID == 15111 || abc.ItemID == 15112 || abc.ItemID == 15113 || abc.ItemID == 15114 || abc.ItemID == 15115 || abc.ItemID == 7086 ) {
ison = true;
break;
}
}
return ison;
}
public virtual void TurnOff(Mobile from, BaseAddon addon, int itemid)
{
AddonComponent component = null;
if (addon == null || addon.Deleted)
return;
//Remove Displayed Items Here:
for (int i = 0; i < addon.Components.Count; i++)
{
AddonComponent ac = addon.Components[i];
if (ac != null && !ac.Deleted && ac.ItemID == itemid)
{
component = ac;
break;
}
}
if(component != null && !component.Deleted)
{
if (addon.Components.Contains(component))
{
addon.Components.Remove(component);
component.Addon = null;
component.Delete();
from.SendMessage("You turn the TV off");
}
}
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( 0 ); // Version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
public class FlatScreenTvEastAddonDeed : BaseAddonDeed
{
public override BaseAddon Addon
{
get
{
return new FlatScreenTvEastAddon();
}
}
[Constructable]
public FlatScreenTvEastAddonDeed()
{
Name = "<BASEFONT COLOR=#01FD0E>4K Flat Screen Facing East";
}
public FlatScreenTvEastAddonDeed( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( 0 ); // Version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
list.Add( "<BASEFONT COLOR=#01FD0E><BASEFONT COLOR=#75FBEB>Red Button to turn On/Off or<BR>Green Button change Channels" );
}
}
}