Dezzie
Member
I want to give the snowman but I want it named the name of the player. I'm not sure how to put that in the script. Can anyone help?
using System;
using Server.Items;
namespace Server.Misc
{
public class Xmas2019 : GiftGiver
{
public override DateTime Start
{
get
{
return new DateTime(2019, 12, 10);
}
}
public override DateTime Finish
{
get
{
return new DateTime(2020, 1, 2);
}
}
public static void Initialize()
{
GiftGiving.Register(new Xmas2019 ());
}
public override void GiveGift(Mobile mob)
{
BowsGiftBox box = new BowsGiftBox();
box.DropItem(new GlacialSnowPile());
box.DropItem(new HolidayTimepiece());
box.DropItem(new Gold(25000));
box.DropItem(new Snowman2017());
box.DropItem(new WreathDeed());
switch ( this.GiveGift(mob, box) )
{
case GiftResult.Backpack:
mob.SendMessage(0x482, "Happy Holidays from the Darkness Once Forsaken Shard! Gift items have been placed in your backpack.");
break;
case GiftResult.BankBox:
mob.SendMessage(0x482, "Happy Holidays from the Darkness Once Forsaken Shard! Gift items have been placed in your bank box.");
break;
}
}
}
}
Thank you for helping.
using System;
using Server.Items;
namespace Server.Misc
{
public class Xmas2019 : GiftGiver
{
public override DateTime Start
{
get
{
return new DateTime(2019, 12, 10);
}
}
public override DateTime Finish
{
get
{
return new DateTime(2020, 1, 2);
}
}
public static void Initialize()
{
GiftGiving.Register(new Xmas2019 ());
}
public override void GiveGift(Mobile mob)
{
BowsGiftBox box = new BowsGiftBox();
box.DropItem(new GlacialSnowPile());
box.DropItem(new HolidayTimepiece());
box.DropItem(new Gold(25000));
box.DropItem(new Snowman2017());
box.DropItem(new WreathDeed());
switch ( this.GiveGift(mob, box) )
{
case GiftResult.Backpack:
mob.SendMessage(0x482, "Happy Holidays from the Darkness Once Forsaken Shard! Gift items have been placed in your backpack.");
break;
case GiftResult.BankBox:
mob.SendMessage(0x482, "Happy Holidays from the Darkness Once Forsaken Shard! Gift items have been placed in your bank box.");
break;
}
}
}
}
Thank you for helping.