Changes to MailSendService

originally we had the trader id -> then used a method to get the EnumValue as a string -> then later turned it BACK into a traderId

unless im missing something major this should simplify things?

example:
we took "6617beeaa9cfa777ca915b7c" and turned it to "Ref" to then turn it back to "6617beeaa9cfa777ca915b7c"
This commit is contained in:
CWX
2025-04-08 22:03:43 +01:00
parent 617b95b911
commit 95d009e0e4
9 changed files with 18 additions and 12 deletions
@@ -513,7 +513,7 @@ public class LocationLifecycleService
// Send message from fence giving player reward generated above
_mailSendService.SendLocalisedNpcMessageToPlayer(
sessionId,
_traderHelper.GetValidTraderIdByEnumValue(Traders.FENCE),
Traders.FENCE,
MessageType.MESSAGE_WITH_ITEMS,
_randomUtil.GetArrayValue(_traderConfig.Fence.CoopExtractGift.MessageLocaleIds),
mailableLoot,
@@ -1137,7 +1137,7 @@ public class LocationLifecycleService
// Send the items to the player
_mailSendService.SendLocalisedNpcMessageToPlayer(
sessionId,
_traderHelper.GetValidTraderIdByEnumValue(traderId),
traderId,
MessageType.BTR_ITEMS_DELIVERY,
messageId,
items,