fix: Codegens rares and solen items (#1371)
This commit is contained in:
parent
3514651c3c
commit
6fcd606947
228 changed files with 2921 additions and 4460 deletions
21
Projects/UOContent/Misc/MessageHelper.cs
Normal file
21
Projects/UOContent/Misc/MessageHelper.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using Server.Network;
|
||||
|
||||
namespace Server;
|
||||
|
||||
public static class MessageHelper
|
||||
{
|
||||
public static void SendLocalizedMessageTo(this Item from, Mobile to, int number, int hue)
|
||||
{
|
||||
SendLocalizedMessageTo(from, to, number, "", hue);
|
||||
}
|
||||
|
||||
public static void SendLocalizedMessageTo(this Item from, Mobile to, int number, string args, int hue)
|
||||
{
|
||||
to?.NetState.SendMessageLocalized(from.Serial, from.ItemID, MessageType.Regular, hue, 3, number, "", args);
|
||||
}
|
||||
|
||||
public static void SendMessageTo(this Item from, Mobile to, string text, int hue)
|
||||
{
|
||||
to?.NetState.SendMessage(from.Serial, from.ItemID, MessageType.Regular, hue, 3, false, "ENU", "", text);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue