Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
76
Scripts/Services/PointsSystems/VoidPool.cs
Normal file
76
Scripts/Services/PointsSystems/VoidPool.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Engines.Quests;
|
||||
using System.Collections.Generic;
|
||||
using Server.ContextMenus;
|
||||
using Server.Engines.VoidPool;
|
||||
|
||||
namespace Server.Engines.Points
|
||||
{
|
||||
public class VoidPool : PointsSystem
|
||||
{
|
||||
public override PointsType Loyalty { get { return PointsType.VoidPool; } }
|
||||
public override TextDefinition Name { get { return m_Name; } }
|
||||
public override bool AutoAdd { get { return true; } }
|
||||
public override double MaxPoints { get { return double.MaxValue; } }
|
||||
|
||||
private TextDefinition m_Name = new TextDefinition(1152733);
|
||||
|
||||
public VoidPool()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SendMessage(PlayerMobile from, double old, double points, bool quest)
|
||||
{
|
||||
from.SendLocalizedMessage(1152649, String.Format("{0}\t{1}", from.Map.ToString(), points));
|
||||
// For your participation in the Battle for the Void Pool on ~1_FACET~, you have received ~2_POINTS~ reward points. Any reward points you have accumulated may be redeemed by visiting Vela in Cove.
|
||||
}
|
||||
|
||||
public override TextDefinition GetTitle(PlayerMobile from)
|
||||
{
|
||||
return new TextDefinition(1152531); // The Void Pool
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
if (Version >= 2)
|
||||
{
|
||||
int version = reader.ReadInt();
|
||||
|
||||
// all deserialize code in here
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class VoidPoolInfo : ContextMenuEntry
|
||||
{
|
||||
private Mobile m_From;
|
||||
private VoidPoolController m_Controller;
|
||||
|
||||
public VoidPoolInfo(Mobile from, VoidPoolController controller)
|
||||
: base(1152531, -1) // The Void Pool
|
||||
{
|
||||
m_From = from;
|
||||
m_Controller = controller;
|
||||
}
|
||||
|
||||
public override void OnClick()
|
||||
{
|
||||
if (m_From is PlayerMobile && m_Controller != null)
|
||||
{
|
||||
m_From.SendGump(new VoidPoolGump(m_Controller, m_From as PlayerMobile));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user