Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

68
Scripts/Regions/Jail.cs Normal file
View File

@@ -0,0 +1,68 @@
using System;
using System.Xml;
namespace Server.Regions
{
public class Jail : BaseRegion
{
public Jail(XmlElement xml, Map map, Region parent)
: base(xml, map, parent)
{
}
public override bool AllowAutoClaim( Mobile from )
{
return false;
}
public override bool AllowBeneficial(Mobile from, Mobile target)
{
if (from.IsPlayer())
from.SendLocalizedMessage(1115999); // You may not do that in this area.
return (from.IsStaff());
}
public override bool AllowHarmful(Mobile from, IDamageable target)
{
if (from.Player)
from.SendLocalizedMessage(1115999); // You may not do that in this area.
return (from.IsStaff());
}
public override bool AllowHousing(Mobile from, Point3D p)
{
return false;
}
public override void AlterLightLevel(Mobile m, ref int global, ref int personal)
{
global = LightCycle.JailLevel;
}
public override bool OnBeginSpellCast(Mobile from, ISpell s)
{
if (from.IsPlayer())
{
from.SendLocalizedMessage(502629); // You cannot cast spells here.
return false;
}
return base.OnBeginSpellCast(from, s);
}
public override bool OnSkillUse(Mobile from, int Skill)
{
if (from.IsPlayer())
from.SendLocalizedMessage(1116000); // You may not use that skill in this area.
return (from.IsStaff());
}
public override bool OnCombatantChange(Mobile from, IDamageable Old, IDamageable New)
{
return (from.IsStaff());
}
}
}