#W# Initial Commit: Avatars Conquest
This commit is contained in:
commit
5df497787a
7510 changed files with 416048 additions and 0 deletions
41
Scripts/Quests/ChestOfSecrets.cs
Normal file
41
Scripts/Quests/ChestOfSecrets.cs
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
using Server;
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x0890, 0x0891 )]
|
||||
public class ChestOfSecrets : Item
|
||||
{
|
||||
[Constructable]
|
||||
public ChestOfSecrets() : base( 0x0890 )
|
||||
{
|
||||
Name = "golden chest";
|
||||
Light = LightType.Circle150;
|
||||
Movable = false;
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( !from.InRange( this.GetWorldLocation(), 2 ) )
|
||||
from.SendMessage( "That is too far away!" );
|
||||
else if ( !Server.Misc.QuestFunctions.MonstersNearby( from ) )
|
||||
from.SendMessage( "You find nothing of interest in the chest." );
|
||||
}
|
||||
|
||||
public ChestOfSecrets( 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