#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
45
Scripts/Misc/Gifts/Winter2004/Winter2004.cs
Normal file
45
Scripts/Misc/Gifts/Winter2004/Winter2004.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Misc
|
||||
{
|
||||
public class WinterGiftGiver2004 : GiftGiver
|
||||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
GiftGiving.Register( new WinterGiftGiver2004() );
|
||||
}
|
||||
|
||||
public override DateTime Start{ get{ return new DateTime( 2004, 12, 24 ); } }
|
||||
public override DateTime Finish{ get{ return new DateTime( 2005, 1, 1 ); } }
|
||||
|
||||
public override void GiveGift( Mobile mob )
|
||||
{
|
||||
GiftBox box = new GiftBox();
|
||||
|
||||
box.DropItem( new MistletoeDeed() );
|
||||
box.DropItem( new PileOfGlacialSnow() );
|
||||
box.DropItem( new LightOfTheWinterSolstice() );
|
||||
|
||||
int random = Utility.Random( 100 );
|
||||
|
||||
if ( random < 60 )
|
||||
box.DropItem( new DecorativeTopiary() );
|
||||
else if ( random < 84 )
|
||||
box.DropItem( new FestiveCactus() );
|
||||
else
|
||||
box.DropItem( new SnowyTree() );
|
||||
|
||||
switch ( GiveGift( mob, box ) )
|
||||
{
|
||||
case GiftResult.Backpack:
|
||||
mob.SendMessage( 0x482, "Happy Holidays from the team! Gift items have been placed in your backpack." );
|
||||
break;
|
||||
case GiftResult.BankBox:
|
||||
mob.SendMessage( 0x482, "Happy Holidays from the team! Gift items have been placed in your bank box." );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue