Updates Message Packets (#321)
### API Breaking Change Combined `AsciiMessage` and `UnicodeMessage` into a single function that takes two arguments, `bool ascii` and `string lang`. Lang can be null (or anything) if ascii is true. - [X] Changes message packets - [X] Cleans up some code - [X] Uses benchmarks to determine if the spanwriter + copyfrom
This commit is contained in:
parent
10d884fe30
commit
b6cd408623
59 changed files with 1160 additions and 1025 deletions
|
|
@ -216,18 +216,18 @@ namespace Server.Items
|
|||
|
||||
public void DoDamage(Mobile to)
|
||||
{
|
||||
to.Send(
|
||||
new UnicodeMessage(
|
||||
Serial,
|
||||
ItemID,
|
||||
MessageType.Regular,
|
||||
0x3B2,
|
||||
3,
|
||||
"",
|
||||
"",
|
||||
"The generator shoots an arc of electricity at you!"
|
||||
)
|
||||
to.NetState.SendMessage(
|
||||
Serial,
|
||||
ItemID,
|
||||
MessageType.Regular,
|
||||
0x3B2,
|
||||
3,
|
||||
false,
|
||||
"ENU",
|
||||
"",
|
||||
"The generator shoots an arc of electricity at you!"
|
||||
);
|
||||
|
||||
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 *");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue