This reverts commit 179cb50557.
This commit is contained in:
parent
179cb50557
commit
c2ecc76457
588 changed files with 16260 additions and 10926 deletions
|
|
@ -59,7 +59,9 @@ namespace Server.Misc
|
|||
private static void ChangeStrength(Mobile from, int value)
|
||||
{
|
||||
if (value < 10 || value > 125)
|
||||
{
|
||||
from.SendLocalizedMessage(1005628); // Stats range between 10 and 125.
|
||||
}
|
||||
else
|
||||
{
|
||||
if (value + from.RawDex + from.RawInt > from.StatCap)
|
||||
|
|
@ -78,7 +80,9 @@ namespace Server.Misc
|
|||
private static void ChangeDexterity(Mobile from, int value)
|
||||
{
|
||||
if (value < 10 || value > 125)
|
||||
{
|
||||
from.SendLocalizedMessage(1005628); // Stats range between 10 and 125.
|
||||
}
|
||||
else
|
||||
{
|
||||
if (from.RawStr + value + from.RawInt > from.StatCap)
|
||||
|
|
@ -97,7 +101,9 @@ namespace Server.Misc
|
|||
private static void ChangeIntelligence(Mobile from, int value)
|
||||
{
|
||||
if (value < 10 || value > 125)
|
||||
{
|
||||
from.SendLocalizedMessage(1005628); // Stats range between 10 and 125.
|
||||
}
|
||||
else
|
||||
{
|
||||
if (from.RawStr + from.RawDex + value > from.StatCap)
|
||||
|
|
@ -126,7 +132,9 @@ namespace Server.Misc
|
|||
if (skill != null)
|
||||
{
|
||||
if (value < 0 || value > skill.Cap)
|
||||
{
|
||||
from.SendMessage($"Your skill in {skill.Info.Name} is capped at {skill.Cap:F1}.");
|
||||
}
|
||||
else
|
||||
{
|
||||
int newFixedPoint = (int)(value * 10.0);
|
||||
|
|
@ -139,7 +147,9 @@ namespace Server.Misc
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendLocalizedMessage(1005631); // You have specified an invalid skill to set.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -189,8 +199,8 @@ namespace Server.Misc
|
|||
|
||||
if (sb.Length + 1 + v.Length >= 256)
|
||||
{
|
||||
Packets.SendAsciiMessage(sender, Server.Serial.MinusOne, -1, MessageType.Label, 0x35, 3,
|
||||
"System", sb.ToString());
|
||||
sender.Send(new AsciiMessage(Server.Serial.MinusOne, -1, MessageType.Label, 0x35, 3,
|
||||
"System", sb.ToString()));
|
||||
sb = new StringBuilder();
|
||||
sb.Append(v);
|
||||
}
|
||||
|
|
@ -202,8 +212,8 @@ namespace Server.Misc
|
|||
}
|
||||
|
||||
if (sb.Length > 0)
|
||||
Packets.SendAsciiMessage(sender, Server.Serial.MinusOne, -1, MessageType.Label, 0x35, 3, "System",
|
||||
sb.ToString());
|
||||
sender.Send(new AsciiMessage(Server.Serial.MinusOne, -1, MessageType.Label, 0x35, 3, "System",
|
||||
sb.ToString()));
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
56
Projects/Scripts/SpecialSystems/Items/Stones/GMStone.cs
Normal file
56
Projects/Scripts/SpecialSystems/Items/Stones/GMStone.cs
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
#if false
|
||||
using System;
|
||||
using Server.Network;
|
||||
using Server.Commands;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class GMStone : Item
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get { return "a GM stone"; }
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public GMStone() : base( 0xED4 )
|
||||
{
|
||||
Movable = false;
|
||||
Hue = 0x489;
|
||||
}
|
||||
|
||||
public GMStone( 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();
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( from.AccessLevel < AccessLevel.GameMaster )
|
||||
{
|
||||
from.AccessLevel = AccessLevel.GameMaster;
|
||||
|
||||
from.SendAsciiMessage( 0x482, "The command prefix is \"{0}\"", CommandSystem.Prefix );
|
||||
CommandHandlers.Help_OnCommand( new CommandEventArgs( from, "help", "", new string[0] ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendMessage( "The stone has no effect." );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue