#W# Creating rewards for quests.
This commit is contained in:
parent
774e003943
commit
f2894f2f70
5 changed files with 335 additions and 3 deletions
47
Scripts/Quests/Rewards/BottomlessPotionKeg.cs
Normal file
47
Scripts/Quests/Rewards/BottomlessPotionKeg.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class BottomlessPotionKeg : PotionKeg
|
||||
{
|
||||
public override int MaxCapacity { get { return 500; } }
|
||||
|
||||
[Constructable]
|
||||
public BottomlessPotionKeg() : base()
|
||||
{
|
||||
Hue = 1161; // Glowing Blaze hue
|
||||
}
|
||||
|
||||
public override void GetProperties( ObjectPropertyList list )
|
||||
{
|
||||
base.GetProperties( list );
|
||||
|
||||
list.Add( 1049644, "Bottomless (500 Max)" ); // Displays as: [ Bottomless (500 Max) ]
|
||||
}
|
||||
|
||||
public override void OnSingleClick( Mobile from )
|
||||
{
|
||||
base.OnSingleClick( from );
|
||||
|
||||
this.LabelTo( from, "[Bottomless (500 Max)]" );
|
||||
}
|
||||
|
||||
public BottomlessPotionKeg( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue