mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
-Fixed issue where client helpers could bypass the container gump and add items directly to the seed box -SearedFireAntGoo is no longer stackable -Blue NPC's (mainly vendors, not initial innocent) can no longer be attacked on trammel maps -Aggressors/Aggressed from pet masters now works properly. This was suspected to crated large numbers to redundant aggressor/aggressed added to a mobiles aggressor/aggressed lists -Aggressive action for healing a mobile while fighting another mobile has been re-enabled -AuraDamage is now a harmful act, ie those affected will aggro on your pet! -MLDryads should no longer attack other wild creatures during Blackthorn Invasion Instance -More code cleanup
33 lines
949 B
C#
33 lines
949 B
C#
using System;
|
|
using System.Collections;
|
|
|
|
namespace
|
|
Server.Commands.Generic
|
|
{
|
|
public sealed class LimitExtension : BaseExtension
|
|
{
|
|
public static ExtensionInfo ExtInfo = new ExtensionInfo(80, "Limit", 1, delegate { return new LimitExtension(); });
|
|
private int m_Limit;
|
|
|
|
public override ExtensionInfo Info => ExtInfo;
|
|
public int Limit => m_Limit;
|
|
public static void Initialize()
|
|
{
|
|
ExtensionInfo.Register(ExtInfo);
|
|
}
|
|
|
|
public override void Parse(Mobile from, string[] arguments, int offset, int size)
|
|
{
|
|
m_Limit = Utility.ToInt32(arguments[offset]);
|
|
|
|
if (m_Limit < 0)
|
|
throw new Exception("Limit cannot be less than zero.");
|
|
}
|
|
|
|
public override void Filter(ArrayList list)
|
|
{
|
|
if (list.Count > m_Limit)
|
|
list.RemoveRange(m_Limit, list.Count - m_Limit);
|
|
}
|
|
}
|
|
}
|