fix: Updates messages with clilocs (#1381)

This commit is contained in:
Kamron Batman 2023-03-26 00:54:09 -07:00 • committed by GitHub
parent b8b283c210
commit e08efad9be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 79 additions and 106 deletions

View file

@ -244,12 +244,14 @@ public class Container : Item
public virtual void SendFullItemsMessage(Mobile to, Item item) public virtual void SendFullItemsMessage(Mobile to, Item item)
{ {
to.SendMessage("That container cannot hold more items."); // That container cannot hold more items.
to.SendLocalizedMessage(1080017);
} }
public virtual void SendFullWeightMessage(Mobile to, Item item) public virtual void SendFullWeightMessage(Mobile to, Item item)
{ {
to.SendMessage("That container cannot hold more weight."); // That container cannot hold more weight.
to.SendLocalizedMessage(1080016);
} }
public virtual void SendCantStoreMessage(Mobile to, Item item) public virtual void SendCantStoreMessage(Mobile to, Item item)

View file

@ -727,7 +727,8 @@ namespace Server.Engines.BulkOrders
entry.Price = price; entry.Price = price;
} }
from.SendMessage("Deed prices set."); // Deed price set.
from.SendLocalizedMessage(1062384);
if (from is PlayerMobile mobile) if (from is PlayerMobile mobile)
{ {

View file

@ -40,7 +40,7 @@ namespace Server.Ethics.Evil
if ((item.SavedFlags & 0x300) != 0) if ((item.SavedFlags & 0x300) != 0)
{ {
from.Mobile.LocalOverheadMessage(MessageType.Regular, 0x3B2, false, "That has already beem imbued."); from.Mobile.LocalOverheadMessage(MessageType.Regular, 0x3B2, false, "That has already been imbued.");
return; return;
} }

View file

@ -416,12 +416,9 @@ namespace Server.Items
case 3: case 3:
{ {
var dummy = EffectItem.Create(Location, Map, TimeSpan.FromSeconds(20.0)); var dummy = EffectItem.Create(Location, Map, TimeSpan.FromSeconds(20.0));
dummy.PublicOverheadMessage(
MessageType.Regular, // * The ground erupts with chaotic growth! *
0x3B2, dummy.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1114432);
true,
"* The ground erupts with chaotic growth! *"
);
Effects.PlaySound(Location, Map, 0x12D); Effects.PlaySound(Location, Map, 0x12D);
@ -526,12 +523,8 @@ namespace Server.Items
default: default:
{ {
var dummy = EffectItem.Create(Location, Map, TimeSpan.FromSeconds(20.0)); var dummy = EffectItem.Create(Location, Map, TimeSpan.FromSeconds(20.0));
dummy.PublicOverheadMessage( // * A magical bunny leaps out of its hole, disturbed by the thorn's effect! *
MessageType.Regular, dummy.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1114428);
0x3B2,
true,
"* A magical bunny leaps out of its hole, disturbed by the thorn's effect! *"
);
BaseCreature spawn = new VorpalBunny(); BaseCreature spawn = new VorpalBunny();
if (!SpawnCreature(spawn)) if (!SpawnCreature(spawn))
@ -583,12 +576,9 @@ namespace Server.Items
default: default:
{ {
var dummy = EffectItem.Create(Location, Map, TimeSpan.FromSeconds(20.0)); var dummy = EffectItem.Create(Location, Map, TimeSpan.FromSeconds(20.0));
dummy.PublicOverheadMessage(
MessageType.Regular, // * Strange green tendrils rise from the ground, whipping wildly! *
0x3B2, dummy.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1114429);
true,
"* Strange green tendrils rise from the ground, whipping wildly! *"
);
Effects.PlaySound(Location, Map, 0x2B0); Effects.PlaySound(Location, Map, 0x2B0);
BaseCreature spawn = new WhippingVine(); BaseCreature spawn = new WhippingVine();
@ -641,12 +631,9 @@ namespace Server.Items
default: default:
{ {
var dummy = EffectItem.Create(Location, Map, TimeSpan.FromSeconds(20.0)); var dummy = EffectItem.Create(Location, Map, TimeSpan.FromSeconds(20.0));
dummy.PublicOverheadMessage(
MessageType.Regular, // * Slithering ice serpents rise to the surface to investigate the disturbance! *
0x3B2, dummy.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1114430);
true,
"* Slithering ice serpents rise to the surface to investigate the disturbance! *"
);
BaseCreature spawn = new GiantIceWorm(); BaseCreature spawn = new GiantIceWorm();
if (!SpawnCreature(spawn)) if (!SpawnCreature(spawn))
@ -707,12 +694,9 @@ namespace Server.Items
default: default:
{ {
var dummy = EffectItem.Create(Location, Map, TimeSpan.FromSeconds(20.0)); var dummy = EffectItem.Create(Location, Map, TimeSpan.FromSeconds(20.0));
dummy.PublicOverheadMessage(
MessageType.Regular, // * The sand collapses, revealing a dark hole. *
0x3B2, dummy.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1114431);
true,
"* The sand collapses, revealing a dark hole. *"
);
GreenThornsSHTeleporter.Create(Location, Map); GreenThornsSHTeleporter.Create(Location, Map);

View file

@ -115,12 +115,8 @@ namespace Server.Items
{ {
if (!m_Mobile.Deleted) if (!m_Mobile.Deleted)
{ {
m_Mobile.LocalOverheadMessage( // * You feel the effects of your poison resistance wearing off *
MessageType.Regular, m_Mobile.LocalOverheadMessage(MessageType.Regular, 0x3F, 1053091);
0x3F,
true,
"* You feel the effects of your poison resistance wearing off *"
);
} }
RemoveContext(m_Mobile); RemoveContext(m_Mobile);

View file

@ -21,12 +21,8 @@ namespace Server.Items
if (map == Map.Trammel || map == Map.Felucca) if (map == Map.Trammel || map == Map.Felucca)
{ {
from.MoveToWorld(new Point3D(5922, 2024, 0), map); from.MoveToWorld(new Point3D(5922, 2024, 0), map);
PublicOverheadMessage( // * ~1_NAME~ dives into the mysterious hole! *
MessageType.Regular, PublicOverheadMessage(MessageType.Regular, 0x3B2, 1114446, from.Name);
0x3B2,
true,
$"* {from.Name} dives into the hole and disappears!*"
);
} }
} }
else else

View file

@ -572,7 +572,7 @@ public partial class TreasureMap : MapItem
} }
else if (!HasDiggingTool(from)) else if (!HasDiggingTool(from))
{ {
from.SendMessage("You must have a digging tool to dig for treasure."); from.SendLocalizedMessage(1114416); // You must have a digging tool to dig for treasure.
} }
else if (from.Map != map) else if (from.Map != map)
{ {
@ -900,7 +900,7 @@ public partial class TreasureMap : MapItem
} }
else else
{ {
from.SendMessage("You must have a digging tool to dig for treasure."); from.SendLocalizedMessage(1114416); // You must have a digging tool to dig for treasure.
} }
} }
} }

View file

@ -206,8 +206,12 @@ public partial class ControlPanel : AddonComponent
); );
to.BoltEffect(0); to.BoltEffect(0);
to.LocalOverheadMessage(MessageType.Regular, 0xC9, true, "* Your body convulses from electric shock *");
to.NonlocalOverheadMessage(MessageType.Regular, 0xC9, true, $"* {to.Name} spasms from electric shock *"); // * Your body convulses from electric shock *
to.LocalOverheadMessage(MessageType.Regular, 0xC9, 1114443);
// * ~1_NAME~ spasms from electric shock *
to.NonlocalOverheadMessage(MessageType.Regular, 0xC9, 1114444, to.Name);
AOS.Damage(to, to, 60, 0, 0, 0, 0, 100); AOS.Damage(to, to, 60, 0, 0, 0, 0, 100);
@ -514,13 +518,11 @@ public partial class ControlPanel : AddonComponent
m_To.PlaySound(0x28); m_To.PlaySound(0x28);
m_To.LocalOverheadMessage(MessageType.Regular, 0xC9, true, "* Your body convulses from electric shock *"); // * Your body convulses from electric shock *
m_To.NonlocalOverheadMessage( m_To.LocalOverheadMessage(MessageType.Regular, 0xC9, 1114443);
MessageType.Regular,
0xC9, // * ~1_NAME~ spasms from electric shock *
true, m_To.NonlocalOverheadMessage(MessageType.Regular, 0xC9, 1114444, m_To.Name);
$"* {m_To.Name} spasms from electric shock *"
);
AOS.Damage(m_To, m_To, 20, 0, 0, 0, 0, 100); AOS.Damage(m_To, m_To, 20, 0, 0, 0, 0, 100);

View file

@ -588,9 +588,10 @@ namespace Server.Mobiles
} }
new VorpalBunny.BunnyHole().MoveToWorld(Location, Map); new VorpalBunny.BunnyHole().MoveToWorld(Location, Map);
Frozen = true; Frozen = true;
Say("* The bunny begins to dig a tunnel back to its underground lair *");
// * The bunny begins to dig a tunnel back to its underground lair *
Say(1114450);
PlaySound(0x247); PlaySound(0x247);
Timer.StartTimer(TimeSpan.FromSeconds(5.0), Delete); Timer.StartTimer(TimeSpan.FromSeconds(5.0), Delete);

View file

@ -98,19 +98,11 @@ namespace Server
{ {
if (m_Mobile.CurePoison(m_Mobile)) if (m_Mobile.CurePoison(m_Mobile))
{ {
m_Mobile.LocalOverheadMessage( // * You feel yourself resisting the effects of the poison *
MessageType.Emote, m_Mobile.LocalOverheadMessage(MessageType.Emote, 0x3F, 1114441);
0x3F,
true,
"* You feel yourself resisting the effects of the poison *"
);
m_Mobile.NonlocalOverheadMessage( // * ~1_NAME~ seems resistant to the poison *
MessageType.Emote, m_Mobile.NonlocalOverheadMessage(MessageType.Emote, 0x3F, 1114442, m_Mobile.Name);
0x3F,
true,
$"* {m_Mobile.Name} seems resistant to the poison *"
);
Stop(); Stop();
return; return;

View file

@ -1460,12 +1460,8 @@ namespace Server.Mobiles
if (SubdueBeforeTame && !Controlled && oldHits > HitsMax / 10 && Hits <= HitsMax / 10) if (SubdueBeforeTame && !Controlled && oldHits > HitsMax / 10 && Hits <= HitsMax / 10)
{ {
PublicOverheadMessage( // * The creature has been beaten into subjugation! *
MessageType.Regular, PublicOverheadMessage(MessageType.Regular, 0x3B2, 1080057);
0x3B2,
false,
"* The creature has been beaten into subjugation! *"
);
} }
} }
@ -1794,7 +1790,7 @@ namespace Server.Mobiles
} }
} }
from.SendMessage("You cut away some scales, but they remain on the corpse."); from.SendLocalizedMessage(1079284); // You cut away some scales, but they remain on the corpse.
} }
corpse.Carved = true; corpse.Carved = true;

View file

@ -91,12 +91,15 @@ namespace Server.Mobiles
{ {
if (Hits < 50) if (Hits < 50)
{ {
PublicOverheadMessage(MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *"); // The solen's acid sac is burst open!
PublicOverheadMessage(MessageType.Regular, 0x3B2, 1080038);
BurstSac = true; BurstSac = true;
} }
} }
else if (from != null && from != this && InRange(from, 1)) else if (from != null && from != this && InRange(from, 1))
{ {
// * The solen's damaged acid sac squirts acid! *
PublicOverheadMessage(MessageType.Regular, 0x3B2, 1080060);
SpillAcid(from, 1); SpillAcid(from, 1);
} }
} }

View file

@ -92,12 +92,15 @@ namespace Server.Mobiles
{ {
if (Hits < 50) if (Hits < 50)
{ {
PublicOverheadMessage(MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *"); // The solen's acid sac is burst open!
PublicOverheadMessage(MessageType.Regular, 0x3B2, 1080038);
BurstSac = true; BurstSac = true;
} }
} }
else if (from != null && from != this && InRange(from, 1)) else if (from != null && from != this && InRange(from, 1))
{ {
// * The solen's damaged acid sac squirts acid! *
PublicOverheadMessage(MessageType.Regular, 0x3B2, 1080060);
SpillAcid(from, 1); SpillAcid(from, 1);
} }
} }

View file

@ -90,12 +90,15 @@ namespace Server.Mobiles
{ {
if (Hits < 50) if (Hits < 50)
{ {
PublicOverheadMessage(MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *"); // The solen's acid sac is burst open!
PublicOverheadMessage(MessageType.Regular, 0x3B2, 1080038);
BurstSac = true; BurstSac = true;
} }
} }
else if (from != null && from != this && InRange(from, 1)) else if (from != null && from != this && InRange(from, 1))
{ {
// * The solen's damaged acid sac squirts acid! *
PublicOverheadMessage(MessageType.Regular, 0x3B2, 1080060);
SpillAcid(from, 1); SpillAcid(from, 1);
} }
} }

View file

@ -90,12 +90,15 @@ namespace Server.Mobiles
{ {
if (Hits < 50) if (Hits < 50)
{ {
PublicOverheadMessage(MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *"); // The solen's acid sac is burst open!
PublicOverheadMessage(MessageType.Regular, 0x3B2, 1080038);
BurstSac = true; BurstSac = true;
} }
} }
else if (from != null && from != this && InRange(from, 1)) else if (from != null && from != this && InRange(from, 1))
{ {
// * The solen's damaged acid sac squirts acid! *
PublicOverheadMessage(MessageType.Regular, 0x3B2, 1080060);
SpillAcid(from, 1); SpillAcid(from, 1);
} }
} }

View file

@ -126,13 +126,13 @@ namespace Server.Mobiles
rabid.MoveToWorld(loc, combatant.Map); rabid.MoveToWorld(loc, combatant.Map);
} }
Say( // Creatures of the forest, I call to thee! Aid me in the fight against all that is evil!
1071932 Say(1071932);
); // Creatures of the forest, I call to thee! Aid me in the fight against all that is evil!
} }
else if (combatant.Player) else if (combatant.Player)
{ {
Say(true, "I call a plague of insects to sting your flesh!"); // I call a plague of insects to sting your flesh!
Say(1071931);
var count = 0; var count = 0;
Timer.StartTimer( Timer.StartTimer(
@ -158,12 +158,8 @@ namespace Server.Mobiles
{ {
if (message) if (message)
{ {
m.PublicOverheadMessage( // * The open flame begins to scatter the swarm of insects! *
MessageType.Emote, m.PublicOverheadMessage(MessageType.Emote, m.SpeechHue, 1071925);
m.SpeechHue,
true,
"* The open flame begins to scatter the swarm of insects *"
);
} }
timer.Cancel(); timer.Cancel();
@ -186,18 +182,11 @@ namespace Server.Mobiles
if (count % 4 == 0) if (count % 4 == 0)
{ {
m.LocalOverheadMessage( // * The swarm of insects bites and stings your flesh! *
MessageType.Emote, m.LocalOverheadMessage(MessageType.Emote, m.SpeechHue, 1071905);
m.SpeechHue,
true, // * ~1_VAL~ is stung by a swarm of insects *
"* The swarm of insects bites and stings your flesh! *" m.NonlocalOverheadMessage(MessageType.Emote, m.SpeechHue, 1071924);
);
m.NonlocalOverheadMessage(
MessageType.Emote,
m.SpeechHue,
true,
$"* {m.Name} is stung by a swarm of insects *"
);
} }
m.FixedParticles(0x91C, 10, 180, 9539, EffectLayer.Waist); m.FixedParticles(0x91C, 10, 180, 9539, EffectLayer.Waist);

View file

@ -72,10 +72,12 @@ namespace Server.Mobiles
return; return;
} }
// TODO: Add splashing in the water - cliloc 1114451
new BunnyHole().MoveToWorld(Location, Map); new BunnyHole().MoveToWorld(Location, Map);
Frozen = true; Frozen = true;
Say("* The bunny begins to dig a tunnel back to its underground lair *");
// * The bunny begins to dig a tunnel back to its underground lair *
Say(1114450);
PlaySound(0x247); PlaySound(0x247);
Timer.StartTimer(TimeSpan.FromSeconds(5.0), Delete); Timer.StartTimer(TimeSpan.FromSeconds(5.0), Delete);