Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,361 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Network;
|
||||
using Server.Mobiles;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Gumps
|
||||
{
|
||||
public class DoNDAdminGump : Gump
|
||||
{
|
||||
private Item i_Stone;
|
||||
|
||||
public Item Stone
|
||||
{
|
||||
get{ return i_Stone; }
|
||||
set{ i_Stone = value; }
|
||||
}
|
||||
|
||||
public DoNDAdminGump( Item i ) : base( 0, 0 )
|
||||
{
|
||||
DoNDAdminStone si = i as DoNDAdminStone;
|
||||
|
||||
if ( si == null )
|
||||
return;
|
||||
|
||||
Stone = si;
|
||||
|
||||
Closable = true;
|
||||
Disposable = true;
|
||||
Dragable = true;
|
||||
|
||||
AddPage(0);
|
||||
AddBackground(0, 0, 194, 204, 9200);
|
||||
AddBackground(44, 6, 100, 40, 9200);
|
||||
AddBackground(1, 47, 192, 64, 9200);
|
||||
AddBackground(2, 111, 191, 88, 9200);
|
||||
|
||||
AddLabel(47, 5, 1160, @"Deal or No Deal");
|
||||
AddLabel(59, 25, 1160, @"Admin Menu");
|
||||
|
||||
AddLabel(4, 50, 62, @"Total Games Played : " + si.Game);
|
||||
AddLabel(4, 70, 62, @"Total Gold Taken : " + si.Game*50000);
|
||||
AddLabel(4, 90, 33, @"Total Gold Given : " + si.Cash);
|
||||
|
||||
AddLabel(4, 115, 52, @"DeBug Mode");
|
||||
AddButton(126, 115, 247, 248, 1, GumpButtonType.Reply, 0);
|
||||
|
||||
if ( si.DeBugger == false )
|
||||
AddLabel(90, 115, 33, @"Off");
|
||||
if ( si.DeBugger == true )
|
||||
AddLabel(90, 115, 57, @"On");
|
||||
|
||||
AddLabel(4, 140, 1161, @"MoTD Commercial");
|
||||
AddButton(126, 140, 247, 248, 2, GumpButtonType.Reply, 0);
|
||||
|
||||
AddLabel(4, 165, 1161, @"Replay (hours)");
|
||||
AddTextEntry(90, 165, 25, 20, 33, 0, @"" + si.Replay);
|
||||
AddButton(126, 165, 247, 248, 3, GumpButtonType.Reply, 0);
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
{
|
||||
Mobile from = sender.Mobile;
|
||||
|
||||
PlayerMobile pm = from as PlayerMobile;
|
||||
|
||||
if ( pm == null )
|
||||
return;
|
||||
|
||||
TextRelay entry0 = info.GetTextEntry(0);
|
||||
string text0 = (entry0 == null ? "" : entry0.Text.Trim());
|
||||
|
||||
DoNDAdminStone si = Stone as DoNDAdminStone;
|
||||
|
||||
if ( si == null )
|
||||
return;
|
||||
|
||||
switch(info.ButtonID)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
if ( si.DeBugger == false )
|
||||
{
|
||||
pm.SendMessage(57, pm.Name + "DeBug turned On!");
|
||||
si.DeBugger = true;
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
if (pm.HasGump( typeof( DebugGump )))
|
||||
pm.CloseGump( typeof( DebugGump ) );
|
||||
pm.SendGump( new DebugGump( pm ) );
|
||||
break;
|
||||
}
|
||||
if ( si.DeBugger == true )
|
||||
{
|
||||
pm.SendMessage(33, pm.Name + "DeBug turned Off!");
|
||||
si.DeBugger = false;
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDCommercialGump( pm ) );
|
||||
if (pm.HasGump( typeof( DebugGump )))
|
||||
pm.CloseGump( typeof( DebugGump ) );
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
pm.SendMessage( pm.Name + ", Accessing the Commercial Text Editor!");
|
||||
if (pm.HasGump( typeof( DoNDCommercialGump )))
|
||||
pm.CloseGump( typeof( DoNDCommercialGump ) );
|
||||
pm.SendGump( new DoNDCommercialGump( pm ) );
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
if ( text0 == null )
|
||||
{
|
||||
pm.SendMessage( pm.Name + ", you can only set it from 2 - 24 hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "0" )
|
||||
{
|
||||
pm.SendMessage( pm.Name + ", you can only set it from 2 - 24 hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "1" )
|
||||
{
|
||||
pm.SendMessage( pm.Name + ", you can only set it from 2 - 24 hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "2" )
|
||||
{
|
||||
si.Replay = 2;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 2 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "3" )
|
||||
{
|
||||
si.Replay = 3;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 3 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "4" )
|
||||
{
|
||||
si.Replay = 4;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 4 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "5" )
|
||||
{
|
||||
si.Replay = 5;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 5 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "6" )
|
||||
{
|
||||
si.Replay = 6;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 6 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "7" )
|
||||
{
|
||||
si.Replay = 7;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 7 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "8" )
|
||||
{
|
||||
si.Replay = 8;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 8 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "9" )
|
||||
{
|
||||
si.Replay = 9;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 9 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "10" )
|
||||
{
|
||||
si.Replay = 10;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 10 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "11" )
|
||||
{
|
||||
si.Replay = 11;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 11 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "12" )
|
||||
{
|
||||
si.Replay = 12;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 12 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "13" )
|
||||
{
|
||||
si.Replay = 13;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 13 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "14" )
|
||||
{
|
||||
si.Replay = 14;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 14 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "15" )
|
||||
{
|
||||
si.Replay = 15;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 15 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "16" )
|
||||
{
|
||||
si.Replay = 16;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 16 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "17" )
|
||||
{
|
||||
si.Replay = 17;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 17 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "18" )
|
||||
{
|
||||
si.Replay = 18;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 18 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "19" )
|
||||
{
|
||||
si.Replay = 19;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 19 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "20" )
|
||||
{
|
||||
si.Replay = 20;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 20 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "21" )
|
||||
{
|
||||
si.Replay = 21;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 21 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "22" )
|
||||
{
|
||||
si.Replay = 22;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 22 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "23" )
|
||||
{
|
||||
si.Replay = 23;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 23 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
if ( text0 == "24" )
|
||||
{
|
||||
si.Replay = 24;
|
||||
pm.SendMessage( pm.Name + ", your replay is set for 24 game hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
pm.SendMessage( pm.Name + ", you can only set it from 2 - 24 hours!");
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( si ) );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Items;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Gumps
|
||||
{
|
||||
public class DoNDCommercialGump : Gump
|
||||
{
|
||||
private Item i_Stone;
|
||||
|
||||
public Item Stone
|
||||
{
|
||||
get{ return i_Stone; }
|
||||
set{ i_Stone = value; }
|
||||
}
|
||||
|
||||
public DoNDCommercialGump( Mobile m ) : base( 0, 0 )
|
||||
{
|
||||
PlayerMobile pm = m as PlayerMobile;
|
||||
|
||||
if (pm == null || pm.Backpack == null)
|
||||
return;
|
||||
|
||||
List<Item> toCheck = new List<Item>();
|
||||
|
||||
foreach (Item item in World.Items.Values)
|
||||
{
|
||||
if (item is Item)
|
||||
{
|
||||
if (item is DoNDAdminStone)
|
||||
{
|
||||
toCheck.Add(item);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for ( int i = 0; i < toCheck.Count; i++ )
|
||||
{
|
||||
if ( toCheck[i] != null )
|
||||
Stone = toCheck[i];
|
||||
|
||||
}
|
||||
Item di = pm.Backpack.FindItemByType(typeof(DoNDGameDeed) );
|
||||
|
||||
DoNDGameDeed gd = di as DoNDGameDeed;
|
||||
|
||||
DoNDAdminStone si = Stone as DoNDAdminStone;
|
||||
|
||||
if ( si == null )
|
||||
return;
|
||||
|
||||
toCheck.Clear();
|
||||
|
||||
Closable = false;
|
||||
Disposable = false;
|
||||
Dragable = false;
|
||||
|
||||
AddPage(0);
|
||||
AddBackground(2, 2, 796, 558, 9200);
|
||||
AddBackground(349, 10, 100, 61, 9200);
|
||||
|
||||
AddLabel(352, 16, 47, @"Deal or No Deal");
|
||||
AddLabel(363, 39, 47, @"Shard News");
|
||||
|
||||
if ( gd != null )
|
||||
AddHtml( 19, 83, 765, 439, @si.SCommercial, (bool)true, (bool)true);
|
||||
if ( gd != null )
|
||||
AddButton(368, 533, 247, 244, 0, GumpButtonType.Reply, 0);
|
||||
|
||||
if ( gd == null && pm.AccessLevel > AccessLevel.GameMaster )
|
||||
AddTextEntry(18, 83, 765, 436, 1161, 0, @"" + si.SCommercial);
|
||||
if ( gd == null && pm.AccessLevel > AccessLevel.GameMaster )
|
||||
AddButton(368, 533, 247, 244, 1, GumpButtonType.Reply, 0);
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
{
|
||||
Mobile from = sender.Mobile;
|
||||
|
||||
TextRelay entry0 = info.GetTextEntry(0);
|
||||
string text0 = (entry0 == null ? "" : entry0.Text.Trim());
|
||||
|
||||
PlayerMobile pm = from as PlayerMobile;
|
||||
|
||||
if (pm == null || pm.Backpack == null)
|
||||
return;
|
||||
|
||||
Item di = pm.Backpack.FindItemByType(typeof(DoNDGameDeed) );
|
||||
|
||||
DoNDGameDeed gd = di as DoNDGameDeed;
|
||||
|
||||
DoNDAdminStone si = Stone as DoNDAdminStone;
|
||||
|
||||
switch(info.ButtonID)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
if ( gd == null )
|
||||
return;
|
||||
gd.Commercial = false;
|
||||
if (pm.HasGump( typeof( DoNDCommercialGump )))
|
||||
pm.CloseGump( typeof( DoNDCommercialGump ) );
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
if ( si == null )
|
||||
break;
|
||||
if ( text0 == null )
|
||||
{
|
||||
pm.SendMessage( pm.Name + ", you've not entered any text, please type something!");
|
||||
if (pm.HasGump( typeof( DoNDCommercialGump )))
|
||||
pm.CloseGump( typeof( DoNDCommercialGump ) );
|
||||
pm.SendGump( new DoNDCommercialGump( pm ) );
|
||||
break;
|
||||
}
|
||||
si.SCommercial = text0;
|
||||
pm.SendMessage( pm.Name + ", your text has been saved and will be used for the commercial!");
|
||||
if (pm.HasGump( typeof( DoNDCommercialGump )))
|
||||
pm.CloseGump( typeof( DoNDCommercialGump ) );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Gumps
|
||||
{
|
||||
public class DebugGump : Gump
|
||||
{
|
||||
public DebugGump( Mobile m ) : base( 0, 0 )
|
||||
{
|
||||
PlayerMobile pm = m as PlayerMobile;
|
||||
|
||||
if (pm == null || pm.Backpack == null)
|
||||
return;
|
||||
|
||||
Item di = pm.Backpack.FindItemByType(typeof(DoNDGameDeed) );
|
||||
|
||||
if ( di == null )
|
||||
return;
|
||||
|
||||
DoNDGameDeed gd = di as DoNDGameDeed;
|
||||
|
||||
if ( gd == null )
|
||||
return;
|
||||
|
||||
Closable = true;
|
||||
Disposable = true;
|
||||
Dragable = true;
|
||||
|
||||
AddPage(0);
|
||||
AddBackground(5, 2, 280, 593, 9270);
|
||||
AddBackground(17, 35, 256, 547, 9200);
|
||||
AddBackground(221, 129, 100, 372, 9200);
|
||||
|
||||
AddLabel(48, 15, 1160, @"Deal or No Deal DeBug Bool Menu");
|
||||
|
||||
AddLabel(20, 40, 57, @"Deal On : " + gd.DealOn);
|
||||
AddLabel(20, 60, 57, @"Game Start : " + gd.GameStart);
|
||||
AddLabel(20, 80, 57, @"Game Over : " + gd.GameOver);
|
||||
AddLabel(20, 100, 57, @"Case Select : " + gd.CaseSel);
|
||||
AddLabel(20, 120, 57, @"Offer Select : " + gd.OfferSel);
|
||||
AddLabel(20, 140, 57, @"Deal : " + gd.Deal);
|
||||
AddLabel(20, 160, 57, @"No Deal : " + gd.NoDeal);
|
||||
AddLabel(20, 180, 57, @"Trade : " + gd.Trade);
|
||||
AddLabel(20, 200, 57, @"No Trade : " + gd.NoTrade);
|
||||
AddLabel(20, 220, 57, @"Help : " + gd.DHelp);
|
||||
AddLabel(20, 240, 57, @"Close Case : " + gd.CloseCase);
|
||||
AddLabel(20, 260, 57, @"Commercial : " + gd.Commercial);
|
||||
AddLabel(20, 280, 57, @"Deal 1 : " + gd.DA1);
|
||||
AddLabel(20, 300, 57, @"Deal 2 : " + gd.DA2);
|
||||
AddLabel(20, 320, 57, @"Deal 3 : " + gd.DA3);
|
||||
AddLabel(20, 340, 57, @"Deal 4 : " + gd.DA4);
|
||||
AddLabel(20, 360, 57, @"Deal 5 : " + gd.DA5);
|
||||
AddLabel(20, 380, 57, @"Deal 6 : " + gd.DA6);
|
||||
AddLabel(20, 400, 57, @"Deal 7 : " + gd.DA7);
|
||||
AddLabel(20, 420, 57, @"Deal 8 : " + gd.DA8);
|
||||
AddLabel(20, 440, 57, @"Deal 9 : " + gd.DA9);
|
||||
AddLabel(20, 460, 57, @"PO : " + gd.PO);
|
||||
AddLabel(20, 480, 57, @"GO : " + gd.GO);
|
||||
AddLabel(20, 500, 57, @"PA : " + gd.PA);
|
||||
AddLabel(20, 520, 57, @"PC : " + gd.PC);
|
||||
AddLabel(20, 540, 57, @"TL : " + gd.TL);
|
||||
AddLabel(20, 560, 57, @"Replay : " + gd.DReplay);
|
||||
|
||||
AddLabel(240, 137, 1160, @"Pick Order");
|
||||
|
||||
if ( gd.StageOne == true )
|
||||
AddLabel(235, 157, 57, @"Stage One");
|
||||
if ( gd.StageTwo == true )
|
||||
AddLabel(235, 177, 57, @"Stage Two");
|
||||
if ( gd.StageThree == true )
|
||||
AddLabel(235, 197, 57, @"Stage Three");
|
||||
if ( gd.StageFour == true )
|
||||
AddLabel(235, 117, 57, @"Stage Four");
|
||||
if ( gd.StageFive == true )
|
||||
AddLabel(235, 237, 57, @"Stage Five");
|
||||
if ( gd.StageSix == true )
|
||||
AddLabel(235, 257, 57, @"Stage Six");
|
||||
if ( gd.StageSeven == true )
|
||||
AddLabel(235, 277, 57, @"Stage Seven");
|
||||
if ( gd.StageEight == true )
|
||||
AddLabel(235, 297, 57, @"Stage Eight");
|
||||
if ( gd.StageNine == true )
|
||||
AddLabel(235, 317, 57, @"Stage Nine");
|
||||
if ( gd.StageTen == true )
|
||||
AddLabel(235, 337, 57, @"Stage Ten");
|
||||
|
||||
if ( gd.SubStageOne == true )
|
||||
AddLabel(235, 357, 57, @"Sub One");
|
||||
if ( gd.SubStageTwo == true )
|
||||
AddLabel(235, 377, 57, @"Sub Two");
|
||||
if ( gd.SubStageThree == true )
|
||||
AddLabel(235, 397, 57, @"Sub Three");
|
||||
if ( gd.SubStageFour == true )
|
||||
AddLabel(235, 417, 57, @"Sub Four");
|
||||
if ( gd.SubStageFive == true )
|
||||
AddLabel(235, 437, 57, @"Sub Five");
|
||||
if ( gd.SubStageSix == true )
|
||||
AddLabel(235, 457, 57, @"Sub Six");
|
||||
|
||||
if ( gd.SubStageOne2 == true )
|
||||
AddLabel(235, 357, 57, @"Sub One");
|
||||
if ( gd.SubStageTwo2 == true )
|
||||
AddLabel(235, 377, 57, @"Sub Two");
|
||||
if ( gd.SubStageThree2 == true )
|
||||
AddLabel(235, 397, 57, @"Sub Three");
|
||||
if ( gd.SubStageFour2 == true )
|
||||
AddLabel(235, 417, 57, @"Sub Four");
|
||||
if ( gd.SubStageFive2 == true )
|
||||
AddLabel(235, 437, 57, @"Sub Five");
|
||||
|
||||
if ( gd.SubStageOne3 == true )
|
||||
AddLabel(235, 357, 57, @"Sub One");
|
||||
if ( gd.SubStageTwo3 == true )
|
||||
AddLabel(235, 377, 57, @"Sub Two");
|
||||
if ( gd.SubStageThree3 == true )
|
||||
AddLabel(235, 397, 57, @"Sub Three");
|
||||
if ( gd.SubStageFour3 == true )
|
||||
AddLabel(235, 417, 57, @"Sub Four");
|
||||
|
||||
if ( gd.SubStageOne4 == true )
|
||||
AddLabel(235, 357, 57, @"Sub One");
|
||||
if ( gd.SubStageTwo4 == true )
|
||||
AddLabel(235, 377, 57, @"Sub Two");
|
||||
if ( gd.SubStageThree4 == true )
|
||||
AddLabel(235, 397, 57, @"Sub Three");
|
||||
|
||||
if ( gd.SubStageOne5 == true )
|
||||
AddLabel(235, 357, 57, @"Sub One");
|
||||
if ( gd.SubStageTwo5 == true )
|
||||
AddLabel(235, 377, 57, @"Sub Two");
|
||||
|
||||
if ( gd.SubStageOne6 == true )
|
||||
AddLabel(235, 357, 57, @"Sub One");
|
||||
|
||||
if ( gd.SubStageOne7 == true )
|
||||
AddLabel(235, 357, 57, @"Sub One");
|
||||
|
||||
if ( gd.SubStageOne8 == true )
|
||||
AddLabel(235, 357, 57, @"Sub One");
|
||||
|
||||
if ( gd.SubStageOne9 == true )
|
||||
AddLabel(235, 357, 57, @"Sub One");
|
||||
|
||||
if ( gd.Banker == true )
|
||||
AddLabel(235, 477, 33, @"Banker");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,658 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Network;
|
||||
using Server.Mobiles;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Gumps
|
||||
{
|
||||
public class DoNDMainGump : Gump
|
||||
{
|
||||
public DoNDMainGump( Mobile m, Item i ) : base( 0, -25 )
|
||||
{
|
||||
PlayerMobile pm = m as PlayerMobile;
|
||||
|
||||
if ( pm == null )
|
||||
return;
|
||||
|
||||
if ( i == null )
|
||||
return;
|
||||
|
||||
DoNDGameDeed gd = i as DoNDGameDeed;
|
||||
//Main Gump Props
|
||||
Closable = false;
|
||||
Disposable = false;
|
||||
Dragable = true;
|
||||
//Page #
|
||||
AddPage(0);
|
||||
//Title Deal or No Deal
|
||||
AddImage(328, 431, 100);
|
||||
AddLabel(342, 450, 1160, @"DEAL");
|
||||
AddLabel(381, 450, 1160, @"or");
|
||||
AddLabel(401, 450, 1160, @"NO DEAL");
|
||||
//Backgrounds
|
||||
AddBackground(0, 320, 119, 280, 9500);
|
||||
AddBackground(681, 320, 119, 280, 9500);
|
||||
AddBackground(118, 469, 564, 131, 9500);
|
||||
AddBackground(129, 486, 100, 100, 9300);
|
||||
AddBackground(234, 486, 244, 98, 9350);
|
||||
AddBackground(484, 484, 185, 99, 9400);
|
||||
//Prize Backgrounds
|
||||
AddImage(4, 436, 2062);
|
||||
AddImage(4, 456, 2062);
|
||||
AddImage(4, 476, 2062);
|
||||
AddImage(4, 496, 2062);
|
||||
AddImage(4, 516, 2062);
|
||||
AddImage(4, 536, 2062);
|
||||
AddImage(4, 556, 2062);
|
||||
AddImage(4, 575, 2062);
|
||||
AddImage(4, 356, 2062);
|
||||
AddImage(4, 336, 2062);
|
||||
AddImage(4, 376, 2062);
|
||||
AddImage(4, 396, 2062);
|
||||
AddImage(4, 416, 2062);
|
||||
AddImage(685, 436, 2062);
|
||||
AddImage(685, 456, 2062);
|
||||
AddImage(685, 476, 2062);
|
||||
AddImage(685, 496, 2062);
|
||||
AddImage(685, 516, 2062);
|
||||
AddImage(685, 536, 2062);
|
||||
AddImage(685, 556, 2062);
|
||||
AddImage(685, 575, 2062);
|
||||
AddImage(685, 356, 2062);
|
||||
AddImage(685, 336, 2062);
|
||||
AddImage(685, 376, 2062);
|
||||
AddImage(685, 396, 2062);
|
||||
AddImage(685, 416, 2062);
|
||||
//Left Side Prizes (1160 true / 1151 false)
|
||||
if ( gd.Zero == true )
|
||||
AddLabel(43, 335, 1160, @"Prize");
|
||||
if ( gd.Zero == false )
|
||||
AddLabel(43, 335, 1151, @"Prize");
|
||||
if ( gd.One == true )
|
||||
AddLabel(50, 356, 1160, @"$1");
|
||||
if ( gd.One == false )
|
||||
AddLabel(50, 356, 1151, @"$1");
|
||||
if ( gd.Five == true )
|
||||
AddLabel(49, 375, 1160, @"$5");
|
||||
if ( gd.Five == false )
|
||||
AddLabel(49, 375, 1151, @"$5");
|
||||
if ( gd.Ten == true )
|
||||
AddLabel(45, 394, 1160, @"$10");
|
||||
if ( gd.Ten == false )
|
||||
AddLabel(45, 394, 1151, @"$10");
|
||||
if ( gd.TweFive == true )
|
||||
AddLabel(43, 415, 1160, @"$25");
|
||||
if ( gd.TweFive == false )
|
||||
AddLabel(43, 415, 1151, @"$25");
|
||||
if ( gd.Fifty == true )
|
||||
AddLabel(43, 435, 1160, @"$50");
|
||||
if ( gd.Fifty == false )
|
||||
AddLabel(43, 435, 1151, @"$50");
|
||||
if ( gd.SevFive == true )
|
||||
AddLabel(43, 455, 1160, @"$75");
|
||||
if ( gd.SevFive == false )
|
||||
AddLabel(43, 455, 1151, @"$75");
|
||||
if ( gd.OneH == true )
|
||||
AddLabel(41, 474, 1160, @"$100");
|
||||
if ( gd.OneH == false )
|
||||
AddLabel(41, 474, 1151, @"$100");
|
||||
if ( gd.TwoH == true )
|
||||
AddLabel(38, 494, 1160, @"$200");
|
||||
if ( gd.TwoH == false )
|
||||
AddLabel(38, 494, 1151, @"$200");
|
||||
if ( gd.ThreeH == true )
|
||||
AddLabel(38, 514, 1160, @"$300");
|
||||
if ( gd.ThreeH == false )
|
||||
AddLabel(38, 514, 1151, @"$300");
|
||||
if ( gd.FourH == true )
|
||||
AddLabel(38, 535, 1160, @"$400");
|
||||
if ( gd.FourH == false )
|
||||
AddLabel(38, 535, 1151, @"$400");
|
||||
if ( gd.FiveH == true )
|
||||
AddLabel(38, 555, 1160, @"$500");
|
||||
if ( gd.FiveH == false )
|
||||
AddLabel(38, 555, 1151, @"$500");
|
||||
if ( gd.SevFiveH == true )
|
||||
AddLabel(38, 574, 1160, @"$750");
|
||||
if ( gd.SevFiveH == false )
|
||||
AddLabel(38, 574, 1151, @"$750");
|
||||
//Right Side Prizes (1160 true / 1151 false)
|
||||
if ( gd.OneTH == true )
|
||||
AddLabel(714, 335, 1160, @"$1,000");
|
||||
if ( gd.OneTH == false )
|
||||
AddLabel(714, 335, 1151, @"$1,000");
|
||||
if ( gd.FiveTH == true )
|
||||
AddLabel(713, 354, 1160, @"$5,000");
|
||||
if ( gd.FiveTH == false )
|
||||
AddLabel(713, 354, 1151, @"$5,000");
|
||||
if ( gd.TenTH == true )
|
||||
AddLabel(711, 375, 1160, @"$10,000");
|
||||
if ( gd.TenTH == false )
|
||||
AddLabel(711, 375, 1151, @"$10,000");
|
||||
if ( gd.TweFiveTH == true )
|
||||
AddLabel(710, 395, 1160, @"$25,000");
|
||||
if ( gd.TweFiveTH == false )
|
||||
AddLabel(710, 395, 1151, @"$25,000");
|
||||
if ( gd.FiftyTH == true )
|
||||
AddLabel(710, 414, 1160, @"$50,000");
|
||||
if ( gd.FiftyTH == false )
|
||||
AddLabel(710, 414, 1151, @"$50,000");
|
||||
if ( gd.SevFiveTH == true )
|
||||
AddLabel(710, 435, 1160, @"$75,000");
|
||||
if ( gd.SevFiveTH == false )
|
||||
AddLabel(710, 435, 1151, @"$75,000");
|
||||
if ( gd.OneHT == true )
|
||||
AddLabel(708, 455, 1160, @"$100,000");
|
||||
if ( gd.OneHT == false )
|
||||
AddLabel(708, 455, 1151, @"$100,000");
|
||||
if ( gd.TwoHT == true )
|
||||
AddLabel(705, 475, 1160, @"$200,000");
|
||||
if ( gd.TwoHT == false )
|
||||
AddLabel(705, 475, 1151, @"$200,000");
|
||||
if ( gd.ThreeHT == true )
|
||||
AddLabel(705, 495, 1160, @"$300,000");
|
||||
if ( gd.ThreeHT == false )
|
||||
AddLabel(705, 495, 1151, @"$300,000");
|
||||
if ( gd.FourHT == true )
|
||||
AddLabel(706, 515, 1160, @"$400,000");
|
||||
if ( gd.FourHT == false )
|
||||
AddLabel(706, 515, 1151, @"$400,000");
|
||||
if ( gd.FiveHT == true )
|
||||
AddLabel(706, 535, 1160, @"$500,000");
|
||||
if ( gd.FiveHT == false )
|
||||
AddLabel(706, 535, 1151, @"$500,000");
|
||||
if ( gd.SevFiveHT == true )
|
||||
AddLabel(706, 555, 1160, @"$750,000");
|
||||
if ( gd.SevFiveHT == false )
|
||||
AddLabel(706, 555, 1151, @"$750,000");
|
||||
if ( gd.OneMil == true )
|
||||
AddLabel(701, 574, 1160, @"$1,000,000");
|
||||
if ( gd.OneMil == false )
|
||||
AddLabel(701, 574, 1151, @"$1,000,000");
|
||||
//Case's to Pick (in order from 1 - 6)
|
||||
AddLabel(134, 491, 1160, @"Case's to Pick");
|
||||
if ( gd.SubStageOne == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
AddImage(198, 525, 2227);
|
||||
AddImage(138, 557, 2228);
|
||||
AddImage(168, 557, 2229);
|
||||
AddImage(198, 557, 2230);
|
||||
}
|
||||
if ( gd.SubStageTwo == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
AddImage(198, 525, 2227);
|
||||
AddImage(138, 557, 2228);
|
||||
AddImage(168, 557, 2229);
|
||||
}
|
||||
if ( gd.SubStageThree == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
AddImage(198, 525, 2227);
|
||||
AddImage(138, 557, 2228);
|
||||
}
|
||||
if ( gd.SubStageFour == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
AddImage(198, 525, 2227);
|
||||
}
|
||||
if ( gd.SubStageFive == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
}
|
||||
if ( gd.SubStageSix == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
}
|
||||
if ( gd.SubStageOne2 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
AddImage(198, 525, 2227);
|
||||
AddImage(138, 557, 2228);
|
||||
AddImage(168, 557, 2229);
|
||||
}
|
||||
if ( gd.SubStageTwo2 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
AddImage(198, 525, 2227);
|
||||
AddImage(138, 557, 2228);
|
||||
}
|
||||
if ( gd.SubStageThree2 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
AddImage(198, 525, 2227);
|
||||
}
|
||||
if ( gd.SubStageFour2 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
}
|
||||
if ( gd.SubStageFive2 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
}
|
||||
if ( gd.SubStageOne3 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
AddImage(198, 525, 2227);
|
||||
AddImage(138, 557, 2228);
|
||||
}
|
||||
if ( gd.SubStageTwo3 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
AddImage(198, 525, 2227);
|
||||
}
|
||||
if ( gd.SubStageThree3 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
}
|
||||
if ( gd.SubStageFour3 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
}
|
||||
if ( gd.SubStageOne4 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
AddImage(198, 525, 2227);
|
||||
}
|
||||
if ( gd.SubStageTwo4 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
}
|
||||
if ( gd.SubStageThree4 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
}
|
||||
if ( gd.SubStageOne5 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
AddImage(169, 525, 2226);
|
||||
}
|
||||
if ( gd.SubStageTwo5 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
}
|
||||
if ( gd.SubStageOne6 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
}
|
||||
if ( gd.SubStageOne7 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
}
|
||||
if ( gd.SubStageOne8 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
}
|
||||
if ( gd.SubStageOne9 == true )
|
||||
{
|
||||
AddImage(139, 525, 2225);
|
||||
}
|
||||
//Previous Bank Offers
|
||||
AddLabel(506, 489, 1160, @"Previous Bank Offer's");
|
||||
AddLabel(492, 507, 1160, @"1 : " + gd.DA1);
|
||||
AddLabel(489, 525, 1160, @"2 : " + gd.DA2);
|
||||
AddLabel(489, 543, 1160, @"3 : " + gd.DA3);
|
||||
AddLabel(489, 561, 1160, @"4 : " + gd.DA4);
|
||||
AddLabel(575, 507, 1160, @"5 : " + gd.DA5);
|
||||
AddLabel(575, 525, 1160, @"6 : " + gd.DA6);
|
||||
AddLabel(575, 543, 1160, @"7 : " + gd.DA7);
|
||||
AddLabel(575, 561, 1160, @"8 : " + gd.DA8);
|
||||
//Game Information Menu
|
||||
AddLabel(281, 490, 1160, @"Game Information Menu");
|
||||
if ( gd.PA == 0 )
|
||||
AddHtml( 243, 514, 223, 60, @"Please pick your case! type Case# or Help", (bool)true, (bool)true);
|
||||
if ( gd.DHelp == true )
|
||||
AddHtml( 243, 514, 223, 60, @"This area will always have next game step information when playing deal or no deal, the game is speech driven so you'll have to type in all of your choices. The choices that are avalible jurying the game are : Deal : NoDeal : Trade : NoTrade : Case# : EndGame : Help : The explaination of each command are listed here : Deal, say this to accept Banker's Deal when you get Banker's offer. NoDeal, say this to reject the Banker's offer. Trade, say this to trade case at the end of game. NoTrade, say this to keep your case at the end of game. Case#, say Case and replace the # with the case number you want to pick. EndGame, say this to end the game at anytime jurying a game. Help, say this to get this help section. HearOffer, say this to hear the bankers offer!", (bool)true, (bool)true);
|
||||
if ( gd.DHelp != true )
|
||||
{
|
||||
if ( gd.StageOne == true )
|
||||
{
|
||||
if ( gd.SubStageOne == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Six Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageTwo == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Five Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageThree == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Four case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageFour == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Three Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageFive == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Two Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageSix == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick One Case! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.Banker == true && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Take Banker's offer? type Deal or NoDeal", (bool)true, (bool)true);
|
||||
if ( gd.Banker == false && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Check out Banker's Offer! type HearOffer", (bool)true, (bool)true);
|
||||
}
|
||||
if ( gd.StageTwo == true )
|
||||
{
|
||||
if ( gd.SubStageOne2 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Five Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageTwo2 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Four case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageThree2 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Three Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageFour2 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Two Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageFive2 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick One Case! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.Banker == true && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Take Banker's offer? type Deal or NoDeal", (bool)true, (bool)true);
|
||||
if ( gd.Banker == false && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Check out Banker's Offer! type HearOffer", (bool)true, (bool)true);
|
||||
}
|
||||
if ( gd.StageThree == true )
|
||||
{
|
||||
if ( gd.SubStageOne3 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Four case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageTwo3 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Three Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageThree3 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Two Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageFour3 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick One Case! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.Banker == true && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Take Banker's offer? type Deal or NoDeal", (bool)true, (bool)true);
|
||||
if ( gd.Banker == false && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Check out Banker's Offer! type HearOffer", (bool)true, (bool)true);
|
||||
}
|
||||
if ( gd.StageFour == true )
|
||||
{
|
||||
if ( gd.SubStageOne4 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Three Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageTwo4 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Two Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageThree4 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick One Case! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.Banker == true && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Take Banker's offer? type Deal or NoDeal", (bool)true, (bool)true);
|
||||
if ( gd.Banker == false && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Check out Banker's Offer! type HearOffer", (bool)true, (bool)true);
|
||||
}
|
||||
if ( gd.StageFive == true )
|
||||
{
|
||||
if ( gd.SubStageOne5 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick Two Case's! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.SubStageTwo5 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick One Case! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.Banker == true && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Take Banker's offer? type Deal or NoDeal", (bool)true, (bool)true);
|
||||
if ( gd.Banker == false && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Check out Banker's Offer! type HearOffer", (bool)true, (bool)true);
|
||||
}
|
||||
if ( gd.StageSix == true )
|
||||
{
|
||||
if ( gd.SubStageOne6 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick One Case! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.Banker == true && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Take Banker's offer? type Deal or NoDeal", (bool)true, (bool)true);
|
||||
if ( gd.Banker == false && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Check out Banker's Offer! type HearOffer", (bool)true, (bool)true);
|
||||
}
|
||||
if ( gd.StageSeven == true )
|
||||
{
|
||||
if ( gd.SubStageOne7 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick One Case! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.Banker == true && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Take Banker's offer? type Deal or NoDeal", (bool)true, (bool)true);
|
||||
if ( gd.Banker == false && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Check out Banker's Offer! type HearOffer", (bool)true, (bool)true);
|
||||
}
|
||||
if ( gd.StageEight == true )
|
||||
{
|
||||
if ( gd.SubStageOne8 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick One Case! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.Banker == true && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Take Banker's offer? type Deal or NoDeal", (bool)true, (bool)true);
|
||||
if ( gd.Banker == false && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Check out Banker's Offer! type HearOffer", (bool)true, (bool)true);
|
||||
}
|
||||
if ( gd.StageNine == true )
|
||||
{
|
||||
if ( gd.SubStageOne9 == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Pick One Case! type Case#", (bool)true, (bool)true);
|
||||
if ( gd.Banker == true && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Take Banker's offer? type Deal or NoDeal", (bool)true, (bool)true);
|
||||
if ( gd.Banker == false && gd.OfferSel == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Check out Banker's Offer! type HearOffer", (bool)true, (bool)true);
|
||||
}
|
||||
if ( gd.StageTen == true )
|
||||
{
|
||||
if ( gd.Trade == false )
|
||||
{
|
||||
if ( gd.NoTrade == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Checking Last Case", (bool)true, (bool)true);
|
||||
if ( gd.NoTrade == false )
|
||||
AddHtml( 243, 514, 223, 60, @"Trade Case? type Trade or NoTrade", (bool)true, (bool)true);
|
||||
}
|
||||
if ( gd.Trade == true )
|
||||
AddHtml( 243, 514, 223, 60, @"Trading Case's", (bool)true, (bool)true);
|
||||
}
|
||||
}
|
||||
//Awaiting Answer Gump
|
||||
if ( gd.OfferSel == true )
|
||||
{
|
||||
AddBackground(139, 512, 79, 69, 9200);
|
||||
AddImage(150, 516, 223);
|
||||
}
|
||||
if ( gd.StageTen == true )
|
||||
{
|
||||
AddBackground(139, 512, 79, 69, 9200);
|
||||
AddImage(150, 516, 223);
|
||||
}
|
||||
//Case Ammount Gump
|
||||
if ( gd.CloseCase == false && gd.Banker == false )
|
||||
{
|
||||
if ( gd.PC != 0 && gd.PO > 0 )
|
||||
{
|
||||
Timer i_timer = new CloseCaseTimer( pm, gd );
|
||||
i_timer.Start();
|
||||
|
||||
AddImage(297, 157, 75);
|
||||
|
||||
if ( gd.PC == 1 )
|
||||
{
|
||||
AddLabel(359, 234, 1160, @"$1,000,000");
|
||||
}
|
||||
if ( gd.PC == 2 )
|
||||
{
|
||||
AddLabel(362, 234, 1160, @"$750,000");
|
||||
}
|
||||
if ( gd.PC == 3 )
|
||||
{
|
||||
AddLabel(362, 234, 1160, @"$500,000");
|
||||
}
|
||||
if ( gd.PC == 4 )
|
||||
{
|
||||
AddLabel(362, 234, 1160, @"$400,000");
|
||||
}
|
||||
if ( gd.PC == 5 )
|
||||
{
|
||||
AddLabel(362, 234, 1160, @"$300,000");
|
||||
}
|
||||
if ( gd.PC == 6 )
|
||||
{
|
||||
AddLabel(362, 234, 1160, @"$200,000");
|
||||
}
|
||||
if ( gd.PC == 7 )
|
||||
{
|
||||
AddLabel(362, 234, 1160, @"$100,000");
|
||||
}
|
||||
if ( gd.PC == 8 )
|
||||
{
|
||||
AddLabel(365, 234, 1160, @"$75,000");
|
||||
}
|
||||
if ( gd.PC == 9 )
|
||||
{
|
||||
AddLabel(365, 234, 1160, @"$50,000");
|
||||
}
|
||||
if ( gd.PC == 10 )
|
||||
{
|
||||
AddLabel(365, 234, 1160, @"$25,000");
|
||||
}
|
||||
if ( gd.PC == 11 )
|
||||
{
|
||||
AddLabel(365, 234, 1160, @"$10,000");
|
||||
}
|
||||
if ( gd.PC == 12 )
|
||||
{
|
||||
AddLabel(368, 234, 1160, @"$5,000");
|
||||
}
|
||||
if ( gd.PC == 13 )
|
||||
{
|
||||
AddLabel(368, 234, 1160, @"$1,000");
|
||||
}
|
||||
if ( gd.PC == 14 )
|
||||
{
|
||||
AddLabel(371, 234, 1160, @"$750");
|
||||
}
|
||||
if ( gd.PC == 15 )
|
||||
{
|
||||
AddLabel(371, 234, 1160, @"$500");
|
||||
}
|
||||
if ( gd.PC == 16 )
|
||||
{
|
||||
AddLabel(371, 234, 1160, @"$400");
|
||||
}
|
||||
if ( gd.PC == 17 )
|
||||
{
|
||||
AddLabel(371, 234, 1160, @"$300");
|
||||
}
|
||||
if ( gd.PC == 18 )
|
||||
{
|
||||
AddLabel(371, 234, 1160, @"$200");
|
||||
}
|
||||
if ( gd.PC == 19 )
|
||||
{
|
||||
AddLabel(371, 234, 1160, @"$100");
|
||||
}
|
||||
if ( gd.PC == 20 )
|
||||
{
|
||||
AddLabel(374, 234, 1160, @"$75");
|
||||
}
|
||||
if ( gd.PC == 21 )
|
||||
{
|
||||
AddLabel(374, 234, 1160, @"$50");
|
||||
}
|
||||
if ( gd.PC == 22 )
|
||||
{
|
||||
AddLabel(374, 234, 1160, @"$25");
|
||||
}
|
||||
if ( gd.PC == 23 )
|
||||
{
|
||||
AddLabel(374, 234, 1160, @"$10");
|
||||
}
|
||||
if ( gd.PC == 24 )
|
||||
{
|
||||
AddLabel(377, 234, 1160, @"$5");
|
||||
}
|
||||
if ( gd.PC == 25 )
|
||||
{
|
||||
AddLabel(377, 234, 1160, @"$1");
|
||||
}
|
||||
if ( gd.PC == 26 )
|
||||
{
|
||||
AddLabel(368, 234, 1160, @"Prize");
|
||||
}
|
||||
}
|
||||
}
|
||||
//Bank Offer Gump
|
||||
if ( gd.OfferSel == true && gd.Banker == true )
|
||||
{
|
||||
if ( gd.StageOne == true )
|
||||
{
|
||||
AddImage(298, 156, 67);
|
||||
AddLabel(361, 214, 36, @"Banks Offer");
|
||||
AddLabel(364, 233, 1160, @"$" + gd.DA1);
|
||||
}
|
||||
if ( gd.StageTwo == true )
|
||||
{
|
||||
AddImage(298, 156, 67);
|
||||
AddLabel(361, 214, 36, @"Banks Offer");
|
||||
AddLabel(364, 233, 1160, @"$" + gd.DA2);
|
||||
}
|
||||
if ( gd.StageThree == true )
|
||||
{
|
||||
AddImage(298, 156, 67);
|
||||
AddLabel(361, 214, 36, @"Banks Offer");
|
||||
AddLabel(364, 233, 1160, @"$" + gd.DA3);
|
||||
}
|
||||
if ( gd.StageFour == true )
|
||||
{
|
||||
AddImage(298, 156, 67);
|
||||
AddLabel(361, 214, 36, @"Banks Offer");
|
||||
AddLabel(364, 233, 1160, @"$" + gd.DA4);
|
||||
}
|
||||
if ( gd.StageFive == true )
|
||||
{
|
||||
AddImage(298, 156, 67);
|
||||
AddLabel(361, 214, 36, @"Banks Offer");
|
||||
AddLabel(364, 233, 1160, @"$" + gd.DA5);
|
||||
}
|
||||
if ( gd.StageSix == true )
|
||||
{
|
||||
AddImage(298, 156, 67);
|
||||
AddLabel(361, 214, 36, @"Banks Offer");
|
||||
AddLabel(364, 233, 1160, @"$" + gd.DA6);
|
||||
}
|
||||
if ( gd.StageSeven == true )
|
||||
{
|
||||
AddImage(298, 156, 67);
|
||||
AddLabel(361, 214, 36, @"Banks Offer");
|
||||
AddLabel(364, 233, 1160, @"$" + gd.DA7);
|
||||
}
|
||||
if ( gd.StageEight == true )
|
||||
{
|
||||
AddImage(298, 156, 67);
|
||||
AddLabel(361, 214, 36, @"Banks Offer");
|
||||
AddLabel(364, 233, 1160, @"$" + gd.DA8);
|
||||
}
|
||||
if ( gd.StageNine == true )
|
||||
{
|
||||
AddImage(298, 156, 67);
|
||||
AddLabel(361, 214, 36, @"Banks Offer");
|
||||
AddLabel(364, 233, 1160, @"$" + gd.DA9);
|
||||
}
|
||||
}
|
||||
//Bankers Calling Gump
|
||||
if ( gd.OfferSel == true && gd.StageTen != true )
|
||||
{
|
||||
AddLabel(10, 275, 36, @"Banker's Calling");
|
||||
AddImage(12, 250, 40);
|
||||
AddImage(12, 260, 40);
|
||||
AddImage(12, 270, 40);
|
||||
AddImage(12, 293, 40);
|
||||
AddImage(12, 303, 40);
|
||||
AddImage(12, 313, 40);
|
||||
AddLabel(690, 275, 36, @"Banker's Calling");
|
||||
AddImage(692, 250, 40);
|
||||
AddImage(692, 260, 40);
|
||||
AddImage(692, 270, 40);
|
||||
AddImage(692, 293, 40);
|
||||
AddImage(692, 303, 40);
|
||||
AddImage(692, 313, 40);
|
||||
}
|
||||
//Text Command Entry Area
|
||||
AddBackground(1, 600, 797, 27, 9200);
|
||||
AddLabel(200, 604, 51, @"<Type in Game Commands Here : Case#, Deal, NoDeal, HearOffer, Trade, NoTrade, EndGame, Help>");
|
||||
//Credits
|
||||
AddLabel(349, 581, 1152, @"By : Tiamat13");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,694 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class DoNDStageAddon : BaseAddon
|
||||
{
|
||||
public override BaseAddonDeed Deed
|
||||
{
|
||||
get
|
||||
{
|
||||
return new DoNDStageAddonDeed();
|
||||
}
|
||||
}
|
||||
|
||||
[ Constructable ]
|
||||
public DoNDStageAddon()
|
||||
{
|
||||
AddonComponent ac;
|
||||
|
||||
ac = new AddonComponent( 1809 );
|
||||
AddComponent( ac, 0, 7, 3 );
|
||||
ac = new AddonComponent( 1802 );
|
||||
AddComponent( ac, 1, 7, 3 );
|
||||
ac = new AddonComponent( 1807 );
|
||||
AddComponent( ac, 2, 7, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 7, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 7, -4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 7, -3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 7, -2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 7, -1, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 7, 0, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 7, 1, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 7, 2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 7, 3, 3 );
|
||||
ac = new AddonComponent( 1807 );
|
||||
AddComponent( ac, 7, 4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -3, -4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -3, -3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -3, -2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -2, -4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -2, -3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -2, -2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, -4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, -3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, -2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, -4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, -3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, -2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, -4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, -3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, -2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, -4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, -3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, -2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, -4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, -3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, -2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 4, -4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 4, -3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 4, -2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 5, -4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 5, -3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 5, -2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, -1, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, 0, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -3, -4, 8 );
|
||||
ac = new AddonComponent( 1807 );
|
||||
AddComponent( ac, 5, -3, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -2, -4, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -2, -3, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, -4, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, -3, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, -4, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, -3, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, -4, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, -3, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, -4, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, -3, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, -4, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, -3, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 4, -4, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 4, -3, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 5, -4, 8 );
|
||||
ac = new AddonComponent( 1809 );
|
||||
AddComponent( ac, -3, -3, 8 );
|
||||
ac = new AddonComponent( 1807 );
|
||||
AddComponent( ac, 4, -4, 13 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, -4, 13 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, -4, 13 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, -4, 13 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, -4, 13 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, -4, 13 );
|
||||
ac = new AddonComponent( 1809 );
|
||||
AddComponent( ac, -2, -4, 13 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, -1, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, 0, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, -1, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, -1, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, -1, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, 0, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -5, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -4, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -3, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -2, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 4, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 5, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 6, -5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -5, -4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -5, -3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -5, -2, 3 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 4, -1, 6 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -5, -1, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -5, 0, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 5, 0, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, 0, 1 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 6, 0, 0 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 4, 0, 6 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 6, -1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 6, -4, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 6, -3, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 6, -2, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -4, 0, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -3, 0, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -2, 0, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, 0, 1 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -4, -1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -3, -1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -2, -1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -4, -4, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -4, -3, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -4, -2, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, 0, 5 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, 0, 5 );
|
||||
ac = new AddonComponent( 4554 );
|
||||
AddComponent( ac, -1, 0, 11 );
|
||||
ac = new AddonComponent( 4554 );
|
||||
AddComponent( ac, 3, 0, 11 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 4, 0, 0 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 6, 0, 6 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 5, -1, 0 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, 6, -2, 8 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, 6, -1, 8 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 5, 0, 6 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, -5, -4, 8 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, -5, -3, 8 );
|
||||
ac = new AddonComponent( 271 );
|
||||
AddComponent( ac, 6, -5, 6 );
|
||||
ac = new AddonComponent( 271 );
|
||||
AddComponent( ac, -4, -5, 8 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -2, -1, 6 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, 6, 0, 8 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -4, -2, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -4, -1, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -4, -4, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -4, -3, 6 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, 6, -4, 8 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, 6, -3, 8 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -2, 0, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -3, 0, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -3, -1, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 5, -1, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 6, -4, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 6, -2, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 6, -3, 6 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 4, -1, 0 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 6, -1, 6 );
|
||||
ac = new AddonComponent( 3518 );
|
||||
AddComponent( ac, 4, -1, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -4, 0, 6 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, -5, -2, 8 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, -5, -1, 8 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, -5, 0, 8 );
|
||||
ac = new AddonComponent( 273 );
|
||||
AddComponent( ac, -5, -5, 8 );
|
||||
ac = new AddonComponent( 2769 );
|
||||
AddComponent( ac, 1, -1, 9 );
|
||||
ac = new AddonComponent( 2770 );
|
||||
AddComponent( ac, 2, 0, 9 );
|
||||
ac = new AddonComponent( 2771 );
|
||||
AddComponent( ac, -1, -2, 9 );
|
||||
ac = new AddonComponent( 2772 );
|
||||
AddComponent( ac, 0, 0, 9 );
|
||||
ac = new AddonComponent( 2773 );
|
||||
AddComponent( ac, 3, -2, 9 );
|
||||
ac = new AddonComponent( 2775 );
|
||||
AddComponent( ac, 0, -2, 9 );
|
||||
ac = new AddonComponent( 2775 );
|
||||
AddComponent( ac, 1, -2, 9 );
|
||||
ac = new AddonComponent( 2775 );
|
||||
AddComponent( ac, 2, -2, 9 );
|
||||
ac = new AddonComponent( 2777 );
|
||||
AddComponent( ac, 1, 0, 9 );
|
||||
ac = new AddonComponent( 2776 );
|
||||
AddComponent( ac, 2, -1, 9 );
|
||||
ac = new AddonComponent( 2774 );
|
||||
AddComponent( ac, 0, -1, 9 );
|
||||
ac = new AddonComponent( 2772 );
|
||||
AddComponent( ac, -1, -1, 9 );
|
||||
ac = new AddonComponent( 2777 );
|
||||
AddComponent( ac, 0, -1, 9 );
|
||||
ac = new AddonComponent( 2777 );
|
||||
AddComponent( ac, 2, -1, 9 );
|
||||
ac = new AddonComponent( 2770 );
|
||||
AddComponent( ac, 3, -1, 9 );
|
||||
ac = new AddonComponent( 3339 );
|
||||
AddComponent( ac, -3, -1, 7 );
|
||||
ac = new AddonComponent( 3337 );
|
||||
AddComponent( ac, 5, -1, 8 );
|
||||
ac = new AddonComponent( 3338 );
|
||||
AddComponent( ac, -4, -3, 8 );
|
||||
ac = new AddonComponent( 3336 );
|
||||
AddComponent( ac, 5, -1, 8 );
|
||||
ac = new AddonComponent( 3336 );
|
||||
AddComponent( ac, -3, 0, 8 );
|
||||
ac = new AddonComponent( 7949 );
|
||||
AddComponent( ac, 6, -1, 8 );
|
||||
ac = new AddonComponent( 7949 );
|
||||
AddComponent( ac, 6, -4, 8 );
|
||||
ac = new AddonComponent( 7949 );
|
||||
AddComponent( ac, 6, -3, 8 );
|
||||
ac = new AddonComponent( 7949 );
|
||||
AddComponent( ac, 6, -2, 8 );
|
||||
ac = new AddonComponent( 7952 );
|
||||
AddComponent( ac, -4, -4, 8 );
|
||||
ac = new AddonComponent( 3518 );
|
||||
AddComponent( ac, -4, 1, 6 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, 1, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, 2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, 5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, 4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, 2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, 2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, 4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, 5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 1, 6, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, 4, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, 5, 3 );
|
||||
ac = new AddonComponent( 1803 );
|
||||
AddComponent( ac, 3, 5, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 4, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 5, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 6, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, 1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -2, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -3, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -4, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -5, 1, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -5, 2, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -5, 3, 3 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 2, 1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 4, 1, 0 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 6, 2, 6 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 5, 1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 6, 1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 3, 2, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 4, 2, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 5, 2, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 6, 2, 0 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 6, 1, 6 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -4, 1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -3, 1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -2, 1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, 1, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -4, 2, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -3, 2, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -2, 2, 0 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, -1, 2, 0 );
|
||||
ac = new AddonComponent( 1805 );
|
||||
AddComponent( ac, -1, 5, 3 );
|
||||
ac = new AddonComponent( 1809 );
|
||||
AddComponent( ac, -1, 6, 3 );
|
||||
ac = new AddonComponent( 1807 );
|
||||
AddComponent( ac, 3, 6, 3 );
|
||||
ac = new AddonComponent( 1809 );
|
||||
AddComponent( ac, -5, 4, 3 );
|
||||
ac = new AddonComponent( 1815 );
|
||||
AddComponent( ac, 2, 6, 3 );
|
||||
ac = new AddonComponent( 1815 );
|
||||
AddComponent( ac, 3, 4, 3 );
|
||||
ac = new AddonComponent( 1817 );
|
||||
AddComponent( ac, 0, 6, 3 );
|
||||
ac = new AddonComponent( 1817 );
|
||||
AddComponent( ac, -1, 4, 3 );
|
||||
ac = new AddonComponent( 1802 );
|
||||
AddComponent( ac, 4, 4, 3 );
|
||||
ac = new AddonComponent( 1802 );
|
||||
AddComponent( ac, 5, 4, 3 );
|
||||
ac = new AddonComponent( 1802 );
|
||||
AddComponent( ac, 6, 4, 3 );
|
||||
ac = new AddonComponent( 1802 );
|
||||
AddComponent( ac, -4, 4, 3 );
|
||||
ac = new AddonComponent( 1802 );
|
||||
AddComponent( ac, -3, 4, 3 );
|
||||
ac = new AddonComponent( 1802 );
|
||||
AddComponent( ac, -2, 4, 3 );
|
||||
ac = new AddonComponent( 7620 );
|
||||
AddComponent( ac, 2, 2, 8 );
|
||||
ac = new AddonComponent( 1801 );
|
||||
AddComponent( ac, 0, 1, 0 );
|
||||
ac = new AddonComponent( 7621 );
|
||||
AddComponent( ac, 0, 2, 8 );
|
||||
ac = new AddonComponent( 7622 );
|
||||
AddComponent( ac, 1, 2, 8 );
|
||||
ac = new AddonComponent( 7617 );
|
||||
AddComponent( ac, 2, 3, 7 );
|
||||
ac = new AddonComponent( 7617 );
|
||||
AddComponent( ac, 0, 3, 7 );
|
||||
ac = new AddonComponent( 271 );
|
||||
AddComponent( ac, -4, 2, 8 );
|
||||
ac = new AddonComponent( 271 );
|
||||
AddComponent( ac, -3, 2, 8 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 5, 1, 6 );
|
||||
ac = new AddonComponent( 271 );
|
||||
AddComponent( ac, 4, 2, 8 );
|
||||
ac = new AddonComponent( 271 );
|
||||
AddComponent( ac, 5, 2, 8 );
|
||||
ac = new AddonComponent( 270 );
|
||||
AddComponent( ac, 6, 2, 8 );
|
||||
ac = new AddonComponent( 271 );
|
||||
AddComponent( ac, 3, 2, 8 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -1, 2, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 0, 1, 6 );
|
||||
ac = new AddonComponent( 271 );
|
||||
AddComponent( ac, -2, 2, 8 );
|
||||
ac = new AddonComponent( 271 );
|
||||
AddComponent( ac, -1, 2, 8 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -2, 2, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -1, 1, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -3, 2, 6 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, 6, 1, 8 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -2, 1, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -3, 1, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -4, 2, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 4, 2, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 4, 1, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 5, 2, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 3, 1, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 3, 2, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, 2, 1, 6 );
|
||||
ac = new AddonComponent( 7385 );
|
||||
ac.Hue = 184;
|
||||
AddComponent( ac, -4, 1, 6 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, -5, 1, 8 );
|
||||
ac = new AddonComponent( 272 );
|
||||
AddComponent( ac, -5, 2, 8 );
|
||||
ac = new AddonComponent( 7617 );
|
||||
AddComponent( ac, 1, 3, 7 );
|
||||
ac = new AddonComponent( 7619 );
|
||||
AddComponent( ac, 1, 3, 8 );
|
||||
ac = new AddonComponent( 7619 );
|
||||
AddComponent( ac, 2, 3, 8 );
|
||||
ac = new AddonComponent( 7619 );
|
||||
AddComponent( ac, 0, 3, 8 );
|
||||
ac = new AddonComponent( 2769 );
|
||||
AddComponent( ac, 1, 4, 9 );
|
||||
ac = new AddonComponent( 2769 );
|
||||
AddComponent( ac, 1, 5, 9 );
|
||||
ac = new AddonComponent( 2776 );
|
||||
AddComponent( ac, 2, 5, 9 );
|
||||
ac = new AddonComponent( 2777 );
|
||||
AddComponent( ac, 1, 6, 9 );
|
||||
ac = new AddonComponent( 2776 );
|
||||
AddComponent( ac, 2, 4, 9 );
|
||||
ac = new AddonComponent( 2775 );
|
||||
AddComponent( ac, 1, 3, 9 );
|
||||
ac = new AddonComponent( 2770 );
|
||||
AddComponent( ac, 2, 6, 9 );
|
||||
ac = new AddonComponent( 2771 );
|
||||
AddComponent( ac, 0, 3, 9 );
|
||||
ac = new AddonComponent( 2772 );
|
||||
AddComponent( ac, 0, 6, 9 );
|
||||
ac = new AddonComponent( 2773 );
|
||||
AddComponent( ac, 2, 3, 9 );
|
||||
ac = new AddonComponent( 2774 );
|
||||
AddComponent( ac, 0, 4, 9 );
|
||||
ac = new AddonComponent( 2774 );
|
||||
AddComponent( ac, 0, 5, 9 );
|
||||
ac = new AddonComponent( 3339 );
|
||||
AddComponent( ac, 5, 1, 7 );
|
||||
ac = new AddonComponent( 3338 );
|
||||
AddComponent( ac, -2, 1, 8 );
|
||||
ac = new AddonComponent( 3338 );
|
||||
AddComponent( ac, 2, 1, 8 );
|
||||
ac = new AddonComponent( 3380 );
|
||||
AddComponent( ac, 4, 1, 8 );
|
||||
ac = new AddonComponent( 7950 );
|
||||
AddComponent( ac, -3, 2, 8 );
|
||||
ac = new AddonComponent( 7950 );
|
||||
AddComponent( ac, -1, 2, 8 );
|
||||
ac = new AddonComponent( 7951 );
|
||||
AddComponent( ac, -2, 2, 8 );
|
||||
ac = new AddonComponent( 7951 );
|
||||
AddComponent( ac, 3, 2, 8 );
|
||||
ac = new AddonComponent( 7951 );
|
||||
AddComponent( ac, 4, 2, 8 );
|
||||
ac = new AddonComponent( 3380 );
|
||||
AddComponent( ac, -2, 1, 8 );
|
||||
ac = new AddonComponent( 4553 );
|
||||
AddComponent( ac, 3, 3, 8 );
|
||||
ac = new AddonComponent( 4553 );
|
||||
AddComponent( ac, -1, 3, 8 );
|
||||
}
|
||||
|
||||
|
||||
public DoNDStageAddon( 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 class DoNDStageAddonDeed : BaseAddonDeed
|
||||
{
|
||||
public override BaseAddon Addon
|
||||
{
|
||||
get
|
||||
{
|
||||
return new DoNDStageAddon();
|
||||
}
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public DoNDStageAddonDeed()
|
||||
{
|
||||
Name = "DoNDStage";
|
||||
}
|
||||
|
||||
public DoNDStageAddonDeed( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class DoNDCase : BaseEquipableLight
|
||||
{
|
||||
public override int LitItemID{ get { return 0xEFA; } }
|
||||
public override int UnlitItemID{ get { return 0xEFA; } }
|
||||
|
||||
[Constructable]
|
||||
public DoNDCase() : base( 0xEFA )
|
||||
{
|
||||
Layer = Layer.TwoHanded;
|
||||
Light = LightType.Circle150;
|
||||
Movable = false;
|
||||
}
|
||||
|
||||
public DoNDCase( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override bool DisplayLootType{ get{ return false; } }
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Flipable( 0x1F00, 0x1EFF )]
|
||||
public class GirlsDress : FancyDress
|
||||
{
|
||||
[Constructable]
|
||||
public GirlsDress()
|
||||
{
|
||||
int hours, minutes;
|
||||
Server.Items.Clock.GetTime( this.Map, this.X, this.Y, out hours, out minutes );
|
||||
|
||||
Name = "Fancy Dress";
|
||||
Weight = 3.0;
|
||||
|
||||
if ( hours == 1 )
|
||||
Hue = 6;
|
||||
if ( hours == 2 )
|
||||
Hue = 11;
|
||||
if ( hours == 3 )
|
||||
Hue = 16;
|
||||
if ( hours == 4 )
|
||||
Hue = 21;
|
||||
if ( hours == 5 )
|
||||
Hue = 26;
|
||||
if ( hours == 6 )
|
||||
Hue = 31;
|
||||
if ( hours == 7 )
|
||||
Hue = 36;
|
||||
if ( hours == 8 )
|
||||
Hue = 41;
|
||||
if ( hours == 9 )
|
||||
Hue = 46;
|
||||
if ( hours == 10 )
|
||||
Hue = 51;
|
||||
if ( hours == 11 )
|
||||
Hue = 56;
|
||||
if ( hours == 12 )
|
||||
Hue = 61;
|
||||
if ( hours == 13 )
|
||||
Hue = 66;
|
||||
if ( hours == 14 )
|
||||
Hue = 71;
|
||||
if ( hours == 15 )
|
||||
Hue = 76;
|
||||
if ( hours == 16 )
|
||||
Hue = 81;
|
||||
if ( hours == 17 )
|
||||
Hue = 86;
|
||||
if ( hours == 18 )
|
||||
Hue = 91;
|
||||
if ( hours == 19 )
|
||||
Hue = 96;
|
||||
if ( hours == 20 )
|
||||
Hue = 101;
|
||||
if ( hours == 21 )
|
||||
Hue = 106;
|
||||
if ( hours == 22 )
|
||||
Hue = 111;
|
||||
if ( hours == 23 )
|
||||
Hue = 116;
|
||||
if ( hours == 24 )
|
||||
Hue = 121;
|
||||
}
|
||||
|
||||
public GirlsDress( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x170d, 0x170e )]
|
||||
public class GirlsSandals : Sandals
|
||||
{
|
||||
public override CraftResource DefaultResource{ get{ return CraftResource.RegularLeather; } }
|
||||
|
||||
[Constructable]
|
||||
public GirlsSandals()
|
||||
{
|
||||
int hours, minutes;
|
||||
Server.Items.Clock.GetTime( this.Map, this.X, this.Y, out hours, out minutes );
|
||||
|
||||
Name = "Sandals";
|
||||
Weight = 1.0;
|
||||
|
||||
if ( hours == 1 )
|
||||
Hue = 6;
|
||||
if ( hours == 2 )
|
||||
Hue = 11;
|
||||
if ( hours == 3 )
|
||||
Hue = 16;
|
||||
if ( hours == 4 )
|
||||
Hue = 21;
|
||||
if ( hours == 5 )
|
||||
Hue = 26;
|
||||
if ( hours == 6 )
|
||||
Hue = 31;
|
||||
if ( hours == 7 )
|
||||
Hue = 36;
|
||||
if ( hours == 8 )
|
||||
Hue = 41;
|
||||
if ( hours == 9 )
|
||||
Hue = 46;
|
||||
if ( hours == 10 )
|
||||
Hue = 51;
|
||||
if ( hours == 11 )
|
||||
Hue = 56;
|
||||
if ( hours == 12 )
|
||||
Hue = 61;
|
||||
if ( hours == 13 )
|
||||
Hue = 66;
|
||||
if ( hours == 14 )
|
||||
Hue = 71;
|
||||
if ( hours == 15 )
|
||||
Hue = 76;
|
||||
if ( hours == 16 )
|
||||
Hue = 81;
|
||||
if ( hours == 17 )
|
||||
Hue = 86;
|
||||
if ( hours == 18 )
|
||||
Hue = 91;
|
||||
if ( hours == 19 )
|
||||
Hue = 96;
|
||||
if ( hours == 20 )
|
||||
Hue = 101;
|
||||
if ( hours == 21 )
|
||||
Hue = 106;
|
||||
if ( hours == 22 )
|
||||
Hue = 111;
|
||||
if ( hours == 23 )
|
||||
Hue = 116;
|
||||
if ( hours == 24 )
|
||||
Hue = 121;
|
||||
}
|
||||
|
||||
public GirlsSandals( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x1efd, 0x1efe )]
|
||||
public class HoweyJacket : Doublet
|
||||
{
|
||||
[Constructable]
|
||||
public HoweyJacket()
|
||||
{
|
||||
Name = "Dress Jacket";
|
||||
Weight = 2.0;
|
||||
Hue = 1175;
|
||||
}
|
||||
|
||||
public HoweyJacket( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x1539, 0x153a )]
|
||||
public class HoweyPants : LongPants
|
||||
{
|
||||
[Constructable]
|
||||
public HoweyPants()
|
||||
{
|
||||
Name = "Dress Pants";
|
||||
Weight = 2.0;
|
||||
Hue = 1175;
|
||||
}
|
||||
|
||||
public HoweyPants( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x1efd, 0x1efe )]
|
||||
public class HoweyShirt : FancyShirt
|
||||
{
|
||||
[Constructable]
|
||||
public HoweyShirt()
|
||||
{
|
||||
int hours, minutes;
|
||||
Server.Items.Clock.GetTime( this.Map, this.X, this.Y, out hours, out minutes );
|
||||
|
||||
Name = "Dress Shirt";
|
||||
Weight = 2.0;
|
||||
|
||||
if ( hours == 1 )
|
||||
Hue = 6;
|
||||
if ( hours == 2 )
|
||||
Hue = 11;
|
||||
if ( hours == 3 )
|
||||
Hue = 16;
|
||||
if ( hours == 4 )
|
||||
Hue = 21;
|
||||
if ( hours == 5 )
|
||||
Hue = 26;
|
||||
if ( hours == 6 )
|
||||
Hue = 31;
|
||||
if ( hours == 7 )
|
||||
Hue = 36;
|
||||
if ( hours == 8 )
|
||||
Hue = 41;
|
||||
if ( hours == 9 )
|
||||
Hue = 46;
|
||||
if ( hours == 10 )
|
||||
Hue = 51;
|
||||
if ( hours == 11 )
|
||||
Hue = 56;
|
||||
if ( hours == 12 )
|
||||
Hue = 61;
|
||||
if ( hours == 13 )
|
||||
Hue = 66;
|
||||
if ( hours == 14 )
|
||||
Hue = 71;
|
||||
if ( hours == 15 )
|
||||
Hue = 76;
|
||||
if ( hours == 16 )
|
||||
Hue = 81;
|
||||
if ( hours == 17 )
|
||||
Hue = 86;
|
||||
if ( hours == 18 )
|
||||
Hue = 91;
|
||||
if ( hours == 19 )
|
||||
Hue = 96;
|
||||
if ( hours == 20 )
|
||||
Hue = 101;
|
||||
if ( hours == 21 )
|
||||
Hue = 106;
|
||||
if ( hours == 22 )
|
||||
Hue = 111;
|
||||
if ( hours == 23 )
|
||||
Hue = 116;
|
||||
if ( hours == 24 )
|
||||
Hue = 121;
|
||||
}
|
||||
|
||||
public HoweyShirt( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x170f, 0x1710 )]
|
||||
public class HoweyShoes : Shoes
|
||||
{
|
||||
public override CraftResource DefaultResource{ get{ return CraftResource.RegularLeather; } }
|
||||
|
||||
[Constructable]
|
||||
public HoweyShoes()
|
||||
{
|
||||
Name = "Dress Shoes";
|
||||
Weight = 2.0;
|
||||
Hue = 1175;
|
||||
}
|
||||
|
||||
public HoweyShoes( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class DoNDBankerDoll : Item
|
||||
{
|
||||
[Constructable]
|
||||
public DoNDBankerDoll() : base( 0x2106 )
|
||||
{
|
||||
Name = "The Banker";
|
||||
Hue = 33;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public DoNDBankerDoll( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class DoNDDoll : Item
|
||||
{
|
||||
[Constructable]
|
||||
public DoNDDoll() : base( 0x2107 )
|
||||
{
|
||||
int hours, minutes;
|
||||
Server.Items.Clock.GetTime( this.Map, this.X, this.Y, out hours, out minutes );
|
||||
|
||||
switch ( Utility.Random( 26 ) )
|
||||
{
|
||||
default:
|
||||
case 0: Name = "Claudia"; break;
|
||||
case 1: Name = "Stacey"; break;
|
||||
case 2: Name = "Lisa"; break;
|
||||
case 3: Name = "Keltie"; break;
|
||||
case 4: Name = "Ursula"; break;
|
||||
case 5: Name = "Megan"; break;
|
||||
case 6: Name = "Sara"; break;
|
||||
case 7: Name = "Lauren"; break;
|
||||
case 8: Name = "Patricia"; break;
|
||||
case 9: Name = "Anya"; break;
|
||||
case 10: Name = "Katie"; break;
|
||||
case 11: Name = "Jill"; break;
|
||||
case 12: Name = "Leyla"; break;
|
||||
case 13: Name = "Pilar"; break;
|
||||
case 14: Name = "Brooke"; break;
|
||||
case 15: Name = "Krissy"; break;
|
||||
case 16: Name = "Jenelle"; break;
|
||||
case 17: Name = "Marisa"; break;
|
||||
case 18: Name = "Mylinda"; break;
|
||||
case 19: Name = "Alike"; break;
|
||||
case 20: Name = "Tameka"; break;
|
||||
case 21: Name = "Lianna"; break;
|
||||
case 22: Name = "Aubrie"; break;
|
||||
case 23: Name = "Kelly"; break;
|
||||
case 24: Name = "Hayley Marie"; break;
|
||||
case 25: Name = "Lindsay"; break;
|
||||
}
|
||||
|
||||
LootType = LootType.Blessed;
|
||||
|
||||
if ( hours == 1 )
|
||||
Hue = 6;
|
||||
if ( hours == 2 )
|
||||
Hue = 11;
|
||||
if ( hours == 3 )
|
||||
Hue = 16;
|
||||
if ( hours == 4 )
|
||||
Hue = 21;
|
||||
if ( hours == 5 )
|
||||
Hue = 26;
|
||||
if ( hours == 6 )
|
||||
Hue = 31;
|
||||
if ( hours == 7 )
|
||||
Hue = 36;
|
||||
if ( hours == 8 )
|
||||
Hue = 41;
|
||||
if ( hours == 9 )
|
||||
Hue = 46;
|
||||
if ( hours == 10 )
|
||||
Hue = 51;
|
||||
if ( hours == 11 )
|
||||
Hue = 56;
|
||||
if ( hours == 12 )
|
||||
Hue = 61;
|
||||
if ( hours == 13 )
|
||||
Hue = 66;
|
||||
if ( hours == 14 )
|
||||
Hue = 71;
|
||||
if ( hours == 15 )
|
||||
Hue = 76;
|
||||
if ( hours == 16 )
|
||||
Hue = 81;
|
||||
if ( hours == 17 )
|
||||
Hue = 86;
|
||||
if ( hours == 18 )
|
||||
Hue = 91;
|
||||
if ( hours == 19 )
|
||||
Hue = 96;
|
||||
if ( hours == 20 )
|
||||
Hue = 101;
|
||||
if ( hours == 21 )
|
||||
Hue = 106;
|
||||
if ( hours == 22 )
|
||||
Hue = 111;
|
||||
if ( hours == 23 )
|
||||
Hue = 116;
|
||||
if ( hours == 24 )
|
||||
Hue = 121;
|
||||
}
|
||||
|
||||
public DoNDDoll( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class DoNDHoweyDoll : Item
|
||||
{
|
||||
[Constructable]
|
||||
public DoNDHoweyDoll() : base( 0x2106 )
|
||||
{
|
||||
Name = "Howey Mandel";
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public DoNDHoweyDoll( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class DoNDReplayDeed : Item
|
||||
{
|
||||
private int m_RP1 = 0;
|
||||
private int m_RPM1 = 0;
|
||||
private int m_Replay = 0;
|
||||
|
||||
public int RP1
|
||||
{
|
||||
get{ return m_RP1; }
|
||||
set{ m_RP1 = value; }
|
||||
}
|
||||
|
||||
public int RPM1
|
||||
{
|
||||
get{ return m_RPM1; }
|
||||
set{ m_RPM1 = value; }
|
||||
}
|
||||
|
||||
public int RReplay
|
||||
{
|
||||
get{ return m_Replay; }
|
||||
set{ m_Replay = value; }
|
||||
}
|
||||
|
||||
|
||||
[Constructable]
|
||||
public DoNDReplayDeed( Mobile m, Item i ) : base( 0x14EF )
|
||||
{
|
||||
PlayerMobile pm = m as PlayerMobile;
|
||||
|
||||
if ( pm == null )
|
||||
return;
|
||||
|
||||
DoNDGameDeed gd = i as DoNDGameDeed;
|
||||
|
||||
if ( gd == null )
|
||||
return;
|
||||
|
||||
RReplay = gd.DReplay;
|
||||
|
||||
Name = "DoND Replay Deed for : " + pm.Name;
|
||||
LootType = LootType.Blessed;
|
||||
Weight = 0.0;
|
||||
|
||||
Visible = false;
|
||||
Movable = false;
|
||||
}
|
||||
|
||||
public override bool DisplayLootType{ get{ return false; } }
|
||||
|
||||
public DoNDReplayDeed( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
|
||||
writer.Write( (int)m_RP1 );
|
||||
writer.Write( (int)m_RPM1 );
|
||||
writer.Write( (int)m_Replay );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
switch ( version )
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
m_RP1 = (int)reader.ReadInt();
|
||||
m_RPM1 = (int)reader.ReadInt();
|
||||
m_Replay = (int)reader.ReadInt();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server.Mobiles;
|
||||
using Server.Gumps;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class DoNDAdminStone : Item
|
||||
{
|
||||
private int i_Game;
|
||||
private int i_Cash;
|
||||
private int i_Replay;
|
||||
private bool b_DeBug;
|
||||
private bool b_Howey;
|
||||
private string s_Commercial;
|
||||
|
||||
public int Game
|
||||
{
|
||||
get{ return i_Game; }
|
||||
set{ i_Game = value; }
|
||||
}
|
||||
|
||||
public int Cash
|
||||
{
|
||||
get{ return i_Cash; }
|
||||
set{ i_Cash = value; }
|
||||
}
|
||||
|
||||
public int Replay
|
||||
{
|
||||
get{ return i_Replay; }
|
||||
set{ i_Replay = value; }
|
||||
}
|
||||
|
||||
public bool DeBugger
|
||||
{
|
||||
get{ return b_DeBug; }
|
||||
set{ b_DeBug = value; }
|
||||
}
|
||||
|
||||
public bool SHowey
|
||||
{
|
||||
get{ return b_Howey; }
|
||||
set{ b_Howey = value; }
|
||||
}
|
||||
|
||||
public string SCommercial
|
||||
{
|
||||
get{ return s_Commercial; }
|
||||
set{ s_Commercial = value; }
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public DoNDAdminStone() : base( 0xED4 )
|
||||
{
|
||||
Name = "Deal or No Deal : System Off";
|
||||
Movable = false;
|
||||
Hue = 5;
|
||||
SCommercial = "Please edit this text to anything you want the player to read when the commercial appears to the player playing Deal or No Deal";
|
||||
Replay = 24;
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
PlayerMobile pm = from as PlayerMobile;
|
||||
|
||||
if ( pm == null )
|
||||
return;
|
||||
|
||||
if ( pm.AccessLevel < AccessLevel.Administrator )
|
||||
{
|
||||
pm.SendMessage( pm.Name + ", Your not the Administrator, please send a page to activate Deal or No Deal!");
|
||||
return;
|
||||
}
|
||||
|
||||
if ( Visible == true )
|
||||
{
|
||||
pm.SendMessage( pm.Name + ", The Game started, if you want to remove system, just delete the Stage, Howey and Stone!");
|
||||
SpawnStage(this);
|
||||
pm.BoltEffect( 0 );
|
||||
pm.PlaySound( 41 );
|
||||
Visible = false;
|
||||
pm.Z +=5;
|
||||
Name = "Deal or No Deal : System On : Howey Not Spawned";
|
||||
return;
|
||||
}
|
||||
|
||||
if ( pm.InRange( this, 5 ) && DeBugger == false )
|
||||
{
|
||||
if ( SHowey == false )
|
||||
SpawnHowey(this);
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( this ) );
|
||||
pm.SendMessage( pm.Name + ", Howey Spawned!");
|
||||
return;
|
||||
}
|
||||
|
||||
if ( DeBugger == true )
|
||||
{
|
||||
if (pm.HasGump( typeof( DebugGump )))
|
||||
pm.CloseGump( typeof( DebugGump ) );
|
||||
pm.SendGump( new DebugGump( pm ) );
|
||||
if (pm.HasGump( typeof( DoNDAdminGump )))
|
||||
pm.CloseGump( typeof( DoNDAdminGump ) );
|
||||
pm.SendGump( new DoNDAdminGump( this ) );
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
public static void SpawnStage( Item target )
|
||||
{
|
||||
DoNDAdminStone it = target as DoNDAdminStone;
|
||||
|
||||
if ( it == null )
|
||||
return;
|
||||
|
||||
Map map = it.Map;
|
||||
|
||||
if ( map == null )
|
||||
return;
|
||||
|
||||
DoNDStageAddon stage = new DoNDStageAddon();
|
||||
|
||||
Point3D loc = it.Location;
|
||||
|
||||
int x = it.X-1;
|
||||
int y = it.Y;
|
||||
int z = it.Z-2;
|
||||
|
||||
loc = new Point3D( x, y, z );
|
||||
|
||||
stage.MoveToWorld( loc, map );
|
||||
|
||||
it.Z +=6;
|
||||
}
|
||||
|
||||
public static void SpawnHowey( Item target )
|
||||
{
|
||||
DoNDAdminStone it = target as DoNDAdminStone;
|
||||
|
||||
if ( it == null )
|
||||
return;
|
||||
|
||||
Map map = it.Map;
|
||||
|
||||
if ( map == null )
|
||||
return;
|
||||
|
||||
Howey howey = new Howey( it );
|
||||
|
||||
Point3D loc = it.Location;
|
||||
|
||||
int x = it.X;
|
||||
int y = it.Y+1;
|
||||
int z = it.Z;
|
||||
|
||||
loc = new Point3D( x, y, z );
|
||||
|
||||
howey.MoveToWorld( loc, map );
|
||||
|
||||
it.Name = "Deal or No Deal : System On : Howey Spawned";
|
||||
|
||||
howey.FixedParticles( 0x37CC, 1, 40, 97, 3, 9917, EffectLayer.Waist );
|
||||
howey.FixedParticles( 0x374A, 1, 15, 9502, 97, 3, (EffectLayer)255 );
|
||||
|
||||
it.SHowey = true;
|
||||
}
|
||||
|
||||
public DoNDAdminStone( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
|
||||
writer.Write( (int)i_Game );
|
||||
writer.Write( (int)i_Cash );
|
||||
writer.Write( (int)i_Replay );
|
||||
writer.Write( (bool)b_DeBug );
|
||||
writer.Write( (bool)b_Howey );
|
||||
writer.Write( (string)s_Commercial );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
switch ( version )
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
i_Game = (int)reader.ReadInt();
|
||||
i_Cash = (int)reader.ReadInt();
|
||||
i_Replay = (int)reader.ReadInt();
|
||||
b_DeBug = (bool)reader.ReadBool();
|
||||
b_Howey = (bool)reader.ReadBool();
|
||||
s_Commercial = (string)reader.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class DoNDGameTicket : Item
|
||||
{
|
||||
[Constructable]
|
||||
public DoNDGameTicket() : base( 0x14EF )
|
||||
{
|
||||
Name = "DoND Game Ticket";
|
||||
Hue = 1161;
|
||||
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public override bool DisplayLootType{ get{ return false; } }
|
||||
|
||||
public DoNDGameTicket( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class DoNDLogin
|
||||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
EventSink.Login += new LoginEventHandler( OnLogin );
|
||||
}
|
||||
|
||||
private static void OnLogin( LoginEventArgs e )
|
||||
{
|
||||
if ( e.Mobile is PlayerMobile )
|
||||
{
|
||||
PlayerMobile pm = (PlayerMobile)e.Mobile;
|
||||
|
||||
if (pm == null || pm.Backpack == null)
|
||||
return;
|
||||
|
||||
Item check = pm.Backpack.FindItemByType(typeof(DoNDGameDeed) );
|
||||
|
||||
if ( check != null )
|
||||
check.Delete();
|
||||
|
||||
if ( pm.Frozen == true )
|
||||
pm.Frozen = false;
|
||||
|
||||
Item check2 = pm.Backpack.FindItemByType(typeof(DoNDReplayDeed) );
|
||||
|
||||
if ( check2 == null )
|
||||
return;
|
||||
|
||||
DoNDReplayDeed rd = check2 as DoNDReplayDeed;
|
||||
|
||||
if ( rd == null )
|
||||
return;
|
||||
|
||||
if ( rd.RP1 < 24 )
|
||||
{
|
||||
Timer i_timer = new PlayerReplayTimer( pm );
|
||||
i_timer.Start();
|
||||
}
|
||||
|
||||
if ( rd.RP1 >= 24 )
|
||||
rd.Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class GameVendor : BaseVendor
|
||||
{
|
||||
private List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
protected override List<SBInfo> SBInfos{ get { return m_SBInfos; } }
|
||||
|
||||
[Constructable]
|
||||
public GameVendor() : base( "the Live Game Ticket Seller" )
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitSBInfo()
|
||||
{
|
||||
m_SBInfos.Add( new SBGameVendor() );
|
||||
}
|
||||
|
||||
public GameVendor( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class SBGameVendor : SBInfo
|
||||
{
|
||||
private List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();
|
||||
private IShopSellInfo m_SellInfo = new InternalSellInfo();
|
||||
|
||||
public SBGameVendor()
|
||||
{
|
||||
}
|
||||
|
||||
public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
|
||||
public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }
|
||||
|
||||
public class InternalBuyInfo : List<GenericBuyInfo>
|
||||
{
|
||||
public InternalBuyInfo()
|
||||
{
|
||||
Add( new GenericBuyInfo( typeof( DoNDGameTicket ), 50000, 20, 0x14EF, 1161 ) );
|
||||
}
|
||||
}
|
||||
|
||||
public class InternalSellInfo : GenericSellInfo
|
||||
{
|
||||
public InternalSellInfo()
|
||||
{
|
||||
Add( typeof( DoNDGameTicket ), 25000 );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Girls : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public Girls( int i, Mobile m, Mobile bm ) : base( AIType.AI_Animal, FightMode.Aggressor, 20, 1, 0.2, 0.4 )
|
||||
{
|
||||
PlayerMobile pm = m as PlayerMobile;
|
||||
|
||||
if ( pm == null )
|
||||
return;
|
||||
|
||||
Howey bc = bm as Howey;
|
||||
|
||||
if ( bc == null )
|
||||
return;
|
||||
|
||||
Body = 0x191;
|
||||
CantWalk = true;
|
||||
Blessed = true;
|
||||
Frozen = true;
|
||||
|
||||
AddItem( new GirlsDress() );
|
||||
AddItem( new GirlsSandals() );
|
||||
|
||||
Item item = new DoNDCase();
|
||||
item.Name = "Case #" + i;
|
||||
item.Hue = 986;
|
||||
item.LootType = LootType.Blessed;
|
||||
|
||||
EquipItem( item );
|
||||
|
||||
Direction = Direction.South;
|
||||
}
|
||||
|
||||
public override void OnThink()
|
||||
{
|
||||
Direction = Direction.South;
|
||||
|
||||
if ( Frozen == false )
|
||||
Frozen = true;
|
||||
|
||||
base.OnThink();
|
||||
return;
|
||||
}
|
||||
|
||||
public Girls( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Gumps;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class CloseCaseTimer : Timer
|
||||
{
|
||||
private Item item;
|
||||
private Mobile mobile;
|
||||
|
||||
public CloseCaseTimer( Mobile m, Item i ) : base( TimeSpan.FromSeconds( 1 ) )
|
||||
{
|
||||
mobile = m;
|
||||
item = i;
|
||||
}
|
||||
protected override void OnTick()
|
||||
{
|
||||
PlayerMobile pm = mobile as PlayerMobile;
|
||||
|
||||
if ( pm == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
DoNDGameDeed gd = item as DoNDGameDeed;
|
||||
|
||||
if ( gd == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
if( gd.Deleted )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
gd.CloseCase = true;
|
||||
|
||||
if (pm.HasGump( typeof( DoNDMainGump )))
|
||||
pm.CloseGump( typeof( DoNDMainGump ) );
|
||||
pm.SendGump( new DoNDMainGump( pm, gd ) );
|
||||
this.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Gumps;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class CloseGameTimer : Timer
|
||||
{
|
||||
private Item item;
|
||||
private Mobile pmobile;
|
||||
private Mobile bmobile;
|
||||
|
||||
public CloseGameTimer( Mobile m, Mobile bm, Item i ) : base( TimeSpan.FromSeconds( 3 ) )
|
||||
{
|
||||
pmobile = m;
|
||||
bmobile = bm;
|
||||
item = i;
|
||||
}
|
||||
protected override void OnTick()
|
||||
{
|
||||
PlayerMobile pm = pmobile as PlayerMobile;
|
||||
|
||||
if ( pm == null || pm.Backpack == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
Howey bc = bmobile as Howey;
|
||||
|
||||
if ( bc == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
DoNDGameDeed gd = item as DoNDGameDeed;
|
||||
|
||||
if ( gd == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
if( gd.Deleted )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( gd.GameOver == false && gd.NoTrade == true )
|
||||
{
|
||||
bc.Say( pm.Name + ", Your case had....!");
|
||||
GameSystem.PrizeCheck( pm, bc );
|
||||
|
||||
if ( bc.DeBugger == true )
|
||||
Console.WriteLine( "DeBug : System, Close Game Timer, NoTrade OK" );
|
||||
this.Stop();
|
||||
}
|
||||
|
||||
bc.DealOn = false;
|
||||
bc.AL = 0;
|
||||
bc.cnt = 0;
|
||||
pm.Frozen = false;
|
||||
|
||||
bc.CD1 = false;
|
||||
bc.CD2 = false;
|
||||
bc.CD3 = false;
|
||||
bc.CD4 = false;
|
||||
bc.CD5 = false;
|
||||
bc.CD6 = false;
|
||||
bc.CD7 = false;
|
||||
bc.CD8 = false;
|
||||
bc.CD9 = false;
|
||||
bc.CD10 = false;
|
||||
bc.CD11 = false;
|
||||
bc.CD12 = false;
|
||||
bc.CD13 = false;
|
||||
bc.CD14 = false;
|
||||
bc.CD15 = false;
|
||||
bc.CD16 = false;
|
||||
bc.CD17 = false;
|
||||
bc.CD18 = false;
|
||||
bc.CD19 = false;
|
||||
bc.CD20 = false;
|
||||
bc.CD21 = false;
|
||||
bc.CD22 = false;
|
||||
bc.CD23 = false;
|
||||
bc.CD24 = false;
|
||||
bc.CD25 = false;
|
||||
bc.CD26 = false;
|
||||
|
||||
if (pm.HasGump( typeof( DoNDMainGump )))
|
||||
pm.CloseGump( typeof( DoNDMainGump ) );
|
||||
|
||||
bc.Say( pm.Name + ", Thanks for playing Deal or No Deal!");
|
||||
bc.Hidden = true;
|
||||
|
||||
bc.FixedParticles( 0x37CC, 1, 40, 97, 3, 9917, EffectLayer.Waist );
|
||||
bc.FixedParticles( 0x374A, 1, 15, 9502, 97, 3, (EffectLayer)255 );
|
||||
|
||||
Console.WriteLine( "A Player has Ended Deal or No Deal : Game Over" );
|
||||
|
||||
Item ri = pm.Backpack.FindItemByType(typeof(DoNDReplayDeed) );
|
||||
|
||||
if ( ri != null )
|
||||
{
|
||||
if ( bc.DeBugger == true )
|
||||
Console.WriteLine( "DeBug : System, Close Game Timer, Found Replay Deed OK" );
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( pm.AccessLevel < AccessLevel.GameMaster )
|
||||
pm.AddToBackpack( new DoNDReplayDeed( pm, gd ) );
|
||||
|
||||
gd.Delete();
|
||||
|
||||
if ( pm.AccessLevel < AccessLevel.GameMaster )
|
||||
{
|
||||
pm.SendMessage( 33, pm.Name + ", You'll need to wait in order to play again!");
|
||||
|
||||
Timer p_timer = new PlayerReplayTimer( pm );
|
||||
p_timer.Start();
|
||||
}
|
||||
if ( bc.DeBugger == true )
|
||||
Console.WriteLine( "DeBug : System, Close Game Timer, End Game OK" );
|
||||
this.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class HoweyResetTimer : Timer
|
||||
{
|
||||
private Item item;
|
||||
private Mobile bmobile;
|
||||
|
||||
public HoweyResetTimer( Item i, Mobile m ) : base( TimeSpan.FromSeconds( 5 ) )
|
||||
{
|
||||
item = i;
|
||||
bmobile = m;
|
||||
}
|
||||
protected override void OnTick()
|
||||
{
|
||||
DoNDAdminStone si = item as DoNDAdminStone;
|
||||
|
||||
if ( si == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
Howey bc = bmobile as Howey;
|
||||
|
||||
if ( bc == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
DoNDAdminStone.SpawnHowey( si );
|
||||
|
||||
if ( bc.DeBugger == true )
|
||||
Console.WriteLine( "DeBug : System, Howey Reset Timer OK" );
|
||||
this.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class ItemDeleteTimer : Timer
|
||||
{
|
||||
private Item item;
|
||||
private Mobile pmobile;
|
||||
private Mobile bmobile;
|
||||
|
||||
public ItemDeleteTimer( Mobile m, Mobile bm, Item i ) : base( TimeSpan.FromSeconds( 1 ) )
|
||||
{
|
||||
pmobile = m;
|
||||
bmobile = bm;
|
||||
item = i;
|
||||
}
|
||||
protected override void OnTick()
|
||||
{
|
||||
DoNDGameDeed gd = item as DoNDGameDeed;
|
||||
|
||||
if ( gd == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
if( gd.Deleted )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
PlayerMobile pm = pmobile as PlayerMobile;
|
||||
|
||||
if ( pm == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
Howey bc = bmobile as Howey;
|
||||
|
||||
if ( bc == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( gd.GameOver == false )
|
||||
{
|
||||
this.Start();
|
||||
return;
|
||||
}
|
||||
|
||||
GameSystem.EndDDGame( pm, bc );
|
||||
|
||||
if ( bc.DeBugger == true )
|
||||
Console.WriteLine( "DeBug : System, Item Delete Timer OK" );
|
||||
this.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Gumps;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class MobileDeleteTimer : Timer
|
||||
{
|
||||
private Mobile pmobile;
|
||||
private Mobile bmobile;
|
||||
private Mobile m_DG;
|
||||
|
||||
public Mobile DG
|
||||
{
|
||||
get{ return m_DG; }
|
||||
set{ m_DG = value; }
|
||||
}
|
||||
|
||||
public MobileDeleteTimer( Mobile pmm, Mobile bcc ) : base( TimeSpan.FromSeconds( 1 ) )
|
||||
{
|
||||
pmobile = pmm;
|
||||
bmobile = bcc;
|
||||
}
|
||||
protected override void OnTick()
|
||||
{
|
||||
Howey bc = bmobile as Howey;
|
||||
|
||||
if ( bc == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
PlayerMobile pm = pmobile as PlayerMobile;
|
||||
|
||||
if ( pm == null || pm.Backpack == null )
|
||||
{
|
||||
GameSystem.EndDDGame( pm, bc );
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
Item check = pm.Backpack.FindItemByType(typeof(DoNDGameDeed) );
|
||||
|
||||
DoNDGameDeed gd = check as DoNDGameDeed;
|
||||
|
||||
if ( gd == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( gd.Commercial == true )
|
||||
{
|
||||
if (pm.HasGump( typeof( DoNDCommercialGump )))
|
||||
pm.CloseGump( typeof( DoNDCommercialGump ) );
|
||||
pm.SendGump( new DoNDCommercialGump( pm ) );
|
||||
}
|
||||
|
||||
if ( gd.GameOver == false )
|
||||
{
|
||||
this.Start();
|
||||
return;
|
||||
}
|
||||
|
||||
GameSystem.EndDDGame( pm, bc );
|
||||
|
||||
if ( bc.DeBugger == true )
|
||||
Console.WriteLine( "DeBug : System, Mobile Delete Timer OK" );
|
||||
this.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class PlayerReplayTimer : Timer
|
||||
{
|
||||
private Mobile pmobile;
|
||||
|
||||
public PlayerReplayTimer( Mobile m ) : base( TimeSpan.FromMinutes( 1 ) )
|
||||
{
|
||||
pmobile = m;
|
||||
}
|
||||
protected override void OnTick()
|
||||
{
|
||||
PlayerMobile pm = pmobile as PlayerMobile;
|
||||
|
||||
if ( pm == null || pm.Backpack == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
Item check = pm.Backpack.FindItemByType(typeof(DoNDReplayDeed) );
|
||||
|
||||
if ( check == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
DoNDReplayDeed gd = check as DoNDReplayDeed;
|
||||
|
||||
if ( gd == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
gd.RPM1 +=1;
|
||||
|
||||
if ( gd.RPM1 == 60 )
|
||||
{
|
||||
gd.RP1 +=1;
|
||||
gd.RPM1 = 0;
|
||||
this.Start();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( gd.RP1 == gd.RReplay )
|
||||
{
|
||||
pm.SendMessage( pm.Name + ", You can now play Deal or No Deal!");
|
||||
gd.Delete();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( gd.RP1 < gd.RReplay )
|
||||
{
|
||||
this.Start();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Gumps;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class PlayerResetTimer : Timer
|
||||
{
|
||||
private Mobile pmobile;
|
||||
private Mobile bmobile;
|
||||
|
||||
public PlayerResetTimer( Mobile m, Mobile bm ) : base( TimeSpan.FromMinutes( 1 ) )
|
||||
{
|
||||
pmobile = m;
|
||||
bmobile = bm;
|
||||
}
|
||||
protected override void OnTick()
|
||||
{
|
||||
PlayerMobile pm = pmobile as PlayerMobile;
|
||||
|
||||
if ( pm == null || pm.Backpack == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
Howey bc = bmobile as Howey;
|
||||
|
||||
if ( bc == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
Item check = pm.Backpack.FindItemByType(typeof(DoNDGameDeed) );
|
||||
|
||||
if ( check == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
DoNDGameDeed gd = check as DoNDGameDeed;
|
||||
|
||||
if ( gd == null )
|
||||
{
|
||||
this.Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
gd.TL +=1;
|
||||
|
||||
if ( gd.TL < 5 )
|
||||
{
|
||||
this.Start();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( gd.TL == 5 )
|
||||
{
|
||||
pm.SendMessage( 33,pm.Name + ", You only have limited time to play");
|
||||
gd.TL = 20 - gd.TL;
|
||||
pm.SendMessage( 33,gd.TL + " Minutes Left to Play!");
|
||||
gd.TL = 20 - gd.TL;
|
||||
this.Start();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( gd.TL != 5 && gd.TL < 10 )
|
||||
{
|
||||
this.Start();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( gd.TL == 10 )
|
||||
{
|
||||
pm.SendMessage( 33,pm.Name + ", You only have limited time to play");
|
||||
gd.TL = 20 - gd.TL;
|
||||
pm.SendMessage( 33,gd.TL + " Minutes Left to Play!");
|
||||
gd.TL = 20 - gd.TL;
|
||||
this.Start();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( gd.TL != 10 && gd.TL < 15 )
|
||||
{
|
||||
this.Start();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( gd.TL < 20 )
|
||||
{
|
||||
pm.SendMessage( 33,pm.Name + ", You only have limited time to play");
|
||||
gd.TL = 20 - gd.TL;
|
||||
pm.SendMessage( 33,gd.TL + " Minutes Left to Play!");
|
||||
gd.TL = 20 - gd.TL;
|
||||
this.Start();
|
||||
return;
|
||||
}
|
||||
pm.SendMessage( 33,pm.Name + ", Times up, Game Over!");
|
||||
|
||||
if( gd != null )
|
||||
{
|
||||
if (pm.HasGump( typeof( DoNDMainGump )))
|
||||
pm.CloseGump( typeof( DoNDMainGump ) );
|
||||
|
||||
gd.GameOver = true;
|
||||
GameSystem.EndDDGame( pm, bc );
|
||||
|
||||
if ( bc.DeBugger == true )
|
||||
Console.WriteLine( "DeBug : System, Player Reset Timer OK" );
|
||||
gd.TL = 0;
|
||||
this.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user