#W# Initial Commit: Avatars Conquest
This commit is contained in:
commit
8eae46895e
7512 changed files with 416187 additions and 0 deletions
30
Scripts/Context Menus/OpenInnEntry.cs
Normal file
30
Scripts/Context Menus/OpenInnEntry.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.ContextMenus
|
||||
{
|
||||
public class OpenInnEntry : ContextMenuEntry
|
||||
{
|
||||
private Mobile m_Innkeeper;
|
||||
|
||||
public OpenInnEntry( Mobile from, Mobile inn ) : base( 6105, 12 )
|
||||
{
|
||||
m_Innkeeper = inn;
|
||||
}
|
||||
|
||||
public override void OnClick()
|
||||
{
|
||||
if ( !Owner.From.CheckAlive() )
|
||||
return;
|
||||
|
||||
if ( Owner.From.Criminal )
|
||||
{
|
||||
m_Innkeeper.Say( 500378 ); // Thou art a criminal and cannot access thy inn chest.
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Owner.From.InnBox.Open();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue