ModernUO/Scripts/Items/Special/Solen Items/MessageHelper.cs
eos 71a9e054de - Modified the quest system to allow non-BaseCreature quest givers, now requires IQuestGiver.
- Added base quest giver items, both timed and untimed.
- Added BatteredBucket and Lost and Found quest.
- Moved quester 'friendly names' to a class attribute. If left unspecified, the type name is used.
- Misc quest corrections.
- The bag of sending will now reject nontransferable items.
- Fixed quest items generating error messages when StackWith was attempted on them. (StackWith is not supposed to produce feedback.)
- Quest items can now be dropped onto the player's backpack.
2013-02-24 00:31:44 +00:00

23 lines
688 B
C#

using System;
using Server.Network;
namespace Server
{
public class MessageHelper
{
public static void SendLocalizedMessageTo( Item from, Mobile to, int number, int hue )
{
SendLocalizedMessageTo( from, to, number, "", hue );
}
public static void SendLocalizedMessageTo( Item from, Mobile to, int number, string args, int hue )
{
to.Send( new MessageLocalized( from.Serial, from.ItemID, MessageType.Regular, hue, 3, number, "", args ) );
}
public static void SendMessageTo( Item from, Mobile to, string text, int hue )
{
to.Send( new UnicodeMessage( from.Serial, from.ItemID, MessageType.Regular, hue, 3, "ENU", "", text ) );
}
}
}