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
|
|
@ -22,33 +22,28 @@ namespace Server.Items
|
|||
1008155
|
||||
); // You peer into the heavens, seeking the moons...
|
||||
|
||||
from.Send(
|
||||
new MessageLocalizedAffix(
|
||||
from.Serial,
|
||||
from.Body,
|
||||
MessageType.Regular,
|
||||
0x3B2,
|
||||
3,
|
||||
1008146 + (int)Clock.GetMoonPhase(Map.Trammel, from.X, from.Y),
|
||||
"",
|
||||
AffixType.Prepend,
|
||||
"Trammel : ",
|
||||
""
|
||||
)
|
||||
from.NetState.SendMessageLocalizedAffix(
|
||||
from.Serial,
|
||||
from.Body,
|
||||
MessageType.Regular,
|
||||
0x3B2,
|
||||
3,
|
||||
1008146 + (int)Clock.GetMoonPhase(Map.Trammel, from.X, from.Y),
|
||||
"",
|
||||
AffixType.Prepend,
|
||||
"Trammel : "
|
||||
);
|
||||
from.Send(
|
||||
new MessageLocalizedAffix(
|
||||
from.Serial,
|
||||
from.Body,
|
||||
MessageType.Regular,
|
||||
0x3B2,
|
||||
3,
|
||||
1008146 + (int)Clock.GetMoonPhase(Map.Felucca, from.X, from.Y),
|
||||
"",
|
||||
AffixType.Prepend,
|
||||
"Felucca : ",
|
||||
""
|
||||
)
|
||||
|
||||
from.NetState.SendMessageLocalizedAffix(
|
||||
from.Serial,
|
||||
from.Body,
|
||||
MessageType.Regular,
|
||||
0x3B2,
|
||||
3,
|
||||
1008146 + (int)Clock.GetMoonPhase(Map.Felucca, from.X, from.Y),
|
||||
"",
|
||||
AffixType.Prepend,
|
||||
"Felucca : "
|
||||
);
|
||||
|
||||
if (from is PlayerMobile player)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue