diff --git a/Source/Client/Application/Launcher.cpp b/Source/Client/Application/Launcher.cpp index 1f7ae9a8b..b27bcd61d 100644 --- a/Source/Client/Application/Launcher.cpp +++ b/Source/Client/Application/Launcher.cpp @@ -97,6 +97,7 @@ #include #include #include +#include "Resource/MSGSTRINGID.h" // GLOBAL: gl_24398 RECT Rect; @@ -1814,8 +1815,8 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE previous, LPSTR commandLine, in const char devServerSource[] = {'\x55', '\x86', '\x25', '\x99'}; thread_local EncryptedName devServer(devServerSource); if (!std::strstr(g_launchServerName, devServer.Text())) { - const char* parameters = LookupMessage(3445); - const char* file = LookupMessage(3445); + const char* parameters = LookupMessage(MSI_FRIEND_ALREADY_FRIEND); + const char* file = LookupMessage(MSI_FRIEND_ALREADY_FRIEND); const char openSource[] = {'\x22', '\xEF', '\x90', '\x69', '\xEB'}; thread_local EncryptedName open(openSource); ShellExecuteA(nullptr, open.Text(), file, parameters, nullptr, SW_SHOWNORMAL); diff --git a/Source/Client/Input/ImeHelper.cpp b/Source/Client/Input/ImeHelper.cpp index 58accfe2b..b8d8090a1 100644 --- a/Source/Client/Input/ImeHelper.cpp +++ b/Source/Client/Input/ImeHelper.cpp @@ -5,6 +5,7 @@ #include "Network/Connection/Connection.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include typedef int(__cdecl* ImeHelperProc)(HWND window, const char* version); @@ -27,19 +28,19 @@ void NotifyImeHelper() { void HandleImeError(const int* error) { switch (*error) { case 0x8000E001: - g_windowMgr.Confirm(LookupMessage(1046), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SGP_CODE_ALREADY_RUNNING), 0, true, false, 0, "Message", 280, 120, 0); break; case 0x8000E003: - g_windowMgr.Confirm(LookupMessage(1047), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SGP_CODE_DETECTED_MACRO), 0, true, false, 0, "Message", 280, 120, 0); break; case 0x8000E004: - g_windowMgr.Confirm(LookupMessage(1048), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SGP_CODE_DETECTED_SPEEDHACK), 0, true, false, 0, "Message", 280, 120, 0); break; case 0x8000E005: - g_windowMgr.Confirm(LookupMessage(1049), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SGP_CODE_DETECTED_APIHOOK), 0, true, false, 0, "Message", 280, 120, 0); break; case 0x8000E006: - g_windowMgr.Confirm(LookupMessage(1050), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SGP_CODE_DETECTED_MSGHOOK), 0, true, false, 0, "Message", 280, 120, 0); break; } diff --git a/Source/Client/Mode/GameMode.cpp b/Source/Client/Mode/GameMode.cpp index 39e71c26a..31b3a726b 100644 --- a/Source/Client/Mode/GameMode.cpp +++ b/Source/Client/Mode/GameMode.cpp @@ -97,6 +97,7 @@ #include "Client/Application/ApplicationWindow.h" #include "UI/Window/UINewSelectCharWnd.h" #include "Network/TextEncoding.h" +#include "Resource/MSGSTRINGID.h" extern "C" long long _Xtime_get_ticks(); @@ -365,7 +366,7 @@ bool CGameMode::IsOverWeight(bool notify) { if (g_session.m_weight * 100 / maxWeight >= 90) { if (notify) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(307)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NO_ATTACK_OVERWEIGHT)), 255, 0, 0, 0); } return true; @@ -572,7 +573,7 @@ float CGameMode::CameraDesiredYaw() { // FUNCTION: fn_45499 int ConfirmGameModeActionB8() { if (g_windowMgr.LookupWindow(WID_EXCHANGEUI)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xDDF)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EXCHANGED_FAILED)), 0xFF, 0, 0, 0); return 0; } g_modeMgr.gameMode->SendMsg(MM_COMMAND_HOMUN, 1, 0, 0, 0); @@ -612,7 +613,7 @@ std::string CGameMode::GetActiveSkillEffectTimeText(int skillId, int* activeSkil char buffer[100]; const int hours = remainingSeconds / 3600; if (hours != 0) { - std::sprintf(buffer, "%d %s", hours, LookupMessage(0x6A1)); + std::sprintf(buffer, "%d %s", hours, LookupMessage(MSI_TIME)); output = buffer; } @@ -620,11 +621,11 @@ std::string CGameMode::GetActiveSkillEffectTimeText(int skillId, int* activeSkil const int minutes = remainder / 60; const int seconds = remainder % 60; if (minutes != 0) { - std::sprintf(buffer, " %d %s", minutes, LookupMessage(0x70F)); + std::sprintf(buffer, " %d %s", minutes, LookupMessage(MSI_MINUTE)); output = output + buffer; } if (seconds != 0) { - std::sprintf(buffer, " %d %s", seconds, LookupMessage(0x710)); + std::sprintf(buffer, " %d %s", seconds, LookupMessage(MSI_SECOND)); output = output + buffer; } @@ -820,7 +821,7 @@ bool CGameMode::ShowRestrictedNotice(int grade) { } g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x31)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NO_SAME_SENTANCE)), 255, 0, 0, 0); g_windowMgr.unknown_04DC.assign("", 0); return true; } @@ -1200,7 +1201,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } case MM_REQUEST_ACT: if (this->scene->player->unknown_02CC != 0 && (argument1 == 0 || argument1 == 7)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x75D)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_ATTACK_IN_RIDING_STATE)), 0xFF, 0, 0, 0); } else { const GameModePacketDwordByte packet{ 0x437, static_cast(argument2), static_cast(argument1) @@ -1912,12 +1913,12 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i char middle[0x400]; char last[0x16A]; if (g_serviceType == 0) { - std::sprintf(first, LookupMessage(0x316)); - const char* suffix = LookupMessage(0x318); + std::sprintf(first, LookupMessage(MSI_SUPERNOVICE1)); + const char* suffix = LookupMessage(MSI_SUPERNOVICE3); const char* name = g_session.DecodePlayerName(); - const char* prefix = LookupMessage(0x317); + const char* prefix = LookupMessage(MSI_SUPERNOVICE2); std::sprintf(middle, "%s %s%s", prefix, name, suffix); - std::sprintf(last, LookupMessage(0x319)); + std::sprintf(last, LookupMessage(MSI_SUPERNOVICE4)); } else { std::sprintf(first, GetMessageString(0x316)); const char* suffix = GetMessageString(0x318); @@ -1932,7 +1933,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i g_session.m_level >= *reinterpret_cast(g_session.unknown_7EE8)) || (g_session.IsSuperNovice2Job(g_session.GetDisplayJob()) && g_session.m_level >= *reinterpret_cast(g_session.unknown_7EF0))) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x7DF)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MSG_SUPERNOVICE_CHOPOKGI_CAPPEDLEVEL)), 0xFF, 0, 0, 0); break; } const std::uint16_t packet = 0x1ED; @@ -2018,7 +2019,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i const auto* skill = reinterpret_cast(argument1); if (argument3 == 0 && this->scene->player->unknown_02CC != 0 && !g_session.IsHomunculusSkill(skill->id) && !g_session.IsMercenarySkill(skill->id)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x75E)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_USE_SKILL_IN_RIDING_STATE)), 0xFF, 0, 0, 0); g_session.m_automaticSkills.Complete(skill->id); return 0; } @@ -2073,14 +2074,14 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } const char* name = reinterpret_cast(argument1); if (std::strlen(name) >= 24) { - g_windowMgr.Confirm(LookupMessage(0x213), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NAMELENGTH_TOO_LONG), 0, true, false, 0, "Message", 280, 120, 0); return 0; } GameModePacketPayload24 packet; packet.packetId = 0x916; std::strncpy(reinterpret_cast(packet.payload), name, sizeof(packet.payload)); GetRagConnection().Send(g_packetLengths.FixedLength(packet.packetId), &packet); - const std::string notice = FormatOwnedString(LookupMessage(0x17E), name); + const std::string notice = FormatOwnedString(LookupMessage(MSI_REQ_JOIN_GUILD), name); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(notice.c_str()), 0xFFFF00, 0, 0, 0); return 0; } @@ -2122,7 +2123,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i case MM_REQ_JOIN_GROUP: { const char* name = reinterpret_cast(argument1); if (std::strlen(name) >= 24) { - g_windowMgr.Confirm(LookupMessage(0x213), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NAMELENGTH_TOO_LONG), 0, true, false, 0, "Message", 280, 120, 0); return 0; } GameModePacketPayload24 packet; @@ -2130,7 +2131,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i std::strncpy(reinterpret_cast(packet.payload), name, sizeof(packet.payload)); GetRagConnection().Send(g_packetLengths.FixedLength(packet.packetId), &packet); if (g_session.unknown_5464 != 0) { - const std::string message = std::string(name) + LookupMessage(0x80B); + const std::string message = std::string(name) + LookupMessage(MSI_CHARACTER_PARTY_INVITATION_TO_JOIN); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0xFFFF00, 0, 0, 0); } return 0; @@ -2176,7 +2177,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } case MM_CONFORM_MAKEGROUP: { if (g_forbiddenWords.Contains(g_session.unknown_54AC.c_str())) { - g_windowMgr.Confirm(LookupMessage(14), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BAD_SENTANGE), 0, true, false, 0, "Message", 280, 120, 0); return 0; } unsigned char packet[28]; @@ -2246,11 +2247,11 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } if (result == -2) { Replay::Instance().SetState(1); - g_windowMgr.Confirm(LookupMessage(0x7C5), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_REPLAY_THESAMEFILEEXISTS), 0, true, false, 0, "Message", 280, 120, 0); return 0; } char message[50]{}; - std::sprintf(message, LookupMessage(0x7C6)); + std::sprintf(message, LookupMessage(MSI_REPLAY_RECORDSTART)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0x62B0FF, 0, 0, 0); Replay::Instance().SetState(2); { @@ -2371,7 +2372,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i ITEM_INFO item = LookupClientItemByIdentity(g_session.m_inventoryItems, this->drag.id); if (item.unknown_0000[1] > 0) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x6A0)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CAN_DROP_ITEM_TO_ITEMWND)), 0xFF, 0, 0, 0); } } this->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); @@ -2379,7 +2380,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } if (this->drag.source == 1) { if (g_windowMgr.unknown_01D4 == nullptr) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x2B2)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_OPEN_ITEMWND_TO_THROW)), 0xFF, 0, 0, 0); this->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; } @@ -2430,11 +2431,11 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } if (g_windowMgr.unknown_01E0) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBD)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CLOSEEQUIPWND)), 0xFF, 0, 0, 0); } if (g_windowMgr.unknown_0458) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xAB0)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_UISCRIPT_ERROR_GUIDE_MSG)), 0xFF, 0, 0, 0); } g_windowMgr.RetireTransientWindow(); return 0; @@ -2499,7 +2500,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i std::strncpy(packet.text, name, 39); packet.text[39] = 0; if (std::strcmp(name, g_guildInfo.unknown_0000.c_str()) != 0) { - g_windowMgr.Confirm(LookupMessage(0x16E), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_DISORGANIZE_GUILD_FAILURE), 0, true, false, 0, "Message", 280, 120, 0); return 0; } GetRagConnection().Send(g_packetLengths.FixedLength(packet.packetId), &packet); @@ -2519,7 +2520,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i char name[260]{}; int capacity = sizeof(name); item.GetIdDisplayName(name, capacity, 0); - std::string text = FormatOwnedString(LookupMessage(0x24F), name); + std::string text = FormatOwnedString(LookupMessage(MSI_NOT_EXIST_PET_FOOD), name); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0x1E1EF5, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(text.c_str()), 0x1E1EF5, 0, 0, 0); return 0; @@ -2573,7 +2574,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i return 0; case MM_REQ_LEAVE_GROUP: { if (g_session.unknown_5948 == 1 || g_session.unknown_5948 == 2) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBD3)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MUST_PASSWORD_EXCEED_CHAR)), 0xFF, 0, 0, 0); } const int count = g_session.PartyCount(); if (g_session.unknown_5464 != 0) { @@ -2593,10 +2594,10 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } if (!transferred) { if (online) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xCC9)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DEFAULT)), 0xFF, 0, 0, 0); return 0; } - if (g_windowMgr.Confirm(LookupMessage(0xCB9), 2, false, false, 0, "Message", 280, 120, 0) != 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_SERVER_PROPERTY_FREE_NO_COUNT), 2, false, false, 0, "Message", 280, 120, 0) != 0xBB) { return 0; } } @@ -2618,7 +2619,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } if (argument4 == 0 && this->scene->player->unknown_02CC != 0 && !g_session.IsHomunculusSkill(argument1) && !g_session.IsMercenarySkill(argument1)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x75E)), 0xFF, 11, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_USE_SKILL_IN_RIDING_STATE)), 0xFF, 11, 0, 0); g_session.m_automaticSkills.Complete(argument1); return 0; } @@ -2662,7 +2663,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i if (this->unknown_0418 == 0 && !g_session.IsRequestReady(argument1)) { char message[260]; const char* name = CSkillInfo::DisplayName(*g_session.m_hotkeyScript, argument1); - std::sprintf(message, LookupMessage(0x5B4), name); + std::sprintf(message, LookupMessage(MSI_SKILLINTERVAL2), name); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFF, 11, 0, 0); g_session.m_automaticSkills.Complete(argument1); return 0; @@ -2684,13 +2685,13 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i if (argument1 == 154 || argument1 == 41) { if (*reinterpret_cast(g_session.unknown_5570) < (argument1 == 154 ? 40 : 30)) { char message[256]; - std::sprintf(message, LookupMessage(0xCA)); + std::sprintf(message, LookupMessage(MSI_USESKILL_FAIL_SP_INSUFFICIENT)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFF, 11, 0, 0); return 0; } if (g_session.unknown_5C1C <= 0) { char message[256]; - std::sprintf(message, LookupMessage(0x294)); + std::sprintf(message, LookupMessage(MSI_MUST_EQUIP_CART)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFF, 11, 0, 0); return 0; } @@ -2769,7 +2770,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } case MM_SWAP_EQUIPMENT: { if (timeGetTime() - g_swapEquipmentTick < 10000U) { - const char* suffix = LookupMessage(0xC9E); + const char* suffix = LookupMessage(MSI_CONNECT_SNS_FAIL_CONNECT); const std::string message = FormatOwnedString("%d%s", 10U - (timeGetTime() - g_swapEquipmentTick) / 1000U, suffix); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0xC8FF00, 7, 0, 0); return 0; @@ -2796,7 +2797,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } case MM_TAKE_OFF_EQUIP: { if (g_windowMgr.LookupWindow(WID_EXCHANGEUI) != nullptr) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x6A3)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANT_USE_WHEN_OPENED_EXCHANGEWND)), 0xFF, 0, 0, 0); return 0; } if (this->IsMenuWindowOpen() || @@ -2903,7 +2904,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i std::strcat(skillName, " \xA2\xBD"); } std::strcat(text, " !! "); - std::strcat(text, LookupMessage(0x2F7)); + std::strcat(text, LookupMessage(MSI_LOVE_SKILL)); const int address = reinterpret_cast(text); actor->SendMsg(nullptr, AM_CHAT, 0, address, address >> 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); return 0; @@ -2973,7 +2974,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i if (argument1 != 0) { const std::string text(reinterpret_cast(argument1)); if (text.size() >= 24) { - g_windowMgr.Confirm(LookupMessage(0x213), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NAMELENGTH_TOO_LONG), 0, true, false, 0, "Message", 280, 120, 0); return 0; } std::memcpy(packet.payload, text.c_str(), 24); @@ -2983,14 +2984,14 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } case MM_WEAR_EQUIP: { if (g_windowMgr.LookupWindow(WID_EXCHANGEUI) != nullptr) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x6A3)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANT_USE_WHEN_OPENED_EXCHANGEWND)), 255, 0, 0, 0); return 0; } if (this->IsMenuWindowOpen()) { return 0; } if (g_windowMgr.window_4F260 != nullptr || g_windowMgr.window_4F268 != nullptr) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xE68)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_LIMIT_HAVE_ITEM_CNT)), 255, 0, 0, 0); return 0; } if (*reinterpret_cast(&this->unknown_0100[4]) + 2000U > timeGetTime() || this->unknown_0250 != 0) { @@ -2999,7 +3000,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i const EquipSlots slots = g_session.GetEquipSlots(argument2); const ITEM_INFO equipped = g_session.GetItem17F0(slots.values[2]); if (equipped.unknown_005D != 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x2BB)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DAMAGED_ITEM)), 255, 0, 0, 0); return 0; } if (equipped.unknown_0000[1] > 0 && equipped.quantity == 1) { @@ -3023,7 +3024,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } if (g_serviceType == 6 && g_windowMgr.unknown_0284 != nullptr) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x48)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_IS_DEALING)), 255, 0, 0, 0); return 0; } this->SendMsg(MM_RELEASE_QUEST, 0, 0, 0, 0); @@ -3377,7 +3378,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } case MM_USEITEM: { if (g_windowMgr.LookupWindow(WID_EXCHANGEUI)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x6A3)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANT_USE_WHEN_OPENED_EXCHANGEWND)), 0xFF, 0, 0, 0); return 0; } if (this->IsMenuWindowOpen() || this->unknown_02CC != 0 || *reinterpret_cast(this->unknown_02D0) != 0 || argument1 == 0 || this->unknown_0250 != 0) { @@ -3392,7 +3393,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i if (this->scene->player->render.unknown_0070 == 6 && (item.GetItemId() == 0x259 || item.GetItemId() == 0x25A || item.GetItemId() == 0x263 || item.GetItemId() == 0x25D || item.GetItemId() == 0x25E || item.GetItemId() == 0x5813)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x297)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANT_USE_WHEN_SITDOWN)), 0xFF, 0, 0, 0); return 0; } if (Singleton::GetInstance()->OpenItem(argument1)) { @@ -3400,37 +3401,37 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } if (item.GetItemId() == 0x19295) { if (g_session.IsPlayerPerformerJob(g_session.m_job)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1022)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GENDER_CHANGE_MESSAGE_CONFIRM)), 0xFF, 0, 0, 0); return 0; } if (this->scene->player->unknown_02CC != 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1070)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_REWARD_HEAVY_INVENTORY)), 0xFF, 0, 0, 0); return 0; } const unsigned baseJob = JobNames::BaseJob(g_session.GetDisplayJob()); if (g_session.GetDisplayJob() != baseJob) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1070)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_REWARD_HEAVY_INVENTORY)), 0xFF, 0, 0, 0); return 0; } if (this->scene->player->GetGdid() > 0 || g_session.PartyCount() > 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1023)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GENDER_CHANGE_MESSAGE_OK)), 0xFF, 0, 0, 0); return 0; } if (g_session.unknown_8128[4] != 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1024)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GENDER_CHANGE_MESSAGE_CANCEL)), 0xFF, 0, 0, 0); return 0; } for (const ActiveSkillEffect& effect : g_activeSkillEffects) { if (effect.id == 0x26D) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1025)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GENDER_CHANGE_MESSAGE_COMPLETE)), 0xFF, 0, 0, 0); return 0; } } - if (g_windowMgr.Confirm(LookupMessage(0x1026), 2, false, false, 0, "Message", 280, 120, 0) != 0xBB) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1028)), 0xFF, 0, 0, 0); + if (g_windowMgr.Confirm(LookupMessage(MSI_MACRO_CHECKER_MAP_NOT_GM), 2, false, false, 0, "Message", 280, 120, 0) != 0xBB) { + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_CHECKER_MAP_IS_COOLTIME)), 0xFF, 0, 0, 0); return 0; } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1027)), 0, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_CHECKER_MAP_BANNED_MAP)), 0, 0, 0, 0); } this->unknown_02CC = 1; const GameModePacketWordDword packet{0x439, static_cast(argument1), g_session.m_aid}; @@ -3439,7 +3440,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } case MM_MAKE_GROUP: { if (g_session.unknown_5460 != 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x56B)), 0x6E96FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOPARTY)), 0x6E96FF, 0, 0, 0); return 0; } if (g_session.PartyCount() != 0) { @@ -3447,11 +3448,11 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } const char* name = reinterpret_cast(argument1); if (_mbsstr(reinterpret_cast(name), reinterpret_cast("#"))) { - g_windowMgr.Confirm(LookupMessage(0xB17), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_INVENTORY_ITEM_COMPARE), 0, true, false, 0, "Message", 280, 120, 0); return 0; } if (std::strlen(name) >= 24) { - g_windowMgr.Confirm(LookupMessage(0x213), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NAMELENGTH_TOO_LONG), 0, true, false, 0, "Message", 280, 120, 0); return 0; } g_windowMgr.CloseWindow(WID_PARTYSETTINGWND_PARTYCOUNT); @@ -3482,7 +3483,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i if (this->unknown_0418 == 0 && !g_session.IsRequestReady(packet[2])) { char text[1024]; const char* skillName = CSkillInfo::DisplayName(*g_session.m_hotkeyScript, packet[2]); - std::sprintf(text, LookupMessage(0x5B4), skillName); + std::sprintf(text, LookupMessage(MSI_SKILLINTERVAL2), skillName); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 11, 0, 0); return 0; } @@ -3490,7 +3491,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i _snprintf_s(text, 21, _TRUNCATE, "%s", reinterpret_cast(request[4])); if (g_forbiddenWords.Contains(text)) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x32)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NO_SEND_BECAUSE_INSULT)), 0xFF, 0, 0, 0); return 0; } if (packet[1] == 0) { @@ -3543,7 +3544,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } case MM_SWAP_EQUIPMENT_BY_INDEX: { if (timeGetTime() - g_swapEquipmentTick < 10000U) { - const char* suffix = LookupMessage(0xC9E); + const char* suffix = LookupMessage(MSI_CONNECT_SNS_FAIL_CONNECT); const unsigned remaining = 10U - (timeGetTime() - g_swapEquipmentTick) / 1000U; const std::string text = FormatOwnedString("%d%s", remaining, suffix); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xC8FF00, 7, 0, 0); @@ -3592,7 +3593,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i switch (action) { case MENUID_DEAL: if (this->unknown_024C == 1 || g_windowMgr.unknown_01F0 || g_windowMgr.unknown_01F8 || g_windowMgr.unknown_01F4) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x783)), 0xFFFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BUSY)), 0xFFFFFF, 0, 0, 0); } else if (static_cast(g_modeMgr.GetGameMode())->scene->player->GetStateFlags() != 2) { this->SendMsg(MM_REQ_EXCHANGE_ITEM, this->unknown_02E0, 0, 0, 0); } @@ -3617,7 +3618,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } case MENUID_MAKE_WHISPER_WINDOW: { const std::string name = this->ActorName(this->unknown_02E0); - const char* category = g_windowMgr.IsFriend(name.c_str()) ? LookupMessage(0x66) : + const char* category = g_windowMgr.IsFriend(name.c_str()) ? LookupMessage(MSI_FRIEND) : (g_session.IsGuildMemberAccount(this->unknown_02E0) ? "GuildMember" : nullptr); std::string code; if (auto* actor = dynamic_cast(this->scene->GetGameActorByAID(this->unknown_02E0))) { @@ -3660,11 +3661,11 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i case MENUID_PET_FEEDING: case MENUID_HOMUN_FEEDING: { if (action == 29 && g_windowMgr.unknown_0458) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBA9)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_REFINING_FAIL_ITEM_DISAPPEAR)), 0xFF, 0, 0, 0); return 0; } auto* window = new UINormalMB; - window->Create(nullptr, LookupMessage(0x259), 2, true, nullptr, 280, 120, nullptr); + window->Create(nullptr, LookupMessage(MSI_SURE_TO_FEED_PET), 2, true, nullptr, 280, 120, nullptr); g_windowMgr.AddRendered(window); window->SetAction(0xBB, reinterpret_cast(action == 29 ? ConfirmGameModeAction96 : ConfirmGameModeActionB8)); return 0; @@ -3845,7 +3846,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i if ((static_cast(name[0]) == 0xA1 && static_cast(name[1]) == 0xA1) || (static_cast(name[length - 2]) == 0xA1 && static_cast(name[length - 1]) == 0xA1) || std::strchr(name, ' ')) { - std::sprintf(text, LookupMessage(0x97B)); + std::sprintf(text, LookupMessage(MSI_BILLING_CHN_3)); if (std::strstr(text, "NO MSG")) { std::sprintf(text, "Can NOT use space in Guild Name !!"); } @@ -3853,20 +3854,20 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i return 0; } if (g_forbiddenWords.Contains(name)) { - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(0xD07)); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_SELECTCHARWND_BILLING_INFO)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0x6E96FF, 0, 0, 0); return 0; } if (g_serviceType == 12 && std::strchr(name, 0x2323)) { - g_windowMgr.Confirm(LookupMessage(0x464), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BILLING_1), 0, true, false, 0, "Message", 280, 120, 0); return 0; } if (length >= 24) { - g_windowMgr.Confirm(LookupMessage(0x213), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NAMELENGTH_TOO_LONG), 0, true, false, 0, "Message", 280, 120, 0); return 0; } if (static_cast(g_modeMgr.GetGameMode())->scene->player->unknown_0305 == 1) { - std::sprintf(text, LookupMessage(0xA2D)); + std::sprintf(text, LookupMessage(MSI_TIME_LINE_MINUTE2)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0x6E96FF, 0, 0, 0); return 0; } @@ -3913,7 +3914,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i case MM_GET_ACCOUNT_LIMITED_SALE_LIST: { auto& tick = *reinterpret_cast(&g_session.unknown_807C[0x18]); if (timeGetTime() - tick < 5000U) { - const char* message = LookupMessage(0xC9E); + const char* message = LookupMessage(MSI_CONNECT_SNS_FAIL_CONNECT); const std::string text = FormatOwnedString("%d%s", 5U - (timeGetTime() - tick) / 1000U, message); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xC8FF00, 0, 0, 0); return 0; @@ -3940,13 +3941,13 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } const ITEM_INFO item = LookupClientItemByIdentity(g_session.m_inventoryItems, argument1); if (this->scene->player->bodyState == 4 || this->scene->player->bodyState == 1) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xF82)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PACKAGEITEM_SETTINGFAIL)), 0xFF, 0, 0, 0); return 0; } if (this->scene->player->render.unknown_0070 == 6) { const int itemId = item.GetItemId(); if (itemId == 0x259 || itemId == 0x25A || itemId == 0x263 || itemId == 0x25D || itemId == 0x25E || itemId == 0x5813) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x297)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANT_USE_WHEN_SITDOWN)), 0xFF, 0, 0, 0); return 0; } } @@ -3964,12 +3965,12 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i case MM_ADD_EXCHANGE_ITEM: { if (g_session.HasExchangeItem(static_cast(argument1))) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x33)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CAN_DRAG_ITEM_OLNY_ONETIME)), 0xFF, 0, 0, 0); return 0; } if (g_session.IsExchangeItemListFull() && argument1 != 0) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x129)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MAXEXCHANGE_IS_10_KIND)), 0xFF, 0, 0, 0); return 0; } if (*reinterpret_cast(this->unknown_0100) != 0) { @@ -4029,7 +4030,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i case MM_SEND_MAIL: { const auto& request = *reinterpret_cast(argument1); if (g_forbiddenWords.Contains(request.title.c_str()) || g_forbiddenWords.Contains(request.body.c_str())) { - g_windowMgr.Confirm(LookupMessage(0xBD4), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BANK_SYSTEM_BUSY), 0, true, false, 0, "Message", 0x118, 0x78, 0); return 0; } g_session.RestoreItems5C68(); @@ -4067,7 +4068,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i GetCurrentDirectoryA(0x104, directory); std::string text(directory); text += ReplayFileList::Instance().path; - text += LookupMessage(0x7C7); + text += LookupMessage(MSI_REPLAY_RECORDEND); std::sprintf(notice, "%s", text.c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(notice), 0x62B0FF, 0, 0, 0); return 0; @@ -4116,23 +4117,23 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i return 0; } if (g_windowMgr.LookupWindow(WID_EXCHANGEUI) != nullptr) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBB9)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SWAP_EQUIPITEM_FAIL_CHAT)), 0xFF, 0, 0, 0); return 0; } if (this->unknown_0250 != 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBB7)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SWAP_EQUIPITEM_FAIL_MERCHANTSHOP)), 0xFF, 0, 0, 0); return 0; } if (g_windowMgr.unknown_0304 != nullptr || g_windowMgr.unknown_0308 != nullptr || g_windowMgr.unknown_02FC != nullptr) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBBA)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MDUNGEON_CREATE_FAIL_PARTY_ONLINE)), 0xFF, 0, 0, 0); return 0; } if (static_cast(g_modeMgr.GetGameMode())->scene->player->unknown_0264[3] != 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBB8)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SWAP_EQUIPITEM_FAIL_USE_NPC)), 0xFF, 0, 0, 0); return 0; } if (g_windowMgr.unknown_01F0 != nullptr || g_windowMgr.unknown_01F8 != nullptr) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBBB)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_USESKILL_FAIL_NEED_MORE_ARROW_CNT)), 0xFF, 0, 0, 0); return 0; } ITEM_INFO item = g_session.FindItemByIdentity(static_cast(argument1), argument2); @@ -4355,7 +4356,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } case MM_WHISPER_FILTER: if (g_session.unknown_5460 != 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x56B)), 0x6E96FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOPARTY)), 0x6E96FF, 0, 0, 0); } else if (g_session.PartyCount() == 0) { g_windowMgr.CloseWindow(WID_PARTYSETTINGWND_HEIGHT_220); g_session.unknown_54AC = reinterpret_cast(argument1); @@ -4394,7 +4395,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i this->unknown_0244 = 1; this->unknown_0248 = timeGetTime(); GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(2), 0, true, true, 0, "Message", 280, 120, 0) != 0x10D) { + if (g_windowMgr.Confirm(LookupMessage(MSI_UNABLE_TO_CONNECT_SERVER), 0, true, true, 0, "Message", 280, 120, 0) != 0x10D) { this->SendMsg(MM_QUIT_TO_IDENTRY, 0, 0, 0, 0); } return 0; @@ -4446,7 +4447,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i } case MM_USE_SKILL_TOGROUND: { if (this->scene->player->unknown_02CC != 0 && !g_session.IsHomunculusSkill(argument1) && !g_session.IsMercenarySkill(argument1)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x75E)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_USE_SKILL_IN_RIDING_STATE)), 0xFF, 0, 0, 0); return 0; } if (this->IsMenuWindowOpen()) { @@ -4460,7 +4461,7 @@ int CGameMode::SendMsg(int event, int argument1, int argument2, int argument3, i if (this->unknown_0418 == 0 && !g_session.IsRequestReady(skill)) { char message[0x800]; const char* name = CSkillInfo::DisplayName(*g_session.m_hotkeyScript, skill); - std::sprintf(message, LookupMessage(0x5B4), name); + std::sprintf(message, LookupMessage(MSI_SKILLINTERVAL2), name); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFF, 0xB, 0, 0); return 0; } @@ -4741,7 +4742,7 @@ void CGameMode::RequestPlayerAction(int target, int argument) { const int maxWeight = g_session.m_maxWeight < 1 ? 1 : g_session.m_maxWeight; if (g_session.m_weight * 100 / maxWeight >= 90) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(307)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NO_ATTACK_OVERWEIGHT)), 0xFF, 0, 0, 0); value = this->unknown_040C; if (value != 40000) { return; @@ -4879,7 +4880,7 @@ bool CGameMode::ConfirmDraggedItemUse() { this->unknown_05EC[0] = 0; } g_modeMgr.GetGameMode()->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(657), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_UNEQUIP_ARROW), 0, true, false, 0, "Message", 280, 120, 0); return true; } @@ -4992,7 +4993,7 @@ void CGameMode::UpdateReplayActionSpeeds() { // FUNCTION: fn_45498 int ConfirmGameModeAction96() { if (g_windowMgr.LookupWindow(WID_EXCHANGEUI)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xDDE)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BARTERITEM_NAME_COUNT)), 0xFF, 0, 0, 0); return 0; } g_modeMgr.gameMode->SendMsg(MM_COMMAND_PET, 1, 0, 0, 0); @@ -5292,7 +5293,7 @@ std::string CGameMode::HuntTargetText(const RenewQuestOngoingInfo& quest, int in } if (quest.m_huntUnknown00E0[index] == quest.m_huntUnknown0180[index]) { - text = static_cast(FormatOwnedString("%s [ %s ]", text.c_str(), LookupMessage(0x7EE))); + text = static_cast(FormatOwnedString("%s [ %s ]", text.c_str(), LookupMessage(MSI_COMPLETE_HUNTING_QUEST))); } else { text = static_cast(FormatOwnedString("%s [ %d / %d ]", text.c_str(), quest.m_huntUnknown00E0[index], quest.m_huntUnknown0180[index])); } @@ -6537,7 +6538,7 @@ void CGameMode::ChangeZoneServer(std::string mapName, int x, int y, int ip, int this->unknown_0018 = GetRagConnection().Connect(g_zoneServerEndpoint); if (!this->unknown_0018) { GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(1), 1, true, true, 0, "Message", 280, 120, 0) != 269) { + if (g_windowMgr.Confirm(LookupMessage(MSI_SERVER_CONNECTION_FAILED), 1, true, true, 0, "Message", 280, 120, 0) != 269) { this->SendMsg(MM_QUIT_TO_IDENTRY, 0, 0, 0, 0); } return; @@ -6559,7 +6560,7 @@ void CGameMode::ChangeZoneServer(std::string mapName, int x, int y, int ip, int GetRagConnection().SetBlock(1); } - static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(122), 16, 1); + static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(MSI_WAITING_RESPONSE_FROM_SERVER), 16, 1); g_windowMgr.unknown_0474 = 185; } @@ -6665,7 +6666,7 @@ void CGameMode::UpdateBalloons() { hintBalloon = balloon; balloon->SetSize(8, 8); g_windowMgr.AddRendered(hintBalloon); - static_cast(hintBalloon)->SetText(LookupMessage(234), 35); + static_cast(hintBalloon)->SetText(LookupMessage(MSI_SELECTTARGET), 35); hintBalloon->Move((g_renderer->viewport.width - 640) / 2 - hintBalloon->geometry.width / 2 + 320, 400 * g_renderer->viewport.height / 480); static_cast(hintBalloon)->m_textColor = 0x32FF32; static_cast(hintBalloon)->m_outlineColor = 0; @@ -7381,10 +7382,10 @@ void CGameMode::InitializeState() { g_isStopByLogin = 0; g_guildInfo.Init(); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(22)), 0xFFE6E6, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_LIST_COMMAND)), 0xFFE6E6, 0, 0, 0); inet_ntoa(*reinterpret_cast(&g_session.unknown_0EA0[0x0C])); if (!g_accountLinkedUserDataMgr->m_loaded) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3457)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_OFFER_GUILD_EXP_MAX_RATE)), 255, 0, 0, 0); } } @@ -7972,7 +7973,7 @@ void CGameMode::Initialize(const char* name) { g_session.SetOption(6, 0, 0); char message[256]; std::memset(message, 0, sizeof(message)); - StringFormat(message, sizeof(message), static_cast(-1), LookupMessage(0xDFA), g_serviceOptions.Get(0xFA) ? "ON" : "OFF"); + StringFormat(message, sizeof(message), static_cast(-1), LookupMessage(MSI_WEBSITE_LINK_ADDRESS), g_serviceOptions.Get(0xFA) ? "ON" : "OFF"); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFF, 0, 0, 0); } @@ -8489,7 +8490,7 @@ int CGameMode::ProcessGroundClick(int result) { if (g_mouse.buttons[0] == 1) { shop->SetSuspended(0); shop->SetSelection(static_cast(column), static_cast(row)); - if (g_windowMgr.Confirm(LookupMessage(0xB63), 2, true, false, 0, "Message", 280, 120, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_BUTTON_PAY_BY_ZENY), 2, true, false, 0, "Message", 280, 120, 0) == 0xBB) { shop->SendShopRequest(); return -1; } @@ -9170,7 +9171,7 @@ void CGameMode::ExecuteTalkType(int talkType, std::string* arguments) { std::string defaults[3]; std::string* parts = arguments ? arguments : defaults; if (g_serviceType == 4 && talkType == TT_REQ_NUM_USER) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x5F)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INVALID_COMMAND)), 0xFFFF, 0, 0, 0); return; } @@ -9202,7 +9203,7 @@ void CGameMode::ExecuteTalkType(int talkType, std::string* arguments) { break; case TT_REQ_AUTO_SAVE_CHAT: { if (g_session.IsAdminSubMode(7) == 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x5F)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INVALID_COMMAND)), 0xFFFF, 0, 0, 0); break; } char text[128]; @@ -9234,7 +9235,7 @@ void CGameMode::ExecuteTalkType(int talkType, std::string* arguments) { break; } case TT_UNKNOWN: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x5F)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INVALID_COMMAND)), 0xFFFF, 0, 0, 0); break; case TT_NORMAL: case TT_NORMAL_FROM_CHATROOM: { @@ -9402,12 +9403,12 @@ void CGameMode::ExecuteTalkType(int talkType, std::string* arguments) { g_windowMgr.chatModeChanged = g_windowMgr.chatModeChanged == 0; g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); if (g_windowMgr.chatModeChanged) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x311)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BATTLE_ON)), 0x64FFFF, 0, 0, 0); } else { if (!g_windowMgr.inputSuggestionsEnabled) { ChatWindow()->ToggleInput(); } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x312)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BATTLE_OFF)), 0x64FFFF, 0, 0, 0); } break; case TT_BATTLECHAT_ON_OFF: @@ -9421,7 +9422,7 @@ void CGameMode::ExecuteTalkType(int talkType, std::string* arguments) { if (g_windowToggleFlag) { g_windowMgr.EnsureWindow(WID_AUTOMESSAGEWND); } else { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x3AF)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_AUTO_MSG_OFF)), 0x64FFFF, 0, 0, 0); } break; case TT_TRACEAI_ON_OFF: @@ -9439,9 +9440,9 @@ void CGameMode::ExecuteTalkType(int talkType, std::string* arguments) { file.Open(path, 0x1001, true, false); file.Write("", 0); file.Close(); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x3BC)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TRACE_AI_ON)), 0x64FFFF, 0, 0, 0); } else { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x3BD)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TRACE_AI_OFF)), 0x64FFFF, 0, 0, 0); } break; case TT_VOLUME: { @@ -9449,7 +9450,7 @@ void CGameMode::ExecuteTalkType(int talkType, std::string* arguments) { g_soundMgr->SetSampleVolume(volume); g_soundMgr->Set3DVolume(volume); char text[120]; - std::sprintf(text, "%s %d", LookupMessage(0x19), volume); + std::sprintf(text, "%s %d", LookupMessage(MSI_VOLUME_OF_SOUND), volume); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0x64FFFF, 0, 0, 0); g_windowMgr.RefreshGameSettings(); break; @@ -9459,7 +9460,7 @@ void CGameMode::ExecuteTalkType(int talkType, std::string* arguments) { CSoundMgr::SetVolume(g_soundMgr, volume); g_soundMgr->SetTargetVolume(CSoundMgr::Volume(g_soundMgr)); char text[120]; - std::sprintf(text, "%s %d", LookupMessage(0x1A), volume); + std::sprintf(text, "%s %d", LookupMessage(MSI_VOLUME_OF_BGM), volume); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0x64FFFF, 0, 0, 0); g_windowMgr.RefreshGameSettings(); break; @@ -9805,39 +9806,39 @@ void CGameMode::ExecuteTalkType(int talkType, std::string* arguments) { this->SendMsg(MM_OPEN_ACCOUNT_LIMITED_TOOL, 0, 0, 0, 0); break; case TT_SHOW_EMOTIONLIST: { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x25D)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x224)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x22b)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x22c)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x22d)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x22e)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x22f)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x230)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x231)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x232)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x233)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x234)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x235)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x236)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x237)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x238)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x239)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x23a)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x23b)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x23c)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x23d)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x304)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x305)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x306)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x307)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x308)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x309)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x30a)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x30b)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x30c)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x30d)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x30e)), 0xFFFF64, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x30f)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NEW_EMOTION_LIST)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_BIGTHROB)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_THANKS)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_KEK)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_SORRY)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_SMILE)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_PROFUSELY_SWEAT)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_SCRATCH)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_BEST)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_STARE_ABOUT)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_HUK)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_O)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_X)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_HELP)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_GO)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_CRY)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_KIK)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_CHUP)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_CHUPCHUP)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_HNG)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_OK)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_STARE)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_HUNGRY)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_COOL)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_MERONG)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_SHY)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_GOODBOY)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_SPTIME)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_SEXY)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_COMEON)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_SLEEPY)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_CONGRATULATION)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EMOTION_HPTIME)), 0xFFFF64, 0, 0, 0); break; } case TT_REQ_RESETSKILL: @@ -10457,7 +10458,7 @@ void CGameMode::ProcessStatusIconTooltip(int x, int y) { if (timeGetTime() - g_session.unknown_7ED4 > 10000) { g_session.unknown_7ED0 = 0; } else if (g_session.unknown_7ED0 != 0) { - extra = static_cast(FormatOwnedString(LookupMessage(0xBD2), g_session.unknown_7ED0)); + extra = static_cast(FormatOwnedString(LookupMessage(MSI_MUST_ID_EXCEED_CHAR), g_session.unknown_7ED0)); } if (extra.size() != 0) { @@ -10798,7 +10799,7 @@ int CGameMode::HandleActorPick(ActorPickInfo* pick, int result) { this->scene->player->SendMsg(nullptr, AM_REQ_CHANGE_DIR, 0, column, column >> 31, row, row >> 31, 0, 0, 0, 0, 0, 0, 0, 0); if (g_windowMgr.HasPendingDialog() == true) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFBB)), 255, 25, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_VIEW_CHANGE_EQUIPMENT_PROPERTIES_MSG)), 255, 25, 0, 0); return result; } diff --git a/Source/Client/Mode/GameModeHandlers.cpp b/Source/Client/Mode/GameModeHandlers.cpp index 45cbf61c8..2569740a9 100644 --- a/Source/Client/Mode/GameModeHandlers.cpp +++ b/Source/Client/Mode/GameModeHandlers.cpp @@ -69,6 +69,7 @@ #include #include #include +#include "Resource/MSGSTRINGID.h" #pragma pack(push, 1) struct ClanInfoPacket { @@ -515,10 +516,10 @@ bool g_playerMessage82Pending; void CGameMode::ReceivePartyBookingRegisterResult(const unsigned char* packet) { switch (*reinterpret_cast(packet + 2)) { case 2: - g_windowMgr.Confirm(LookupMessage(1828), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PARTY_AD_DELETE_FAILED), 0, true, false, 0, "Message", 280, 120, 0); break; case 3: - g_windowMgr.Confirm(LookupMessage(1829), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PARTY_NOT_EXIST_AD), 0, true, false, 0, "Message", 280, 120, 0); [[fallthrough]]; case 0: case 1: @@ -543,9 +544,9 @@ void CGameMode::ReceivePartyBookingUpdateResult(const unsigned char* packet) { } } } else if (result == 2) { - g_windowMgr.Confirm(LookupMessage(1941), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PARTY_FAILED_TIMEOUT), 0, true, false, 0, "Message", 280, 120, 0); } else { - g_windowMgr.Confirm(LookupMessage(1826), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PARTY_REGISTRATION_FAILED), 0, true, false, 0, "Message", 280, 120, 0); } } @@ -563,7 +564,7 @@ void CGameMode::ReceivePartyBookingSearchResult(const unsigned char* packet) { } if (size == 0) { - g_windowMgr.Confirm(LookupMessage(1827), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PARTY_SEARCH_FAILED), 0, true, false, 0, "Message", 280, 120, 0); g_session.m_partyBooking.m_lastPage = false; window->Invalidate(); return; @@ -622,35 +623,35 @@ void CGameMode::ReceivePendingResult(const unsigned char* packet) { g_windowMgr.unknown_0250->Invalidate(); } if (*reinterpret_cast(packet + 10) == 8) { - text = LookupMessage(1814); + text = LookupMessage(MSI_CASH_FAILED_BUY_SOME); } else { color = 0xFFFF00; - text = LookupMessage(54); + text = LookupMessage(MSI_DEAL_SECCESS); } break; case ERROR_TYPE_NPC: - text = LookupMessage(1227); + text = LookupMessage(MSI_BUY_CASH_FAIL_NPC); break; case ERROR_TYPE_SYSTEM: - text = LookupMessage(1228); + text = LookupMessage(MSI_BUY_CASH_FAIL_SYSTEM); break; case ERROR_TYPE_INVENTORY_WEIGHT: - text = LookupMessage(56); + text = LookupMessage(MSI_OVER_WEIGHT); break; case ERROR_TYPE_EXCHANGE: - text = LookupMessage(1229); + text = LookupMessage(MSI_BUY_CASH_FAIL_EXCHANGE); break; case ERROR_TYPE_ITEM_ID: - text = LookupMessage(1230); + text = LookupMessage(MSI_BUY_CASH_FAIL_ITEM_ID); break; case ERROR_TYPE_MONEY: - text = LookupMessage(1254); + text = LookupMessage(MSI_BUY_CASH_FAIL_MONEY); break; case ERROR_TYPE_AMOUNT: - text = LookupMessage(1813); + text = LookupMessage(MSI_CASH_FAILED_TOTAL_CNT); break; case 9: - text = LookupMessage(1572); + text = LookupMessage(MSI_SKILL_INVENTORY_KINDCNT_OVER); break; } @@ -701,43 +702,43 @@ void CGameMode::ReceiveItem1718Result(const unsigned char* packet) { switch (packet[2]) { case PURCHASE_SUCCEED: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(54)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DEAL_SECCESS)), 0xFFFF00, 0, 0, 0); break; case PURCHASE_FAIL_MONEY: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(55)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INSUFFICIENT_MONEY)), 0xFF, 0, 0, 0); break; case PURCHASE_FAIL_COUNT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(221)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INSUFFICIENT_OVER_COUNT)), 0xFF, 0, 0, 0); break; case PURCHASE_FAIL_WEIGHT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(56)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_OVER_WEIGHT)), 0xFF, 0, 0, 0); break; case PURCHASE_FAIL_EACHITEM_COUNT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1940)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PURCHASE_FAIL_EACHITEM_COUNT)), 0xFF, 0, 0, 0); break; case 10: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2917)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_ACCESS_BY_WEIGHTOVER_80)), 0xFFFF00, 0, 0, 0); break; case 11: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3554)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_OUT_OF_STOCK)), 0xFF, 0, 0, 0); break; case 12: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3555)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DEAD)), 0xFFFF00, 0, 0, 0); break; case 13: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3557)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INVENTORY_EXTEND_OF_BODYITEM)), 0xFF, 0, 0, 0); break; case 14: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3556)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PVP)), 0xFF, 0, 0, 0); break; } @@ -817,22 +818,22 @@ void CGameMode::ReceivePetAct(unsigned char* packet) { void CGameMode::NotifyResult2571(int result) { switch (result) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2571)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PET_EVOLUTION_FAIL_RECIPE)), 0xFF, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2572)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PET_EVOLUTION_FAIL_MATERIAL)), 0xFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2573)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PET_EVOLUTION_FAIL_RG_FAMILIAR)), 0xFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2574)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PET_AUTO_FEEDING)), 0xFF, 0, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2575)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PET_AUTO_FEEDING_REST)), 0xFF, 0, 0, 0); break; case 5: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2576)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PET_AUTO_FEEDING_ON)), 0xFF, 0, 0, 0); break; case 7: g_session.ResetUnknown1050(); @@ -934,7 +935,7 @@ void CGameMode::ReceiveHomunculusInfo(const unsigned char* data) { int& notified = *reinterpret_cast(&g_session.unknown_5620[0]); const std::int16_t state = packet->unknown_001D; if ((state == 1 || state == 5 || state == 10) && notified != state) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1018)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_HOMUN_HUNGRY)), 0xFF, 0, 0, 0); notified = packet->unknown_001D; } } @@ -961,7 +962,7 @@ void CGameMode::ReceiveHomunculusInfo3(const unsigned char* data) { case 5: case 10: if (notified != state) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1018)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_HOMUN_HUNGRY)), 0xFF, 0, 0, 0); notified = packet->unknown_001D; } } @@ -1038,7 +1039,7 @@ void CGameMode::ReceiveHomunculusInfo2(const unsigned char* data) { int& notified = *reinterpret_cast(&g_session.unknown_5620[0]); const std::int16_t state = packet->unknown_001D; if ((state == 1 || state == 5 || state == 10) && notified != state) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1018)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_HOMUN_HUNGRY)), 0xFF, 0, 0, 0); notified = packet->unknown_001D; } } @@ -1098,31 +1099,31 @@ void CGameMode::ReceiveResultNotice00FC(const unsigned char* packet) { switch (packet[2]) { case ENTERROOM_FULL: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x43)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TOO_MANY_PEOPLE_IN_ROOM)), 0xFF, 0, 0, 0); break; case ENTERROOM_WRONG_PASSWORD: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(7)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INCORRECT_PASSWORD)), 0xFF, 0, 0, 0); break; case ENTERROOM_KICKED: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x44)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_YOU_HAVE_BANNED_FROM_THE_ROOM)), 0xFF, 0, 0, 0); break; case REFUSETYPE_ZENY: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x37)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INSUFFICIENT_MONEY)), 0xFF, 0, 0, 0); break; case REFUSETYPE_LOWLEVEL: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1B0)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOT_ENOUGH_LEVEL)), 0xFF, 0, 0, 0); break; case REFUSETYPE_HIGHLEVEL: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1B1)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TOO_HIGH_LEVEL)), 0xFF, 0, 0, 0); break; case REFUSETYPE_JOB: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1B2)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOT_ACCEPTABLE_JOB)), 0xFF, 0, 0, 0); break; } } @@ -1140,11 +1141,11 @@ void CGameMode::ReceiveBillingInfo(const unsigned char* packet) { if (g_serviceType == 3) { switch (*reinterpret_cast(packet + 2)) { case 1: - std::sprintf(text, LookupMessage(1124), *reinterpret_cast(packet + 6) / 86400 + 1); + std::sprintf(text, LookupMessage(MSI_BILLING_1), *reinterpret_cast(packet + 6) / 86400 + 1); break; case 2: { const int seconds = *reinterpret_cast(packet + 10); - std::sprintf(text, LookupMessage(1125), seconds / 3600, seconds % 3600 / 60, seconds % 60); + std::sprintf(text, LookupMessage(MSI_BILLING_2), seconds / 3600, seconds % 3600 / 60, seconds % 60); break; } } @@ -1261,13 +1262,13 @@ void CGameMode::ReceiveServerRateNotice(const unsigned char* packet) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); switch (g_session.unknown_54A0) { case EXP_NOTSHARED: - std::sprintf(text, "%s - %s : %s", LookupMessage(291), LookupMessage(292), LookupMessage(287)); + std::sprintf(text, "%s - %s : %s", LookupMessage(MSI_PARTYSETTING), LookupMessage(MSI_HOWEXPDIV), LookupMessage(MSI_EXPDIV1)); break; case EXP_SHARED: - std::sprintf(text, "%s - %s : %s", LookupMessage(291), LookupMessage(292), LookupMessage(288)); + std::sprintf(text, "%s - %s : %s", LookupMessage(MSI_PARTYSETTING), LookupMessage(MSI_HOWEXPDIV), LookupMessage(MSI_EXPDIV2)); break; case EXP_CHANGE_IMPOSSIBLE: - std::sprintf(text, "%s - %s : %s(%s)", LookupMessage(291), LookupMessage(292), LookupMessage(287), LookupMessage(1535)); + std::sprintf(text, "%s - %s : %s(%s)", LookupMessage(MSI_PARTYSETTING), LookupMessage(MSI_HOWEXPDIV), LookupMessage(MSI_EXPDIV1), LookupMessage(MSI_FAILED_CHANGE)); break; } if (std::strlen(text) != 0) { @@ -1276,10 +1277,10 @@ void CGameMode::ReceiveServerRateNotice(const unsigned char* packet) { switch (g_session.unknown_54A4) { case 0: - std::sprintf(text, "%s - %s : %s", LookupMessage(291), LookupMessage(293), LookupMessage(287)); + std::sprintf(text, "%s - %s : %s", LookupMessage(MSI_PARTYSETTING), LookupMessage(MSI_HOWITEMCOLLECT), LookupMessage(MSI_EXPDIV1)); break; case 1: - std::sprintf(text, "%s - %s : %s", LookupMessage(291), LookupMessage(293), LookupMessage(290)); + std::sprintf(text, "%s - %s : %s", LookupMessage(MSI_PARTYSETTING), LookupMessage(MSI_HOWITEMCOLLECT), LookupMessage(MSI_ITEMCOLLECT2)); break; } if (std::strlen(text) != 0) { @@ -1288,10 +1289,10 @@ void CGameMode::ReceiveServerRateNotice(const unsigned char* packet) { switch (g_session.unknown_54A8) { case 0: - std::sprintf(text, "%s - %s : %s", LookupMessage(291), LookupMessage(738), LookupMessage(287)); + std::sprintf(text, "%s - %s : %s", LookupMessage(MSI_PARTYSETTING), LookupMessage(MSI_HOWITEMDIV), LookupMessage(MSI_EXPDIV1)); break; case 1: - std::sprintf(text, "%s - %s : %s", LookupMessage(291), LookupMessage(738), LookupMessage(288)); + std::sprintf(text, "%s - %s : %s", LookupMessage(MSI_PARTYSETTING), LookupMessage(MSI_HOWITEMDIV), LookupMessage(MSI_EXPDIV2)); break; } if (std::strlen(text) != 0) { @@ -1334,32 +1335,32 @@ void CGameMode::ReceiveRequestResult(const unsigned char* packet) { window->SendMsg(nullptr, UM_UPDATE_CASHSHOP_BALANCE, *reinterpret_cast(packet + 8), *reinterpret_cast(packet + 12), 0, 0); } if (*reinterpret_cast(packet + 6) == 8) { - text = LookupMessage(1814); + text = LookupMessage(MSI_CASH_FAILED_BUY_SOME); } break; } case 9: - text = LookupMessage(1944); + text = LookupMessage(MSI_CASH_FAILED_RUNE_OVERCOUNT); break; case 10: - text = LookupMessage(1945); + text = LookupMessage(MSI_CASH_FAILED_EACHITEM_OVERCOUNT); break; case 11: - text = LookupMessage(1946); + text = LookupMessage(MSI_CASH_FAILED_UNKOWN); break; case 12: - text = LookupMessage(1947); + text = LookupMessage(MSI_CASH_FAILED_BUSY); break; case 303: - text = "- " + IntToString(303, 0) + " : " + LookupMessage(3940); + text = "- " + IntToString(303, 0) + " : " + LookupMessage(MSI_ZEROCHATWND_LOCK); g_windowMgr.Confirm(text.c_str(), 0, false, false, 0, "Error", 280, 120, 0); break; case 304: - text = "- " + IntToString(304, 0) + " : " + LookupMessage(3941); + text = "- " + IntToString(304, 0) + " : " + LookupMessage(MSI_ZEROCHATWND_UNLOCK); g_windowMgr.Confirm(text.c_str(), 0, false, false, 0, "Error", 280, 120, 0); break; default: - text = LookupMessage(57); + text = LookupMessage(MSI_DEAL_FAIL); break; } @@ -1375,37 +1376,37 @@ void CGameMode::ReceiveStatusNotice(const unsigned char* packet) { const char* message; switch (*reinterpret_cast(packet + 2)) { case 21: - message = LookupMessage(889); + message = LookupMessage(MSI_GOSPEL1); break; case 22: - message = LookupMessage(890); + message = LookupMessage(MSI_GOSPEL2); break; case 23: - message = LookupMessage(891); + message = LookupMessage(MSI_GOSPEL3); break; case 24: - message = LookupMessage(892); + message = LookupMessage(MSI_GOSPEL4); break; case 25: - message = LookupMessage(893); + message = LookupMessage(MSI_GOSPEL5); break; case 28: - message = LookupMessage(894); + message = LookupMessage(MSI_GOSPEL6); break; case 29: - message = LookupMessage(895); + message = LookupMessage(MSI_GOSPEL7); break; case 30: - message = LookupMessage(896); + message = LookupMessage(MSI_GOSPEL8); break; case 31: - message = LookupMessage(897); + message = LookupMessage(MSI_GOSPEL9); break; case 32: - message = LookupMessage(898); + message = LookupMessage(MSI_GOSPEL10); break; case 40: - message = LookupMessage(915); + message = LookupMessage(MSI_FULLSTRIP); break; default: return; @@ -1431,26 +1432,26 @@ void CGameMode::ReceiveNamedResultNotice(const unsigned char* packet) { case 0: switch (packet[27]) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(3389)).c_str()), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(MSI_TO_UNBLOCK_WHISPER)).c_str()), 0xFFFF, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(3390)).c_str()), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(MSI_TO_UNBLOCK_WHISPER_FAILED1)).c_str()), 0xFFFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(3391)).c_str()), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(MSI_TO_UNBLOCK_WHISPER_FAILED2)).c_str()), 0xFFFF, 0, 0, 0); break; } break; case 1: switch (packet[27]) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(3392)).c_str()), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(MSI_NO_BLOCK_LIST)).c_str()), 0xFFFF, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(3393)).c_str()), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(MSI_BLOCK_LIST)).c_str()), 0xFFFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(3394)).c_str()), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((name + LookupMessage(MSI_RENEW_QUEST_TAB_PROCESS)).c_str()), 0xFFFF, 0, 0, 0); break; } break; @@ -1465,23 +1466,23 @@ void CGameMode::ReceiveResultNotice0118(const unsigned char* packet) { case WT_EXCLUDE_WHISPER: switch (packet[3]) { case WHIPSER_SETTING_FAILED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((this->unknown_0118 + LookupMessage(194)).c_str()), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((this->unknown_0118 + LookupMessage(MSI_WHISPERIGNOREFAILED1)).c_str()), 0xFFFF, 0, 0, 0); break; case WHISPER_SETTING_FAILED_OVERCOUNT: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((this->unknown_0118 + LookupMessage(195)).c_str()), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((this->unknown_0118 + LookupMessage(MSI_WHISPERIGNOREFAILED2)).c_str()), 0xFFFF, 0, 0, 0); break; } break; case WT_INCLUDE_WHISPER: switch (packet[3]) { case WHISPER_SETTING_SUCCEED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((this->unknown_0118 + LookupMessage(196)).c_str()), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((this->unknown_0118 + LookupMessage(MSI_WHISPERNOIGNORESUCCESS)).c_str()), 0xFFFF, 0, 0, 0); break; case WHIPSER_SETTING_FAILED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((this->unknown_0118 + LookupMessage(197)).c_str()), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((this->unknown_0118 + LookupMessage(MSI_WHISPERNOIGNOREFAILED1)).c_str()), 0xFFFF, 0, 0, 0); break; case WHISPER_SETTING_FAILED_OVERCOUNT: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((this->unknown_0118 + LookupMessage(198)).c_str()), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast((this->unknown_0118 + LookupMessage(MSI_WHISPERNOIGNOREFAILED2)).c_str()), 0xFFFF, 0, 0, 0); break; } break; @@ -1732,35 +1733,35 @@ void CGameMode::ReceiveRuneRewardPacket(const unsigned char* packet) { break; } case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4075)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_LACK_OF_ITEM)), 0xFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4076)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(4076), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_ALREADY_EQUIPED)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_ALREADY_EQUIPED), 0, true, false, 0, "Message", 280, 120, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4077)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(4077), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_NOTHING_EQUIPED)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_NOTHING_EQUIPED), 0, true, false, 0, "Message", 280, 120, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4078)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(4078), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_INVALID_ID)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_INVALID_ID), 0, true, false, 0, "Message", 280, 120, 0); break; case 5: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4079)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(4079), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_MAX_LEVEL)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_MAX_LEVEL), 0, true, false, 0, "Message", 280, 120, 0); break; case 6: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4080)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(4080), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_INVALID_OWNER)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_INVALID_OWNER), 0, true, false, 0, "Message", 280, 120, 0); break; case 7: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4081)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(4081), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_TABLE_NOT_EXIT)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_TABLE_NOT_EXIT), 0, true, false, 0, "Message", 280, 120, 0); break; case 8: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4082)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(4082), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_DB_LOAD_NOT_YET)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_DB_LOAD_NOT_YET), 0, true, false, 0, "Message", 280, 120, 0); break; } @@ -1866,25 +1867,25 @@ void CGameMode::ReceiveRuneRewardResult(int result, int tagId, std::int64_t id, break; } case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4202)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SECOND_PASSWORD_ONOFF_TIP_MSG)), 0x64FFFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4210)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_REWARD_RUNE_UI_NOT_OPENED)), 0x64FFFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4211)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_REWARD_TABLE_NOT_EXIT)), 0x64FFFF, 0, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4212)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_MOVE_INDOOR_MAP)), 0x64FFFF, 0, 0, 0); break; case 5: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4213)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GAME_SETTINGS_LOGINOUT)), 0x64FFFF, 0, 0, 0); break; case 6: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4214)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GAME_SETTINGS_TAB_ETC)), 0x64FFFF, 0, 0, 0); break; case 7: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4215)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GAME_SETTINGS_FOG_ON)), 0x64FFFF, 0, 0, 0); break; } } @@ -1996,49 +1997,49 @@ int CGameMode::HandleRuneResult(int result) { case 0: return 0; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFF4)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(0xFF4), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_RUNE_UI_NOT_OPENED)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_RUNE_UI_NOT_OPENED), 0, true, false, 0, "Message", 280, 120, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFF5)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(0xFF5), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DECOM_FAIL)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_DECOM_FAIL), 0, true, false, 0, "Message", 280, 120, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFF6)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(0xFF6), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DECOM_CANNOT_FIND_ITEM)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_DECOM_CANNOT_FIND_ITEM), 0, true, false, 0, "Message", 280, 120, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFF7)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(0xFF7), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DECOM_NOT_ENOUGH_INVENTORY)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_DECOM_NOT_ENOUGH_INVENTORY), 0, true, false, 0, "Message", 280, 120, 0); break; case 5: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFF8)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(0xFF8), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DECOM_HEAVY_INVENTORY)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_DECOM_HEAVY_INVENTORY), 0, true, false, 0, "Message", 280, 120, 0); break; case 6: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFF9)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(0xFF9), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DECOM_OVER_ITEM_COUNT)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_DECOM_OVER_ITEM_COUNT), 0, true, false, 0, "Message", 280, 120, 0); break; case 7: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFFA)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(0xFFA), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DECOM_RUNE_UI_NOT_OPENED)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_DECOM_RUNE_UI_NOT_OPENED), 0, true, false, 0, "Message", 280, 120, 0); break; case 8: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFFB)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(0xFFB), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DECOM_TABLE_NOT_EXIT)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_DECOM_TABLE_NOT_EXIT), 0, true, false, 0, "Message", 280, 120, 0); break; case 10: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFFD)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(0xFFC), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_USER_REPORT_NOT_USE_AREA)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_DECOM_NOT_ENOUGH_ITEM_COUNT), 0, true, false, 0, "Message", 280, 120, 0); break; case 11: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFFD)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(0xFFD), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_USER_REPORT_NOT_USE_AREA)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MACRO_USER_REPORT_NOT_USE_AREA), 0, true, false, 0, "Message", 280, 120, 0); break; case 12: case 13: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFFE)), 0xFF, 0, 0, 0); - g_windowMgr.Confirm(LookupMessage(0xFFE), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GRAPHIC_SETTING_RENDER_SYSTEM)), 0xFF, 0, 0, 0); + g_windowMgr.Confirm(LookupMessage(MSI_GRAPHIC_SETTING_RENDER_SYSTEM), 0, true, false, 0, "Message", 280, 120, 0); break; } @@ -2081,7 +2082,7 @@ void CGameMode::ReceiveGameOptionResult(int command, int result, int enabled) { } if (command == 1) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xF15)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RODEX_SPAMOPTION_USERBLOCK)), 0x64FFFF, 0, 0, 0); } g_gameOptionFlag = enabled != 0; @@ -2177,7 +2178,7 @@ void CGameMode::ReceiveAchievementUpdate( info.unknown_0050 = -1; info.unknown_0054 = -1; g_achievementMgr->GetAchievement(info, id); - const std::string text = FormatOwnedString(LookupMessage(0xA79), info.title.c_str()); + const std::string text = FormatOwnedString(LookupMessage(MSI_NOTICE_NEXT_ROULLETE_STAGE), info.title.c_str()); static_cast(this->unknown_05FC)->WrapText(text.c_str(), 72); static_cast(this->unknown_05FC)->m_fontHeight = 20; static_cast(this->unknown_05FC)->m_textColor = 0xFFFFFF; @@ -2268,19 +2269,19 @@ void CGameMode::ReceiveItemReward2(const unsigned char* data) { g_session.AddStackedItem(reward); g_session.RemoveItem1710(reward.unknown_0000[1], reward.quantity); g_session.unknown_6140 = value; - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2594)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_SEND_MAIL)), 0x64FFFF, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2630)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_CLOSE_ROULLETTE)), 0x64FFFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2629)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_OPEN_ROULLETTE)), 0x64FFFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2697)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RESULT_ALREADY_LOSING_IDX)), 0x64FFFF, 0, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2699)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RODEX_READ)), 0x64FFFF, 0, 0, 0); break; } } @@ -2309,20 +2310,20 @@ void CGameMode::ReceiveItemReward(const unsigned char* data) { g_session.AddStackedItem(item); g_session.RemoveItem1710(packet->index, packet->quantity); g_session.unknown_6140 = packet->value; - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2594)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_SEND_MAIL)), 0x64FFFF, 0, 0, 0); break; } case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2630)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_CLOSE_ROULLETTE)), 0x64FFFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2629)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_OPEN_ROULLETTE)), 0x64FFFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2697)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RESULT_ALREADY_LOSING_IDX)), 0x64FFFF, 0, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2699)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RODEX_READ)), 0x64FFFF, 0, 0, 0); break; } } @@ -2398,7 +2399,7 @@ void CGameMode::RequestWindow169(unsigned char enable) { // OFFSET: 0x00D66A60 // FUNCTION: fn_22020 void CGameMode::ShowNoticeText(std::string text) { - const std::string message = FormatOwnedString(LookupMessage(0xF18), text.c_str()); + const std::string message = FormatOwnedString(LookupMessage(MSI_RODEX_SPAMOPTION_WARNING), text.c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0x64FFFF, 0, 0, 0); } @@ -2471,11 +2472,11 @@ void CGameMode::ReceiveDdukddakBoxTest(const unsigned char* packet) { void CGameMode::ReceiveBroadcastBalloonNotice(const unsigned char* packet) { std::uint32_t color = 0x62B0FF; std::string text = FormatOwnedString( - LookupMessage(1271), *reinterpret_cast(packet + 2), *reinterpret_cast(packet + 6), + LookupMessage(MSI_PCBANG_EVENT), *reinterpret_cast(packet + 2), *reinterpret_cast(packet + 6), *reinterpret_cast(packet + 10) ); if (g_serviceType == 12) { - text = LookupMessage(1125); + text = LookupMessage(MSI_BILLING_2); } if (!text.empty()) { diff --git a/Source/Client/Mode/GameModeNotices.cpp b/Source/Client/Mode/GameModeNotices.cpp index dff691011..c23c009da 100644 --- a/Source/Client/Mode/GameModeNotices.cpp +++ b/Source/Client/Mode/GameModeNotices.cpp @@ -90,6 +90,7 @@ #include #include #include +#include "Resource/MSGSTRINGID.h" // GLOBAL: gl_25441 @@ -566,13 +567,13 @@ void CGameMode::StopActorMove(std::uint32_t aid, std::int16_t x, std::int16_t y, void CGameMode::NotifyResult2877(int result) { switch (result) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2877)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_COMPLETE_REGISTER_CAPTCHA)), 0xFF, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2878)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_FAILED_REGISTER_CAPTCHA)), 0xFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2879)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_FAILED_REGISTER_ANSWER)), 0xFF, 0, 0, 0); break; } } @@ -625,19 +626,19 @@ refresh: void CGameMode::NotifyResult3562(const unsigned char* packet) { switch (reinterpret_cast(packet)->value) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3566)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BUY_ONE_AT_A_TIME)), 0xFFFF00, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3562)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INVENTORY_EXTEND_FAILED_MAX_OVER)), 0xFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3563)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INVENTORY_EXTEND_SUCCESS)), 0xFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3564)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_LIMIT_BUY_ITEM3)), 0xFF, 0, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3565)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EXCEED_LIMITED_ITEMNUM)), 0xFF, 0, 0, 0); break; } } @@ -665,25 +666,25 @@ void CGameMode::ReceiveRouletteResult(const unsigned char* packet) { bonus = 1; break; case GENERATE_ROULETTE_FAILED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2634)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_RECV_ITEM_OVERCOUNT)), 0x64FFFF, 0, 0, 0); if (g_windowMgr.unknown_0464) { g_windowMgr.EnableRouletteWnd(); } return; case GENERATE_ROULETTE_NO_ENOUGH_POINT: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2635)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_RECV_ITEM_OVERWEIGHT)), 0x64FFFF, 0, 0, 0); if (g_windowMgr.unknown_0464) { g_windowMgr.EnableRouletteWnd(); } return; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2693)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_JPN_PERSONALINFO_DEATHMSG)), 0x64FFFF, 0, 0, 0); if (g_windowMgr.unknown_0464) { g_windowMgr.EnableRouletteWnd(); } return; case 5: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2700)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RODEX_DELETE)), 0x64FFFF, 0, 0, 0); if (g_windowMgr.unknown_0464) { g_windowMgr.EnableRouletteWnd(); } @@ -708,23 +709,23 @@ void CGameMode::NotifyResult4013(unsigned char result, unsigned short value) { switch (result) { case 0: std::memset(text, 0, sizeof(text)); - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(4013), value); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_RESULT_FAIL_PARAM), value); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF00, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4014)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_RESULT_FAIL_QUESTION)), 0xFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4015)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_RESULT_FAIL_MAPNAME_COUNT)), 0xFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4016)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_REMAIN_TIME)), 0xFF, 0, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4017)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_NOTICE1)), 0xFF, 0, 0, 0); break; case 5: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4018)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_NOTICE2)), 0xFF, 0, 0, 0); break; } } @@ -744,20 +745,20 @@ void CGameMode::NotifyWindow4F258(int result) { } break; case 1: - window->SendMsg(nullptr, 154, reinterpret_cast(LookupMessage(2825)), 0, 0, 0); + window->SendMsg(nullptr, 154, reinterpret_cast(LookupMessage(MSI_PRIVATE_AIRPLANE_FAIL_LEVEL)), 0, 0, 0); break; case 2: - window->SendMsg(nullptr, 154, reinterpret_cast(LookupMessage(3333)), 0, 0, 0); + window->SendMsg(nullptr, 154, reinterpret_cast(LookupMessage(MSI_CREATE_ACCOUNT)), 0, 0, 0); break; case 3: - window->SendMsg(nullptr, 154, reinterpret_cast(LookupMessage(3332)), 0, 0, 0); + window->SendMsg(nullptr, 154, reinterpret_cast(LookupMessage(MSI_CANNOT_REGISTER_NAME_THAT_CONTAINS_BADWORDS)), 0, 0, 0); break; case 4: - window->SendMsg(nullptr, 154, reinterpret_cast(LookupMessage(3331)), 0, 0, 0); + window->SendMsg(nullptr, 154, reinterpret_cast(LookupMessage(MSI_ENTER_ONE_LINE_WITHOUT_LINE_BREAKS)), 0, 0, 0); break; case 5: - window->SendMsg(nullptr, 154, reinterpret_cast(LookupMessage(3352)), 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1923)), 0xFF, 0, 0, 0); + window->SendMsg(nullptr, 154, reinterpret_cast(LookupMessage(MSI_MAKECHARWND_TITLE)), 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BUSY)), 0xFF, 0, 0, 0); break; } } @@ -767,10 +768,10 @@ void CGameMode::NotifyWindow4F258(int result) { void CGameMode::ReceiveNamedResult(std::uint32_t, std::string name, int result) { switch (result) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4068)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_USER_REPORT_EFST_ACTIVATED)), 0x64FFFF, 0, 0, 0); break; case 1: { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(4069), name.c_str()).c_str()), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_MACRO_USER_REPORT_PENALTY_COUNTMAX), name.c_str()).c_str()), 0x64FFFF, 0, 0, 0); CWorld* scene = static_cast(g_modeMgr.GetGameMode())->scene; if (scene) { @@ -779,22 +780,22 @@ void CGameMode::ReceiveNamedResult(std::uint32_t, std::string name, int result) break; } case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4070)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_USER_REPORT_REPORTED)), 0x64FFFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4071)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DECOM_NUM)), 0x64FFFF, 0, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4072)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RESET_CASH_EMOTION_INFO)), 0x64FFFF, 0, 0, 0); break; case 5: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4073)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_ALREADY_EXIST)), 0x64FFFF, 0, 0, 0); break; case 6: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4096)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENCHANT_MARK_1)), 0x64FFFF, 0, 0, 0); break; case 7: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4000)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_DETECTOR_NOTICE4)), 0x64FFFF, 0, 0, 0); break; } } @@ -805,7 +806,7 @@ void CGameMode::ReceiveBasicInfoResult(unsigned char result) { switch (result) { case 1: case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3956)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_USESKILL_FAIL_NEED_CHARMS)), 0xFF, 0, 0, 0); if (g_windowMgr.unknown_01E0) { g_windowMgr.unknown_01E0->SendMsg(nullptr, UM_SET_DISABLE, 575, 0, 0, 0); } @@ -824,23 +825,23 @@ void CGameMode::ReceiveUnknown0454Result(const unsigned char* data) { switch (packet->value) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2587)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GET_ITEMS_FROM_MAIL_OVERWEIGHT)), 0x64FFFF, 0, 0, 0); break; case 1: g_modeMgr.GetGameMode()->SendMsg(MM_CANCEL_WRITE_RODEX, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2597)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EA6)), 0x64FFFF, 0, 0, 0); break; case 2: g_modeMgr.GetGameMode()->SendMsg(MM_CANCEL_WRITE_RODEX, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2603)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GOLDPCCAFE_MILEAGE)), 0x64FFFF, 0, 0, 0); break; case 3: g_modeMgr.GetGameMode()->SendMsg(MM_CANCEL_WRITE_RODEX, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2598)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PARTY_BOOKING_ERR5R2)), 0x64FFFF, 0, 0, 0); break; case 4: g_modeMgr.GetGameMode()->SendMsg(MM_CANCEL_WRITE_RODEX, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2599)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_WND_OVERFULL)), 0x64FFFF, 0, 0, 0); break; } @@ -875,7 +876,7 @@ void CGameMode::ReceiveWindow154Result(std::int16_t value) { break; } case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2517)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BARGAINSALE_CASHSHOP_TAB_NAME)), 0xFF, 0, 0, 0); break; } } @@ -885,13 +886,13 @@ void CGameMode::ReceiveWindow154Result(std::int16_t value) { void CGameMode::ReceiveResultNotice(int result) { switch (result) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4125)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ETC_PROBABILITY_WEB_CONNECT)), 0xFF, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4126)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GENDER_CHANGE_FAILED_CAUSE_JOB)), 0xFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4127)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GENDER_CHANGE_FAILED_CAUSE_GROUP)), 0xFF, 0, 0, 0); break; } } @@ -1048,7 +1049,7 @@ void CGameMode::ReceiveUnknown7FBC(const unsigned char* data) { // OFFSET: 0x00D6EC10 // FUNCTION: fn_22118 void CGameMode::ReceiveNotice1950(const unsigned char*) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1950)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_GET_ITEM_FROM_ZONEDA)), 0xFF, 0, 0, 0); } // OFFSET: 0x00D6EC40 @@ -1074,19 +1075,19 @@ void CGameMode::ReceiveActorMessage144(const unsigned char* data) { void CGameMode::NotifyResult4138(int result) { switch (result) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4138)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GAME_SETTINGS_TAB_BASIC)), 0xFF, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4139)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GAME_SETTINGS_TAB_EFFECT)), 0xFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4140)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GAME_SETTINGS_TAB_CONTROL)), 0xFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4187)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHECK_CHAR_DELETE_TEXT)), 0xFF, 0, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4141)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GAME_SETTINGS_TAB_GRAPHICS)), 0xFF, 0, 0, 0); break; } } @@ -1129,7 +1130,7 @@ void CGameMode::ReceiveGradeEnchantInfo(const unsigned char* data) { const auto* packet = reinterpret_cast(data); const int count = static_cast(packet->length - sizeof(GradeEnchantInfoPacket)) / sizeof(GradeEnchantMaterial); if (-1 == packet->index) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3720)), 0x62B0FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHANGE_MATERIAL_MESSAGE)), 0x62B0FF, 0, 0, 0); return; } @@ -1159,7 +1160,7 @@ void CGameMode::ReceivePartyItemPickup(const unsigned char* data) { item.unknown_0088 = packet->grade; std::string name = item.DisplayName(0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(1276), member.name.c_str(), name.c_str()).c_str()), 0xFFFF00, 9, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_ITEM_PICKUP_PARTY), member.name.c_str(), name.c_str()).c_str()), 0xFFFF00, 9, 0, 0); } } @@ -1168,22 +1169,22 @@ void CGameMode::ReceivePartyItemPickup(const unsigned char* data) { void CGameMode::NotifyResult3995(unsigned char result) { switch (result) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3995)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_CHECK_REMOVE_OFF_SUCCESS)), 0xFFFF, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3996)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_CHECK_REMOVE_TIMESUP)), 0xFFFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3997)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_CHECK_REMOVE_INVALID_AID)), 0xFFFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3998)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NEWSEIGEMODE_SKILL)), 0xFFFF, 0, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3999)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DYNAMICNPC_CREATE_RESULT_FAIL_MAXCOUNT)), 0xFFFF, 0, 0, 0); break; case 5: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4000)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_DETECTOR_NOTICE4)), 0xFFFF, 0, 0, 0); break; } } @@ -1406,7 +1407,7 @@ void CGameMode::NotifyCaptchaRegistered() { UIWindow* window = g_windowMgr.LookupWindow(WID_CAPTCHAREGISTERWND); if (window) { static_cast(window)->SetRegisterDisabled(0); - g_windowMgr.Confirm(LookupMessage(2880), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MACRO_DETECTOR_NOTICE1), 0, true, false, 0, "Message", 280, 120, 0); } } @@ -1462,7 +1463,7 @@ void CGameMode::ReceiveCardCompositionResult(const unsigned char* data) { const auto* packet = reinterpret_cast(data); switch (packet->result) { case ITEMCOMPOSITON_SUCCESS: { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(493)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_COMPOUNDING_SUCCEESS)), 0xFFFF00, 0, 0, 0); ITEM_INFO card = LookupClientItemByIdentity(g_session.m_inventoryItems, packet->cardIndex); ITEM_INFO equip = LookupClientItemByIdentity(g_session.m_inventoryItems, packet->equipIndex); if (equip.unknown_0000[1] != 0 && card.unknown_0000[1] != 0) { @@ -1480,7 +1481,7 @@ void CGameMode::ReceiveCardCompositionResult(const unsigned char* data) { break; } case ITEMCOMPOSITION_FAILURE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(494)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_COMPOUNDING_FAIL)), 0xFF, 0, 0, 0); break; } } @@ -1517,15 +1518,15 @@ void CGameMode::ReceiveRefineResult(const unsigned char* data) { switch (packet->result) { case ITEMREFINING_SUCCESS: static_cast(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(154, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(498)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_REFINING_SUCCEESS)), 0xFFFF00, 0, 0, 0); break; case ITEMREFINING_FAILURE: static_cast(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(155, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(499)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_REFINING_FAIL)), 0xFFFF00, 0, 0, 0); break; case ITEMREFINING_DOWNGRADE: static_cast(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(155, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1537)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_REFINING_DOWNGRADE)), 0xFFFF00, 0, 0, 0); break; } @@ -1546,46 +1547,46 @@ void CGameMode::ReceiveItemEffectResult(const unsigned char* data) { switch (packet->type) { case 0: static_cast(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(154, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); - text = static_cast(FormatOwnedString(LookupMessage(431), item.DisplayName(0).c_str())); + text = static_cast(FormatOwnedString(LookupMessage(MSI_MAKE_TARGET_SUCCEESS_MSG), item.DisplayName(0).c_str())); break; case 1: static_cast(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(155, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); - text = static_cast(FormatOwnedString(LookupMessage(430), item.DisplayName(0).c_str())); + text = static_cast(FormatOwnedString(LookupMessage(MSI_MAKE_TARGET_FAIL_MSG), item.DisplayName(0).c_str())); break; case 2: if (static_cast(g_modeMgr.GetGameMode())->scene->player->HasId(305)) { static_cast(g_modeMgr.GetGameMode())->scene->player->SendMsg(nullptr, AM_DELETE_EFFECT, 0, 305, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } static_cast(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(305, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); - text = FormatOwnedString(LookupMessage(431), item.DisplayName(0).c_str()).c_str(); + text = FormatOwnedString(LookupMessage(MSI_MAKE_TARGET_SUCCEESS_MSG), item.DisplayName(0).c_str()).c_str(); break; case 3: if (static_cast(g_modeMgr.GetGameMode())->scene->player->HasId(306)) { static_cast(g_modeMgr.GetGameMode())->scene->player->SendMsg(nullptr, AM_DELETE_EFFECT, 0, 306, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } static_cast(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(306, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); - text = FormatOwnedString(LookupMessage(430), item.DisplayName(0).c_str()).c_str(); + text = FormatOwnedString(LookupMessage(MSI_MAKE_TARGET_FAIL_MSG), item.DisplayName(0).c_str()).c_str(); break; case 4: if (static_cast(g_modeMgr.GetGameMode())->scene->player->HasId(1015)) { static_cast(g_modeMgr.GetGameMode())->scene->player->SendMsg(nullptr, AM_DELETE_EFFECT, 0, 1015, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } static_cast(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(1015, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); - text = FormatOwnedString(LookupMessage(431), item.DisplayName(0).c_str()).c_str(); + text = FormatOwnedString(LookupMessage(MSI_MAKE_TARGET_SUCCEESS_MSG), item.DisplayName(0).c_str()).c_str(); break; case 5: if (static_cast(g_modeMgr.GetGameMode())->scene->player->HasId(1016)) { static_cast(g_modeMgr.GetGameMode())->scene->player->SendMsg(nullptr, AM_DELETE_EFFECT, 0, 1016, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } static_cast(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(1016, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); - text = FormatOwnedString(LookupMessage(430), item.DisplayName(0).c_str()).c_str(); + text = FormatOwnedString(LookupMessage(MSI_MAKE_TARGET_FAIL_MSG), item.DisplayName(0).c_str()).c_str(); break; case 6: { if (static_cast(g_modeMgr.GetGameMode())->scene->player->HasId(1017)) { static_cast(g_modeMgr.GetGameMode())->scene->player->SendMsg(nullptr, AM_DELETE_EFFECT, 0, 1017, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } static_cast(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(1017, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); - text = FormatOwnedString(LookupMessage(430), item.DisplayName(0).c_str()).c_str(); + text = FormatOwnedString(LookupMessage(MSI_MAKE_TARGET_FAIL_MSG), item.DisplayName(0).c_str()).c_str(); UIWindow* window = g_windowMgr.LookupWindow(WID_CHANGEMATERIALWND); if (window) { window->SendMsg(nullptr, UM_COMMAND, 415, 0, 0, 0); @@ -1597,7 +1598,7 @@ void CGameMode::ReceiveItemEffectResult(const unsigned char* data) { static_cast(g_modeMgr.GetGameMode())->scene->player->SendMsg(nullptr, AM_DELETE_EFFECT, 0, 1018, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } static_cast(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(1018, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); - text = FormatOwnedString(LookupMessage(430), item.DisplayName(0).c_str()).c_str(); + text = FormatOwnedString(LookupMessage(MSI_MAKE_TARGET_FAIL_MSG), item.DisplayName(0).c_str()).c_str(); UIWindow* window = g_windowMgr.LookupWindow(WID_CHANGEMATERIALWND); if (window) { window->SendMsg(nullptr, UM_COMMAND, 415, 0, 0, 0); @@ -1615,13 +1616,13 @@ void CGameMode::ReceiveCharacterRenameResult(const unsigned char* packet) { PacketIdOnly request; request.id = 0xA48; GetRagConnection().Send(reinterpret_cast(GetRagConnection()).FixedLength(request.id), &request); - g_windowMgr.Confirm(LookupMessage(2836), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NOT_USING_SPECIALLETTERS_ON_PARTYNAME), 0, true, false, 0, "Message", 280, 120, 0); g_windowMgr.CloseWindow(WID_STYLINGSHOPWND); break; } case 1: case 2: - g_windowMgr.Confirm(LookupMessage(1575), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SKILL_FAIL), 0, true, false, 0, "Message", 280, 120, 0); break; } } @@ -1659,7 +1660,7 @@ void CGameMode::ReceiveLapineBoxResult(std::uint16_t result) { case 7: { UIWindow* window = g_windowMgr.LookupWindow(WID_LAPINEBOXWND); if (window) { - window->SendMsg(nullptr, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(2897)), 0, 0, 0); + window->SendMsg(nullptr, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(MSI_REGISTER_PARTY_TO_BOOKINGSYSTEM)), 0, 0, 0); } break; } @@ -1753,14 +1754,14 @@ void CloseAccountLimitedTool() { void CGameMode::ReceiveMacroBlackListResult(int result) { switch (result) { case MCD_TIMEOUT: - g_windowMgr.Confirm(LookupMessage(2869), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MACRO_INPUT_ANSWER), 0, true, false, 0, "Message", 280, 120, 0); break; case MCD_INCORRECT: - g_windowMgr.Confirm(LookupMessage(2870), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MACRO_CHECK_ANSWER), 0, true, false, 0, "Message", 280, 120, 0); break; case MCD_GOOD: g_windowMgr.CloseWindow(WID_MACROBLACKLISTCHECKWND); - g_windowMgr.Confirm(LookupMessage(2871), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MACRO_SELECT_CAPTCHA), 0, true, false, 0, "Message", 280, 120, 0); return; default: return; @@ -1775,14 +1776,14 @@ void CGameMode::ReceiveMacroBlackListResult(int result) { void CGameMode::ReceiveMacroDetectorResult(int result) { switch (result) { case MCD_TIMEOUT: - g_windowMgr.Confirm(LookupMessage(2869), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MACRO_INPUT_ANSWER), 0, true, false, 0, "Message", 280, 120, 0); break; case MCD_INCORRECT: - g_windowMgr.Confirm(LookupMessage(2870), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MACRO_CHECK_ANSWER), 0, true, false, 0, "Message", 280, 120, 0); break; case MCD_GOOD: g_windowMgr.CloseWindow(WID_MACRODETECTORWND); - g_windowMgr.Confirm(LookupMessage(2871), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MACRO_SELECT_CAPTCHA), 0, true, false, 0, "Message", 280, 120, 0); return; default: return; @@ -1851,7 +1852,7 @@ void CGameMode::ReceiveStorageClose(const AchievementStatePacket* packet) { bool notify = true; if (packet->type == 2) { - g_windowMgr.Confirm(LookupMessage(0x9F5), 0, true, true, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_USESKILL_FAIL_COINTS), 0, true, true, 0, "Message", 280, 120, 0); window = g_windowMgr.LookupWindow(WID_ITEMSTOREWND); } else { window = g_windowMgr.LookupWindow(WID_ITEMSTOREWND); @@ -1931,7 +1932,7 @@ void CGameMode::ReceiveWindow328Result(int result, int value) { window->SendMsg(nullptr, UM_SETINFO, value * 10 + 1, 0, 0, 0); } } else if (result == 1) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3472)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CAN_NOT_OFFER_EXP_TO_GUILD_MAX_LV)), 0xFF, 0, 0, 0); g_windowMgr.CloseWindow(WID_CHECKATTENDANCEWND); } } @@ -1947,7 +1948,7 @@ void CGameMode::ReceiveRouletteClose(const unsigned char* packet) { } break; case CLOSE_ROULETTE_FAILED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2633)), 0x6464FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_RECV_ITEM)), 0x6464FF, 0, 0, 0); break; } } @@ -1961,7 +1962,7 @@ void CGameMode::ReceiveWindow227Result(const unsigned char* packet) { switch (result->result) { case MERGE_ITEM_SUCCESS: { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2171)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_LEFT_ROLL)), 0x64FFFF, 0, 0, 0); UIWindow* window = g_windowMgr.LookupWindow(WID_MERGEITEMWND); if (window) { window->SendMsg(nullptr, UM_REFRESH, first, second, 0, 0); @@ -1969,10 +1970,10 @@ void CGameMode::ReceiveWindow227Result(const unsigned char* packet) { break; } case MERGE_ITEM_FAILED_NOT_MERGE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2172)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_RIGHT_ROLL)), 0xFF, 0, 0, 0); break; case MERGE_ITEM_FAILED_MAX_COUNT: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2173)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_VIEW_BEFORE_WORLDINFO)), 0xFF, 0, 0, 0); break; } @@ -2006,7 +2007,7 @@ void CGameMode::ReceiveRouletteOpen(const unsigned char* packet) { } break; case OPEN_ROULETTE_FAILED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2632)), 0x6464FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOT_ENOUGH_ROULLETTE_POINT)), 0x6464FF, 0, 0, 0); break; } } @@ -2026,7 +2027,7 @@ void CGameMode::ReceiveRodexOpen(const unsigned char* packet) { } } } else { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2604)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PET_EVOLUTION_FAIL_PET_ACC_OFF)), 0x64FFFF, 0, 0, 0); } } @@ -2065,7 +2066,7 @@ void CGameMode::ReceiveStackedItemReturn(const unsigned char* packet) { g_session.ReturnStackedItem(result->index, result->count); g_session.unknown_6140 = result->value; } else { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2602)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_JOINED_IN_CLAN)), 0x64FFFF, 0, 0, 0); } } @@ -2077,7 +2078,7 @@ void CGameMode::ReceiveRodexRecipient(int id, unsigned short job, unsigned short reinterpret_cast(g_windowMgr.unknown_0458)->SetRecipient(id, job, level, name); } } else { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2615)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TAIWAN_PERSONALINFO_DEATHMSG)), 0x64FFFF, 0, 0, 0); } } @@ -2475,16 +2476,16 @@ void CGameMode::ReceiveTypedNotice(const unsigned char* data) { const auto* packet = reinterpret_cast(data); switch (packet->type) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(901), packet->first, packet->second).c_str()), 0xCDCDCD, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_BLACKSMITH_POINT), packet->first, packet->second).c_str()), 0xCDCDCD, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(902), packet->first, packet->second).c_str()), 0xCDFFCD, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_ALCHEMIST_POINT), packet->first, packet->second).c_str()), 0xCDFFCD, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(926), packet->first, packet->second).c_str()), 0xFFCDCD, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_TAEKWON_POINT), packet->first, packet->second).c_str()), 0xFFCDCD, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(953), packet->first, packet->second).c_str()), 0xCDCDCD, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_KILLER_POINT), packet->first, packet->second).c_str()), 0xCDCDCD, 0, 0, 0); break; } } @@ -2499,7 +2500,7 @@ void CGameMode::ReceiveRodexMailReturn(const unsigned char* data) { const auto* packet = reinterpret_cast(data); switch (packet->result) { case 0: { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2591)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SET_ITEMS_TO_MAIL_SUCCEED)), 0x64FFFF, 0, 0, 0); std::map::iterator mail; switch (packet->type) { @@ -2529,10 +2530,10 @@ void CGameMode::ReceiveRodexMailReturn(const unsigned char* data) { break; } case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2592)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INVALID_MAIL_RECIEVER_INFO)), 0x64FFFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2593)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INVALID_MAIL_TITLE_INFO)), 0x64FFFF, 0, 0, 0); break; } } @@ -2601,12 +2602,12 @@ void CGameMode::ShowFormattedNotice(unsigned short messageId, std::uint32_t colo void CGameMode::ReceiveCaptchaUploadRequest(const std::uint32_t* sessionId, int result) { switch (result) { case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2882)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_DETECTOR_NOTICE3)), 0xFF, 0, 0, 0); break; case 0: { auto* window = static_cast(g_windowMgr.LookupWindow(WID_CAPTCHAREGISTERWND)); if (!window) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2881)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_DETECTOR_NOTICE2)), 0xFF, 0, 0, 0); break; } @@ -2627,7 +2628,7 @@ void CGameMode::ReceiveExtraInventoryResult(const unsigned char* data) { const int slots = g_session.unknown_7FBC + 100; const char* name = FindItemDescription(packet->itemId).identifiedName; const int answer = g_windowMgr.Confirm( - FormatOwnedString(LookupMessage(3561), name, slots, nextSlots).c_str(), 2, false, false, 0, "Message", 280, 120, 0); + FormatOwnedString(LookupMessage(MSI_INVENTORY_EXTEND_FAILED_NO_ITEM), name, slots, nextSlots).c_str(), 2, false, false, 0, "Message", 280, 120, 0); if (answer == 187) { this->SendMsg(MM_REQ_EXTEND_BODYITEM_SIZE, 0, 0, 0, 0); } else { @@ -2674,7 +2675,7 @@ void CGameMode::ReceiveWindow348Result(unsigned char result, std::int16_t index) case 3: { UIWindow* window = g_windowMgr.LookupWindow(WID_ITEMREFORMWND); if (window) { - window->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(3848)), 0, 0, 0); + window->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_ITEM_REFORM_WARNNING_ENCHANT_MAYBE_LOST)), 0, 0, 0); } break; } @@ -2691,7 +2692,7 @@ void CGameMode::ReceiveRodexItemReturn(const unsigned char* data) { const auto* packet = reinterpret_cast(data); switch (packet->result) { case 0: { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2588)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GET_ZENY_FROM_MAIL_SUCCEED)), 0x64FFFF, 0, 0, 0); g_session.ClearItemQuantities(); std::map::iterator mail; @@ -2727,10 +2728,10 @@ void CGameMode::ReceiveRodexItemReturn(const unsigned char* data) { break; } case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2589)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GET_ZENY_FROM_MAIL_FAILED)), 0x64FFFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2590)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GET_ZENY_FROM_MAIL_OVERAMOUNT)), 0x64FFFF, 0, 0, 0); break; } } @@ -2761,17 +2762,17 @@ void CGameMode::ReceiveExpGainNotice(const unsigned char* data) { char buffer[256]; if (packet->type == 1) { - std::sprintf(buffer, LookupMessage(3220), packet->amount); + std::sprintf(buffer, LookupMessage(MSI_WARNING_METCHANT_SHOP_SELL), packet->amount); text += buffer; } else if (packet->type == 2) { - std::sprintf(buffer, LookupMessage(3227), packet->amount); + std::sprintf(buffer, LookupMessage(MSI_SWAP_EQUIPITEM_WAITING), packet->amount); text += buffer; } if (packet->amount >= 0) { - text += LookupMessage(1615); + text += LookupMessage(MSI_GET); } else { - text += LookupMessage(1616); + text += LookupMessage(MSI_LOSS); } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), color, 18, 0, 0); } @@ -2952,16 +2953,16 @@ void CGameMode::ReceiveBankDepositAck(const unsigned char* data) { char text[256]; if (packet->reason == 2) { std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(2456)); + std::sprintf(text, LookupMessage(MSI_BANK_OVER_INT_MAX)); } else if (packet->reason == 3) { std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(2465)); + std::sprintf(text, LookupMessage(MSI_NOT_VALID_AUTH_TICKET)); } else if (packet->reason == 4) { std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(2489)); + std::sprintf(text, LookupMessage(MSI_WRONG_GUN)); } else { std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(2454)); + std::sprintf(text, LookupMessage(MSI_BANK_DEPOSIT_ZERO)); } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); } @@ -2981,13 +2982,13 @@ void CGameMode::ReceiveBankWithdrawAck(const unsigned char* data) { char text[256]; if (packet->reason == 1) { std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(2455)); + std::sprintf(text, LookupMessage(MSI_BANK_WITHDRAW_ZERO)); } else if (packet->reason == 3) { std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(2489)); + std::sprintf(text, LookupMessage(MSI_WRONG_GUN)); } else { std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(2454)); + std::sprintf(text, LookupMessage(MSI_BANK_DEPOSIT_ZERO)); } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); } @@ -3005,11 +3006,11 @@ void CGameMode::ReceiveBankCheck(const unsigned char* data) { } if (packet->reason == 2) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3031)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DAILYSENDRODEXCNT_LIMIT)), 0xFF, 0, 0, 0); } else { char text[256]; std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(2454)); + std::sprintf(text, LookupMessage(MSI_BANK_DEPOSIT_ZERO)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); } } @@ -3079,15 +3080,15 @@ void CGameMode::ReceiveExchangeItemAddAck(const unsigned char* data) { break; case EXITEM_ADD_FAILED_OVERWEIGHT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(73)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_IS_OVER_WEIGHT)), 0xFF, 0, 0, 0); break; case EXITEM_ADD_FAILED_OVERCOUNT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1938)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_IS_OVER_COUNT)), 0xFF, 0, 0, 0); break; case EXITEM_ADD_FAILED_EACHITEM_OVERCOUNT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1939)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_IS_EACHITEM_OVER_COUNT)), 0xFF, 0, 0, 0); break; } } @@ -3112,22 +3113,22 @@ void CGameMode::ReceiveExchangeRequestAck2(const unsigned char* data) { } case TRADE_ACK_CANCEL: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(69)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_REJECT_DEAL)), 0xFF, 0, 0, 0); break; case TRADE_ACK_TOOFAR: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(70)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TOO_FAR_TO_DEAL)), 0xFF, 0, 0, 0); break; case TRADE_ACK_CHARNOTEXIST: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(71)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_IS_NOT_EXIST)), 0xFF, 0, 0, 0); break; case TRADE_ACK_FAILED: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(72)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_IS_DEALING)), 0xFF, 0, 0, 0); break; case TRADE_ACK_BUSY: { - std::string text = FormatOwnedString(LookupMessage(1708), exchangeName.c_str()); + std::string text = FormatOwnedString(LookupMessage(MSI_CHARACTER_IS_BUSY), exchangeName.c_str()); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFF, 0, 0, 0); break; @@ -3155,19 +3156,19 @@ void CGameMode::ReceiveExchangeRequestAck(const unsigned char* data) { } case TRADE_ACK_CANCEL: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(69)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_REJECT_DEAL)), 0xFF, 0, 0, 0); break; case TRADE_ACK_TOOFAR: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(70)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TOO_FAR_TO_DEAL)), 0xFF, 0, 0, 0); break; case TRADE_ACK_CHARNOTEXIST: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(71)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_IS_NOT_EXIST)), 0xFF, 0, 0, 0); break; case TRADE_ACK_FAILED: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(72)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_IS_DEALING)), 0xFF, 0, 0, 0); break; } } @@ -3275,10 +3276,10 @@ void CGameMode::ReceiveGuildStorageLog(const unsigned char* data) { char text[252]; if (packet->result == 2) { std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(2543)); + std::sprintf(text, LookupMessage(MSI_GUILD_STORAGE_LOG_OUT)); } else { std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(1816)); + std::sprintf(text, LookupMessage(MSI_RESULT_FAIL_UNKNOWN)); } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); g_guildStorageLogs[0].clear(); @@ -4763,7 +4764,7 @@ void CGameMode::ReceiveSpriteChange2(const unsigned char* data) { case 14: g_session.SetFlag(static_cast(value)); actor->SetSex(value); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4137)), 0, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MACRO_CHECKER_MAP_SUCCESS)), 0, 0, 0, 0); break; } if (!actor) { @@ -4915,17 +4916,17 @@ void CGameMode::ReceiveMapProperty(const unsigned char* data) { } if (GetBaseJob(g_session.GetDisplayJob()) == 0xFCF && !g_mapPropertyMgr->GetValue(g_session.unknown_0000, 41)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2381)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RANKING_NAME)), 0xFFFF64, 0, 0, 0); } if (GetBaseJob(g_session.GetDisplayJob()) == 0x1082 && !g_mapPropertyMgr->GetValue(g_session.unknown_0000, 41)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2381)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RANKING_NAME)), 0xFFFF64, 0, 0, 0); } if ((g_session.GetDisplayJob() == 0x108F || g_session.GetDisplayJob() == 0x1091 || g_session.GetDisplayJob() == 0x10CE) && !g_mapPropertyMgr->GetValue(g_session.unknown_0000, 41)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2381)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RANKING_NAME)), 0xFFFF64, 0, 0, 0); } if (g_mapPropertyMgr->GetValue(packet->mapId, 20)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1772)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DISABLE_COSTUMEITEM_MAP)), 0xFFFF64, 0, 0, 0); } PacketIdOnly request; @@ -4975,7 +4976,7 @@ void CGameMode::ReceiveStovePurchaseResult(const unsigned char* data) { break; case 3: case 4: - message = LookupMessage(3022); + message = LookupMessage(MSI_ANOTHER_WORKING); break; case 5: case 6: @@ -5070,9 +5071,9 @@ void CGameMode::ReceiveOngoingQuestList(const unsigned char* data) { const int mobId = hunt->mobId; if ((mobId < 1001 || mobId > 3998) && static_cast(mobId - 20021) > 11978) { if (mobId == 0x1099) { - StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(3558)); + StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(MSI_INVENTORY_EXTEND)); } else if (mobId == 0x109A) { - StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(3559)); + StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(MSI_INVENTORY_EXTEND_FAILED)); } else if (mobId == 0x287B) { const std::string mapName = FormatOwnedString("%s.rsw", hunt->name); StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", g_session.GetMapDisplayName(mapName.c_str())); @@ -5130,9 +5131,9 @@ void CGameMode::ReceiveOngoingQuestList2(const unsigned char* data) { const int mobId = hunt->mobId; if ((mobId < 1001 || mobId > 3998) && static_cast(mobId - 20021) > 11978) { if (mobId == 0x1099) { - StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(3558)); + StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(MSI_INVENTORY_EXTEND)); } else if (mobId == 0x109A) { - StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(3559)); + StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(MSI_INVENTORY_EXTEND_FAILED)); } else if (mobId == 0x287B) { const std::string mapName = FormatOwnedString("%s.rsw", hunt->name); StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", g_session.GetMapDisplayName(mapName.c_str())); @@ -5298,11 +5299,11 @@ void CGameMode::ReceiveGradeEnchantBroadcast(const unsigned char* data) { std::string text; if (packet->success == 1) { text = static_cast( - FormatOwnedString(LookupMessage(3718), name.c_str(), grade.c_str(), itemName.c_str()) + FormatOwnedString(LookupMessage(MSI_CHANGE_MATERIAL), name.c_str(), grade.c_str(), itemName.c_str()) ); } else { text = static_cast( - FormatOwnedString(LookupMessage(3719), name.c_str(), grade.c_str(), itemName.c_str()) + FormatOwnedString(LookupMessage(MSI_CHANGE_MATERIAL_SORT), name.c_str(), grade.c_str(), itemName.c_str()) ); } @@ -5518,11 +5519,11 @@ void CGameMode::ReceiveSpecialBroadcast(const unsigned char* data) { g_soundMgr->PlayWave("effect\\T_피링.wav", 0.0f, -250.0f, 0.0f, 250, 40, 1.0f, 0); break; case 20: - text.assign(FormatOwnedString(LookupMessage(927), packet->name, packet->index)); + text.assign(FormatOwnedString(LookupMessage(MSI_TAEKWON_MISSION), packet->name, packet->index)); player->LaunchEffect(543, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); break; case 21: - text.assign(FormatOwnedString(LookupMessage(1190), packet->name)); + text.assign(FormatOwnedString(LookupMessage(MSI_GANGSI_MISSION), packet->name)); player->LaunchEffect(543, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); break; case 22: { @@ -5531,12 +5532,12 @@ void CGameMode::ReceiveSpecialBroadcast(const unsigned char* data) { char itemName[256]; int capacity = sizeof(itemName); item.GetIdDisplayName(itemName, capacity, 0); - text.assign(FormatOwnedString(LookupMessage(1265), itemName)); + text.assign(FormatOwnedString(LookupMessage(MSI_COLLECTOR_MISSION), itemName)); player->LaunchEffect(543, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); break; } case 30: - text = LookupMessage(1033); + text = LookupMessage(MSI_STAR_ANGEL); player->LaunchEffect(432, vector3d{0.0f, 0.0f, 0.0f}, 0.0f); break; case 40: @@ -5615,7 +5616,7 @@ void CGameMode::ReceiveQuestHuntUpdate(const unsigned char* data) { } else { name.assign(info.m_huntName[index]); } - name = static_cast(FormatOwnedString(LookupMessage(1610), info.m_title.c_str(), name.c_str(), info.m_huntUnknown00E0[index], entry.maxCount)); + name = static_cast(FormatOwnedString(LookupMessage(MSI_CLEAR_QUEST_MONSTER), info.m_title.c_str(), name.c_str(), info.m_huntUnknown00E0[index], entry.maxCount)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(name.c_str()), 0xFFFF, 19, 0, 0); g_renewQuestMgr->SetOngoingQuest(entry.questId, info); } @@ -5661,7 +5662,7 @@ void CGameMode::ReceiveQuestHuntUpdate2(const unsigned char* data) { } else { name.assign(info.m_huntName[index]); } - name = static_cast(FormatOwnedString(LookupMessage(1610), info.m_title.c_str(), name.c_str(), info.m_huntUnknown00E0[index], entry.maxCount)); + name = static_cast(FormatOwnedString(LookupMessage(MSI_CLEAR_QUEST_MONSTER), info.m_title.c_str(), name.c_str(), info.m_huntUnknown00E0[index], entry.maxCount)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(name.c_str()), 0xFFFF, 19, 0, 0); g_renewQuestMgr->SetOngoingQuest(entry.questId, info); } @@ -5757,7 +5758,7 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { char name[256]; std::sprintf(name, ""); if (packet->aid != g_session.m_aid) { - std::sprintf(name, LookupMessage(1275), member.name.c_str()); + std::sprintf(name, LookupMessage(MSI_CHARACTER_NAME), member.name.c_str()); } char message[256]; @@ -5791,7 +5792,7 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { case EFST_ATTHASTE_INFINITY: case EFST_SPEARQUICKEN: case EFST_ONEHANDQUICKEN: - std::sprintf(message, LookupMessage(463)); + std::sprintf(message, LookupMessage(MSI_INCATTACKSPEED)); break; case EFST_SV_ROOTTWIST: case EFST_BITESCAR: @@ -5800,69 +5801,69 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { case EFST_SOULATTACK: break; case EFST_IMPOSITIO: - std::sprintf(message, LookupMessage(3463)); + std::sprintf(message, LookupMessage(MSI_CHECK_ATTENDANCE_DATE_INFO)); break; case EFST_SUFFRAGIUM: - std::sprintf(message, LookupMessage(467)); + std::sprintf(message, LookupMessage(MSI_FASTPREDELAY)); break; case EFST_ENCHANTPOISON: - std::sprintf(message, LookupMessage(469)); + std::sprintf(message, LookupMessage(MSI_WEAPONPROPERTYPOISON)); break; case EFST_ASPERSIO: case EFST_WEAPONPROPERTY: - std::sprintf(message, LookupMessage(470)); + std::sprintf(message, LookupMessage(MSI_WEAPONPROPERTYSAINT)); break; case EFST_BENEDICTIO: - std::sprintf(message, LookupMessage(472)); + std::sprintf(message, LookupMessage(MSI_ARMORPROPERTYSAINT)); break; case EFST_KYRIE: - std::sprintf(message, LookupMessage(474)); + std::sprintf(message, LookupMessage(MSI_BARRIOR)); break; case EFST_WEAPONPERFECT: - std::sprintf(message, LookupMessage(476)); + std::sprintf(message, LookupMessage(MSI_PERFECTDAMAGE)); break; case EFST_OVERTHRUST: case EFST_OVERTHRUSTMAX: - std::sprintf(message, LookupMessage(465)); + std::sprintf(message, LookupMessage(MSI_INCWEAPONATTACK)); break; case EFST_MAXIMIZE: - std::sprintf(message, LookupMessage(480)); + std::sprintf(message, LookupMessage(MSI_MAXIMIZE)); break; case EFST_INC_AGI: case EFST_MOVHASTE_POTION: case EFST_MOVHASTE_INFINITY: - std::sprintf(message, LookupMessage(209)); + std::sprintf(message, LookupMessage(MSI_SPEEDUP)); break; case EFST_DEC_AGI: - std::sprintf(message, LookupMessage(210)); + std::sprintf(message, LookupMessage(MSI_SPEEDDOWN)); break; case EFST_POISONREACT: - std::sprintf(message, LookupMessage(620)); + std::sprintf(message, LookupMessage(MSI_ENST_POISONREACT)); break; case EFST_QUAGMIRE: - std::sprintf(message, LookupMessage(622)); + std::sprintf(message, LookupMessage(MSI_ENST_QUAGMIRE)); break; case EFST_ANGELUS: - std::sprintf(message, LookupMessage(3435)); + std::sprintf(message, LookupMessage(MSI_CASHSHOP_TAB_PREMIUM_SERVICE)); break; case EFST_BLESSING: - std::sprintf(message, LookupMessage(3434)); + std::sprintf(message, LookupMessage(MSI_CASHSHOP_TAB_EFST_AID)); break; case EFST_SLOWPOISON: - std::sprintf(message, LookupMessage(630)); + std::sprintf(message, LookupMessage(MSI_ENST_SLOWPOISON)); break; case EFST_MAGNIFICAT: - std::sprintf(message, LookupMessage(632)); + std::sprintf(message, LookupMessage(MSI_ENST_MAGNIFICAT)); break; case EFST_GLORIA: - std::sprintf(message, LookupMessage(634)); + std::sprintf(message, LookupMessage(MSI_ENST_GLORIA)); break; case EFST_LEXAETERNA: - std::sprintf(message, LookupMessage(636)); + std::sprintf(message, LookupMessage(MSI_ENST_LEXAETERNA)); break; case EFST_ADRENALINE: case EFST_ADRENALINE2: - std::sprintf(message, LookupMessage(638)); + std::sprintf(message, LookupMessage(MSI_ENST_ADRENALINE)); break; case EFST_TRICKDEAD: std::sprintf(message, ""); @@ -5872,16 +5873,16 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { } break; case EFST_SHOUT: - std::sprintf(message, LookupMessage(3433)); + std::sprintf(message, LookupMessage(MSI_CASHSHOP_TAB_JELLSTAR)); break; case EFST_ENERGYCOAT: - std::sprintf(message, LookupMessage(648)); + std::sprintf(message, LookupMessage(MSI_ENST_ENERGYCOAT)); break; case EFST_BROKENARMOR: - std::sprintf(message, LookupMessage(650)); + std::sprintf(message, LookupMessage(MSI_ENST_BROKENAMOR)); break; case EFST_BROKENWEAPON: - std::sprintf(message, LookupMessage(652)); + std::sprintf(message, LookupMessage(MSI_ENST_BROKENWEAPON)); break; case EFST_CHASEWALK2: if (packet->aid == g_session.m_aid) { @@ -6176,51 +6177,51 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { break; case EFST_FOOD_STR: case EFST_FOOD_STR_CASH: - std::sprintf(message, LookupMessage(1231)); + std::sprintf(message, LookupMessage(MSI_ENST_STR)); break; case EFST_FOOD_AGI: case EFST_FOOD_AGI_CASH: - std::sprintf(message, LookupMessage(1233)); + std::sprintf(message, LookupMessage(MSI_ENST_AGI)); break; case EFST_FOOD_VIT: case EFST_FOOD_VIT_CASH: - std::sprintf(message, LookupMessage(1235)); + std::sprintf(message, LookupMessage(MSI_ENST_VIT)); break; case EFST_FOOD_DEX: case EFST_FOOD_DEX_CASH: - std::sprintf(message, LookupMessage(1239)); + std::sprintf(message, LookupMessage(MSI_ENST_DEX)); break; case EFST_FOOD_INT: case EFST_FOOD_INT_CASH: - std::sprintf(message, LookupMessage(1237)); + std::sprintf(message, LookupMessage(MSI_ENST_INT)); break; case EFST_FOOD_LUK: case EFST_FOOD_LUK_CASH: - std::sprintf(message, LookupMessage(1241)); + std::sprintf(message, LookupMessage(MSI_ENST_LUK)); break; case EFST_FOOD_BASICAVOIDANCE: - std::sprintf(message, LookupMessage(1243)); + std::sprintf(message, LookupMessage(MSI_ENST_AVOIDANCE)); break; case EFST_FOOD_BASICHIT: - std::sprintf(message, LookupMessage(1245)); + std::sprintf(message, LookupMessage(MSI_ENST_HIT)); break; case EFST_FOOD_CRITICALSUCCESSVALUE: - std::sprintf(message, LookupMessage(1247)); + std::sprintf(message, LookupMessage(MSI_ENST_CRITICALSUCCESSVALUE)); break; case EFST_CASH_DEATHPENALTY: - std::sprintf(message, LookupMessage(1250)); + std::sprintf(message, LookupMessage(MSI_DDEATHPENALTY)); break; case EFST_CASH_RECEIVEITEM: - std::sprintf(message, LookupMessage(1251)); + std::sprintf(message, LookupMessage(MSI_RECEIVEITEM)); break; case EFST_CASH_BOSS_ALARM: if (packet->aid == g_session.m_aid) { this->unknown_05CC[0] = 1; } - std::sprintf(message, LookupMessage(1252)); + std::sprintf(message, LookupMessage(MSI_BOSS_ALARM)); break; case EFST_CASH_PLUSONLYJOBEXP: - std::sprintf(message, LookupMessage(1383)); + std::sprintf(message, LookupMessage(MSI_PLUSONLYJOBEXP)); break; case EFST_SUHIDE: if (packet->aid == g_session.m_aid) { @@ -6236,7 +6237,7 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { break; case EFST_ALL_STAT_DOWN: color = 0xFF; - std::sprintf(message, LookupMessage(3247)); + std::sprintf(message, LookupMessage(MSI_ACCOUNTCLASS_INTEGRATION)); break; default: this->RefreshStatusStateEffect(packet->aid); @@ -6262,13 +6263,13 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { case EFST_ATTHASTE_POTION3: case EFST_SPEARQUICKEN: case EFST_ONEHANDQUICKEN: - std::sprintf(message, LookupMessage(464)); + std::sprintf(message, LookupMessage(MSI_DECATTACKSPEED)); break; case EFST_IMPOSITIO: - std::sprintf(message, LookupMessage(3464)); + std::sprintf(message, LookupMessage(MSI_CHECK_ATTENDANCE_DATE_COUNT)); break; case EFST_SUFFRAGIUM: - std::sprintf(message, LookupMessage(468)); + std::sprintf(message, LookupMessage(MSI_NORMALPREDELAY)); break; case EFST_WEAPONPROPERTY: if (packet->aid == g_session.m_aid) { @@ -6281,58 +6282,58 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { } } } - std::sprintf(message, LookupMessage(471)); + std::sprintf(message, LookupMessage(MSI_WEAPONPROPERTYORIGINAL)); break; case EFST_ENCHANTPOISON: case EFST_ASPERSIO: - std::sprintf(message, LookupMessage(471)); + std::sprintf(message, LookupMessage(MSI_WEAPONPROPERTYORIGINAL)); break; case EFST_BENEDICTIO: - std::sprintf(message, LookupMessage(473)); + std::sprintf(message, LookupMessage(MSI_ARMORPROPERTYORIGINAL)); break; case EFST_KYRIE: - std::sprintf(message, LookupMessage(475)); + std::sprintf(message, LookupMessage(MSI_DISAPPEARBARRIOR)); break; case EFST_WEAPONPERFECT: - std::sprintf(message, LookupMessage(477)); + std::sprintf(message, LookupMessage(MSI_DISAPPEARPERFECTDAMAGE)); break; case EFST_OVERTHRUST: case EFST_OVERTHRUSTMAX: - std::sprintf(message, LookupMessage(466)); + std::sprintf(message, LookupMessage(MSI_DECWEAPONATTACK)); break; case EFST_MAXIMIZE: - std::sprintf(message, LookupMessage(481)); + std::sprintf(message, LookupMessage(MSI_DISAPPEARMAXIMIZE)); break; case EFST_DEC_AGI: - std::sprintf(message, LookupMessage(209)); + std::sprintf(message, LookupMessage(MSI_SPEEDUP)); break; case EFST_POISONREACT: - std::sprintf(message, LookupMessage(621)); + std::sprintf(message, LookupMessage(MSI_DSST_POISONREACT)); break; case EFST_QUAGMIRE: - std::sprintf(message, LookupMessage(623)); + std::sprintf(message, LookupMessage(MSI_DSST_QUAGMIRE)); break; case EFST_ANGELUS: - std::sprintf(message, LookupMessage(625)); + std::sprintf(message, LookupMessage(MSI_DSST_ANGELUS)); break; case EFST_BLESSING: - std::sprintf(message, LookupMessage(627)); + std::sprintf(message, LookupMessage(MSI_DSST_BLESSING)); break; case EFST_SLOWPOISON: - std::sprintf(message, LookupMessage(631)); + std::sprintf(message, LookupMessage(MSI_DSST_SLOWPOISON)); break; case EFST_MAGNIFICAT: - std::sprintf(message, LookupMessage(633)); + std::sprintf(message, LookupMessage(MSI_DSST_MAGNIFICAT)); break; case EFST_GLORIA: - std::sprintf(message, LookupMessage(635)); + std::sprintf(message, LookupMessage(MSI_DSST_GLORIA)); break; case EFST_LEXAETERNA: - std::sprintf(message, LookupMessage(637)); + std::sprintf(message, LookupMessage(MSI_DSST_LEXAETERNA)); break; case EFST_ADRENALINE: case EFST_ADRENALINE2: - std::sprintf(message, LookupMessage(639)); + std::sprintf(message, LookupMessage(MSI_DSST_ADRENALINE)); break; case EFST_TRICKDEAD: std::sprintf(message, ""); @@ -6450,10 +6451,10 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { case EFST_BLOCK: break; case EFST_SHOUT: - std::sprintf(message, LookupMessage(647)); + std::sprintf(message, LookupMessage(MSI_DSST_SHOUT)); break; case EFST_ENERGYCOAT: - std::sprintf(message, LookupMessage(649)); + std::sprintf(message, LookupMessage(MSI_DSST_ENERGYCOAT)); break; case EFST_ATTHASTE_INFINITY: if (packet->aid == g_session.m_aid) { @@ -6466,10 +6467,10 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { } } } - std::sprintf(message, LookupMessage(210)); + std::sprintf(message, LookupMessage(MSI_SPEEDDOWN)); break; case EFST_MOVHASTE_POTION: - std::sprintf(message, LookupMessage(210)); + std::sprintf(message, LookupMessage(MSI_SPEEDDOWN)); break; case EFST_INC_AGI: case EFST_MOVHASTE_INFINITY: @@ -6483,7 +6484,7 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { } } } - std::sprintf(message, LookupMessage(210)); + std::sprintf(message, LookupMessage(MSI_SPEEDDOWN)); break; case EFST_ROLLINGCUTTER: if (packet->aid == g_session.m_aid) { @@ -6817,36 +6818,36 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { break; case EFST_FOOD_STR: case EFST_FOOD_STR_CASH: - std::sprintf(message, LookupMessage(1232)); + std::sprintf(message, LookupMessage(MSI_DSST_STR)); break; case EFST_FOOD_AGI: case EFST_FOOD_AGI_CASH: - std::sprintf(message, LookupMessage(1234)); + std::sprintf(message, LookupMessage(MSI_DSST_AGI)); break; case EFST_FOOD_VIT: case EFST_FOOD_VIT_CASH: - std::sprintf(message, LookupMessage(1236)); + std::sprintf(message, LookupMessage(MSI_DSST_VIT)); break; case EFST_FOOD_DEX: case EFST_FOOD_DEX_CASH: - std::sprintf(message, LookupMessage(1240)); + std::sprintf(message, LookupMessage(MSI_DSST_DEX)); break; case EFST_FOOD_INT: case EFST_FOOD_INT_CASH: - std::sprintf(message, LookupMessage(1238)); + std::sprintf(message, LookupMessage(MSI_DSST_INT)); break; case EFST_FOOD_LUK: case EFST_FOOD_LUK_CASH: - std::sprintf(message, LookupMessage(1242)); + std::sprintf(message, LookupMessage(MSI_DSST_LUK)); break; case EFST_FOOD_BASICAVOIDANCE: - std::sprintf(message, LookupMessage(1244)); + std::sprintf(message, LookupMessage(MSI_DSST_AVOIDANCE)); break; case EFST_FOOD_BASICHIT: - std::sprintf(message, LookupMessage(1246)); + std::sprintf(message, LookupMessage(MSI_DSST_HIT)); break; case EFST_FOOD_CRITICALSUCCESSVALUE: - std::sprintf(message, LookupMessage(1248)); + std::sprintf(message, LookupMessage(MSI_DSST_CRITICALSUCCESSVALUE)); break; case EFST_CASH_BOSS_ALARM: if (packet->aid == g_session.m_aid) { @@ -6892,7 +6893,7 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { break; case EFST_ALL_STAT_DOWN: color = 0xFFFF00; - std::sprintf(message, LookupMessage(3248)); + std::sprintf(message, LookupMessage(MSI_ACCOUNTCLASS_RAGNAROK)); break; case EFST_SOULCURSE: if (CEffect* effect = g_effectMgr->Find(packet->aid, 1362)) { @@ -6957,74 +6958,74 @@ void CGameMode::ReceiveStatusChangeNotice(const unsigned char* data) { } break; case EFST_ABYSS_SLAYER: - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3816)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_UNBLOCK_CHAT)); break; case EFST_ULTIMATE_S: - _snprintf_s(message, 256, LookupMessage(3759)); + _snprintf_s(message, 256, LookupMessage(MSI_SHC_SHADOW_EXCEED_ON)); break; case EFST_POWERFUL_FAITH: - _snprintf_s(message, 256, LookupMessage(3727)); + _snprintf_s(message, 256, LookupMessage(MSI_IQ_SINCERE_FAITH_ON)); break; case EFST_FIRM_FAITH: - _snprintf_s(message, 256, LookupMessage(3729)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_BENEDICTUM_ON)); break; case EFST_SINCERE_FAITH: - _snprintf_s(message, 256, LookupMessage(3731)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_RELIGIO_ON)); break; case EFST_BENEDICTUM: - _snprintf_s(message, 256, LookupMessage(3733)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_COMPETENTIA_ON)); break; case EFST_RELIGIO: - _snprintf_s(message, 256, LookupMessage(3735)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_PRESENS_ACIES_ON)); break; case EFST_COMPETENTIA: - _snprintf_s(message, 256, LookupMessage(3737)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_ARGUTUS_TELUM_ON)); break; case EFST_PRE_ACIES: - _snprintf_s(message, 256, LookupMessage(3739)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_ARGUTUS_VITA_ON)); break; case EFST_A_TELUM: - _snprintf_s(message, 256, LookupMessage(3741)); + _snprintf_s(message, 256, LookupMessage(MSI_ITEMNUM_AND_WEIGHT)); break; case EFST_A_VITA: - _snprintf_s(message, 256, LookupMessage(3743)); + _snprintf_s(message, 256, LookupMessage(MSI_DK_CHARGINGPIERCE_OFF)); break; case EFST_CLIMAX: if (CEffect* effect = g_effectMgr->Find(packet->aid, 1800)) { g_effectMgr->Retire(effect, 1); } - _snprintf_s(message, 256, LookupMessage(3761)); + _snprintf_s(message, 256, LookupMessage(MSI_SHC_POTENT_VENOM_ON)); break; case EFST_POTENT_VENOM: - _snprintf_s(message, 256, LookupMessage(3765)); + _snprintf_s(message, 256, LookupMessage(MSI_HUNTING_QUEST_INFO_ON)); break; case EFST_PROTECTSHADOWEQUIP: - _snprintf_s(message, 256, LookupMessage(3783)); + _snprintf_s(message, 256, LookupMessage(MSI_MT_A_MACHINE_ON)); break; case EFST_RESEARCHREPORT: - _snprintf_s(message, 256, LookupMessage(3779)); + _snprintf_s(message, 256, LookupMessage(MSI_BO_ADVANCE_PROTECTION_ON)); break; case EFST_BO_HELL_DUSTY: - _snprintf_s(message, 256, LookupMessage(3785)); + _snprintf_s(message, 256, LookupMessage(MSI_MT_D_MACHINE_ON)); break; case EFST_D_MACHINE: if (CEffect* effect = g_effectMgr->Find(packet->aid, 1817)) { g_effectMgr->Retire(effect, 1); g_effectMgr->Spawn(packet->aid, 1821, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0); } - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3789)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_TR_KVASIR_SONATA_OFF)); break; case EFST_A_MACHINE: - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3787)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_CASHSHOP_TAB_SEARCH)); break; case EFST_MUSICAL_INTERLUDE: - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3800)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_TR_PRON_MARCH_ON)); break; case EFST_SPELL_ENCHANTING: - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3813)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_ABC_ABYSS_SLAYER_OFF)); break; case EFST_ABYSSFORCEWEAPON: - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3814)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_CHARACTER_MAKING_RESTRICT)); break; default: if (CSkillActionMgr::GetInstance()->HasEfstAction(packet->type) == true) { @@ -7078,7 +7079,7 @@ void CGameMode::ReceiveGuildMemberExpelled(const unsigned char* data) { if (std::string(name) == g_session.DecodePlayerName()) { g_guildInfo.m_guildId = 0; g_windowMgr.CloseWindow(WID_GUILDWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(490)), 0xFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BAN_FROM_GUILD)), 0xFF, 4, 0, 0); this->SendMsg(MM_DELETEGUILDPOSALL, 0, 0, 0, 0); return; } @@ -7089,10 +7090,10 @@ void CGameMode::ReceiveGuildMemberExpelled(const unsigned char* data) { char message[1024]; std::memset(message, 0, sizeof(message)); - std::sprintf(message, LookupMessage(370), name); + std::sprintf(message, LookupMessage(MSI_BAN_GUILD), name); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFFFF, 4, 0, 0); std::memset(message, 0, sizeof(message)); - sprintf_s(message, sizeof(message), LookupMessage(371), reason); + sprintf_s(message, sizeof(message), LookupMessage(MSI_REASON_BAN_GUILD), reason); if (g_forbiddenWords.Contains(message) == true) { std::string masked; g_forbiddenWords.Mask(message, &masked); @@ -7172,7 +7173,7 @@ void CGameMode::ReceiveGuildMemberLeft(const unsigned char* data) { if (std::string(name) == g_session.DecodePlayerName()) { guildInfo->Init(); g_windowMgr.CloseWindow(WID_GUILDWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(489)), 0xFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_LEFT_GUILD)), 0xFF, 4, 0, 0); this->scene->player->SetGuildInfo(0, 0); this->SendMsg(MM_DELETEGUILDPOSALL, 0, 0, 0, 0); return; @@ -7183,9 +7184,9 @@ void CGameMode::ReceiveGuildMemberLeft(const unsigned char* data) { } char message[1024]; - std::sprintf(message, LookupMessage(364), name); + std::sprintf(message, LookupMessage(MSI_USER_LEFT_GUILD), name); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFFFF, 4, 0, 0); - sprintf_s(message, sizeof(message), LookupMessage(365), reason); + sprintf_s(message, sizeof(message), LookupMessage(MSI_REASON_LEAVE_GUILD), reason); if (g_forbiddenWords.Contains(message) == true) { std::string masked; g_forbiddenWords.Mask(message, &masked); @@ -7232,7 +7233,7 @@ void CGameMode::ReceiveGuildExpulsion2(const unsigned char* data) { ClearGuildShortcutSkills(); g_guildInfo.m_guildId = 0; g_windowMgr.CloseWindow(WID_GUILDWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(490)), 0xFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BAN_FROM_GUILD)), 0xFF, 4, 0, 0); this->SendMsg(MM_DELETEGUILDPOSALL, 0, 0, 0, 0); if (this->scene != nullptr && this->scene->player != nullptr) { this->scene->player->SetGdid(0); @@ -7247,15 +7248,15 @@ void CGameMode::ReceiveGuildExpulsion2(const unsigned char* data) { std::string name = LookupPlayerName(packet->characterId); if (name.empty()) { - name = LookupMessage(0x245) + g_gameModeNamelessTag; + name = LookupMessage(MSI_NAMELESS_USER) + g_gameModeNamelessTag; } char message[1024]; std::memset(message, 0, sizeof(message)); - std::sprintf(message, LookupMessage(0x172), name.c_str()); + std::sprintf(message, LookupMessage(MSI_BAN_GUILD), name.c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFFFF, 4, 0, 0); std::memset(message, 0, sizeof(message)); - sprintf_s(message, sizeof(message), LookupMessage(0x173), reason); + sprintf_s(message, sizeof(message), LookupMessage(MSI_REASON_BAN_GUILD), reason); if (g_forbiddenWords.Contains(message) == true) { std::string masked; g_forbiddenWords.Mask(message, &masked); @@ -7280,7 +7281,7 @@ void CGameMode::ReceiveGuildLeave2(const unsigned char* data) { ClearGuildShortcutSkills(); guildInfo->Init(); g_windowMgr.CloseWindow(WID_GUILDWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(489)), 0xFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_LEFT_GUILD)), 0xFF, 4, 0, 0); this->scene->player->SetGuildInfo(0, 0); this->SendMsg(MM_DELETEGUILDPOSALL, 0, 0, 0, 0); return; @@ -7297,13 +7298,13 @@ void CGameMode::ReceiveGuildLeave2(const unsigned char* data) { name = LookupPlayerName(packet->characterId); } if (name.empty()) { - name = LookupMessage(0x245) + g_gameModeNamelessTag; + name = LookupMessage(MSI_NAMELESS_USER) + g_gameModeNamelessTag; } char message[1024]; - std::sprintf(message, LookupMessage(0x16C), name.c_str()); + std::sprintf(message, LookupMessage(MSI_USER_LEFT_GUILD), name.c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFFFF, 4, 0, 0); - sprintf_s(message, sizeof(message), LookupMessage(0x16D), reason); + sprintf_s(message, sizeof(message), LookupMessage(MSI_REASON_LEAVE_GUILD), reason); if (g_forbiddenWords.Contains(message) == true) { std::string masked; g_forbiddenWords.Mask(message, &masked); @@ -7655,13 +7656,13 @@ void CGameMode::ProcessWhisper(int unknown_0004, std::string name, std::string t if (g_windowMgr.ShowWhisperFrom(name.c_str(), line.c_str(), 0x222222, static_cast(unknown_0004)) != 0) { if (g_session.unknown_56B8[0] != 0) { char notice[24]; - std::sprintf(notice, LookupMessage(941)); + std::sprintf(notice, LookupMessage(MSI_AUTO_MSG2)); const char length = static_cast(std::strlen(notice)); char head[24]; std::memcpy(head, message.data(), length); head[length] = '\0'; if (std::strcmp(head, notice) != 0) { - std::string reply(LookupMessage(941)); + std::string reply(LookupMessage(MSI_AUTO_MSG2)); reply.append(reinterpret_cast(g_session.unknown_56B8[4]).c_str()); g_windowMgr.SetUnknown04DC(reply.c_str()); g_modeMgr.gameMode->SendMsg(MM_WHISPERMSG, reinterpret_cast(name.c_str()), 0, 0, 0); @@ -7720,11 +7721,11 @@ void CGameMode::ProcessWhisper(int unknown_0004, std::string name, std::string t } else { CSession& lists = g_session; if (lists.IsFriendNameDifferent(name.c_str())) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(917)), 0xFFFF, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(917)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ID_WARNING)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(MSI_ID_WARNING)), 0xFFFF, 0, 0, 0); } else if (lists.IsGuildMemberNameDifferent(name.c_str())) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(919)), 0xFFFF, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(919)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ID_WARNING_GUILD)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(MSI_ID_WARNING_GUILD)), 0xFFFF, 0, 0, 0); } prefix = "( From "; prefix.append(sender); @@ -7764,13 +7765,13 @@ void CGameMode::ProcessWhisper(int unknown_0004, std::string name, std::string t if (g_session.unknown_56B8[0] != 0) { char notice[24]; - std::sprintf(notice, LookupMessage(941)); + std::sprintf(notice, LookupMessage(MSI_AUTO_MSG2)); const char length = static_cast(std::strlen(notice)); char head[24]; std::memcpy(head, message.data(), length); head[length] = '\0'; if (std::strcmp(head, notice) != 0) { - std::string reply(LookupMessage(941)); + std::string reply(LookupMessage(MSI_AUTO_MSG2)); reply.append(reinterpret_cast(g_session.unknown_56B8[4]).c_str()); g_windowMgr.SetUnknown04DC(reply.c_str()); g_modeMgr.gameMode->SendMsg(MM_WHISPERMSG, reinterpret_cast(name.c_str()), 0, 0, 0); @@ -7831,13 +7832,13 @@ void CGameMode::ReceiveStoreResult(unsigned char kind, unsigned char result) { switch (result) { case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2983)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SWAP_EQUIPITEM_EQUIPMENTSET)), 0xFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1954)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_USESKILL_FAIL_THERE_ARE_NPC_AROUND)), 0xFF, 0, 0, 0); break; case 8: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(56)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_OVER_WEIGHT)), 0xFF, 0, 0, 0); break; } diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index bedab9ff3..732fe18bf 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -544,8 +544,8 @@ void CGameMode::ReceiveUnknown05C4Result(const unsigned char* data) { switch (packet->result) { case BOSS_INFO_NOT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1223)), 0xFFFFFF, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(1223)), 0xFFFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOTFIND_BOSSMON)), 0xFFFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(MSI_NOTFIND_BOSSMON)), 0xFFFFFF, 0, 0, 0); return; case BOSS_INFO_ALIVE: case BOSS_INFO_ALIVE_WITHMSG: @@ -554,13 +554,13 @@ void CGameMode::ReceiveUnknown05C4Result(const unsigned char* data) { if (packet->result != 2) { return; } - std::sprintf(message, LookupMessage(1225), name); + std::sprintf(message, LookupMessage(MSI_SHOW_POSITION_OF_BOSSMON), name); break; case BOSS_INFO_DEAD: if (packet->current == 0 && packet->total == 1) { - std::sprintf(message, LookupMessage(1261), name); + std::sprintf(message, LookupMessage(MSI_APPEARANCE_TIME_OF_BOSSMON2), name); } else { - std::sprintf(message, LookupMessage(1224), name, packet->current, packet->total); + std::sprintf(message, LookupMessage(MSI_APPEARANCE_TIME_OF_BOSSMON), name, packet->current, packet->total); } break; default: @@ -591,50 +591,50 @@ void CGameMode::ReceiveNamedActionResult(const unsigned char* packet) { switch (result) { case PARTY_REPLY_JOIN_OTHER_PARTY: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x50)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_IS_ALREADY_IN_PARTY)), 0xFF, 0, 0, 0); break; case PARTY_REPLY_REJECTED: { - const std::string text = name + LookupMessage(0x80C); + const std::string text = name + LookupMessage(MSI_CHARACTER_REJECT_PARTY_INVITATION); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFF, 0, 0, 0); break; } case PARTY_REPLY_ACCEPTED: { - const std::string text = name + LookupMessage(0x80D); + const std::string text = name + LookupMessage(MSI_CHARACTER_ACCEPT_PARTY_INVITATION); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFFFF00, 0, 0, 0); break; } case PARTY_REPLY_FULL: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x53)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TOO_MANY_PEOPLE_IN_PARTY)), 0xFF, 0, 0, 0); break; case PARTY_REPLY_DUAL: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x260)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ALREADY_SAME_AID_JOINED)), 0xFF, 0, 0, 0); break; } switch (result) { case PARTY_REPLY_JOINMSG_REFUSE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x52C)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_JOINMSG_REFUSE)), 0xFF, 0, 0, 0); break; case PARTY_REPLY_OFFLINE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x47)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_IS_NOT_EXIST)), 0xFF, 0, 0, 0); break; case PARTY_REPLY_INVALID_MAPPROPERTY: { char text[256]; - std::sprintf(text, LookupMessage(0x56C), reinterpret_cast(packet + 2)); + std::sprintf(text, LookupMessage(MSI_NOPARTY2), reinterpret_cast(packet + 2)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); break; } case PARTY_REPLY_INVALID_MAPPROPERTY_ME: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x74F)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PREVENT_PARTY_JOIN)), 0xFF, 0, 0, 0); break; case PARTY_REPLY_MEMORIALDUNGEON: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBD3)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MUST_PASSWORD_EXCEED_CHAR)), 0xFF, 0, 0, 0); break; case 11: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xC9A)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MERCHANTSHOP_FAIL_POSITION)), 0xFF, 0, 0, 0); break; case 18: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xE32)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MCSTORE_BACKUP)), 0xFF, 0, 0, 0); break; } } @@ -688,15 +688,15 @@ __declspec(noinline) void CGameMode::ReceiveRentalItemTime(const unsigned char* const char* name = description.identifiedName; const int minutes = static_cast(seconds / 60); if (minutes > 0) { - std::sprintf(text, LookupMessage(1256), name, minutes); + std::sprintf(text, LookupMessage(MSI_NOTICE_TO_REMAIN_ITEMUSINGTIME), name, minutes); } else { - std::sprintf(text, LookupMessage(1270), name, seconds); + std::sprintf(text, LookupMessage(MSI_NOTICE_TO_REMAIN_ITEMUSINGTIME2), name, seconds); } g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(text), 0xFFFF, 0, 0, 0); if (minutes == 1) { - std::sprintf(text, LookupMessage(1257), name); + std::sprintf(text, LookupMessage(MSI_LAST_NOTICE_TO_REMAIN_ITEMUSINGTIME), name); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(text), 0xFFFF, 0, 0, 0); } @@ -1066,15 +1066,15 @@ void CGameMode::ReceiveEquipAck(const unsigned char* packet) { switch (*reinterpret_cast(packet + 2)) { case 0: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(242)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ERR_ATTACK_ARROW)), 0xFF, 0, 0, 0); break; case 1: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(243)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ERR_ATTACK_WEIGHT)), 0xFFFF64, 0, 0, 0); break; case 2: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(244)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ERR_SKILL_WEIGHT)), 0xFFFF64, 0, 0, 0); break; case 3: switch (g_session.GetDisplayJob()) { @@ -1085,16 +1085,16 @@ void CGameMode::ReceiveEquipAck(const unsigned char* packet) { case JT_GUILLOTINE_CROSS_H: case JT_GUILLOTINE_CROSS_B: case JT_SHADOW_CROSS: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1040)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MSG_KNIFE_EQUIPMENT_SUCCESS)), 0xFFFF64, 0, 0, 0); break; case JT_GUNSLINGER: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1175)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MSG_BULLET_EQUIPMENT_SUCCESS)), 0xFFFF64, 0, 0, 0); break; case JT_NINJA: case JT_NINJA_B: break; default: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(245)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MSG_ARROW_EQUIPMENT_SUCCESS)), 0xFFFF64, 0, 0, 0); break; } break; @@ -1415,10 +1415,10 @@ __declspec(noinline) void CGameMode::ReceiveCharViewResult(const unsigned char* return; } case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3009)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_LAST_LOGIN)), 0xFF, 0, 0, 0); return; default: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3040)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PARA_PURCHASE_ITEM_FAIL2)), 0xFF, 0, 0, 0); return; } } @@ -1478,11 +1478,11 @@ __declspec(noinline) void CGameMode::ReceiveMemorialDungeonNotify(const unsigned g_windowMgr.CloseWindow(WID_MEMORIALDUNWND); const int type = *reinterpret_cast(packet + 2); if (type == 1) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1346)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MEMORIAL_DUN_LIVE_TIME_OUT)), 0x64FFFF, 0, 0, 0); } else if (type == 2) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1347)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MEMORIAL_DUN_ENTER_TIME_OUT)), 0x64FFFF, 0, 0, 0); } else if (type == 3) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1348)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MEMORIAL_DUN_DESTROY_REQUEST)), 0x64FFFF, 0, 0, 0); } } @@ -1513,7 +1513,7 @@ __declspec(noinline) void CGameMode::ReceiveMemorialDungeonSubscriptionNotify(co } g_windowMgr.CloseWindow(WID_MEMORIALDUNWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1345)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MEMORIAL_DUN_CANCEL)), 0x64FFFF, 0, 0, 0); } // OFFSET: 0x00D320D0 @@ -1566,17 +1566,17 @@ void CGameMode::Zc_Notify_Exp(const unsigned char* packet) { char buffer[256]; if (data->varId == 1) { - std::sprintf(buffer, LookupMessage(1613), amount); + std::sprintf(buffer, LookupMessage(MSI_NOTIFY_EXP), amount); text += buffer; } else if (data->varId == 2) { - std::sprintf(buffer, LookupMessage(1614), amount); + std::sprintf(buffer, LookupMessage(MSI_NOTIFY_JOBEXP), amount); text += buffer; } if (data->amount >= 0) { - text += LookupMessage(1615); + text += LookupMessage(MSI_GET); } else { - text += LookupMessage(1616); + text += LookupMessage(MSI_LOSS); } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), color, 18, 0, 0); @@ -1789,7 +1789,7 @@ __declspec(noinline) void CGameMode::ReceiveUnknownD79660(const unsigned char* p g_windowMgr.CloseWindow(WID_DEBUFFREMOVEWND); return; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x79B)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CASH_FAILED_BUSY)), 0xFF, 0, 0, 0); return; case 3: window->Show(1); @@ -1807,7 +1807,7 @@ __declspec(noinline) void CGameMode::ReceiveUnknownD79E90(std::int16_t result, s } break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x9D1)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BARGAINSALE_TOOLWND_APPLY_FAILED_MSG)), 0xFF, 0, 0, 0); break; } } @@ -1825,13 +1825,13 @@ __declspec(noinline) void CGameMode::ReceiveRouletteSetResult(const unsigned cha } break; case GENERATE_ROULETTE_FAILED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA4C)), 0x6464FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MERCHANTSHOP_MAKING_FAIL)), 0x6464FF, 0, 0, 0); break; case GENERATE_ROULETTE_NO_ENOUGH_POINT: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA4D)), 0x6464FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_CLOSE_ROULLETTEWND)), 0x6464FF, 0, 0, 0); break; case GENERATE_ROULETTE_LOSING: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA4E)), 0x6464FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ROULLETTE_WND)), 0x6464FF, 0, 0, 0); break; } } @@ -1853,10 +1853,10 @@ __declspec(noinline) void CGameMode::ReceiveDynamicNpcNotice(const unsigned char message = text; break; case DYNAMICNPC_RESULT_DUPLICATE: - message = LookupMessage(0xA47); + message = LookupMessage(MSI_FAILED_GENERATE_ROULLETTE); break; case DYNAMICNPC_RESULT_OUTOFTIME: - message = LookupMessage(0xFA2); + message = LookupMessage(MSI_FAIL_STRIPSHADOW_TO_MADO_NOTICE); break; default: return; @@ -1901,7 +1901,7 @@ void CGameMode::ReceiveWhisperResult(unsigned char kind, int argument) { return; } case ACKWHISPER_TARGET_OFFLINE: { - const std::string text = "(" + this->unknown_022C + ")" + LookupMessage(0x94); + const std::string text = "(" + this->unknown_022C + ")" + LookupMessage(MSI_NOT_EXIST_CHARACTER); if (g_pendingWhisperCount > 0) { --g_pendingWhisperCount; return; @@ -1910,17 +1910,17 @@ void CGameMode::ReceiveWhisperResult(unsigned char kind, int argument) { return; } case ACKWHISPER_IGNORED: { - const std::string text = "(" + this->unknown_022C + ")" + LookupMessage(0x95); + const std::string text = "(" + this->unknown_022C + ")" + LookupMessage(MSI_NO_RECEIVE_MODE); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFFFF, 2, 0, 0); return; } case ACKWHISPER_ALL_IGNORED: { - const std::string text = "(" + this->unknown_022C + ")" + LookupMessage(0x96); + const std::string text = "(" + this->unknown_022C + ")" + LookupMessage(MSI_NO_RECEIVE_MODE_FOR_ALL); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFFFF, 2, 0, 0); return; } default: { - const std::string text = "(" + this->unknown_022C + ")" + LookupMessage(0x94); + const std::string text = "(" + this->unknown_022C + ")" + LookupMessage(MSI_NOT_EXIST_CHARACTER); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFFFF, 2, 0, 0); if (g_session.m_whisperRecord != 0) { this->WriteChatLog(text.c_str()); @@ -1956,13 +1956,13 @@ void __stdcall ProcessVendingSale(int field8, int itemIdWord, int quantityWord, g_session.RemoveItem1758(item); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0xE7), item.DisplayName(0).c_str(), quantity).c_str()), 0xFFFF64, 0, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_ITEM_IS_SOLD), item.DisplayName(0).c_str(), quantity).c_str()), 0xFFFF64, 0, 0, 0 ); if (g_windowMgr.unknown_02F4 != nullptr) { g_windowMgr.unknown_02F4->SendMsg(nullptr, UM_REFRESHITEM, 0, 0, 0, 0); } if (g_session.GetList9Size() == 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x137)), 0xFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_IS_SOLD_OUT)), 0xFF00, 0, 0, 0); if (g_windowMgr.unknown_0304 != nullptr) { g_windowMgr.unknown_0304->SendMsg(nullptr, UM_REFRESHITEM, 0, 0, 0, 0); g_windowMgr.unknown_0304->SendMsg(nullptr, UM_COMMAND, ID_CLOSE, 0, 0, 0); @@ -2184,10 +2184,10 @@ void CGameMode::ReceiveShopItemList( __declspec(noinline) void CGameMode::ReceivePacket0B2E(short result) { switch (result) { case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x442)), 0xff, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RESULT_BUY_FALSE_MONEY)), 0xff, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xe31)), 0xff, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TOOLTIP_OF_OPTIONOFF_BTN)), 0xff, 0, 0, 0); break; } } @@ -2198,11 +2198,11 @@ __declspec(noinline) void CGameMode::ReceiveUnknownD2A1F0(const unsigned char* p switch (*reinterpret_cast(packet + 2)) { case 3: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x6CF)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BUYINGSTORE_TRADE_OVERLIMITZENY)), 0xFF, 0, 0, 0); break; case 4: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x6D0)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BUYINGSTORE_TRADE_BUYCOMPLETE)), 0xFF, 0, 0, 0); break; } @@ -2791,7 +2791,7 @@ __declspec(noinline) void CGameMode::ReceiveUnknownD25850(const unsigned char* p char text[260]; _itoa(*reinterpret_cast(packet + 4), number, 10); const ITEM_DESC& description = FindItemDescription(std::atoi(number)); - std::sprintf(text, LookupMessage(1258), description.identifiedName); + std::sprintf(text, LookupMessage(MSI_NOTICE_TO_DELETE_ITEM), description.identifiedName); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(text), 0xFFFF, 0, 0, 0); @@ -2809,7 +2809,7 @@ __declspec(noinline) void CGameMode::ReceiveUnknownD31A40(const unsigned char* p std::sprintf(text, "%s, %s", text, FindItemDescription(*ids).identifiedName); } - std::sprintf(text, LookupMessage(2087), text); + std::sprintf(text, LookupMessage(MSI_JOINGUILD_NOTEXIST_USER), text); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); } @@ -2853,7 +2853,7 @@ __declspec(noinline) void CGameMode::ReceiveUnknownD2D990(const unsigned char*) if (g_windowMgr.unknown_03F8) { g_windowMgr.CloseWindow(WID_MEMORIALDUNWND); GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(1349), 0, true, true, 0, "Message", 280, 120, 0) != 269) { + if (g_windowMgr.Confirm(LookupMessage(MSI_MEMORIAL_DUN_ERROR), 0, true, true, 0, "Message", 280, 120, 0) != 269) { this->SendMsg(MM_QUIT_TO_IDENTRY, 0, 0, 0, 0); } } @@ -4513,7 +4513,7 @@ __declspec(noinline) void CGameMode::ReceiveOpenStore(const unsigned char* packe return; } - g_windowMgr.Confirm(LookupMessage(587), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_OPEN_STORE_WHILE_CHAT), 0, true, false, 0, "Message", 280, 120, 0); this->SendMsg(MM_REQ_CLOSE_BUYING_STORE, 0, 0, 0, 0); } @@ -4576,11 +4576,11 @@ void CGameMode::ReceiveParChange(unsigned char* data) { break; case SP_MANNER: if (packet->value < 0) { - text = FormatOwnedString(LookupMessage(664), -packet->value); + text = FormatOwnedString(LookupMessage(MSI_BAD_MANNER_REMAIN), -packet->value); const int emotion = g_cashEmotionMgr->GetSpecialEmotion(CashEmotionSpecial::ChatProhibit); this->scene->player->SendMsg(nullptr, AM_CASH_EMOTION, 0, 0, 0, emotion, emotion >> 31, 0, 0, 0, 0, 0, 0, 0, 0); } else { - text = LookupMessage(665); + text = LookupMessage(MSI_BAD_MANNER_END); this->scene->player->SendMsg(nullptr, AM_DELETE_PROHIBITEFFECT, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFFFF, 0, 0, 0); @@ -4589,7 +4589,7 @@ void CGameMode::ReceiveParChange(unsigned char* data) { break; case SP_UNBREAKABLE: if (packet->value < -60) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(858)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PK_HONOR)), 0xFFFF, 0, 0, 0); } break; case SP_HP: @@ -4760,12 +4760,12 @@ void CGameMode::ReceiveParChange(unsigned char* data) { if (oldPercent < percent) { if (percent >= g_unknown173A5BC && oldPercent < g_unknown173A5BC) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - text = FormatOwnedString(LookupMessage(3311), g_unknown173A5BC); + text = FormatOwnedString(LookupMessage(MSI_USA_LOGINERRORMSG_UNKNOWN), g_unknown173A5BC); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFF, 8, 0, 0); } if (percent > 89 && oldPercent < 90) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(307)), 0xFF, 8, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NO_ATTACK_OVERWEIGHT)), 0xFF, 8, 0, 0); } break; } @@ -4774,14 +4774,14 @@ void CGameMode::ReceiveParChange(unsigned char* data) { } if (percent < g_unknown173A5BC && g_unknown173A5BC <= oldPercent) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(308)), 0xFFFF00, 8, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NO_RECOVER_OVERWEIGHT_RELEASED)), 0xFFFF00, 8, 0, 0); } if (percent > 89) { break; } if (oldPercent >= 90) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(309)), 0xFFFF00, 8, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NO_ATTACK_OVERWEIGHT_RELEASED)), 0xFFFF00, 8, 0, 0); } break; } @@ -4803,14 +4803,14 @@ void CGameMode::ReceiveParChange(unsigned char* data) { if (percent < 50) { if (oldPercent > 49) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(308)), 0xFFFF00, 8, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NO_RECOVER_OVERWEIGHT_RELEASED)), 0xFFFF00, 8, 0, 0); } } else if (percent > 89) { break; } if (oldPercent >= 90) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(309)), 0xFFFF00, 8, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NO_ATTACK_OVERWEIGHT_RELEASED)), 0xFFFF00, 8, 0, 0); } break; } @@ -4950,7 +4950,7 @@ void CGameMode::ApplyStatusChange( char name[256]; std::sprintf(name, ""); if (aid != g_session.m_aid) { - std::sprintf(name, LookupMessage(1275), member.name.c_str()); + std::sprintf(name, LookupMessage(MSI_CHARACTER_NAME), member.name.c_str()); } char message[256]; @@ -5046,7 +5046,7 @@ void CGameMode::ApplyStatusChange( case EFST_ATTHASTE_INFINITY: case EFST_SPEARQUICKEN: case EFST_ONEHANDQUICKEN: - std::sprintf(message, LookupMessage(463)); + std::sprintf(message, LookupMessage(MSI_INCATTACKSPEED)); break; case EFST_WHISTLE: case EFST_ASSASSINCROSS: @@ -5232,69 +5232,69 @@ void CGameMode::ApplyStatusChange( } break; case EFST_IMPOSITIO: - std::sprintf(message, LookupMessage(3463)); + std::sprintf(message, LookupMessage(MSI_CHECK_ATTENDANCE_DATE_INFO)); break; case EFST_SUFFRAGIUM: - std::sprintf(message, LookupMessage(467)); + std::sprintf(message, LookupMessage(MSI_FASTPREDELAY)); break; case EFST_ENCHANTPOISON: - std::sprintf(message, LookupMessage(469)); + std::sprintf(message, LookupMessage(MSI_WEAPONPROPERTYPOISON)); break; case EFST_ASPERSIO: case EFST_WEAPONPROPERTY: - std::sprintf(message, LookupMessage(470)); + std::sprintf(message, LookupMessage(MSI_WEAPONPROPERTYSAINT)); break; case EFST_BENEDICTIO: - std::sprintf(message, LookupMessage(472)); + std::sprintf(message, LookupMessage(MSI_ARMORPROPERTYSAINT)); break; case EFST_KYRIE: - std::sprintf(message, LookupMessage(474)); + std::sprintf(message, LookupMessage(MSI_BARRIOR)); break; case EFST_WEAPONPERFECT: - std::sprintf(message, LookupMessage(476)); + std::sprintf(message, LookupMessage(MSI_PERFECTDAMAGE)); break; case EFST_OVERTHRUST: case EFST_OVERTHRUSTMAX: - std::sprintf(message, LookupMessage(465)); + std::sprintf(message, LookupMessage(MSI_INCWEAPONATTACK)); break; case EFST_MAXIMIZE: - std::sprintf(message, LookupMessage(480)); + std::sprintf(message, LookupMessage(MSI_MAXIMIZE)); break; case EFST_INC_AGI: case EFST_MOVHASTE_POTION: case EFST_MOVHASTE_INFINITY: - std::sprintf(message, LookupMessage(209)); + std::sprintf(message, LookupMessage(MSI_SPEEDUP)); break; case EFST_DEC_AGI: - std::sprintf(message, LookupMessage(210)); + std::sprintf(message, LookupMessage(MSI_SPEEDDOWN)); break; case EFST_POISONREACT: - std::sprintf(message, LookupMessage(620)); + std::sprintf(message, LookupMessage(MSI_ENST_POISONREACT)); break; case EFST_QUAGMIRE: - std::sprintf(message, LookupMessage(622)); + std::sprintf(message, LookupMessage(MSI_ENST_QUAGMIRE)); break; case EFST_ANGELUS: - std::sprintf(message, LookupMessage(3435)); + std::sprintf(message, LookupMessage(MSI_CASHSHOP_TAB_PREMIUM_SERVICE)); break; case EFST_BLESSING: - std::sprintf(message, LookupMessage(3434)); + std::sprintf(message, LookupMessage(MSI_CASHSHOP_TAB_EFST_AID)); break; case EFST_SLOWPOISON: - std::sprintf(message, LookupMessage(630)); + std::sprintf(message, LookupMessage(MSI_ENST_SLOWPOISON)); break; case EFST_MAGNIFICAT: - std::sprintf(message, LookupMessage(632)); + std::sprintf(message, LookupMessage(MSI_ENST_MAGNIFICAT)); break; case EFST_GLORIA: - std::sprintf(message, LookupMessage(634)); + std::sprintf(message, LookupMessage(MSI_ENST_GLORIA)); break; case EFST_LEXAETERNA: - std::sprintf(message, LookupMessage(636)); + std::sprintf(message, LookupMessage(MSI_ENST_LEXAETERNA)); break; case EFST_ADRENALINE: case EFST_ADRENALINE2: - std::sprintf(message, LookupMessage(638)); + std::sprintf(message, LookupMessage(MSI_ENST_ADRENALINE)); break; case EFST_TRICKDEAD: std::sprintf(message, ""); @@ -5304,16 +5304,16 @@ void CGameMode::ApplyStatusChange( } break; case EFST_SHOUT: - std::sprintf(message, LookupMessage(3433)); + std::sprintf(message, LookupMessage(MSI_CASHSHOP_TAB_JELLSTAR)); break; case EFST_ENERGYCOAT: - std::sprintf(message, LookupMessage(648)); + std::sprintf(message, LookupMessage(MSI_ENST_ENERGYCOAT)); break; case EFST_BROKENARMOR: - std::sprintf(message, LookupMessage(650)); + std::sprintf(message, LookupMessage(MSI_ENST_BROKENAMOR)); break; case EFST_BROKENWEAPON: - std::sprintf(message, LookupMessage(652)); + std::sprintf(message, LookupMessage(MSI_ENST_BROKENWEAPON)); break; case EFST_CHASEWALK2: if (aid == g_session.m_aid) { @@ -5601,42 +5601,42 @@ void CGameMode::ApplyStatusChange( break; case EFST_FOOD_STR: case EFST_FOOD_STR_CASH: - std::sprintf(message, LookupMessage(1231)); + std::sprintf(message, LookupMessage(MSI_ENST_STR)); break; case EFST_FOOD_AGI: case EFST_FOOD_AGI_CASH: - std::sprintf(message, LookupMessage(1233)); + std::sprintf(message, LookupMessage(MSI_ENST_AGI)); break; case EFST_FOOD_VIT: case EFST_FOOD_VIT_CASH: - std::sprintf(message, LookupMessage(1235)); + std::sprintf(message, LookupMessage(MSI_ENST_VIT)); break; case EFST_FOOD_DEX: case EFST_FOOD_DEX_CASH: - std::sprintf(message, LookupMessage(1239)); + std::sprintf(message, LookupMessage(MSI_ENST_DEX)); break; case EFST_FOOD_INT: case EFST_FOOD_INT_CASH: - std::sprintf(message, LookupMessage(1237)); + std::sprintf(message, LookupMessage(MSI_ENST_INT)); break; case EFST_FOOD_LUK: case EFST_FOOD_LUK_CASH: - std::sprintf(message, LookupMessage(1241)); + std::sprintf(message, LookupMessage(MSI_ENST_LUK)); break; case EFST_FOOD_BASICAVOIDANCE: - std::sprintf(message, LookupMessage(1243)); + std::sprintf(message, LookupMessage(MSI_ENST_AVOIDANCE)); break; case EFST_FOOD_BASICHIT: - std::sprintf(message, LookupMessage(1245)); + std::sprintf(message, LookupMessage(MSI_ENST_HIT)); break; case EFST_FOOD_CRITICALSUCCESSVALUE: - std::sprintf(message, LookupMessage(1247)); + std::sprintf(message, LookupMessage(MSI_ENST_CRITICALSUCCESSVALUE)); break; case EFST_CASH_PLUSEXP: { const int minutes = remaining / 60000; if (minutes > 0) { - const std::string text = FormatOwnedString(LookupMessage(2031), minutes, value1); + const std::string text = FormatOwnedString(LookupMessage(MSI_PLUSEXP_VALUE), minutes, value1); std::strcpy(message, text.c_str()); } else { message[0] = '\0'; @@ -5644,7 +5644,7 @@ void CGameMode::ApplyStatusChange( break; } case EFST_CASH_DEATHPENALTY: - std::sprintf(message, LookupMessage(1250)); + std::sprintf(message, LookupMessage(MSI_DDEATHPENALTY)); break; case EFST_CASH_RECEIVEITEM: { @@ -5652,10 +5652,10 @@ void CGameMode::ApplyStatusChange( if (minutes > 0) { const int hours = minutes / 60; if (hours > 0) { - const std::string text = FormatOwnedString(LookupMessage(2472), hours, minutes % 60, value1); + const std::string text = FormatOwnedString(LookupMessage(MSI_WARNING_PRICE3), hours, minutes % 60, value1); std::strcpy(message, text.c_str()); } else { - const std::string text = FormatOwnedString(LookupMessage(2471), minutes, value1); + const std::string text = FormatOwnedString(LookupMessage(MSI_WARNING_PRICE2), minutes, value1); std::strcpy(message, text.c_str()); } } else { @@ -5667,13 +5667,13 @@ void CGameMode::ApplyStatusChange( if (aid == g_session.m_aid) { this->unknown_05CC[0] = 1; } - std::sprintf(message, LookupMessage(1252)); + std::sprintf(message, LookupMessage(MSI_BOSS_ALARM)); break; case EFST_CASH_PLUSONLYJOBEXP: { const int minutes = remaining / 60000; if (minutes > 0) { - const std::string text = FormatOwnedString(LookupMessage(2462), minutes, value1); + const std::string text = FormatOwnedString(LookupMessage(MSI_BANK_WARNING), minutes, value1); std::strcpy(message, text.c_str()); } else { message[0] = '\0'; @@ -5682,7 +5682,7 @@ void CGameMode::ApplyStatusChange( } case EFST_REWARD_PLUSONLYJOBEXP: { - const std::string text = FormatOwnedString(LookupMessage(1924), value2, value1 / 100.0 + 1.0); + const std::string text = FormatOwnedString(LookupMessage(MSI_PLUSONLYJOBEXP2), value2, value1 / 100.0 + 1.0); std::sprintf(message, text.c_str()); break; } @@ -5745,7 +5745,7 @@ void CGameMode::ApplyStatusChange( break; case EFST_ALL_STAT_DOWN: color = 0xFF; - std::sprintf(message, LookupMessage(3247)); + std::sprintf(message, LookupMessage(MSI_ACCOUNTCLASS_INTEGRATION)); break; case EFST_SOULCURSE: g_effectMgr->Spawn(aid, 1362, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0); @@ -5797,68 +5797,68 @@ void CGameMode::ApplyStatusChange( break; } case EFST_POWERFUL_FAITH: - _snprintf_s(message, 256, LookupMessage(3726)); + _snprintf_s(message, 256, LookupMessage(MSI_IQ_FIRM_FAITH_OFF)); break; case EFST_FIRM_FAITH: - _snprintf_s(message, 256, LookupMessage(3728)); + _snprintf_s(message, 256, LookupMessage(MSI_IQ_SINCERE_FAITH_OFF)); break; case EFST_SINCERE_FAITH: - _snprintf_s(message, 256, LookupMessage(3730)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_BENEDICTUM_OFF)); break; case EFST_BENEDICTUM: - _snprintf_s(message, 256, LookupMessage(3732)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_RELIGIO_OFF)); break; case EFST_RELIGIO: - _snprintf_s(message, 256, LookupMessage(3734)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_COMPETENTIA_OFF)); break; case EFST_COMPETENTIA: - _snprintf_s(message, 256, LookupMessage(3736)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_PRESENS_ACIES_OFF)); break; case EFST_PRE_ACIES: - _snprintf_s(message, 256, LookupMessage(3738)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_ARGUTUS_TELUM_OFF)); break; case EFST_A_TELUM: - _snprintf_s(message, 256, LookupMessage(3740)); + _snprintf_s(message, 256, LookupMessage(MSI_CD_ARGUTUS_VITA_OFF)); break; case EFST_A_VITA: - _snprintf_s(message, 256, LookupMessage(3742)); + _snprintf_s(message, 256, LookupMessage(MSI_DK_SERVANTWEAPON_OFF)); break; case EFST_ULTIMATE_S: - _snprintf_s(message, 256, LookupMessage(3758)); + _snprintf_s(message, 256, LookupMessage(MSI_AG_CLIMAX_OFF)); break; case EFST_CLIMAX: - _snprintf_s(message, 256, LookupMessage(3760)); + _snprintf_s(message, 256, LookupMessage(MSI_SHC_SHADOW_EXCEED_OFF)); break; case EFST_POTENT_VENOM: - _snprintf_s(message, 256, LookupMessage(3764)); + _snprintf_s(message, 256, LookupMessage(MSI_SHC_ENCHANTING_SHADOW_OFF)); break; case EFST_PROTECTSHADOWEQUIP: - _snprintf_s(message, 256, LookupMessage(3782)); + _snprintf_s(message, 256, LookupMessage(MSI_BO_HELLTREE_OFF)); break; case EFST_RESEARCHREPORT: - _snprintf_s(message, 256, LookupMessage(3778)); + _snprintf_s(message, 256, LookupMessage(MSI_BO_BIONIC_PHARMACY_FAIL)); break; case EFST_BO_HELL_DUSTY: - _snprintf_s(message, 256, LookupMessage(3784)); + _snprintf_s(message, 256, LookupMessage(MSI_MT_A_MACHINE_OFF)); break; case EFST_D_MACHINE: - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3788)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_TR_KVASIR_SONATA_ON)); break; case EFST_A_MACHINE: - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3786)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_MT_D_MACHINE_OFF)); break; case EFST_MUSICAL_INTERLUDE: - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3799)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_TR_JAWAII_SERENADE_OFF)); break; case EFST_WINDSIGN: color = 0xFF; - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3807)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_THAI_PERSONALINFO_DROP2)); break; case EFST_ABYSS_SLAYER: - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3815)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_BAN_THAI_GGT_RESTRICTED_MAKE_CHAR)); break; case EFST_SPELL_ENCHANTING: - StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(3812)); + StringFormat(message, 256, static_cast(-1), "%s", LookupMessage(MSI_ABC_ABYSS_SLAYER_ON)); break; default: if (CSkillActionMgr::GetInstance()->HasEfstAction(type) != true) { @@ -5894,65 +5894,65 @@ void CGameMode::ApplyStatusChange( case EFST_ATTHASTE_POTION3: case EFST_SPEARQUICKEN: case EFST_ONEHANDQUICKEN: - std::sprintf(message, LookupMessage(464)); + std::sprintf(message, LookupMessage(MSI_DECATTACKSPEED)); break; case EFST_IMPOSITIO: - std::sprintf(message, LookupMessage(3464)); + std::sprintf(message, LookupMessage(MSI_CHECK_ATTENDANCE_DATE_COUNT)); break; case EFST_SUFFRAGIUM: - std::sprintf(message, LookupMessage(468)); + std::sprintf(message, LookupMessage(MSI_NORMALPREDELAY)); break; case EFST_ENCHANTPOISON: case EFST_ASPERSIO: case EFST_WEAPONPROPERTY: - std::sprintf(message, LookupMessage(471)); + std::sprintf(message, LookupMessage(MSI_WEAPONPROPERTYORIGINAL)); break; case EFST_BENEDICTIO: - std::sprintf(message, LookupMessage(473)); + std::sprintf(message, LookupMessage(MSI_ARMORPROPERTYORIGINAL)); break; case EFST_KYRIE: - std::sprintf(message, LookupMessage(475)); + std::sprintf(message, LookupMessage(MSI_DISAPPEARBARRIOR)); break; case EFST_WEAPONPERFECT: - std::sprintf(message, LookupMessage(477)); + std::sprintf(message, LookupMessage(MSI_DISAPPEARPERFECTDAMAGE)); break; case EFST_OVERTHRUST: case EFST_OVERTHRUSTMAX: - std::sprintf(message, LookupMessage(466)); + std::sprintf(message, LookupMessage(MSI_DECWEAPONATTACK)); break; case EFST_MAXIMIZE: - std::sprintf(message, LookupMessage(481)); + std::sprintf(message, LookupMessage(MSI_DISAPPEARMAXIMIZE)); break; case EFST_DEC_AGI: - std::sprintf(message, LookupMessage(209)); + std::sprintf(message, LookupMessage(MSI_SPEEDUP)); break; case EFST_POISONREACT: - std::sprintf(message, LookupMessage(621)); + std::sprintf(message, LookupMessage(MSI_DSST_POISONREACT)); break; case EFST_QUAGMIRE: - std::sprintf(message, LookupMessage(623)); + std::sprintf(message, LookupMessage(MSI_DSST_QUAGMIRE)); break; case EFST_ANGELUS: - std::sprintf(message, LookupMessage(625)); + std::sprintf(message, LookupMessage(MSI_DSST_ANGELUS)); break; case EFST_BLESSING: - std::sprintf(message, LookupMessage(627)); + std::sprintf(message, LookupMessage(MSI_DSST_BLESSING)); break; case EFST_SLOWPOISON: - std::sprintf(message, LookupMessage(631)); + std::sprintf(message, LookupMessage(MSI_DSST_SLOWPOISON)); break; case EFST_MAGNIFICAT: - std::sprintf(message, LookupMessage(633)); + std::sprintf(message, LookupMessage(MSI_DSST_MAGNIFICAT)); break; case EFST_GLORIA: - std::sprintf(message, LookupMessage(635)); + std::sprintf(message, LookupMessage(MSI_DSST_GLORIA)); break; case EFST_LEXAETERNA: - std::sprintf(message, LookupMessage(637)); + std::sprintf(message, LookupMessage(MSI_DSST_LEXAETERNA)); break; case EFST_ADRENALINE: case EFST_ADRENALINE2: - std::sprintf(message, LookupMessage(639)); + std::sprintf(message, LookupMessage(MSI_DSST_ADRENALINE)); break; case EFST_TRICKDEAD: std::sprintf(message, ""); @@ -5962,10 +5962,10 @@ void CGameMode::ApplyStatusChange( } break; case EFST_SHOUT: - std::sprintf(message, LookupMessage(647)); + std::sprintf(message, LookupMessage(MSI_DSST_SHOUT)); break; case EFST_ENERGYCOAT: - std::sprintf(message, LookupMessage(649)); + std::sprintf(message, LookupMessage(MSI_DSST_ENERGYCOAT)); break; case EFST_ATTHASTE_INFINITY: case EFST_INC_AGI: @@ -5980,10 +5980,10 @@ void CGameMode::ApplyStatusChange( } } } - std::sprintf(message, LookupMessage(210)); + std::sprintf(message, LookupMessage(MSI_SPEEDDOWN)); break; case EFST_MOVHASTE_POTION: - std::sprintf(message, LookupMessage(210)); + std::sprintf(message, LookupMessage(MSI_SPEEDDOWN)); break; case EFST_SUMMON1: case EFST_SUMMON2: @@ -6331,36 +6331,36 @@ void CGameMode::ApplyStatusChange( break; case EFST_FOOD_STR: case EFST_FOOD_STR_CASH: - std::sprintf(message, LookupMessage(1232)); + std::sprintf(message, LookupMessage(MSI_DSST_STR)); break; case EFST_FOOD_AGI: case EFST_FOOD_AGI_CASH: - std::sprintf(message, LookupMessage(1234)); + std::sprintf(message, LookupMessage(MSI_DSST_AGI)); break; case EFST_FOOD_VIT: case EFST_FOOD_VIT_CASH: - std::sprintf(message, LookupMessage(1236)); + std::sprintf(message, LookupMessage(MSI_DSST_VIT)); break; case EFST_FOOD_DEX: case EFST_FOOD_DEX_CASH: - std::sprintf(message, LookupMessage(1240)); + std::sprintf(message, LookupMessage(MSI_DSST_DEX)); break; case EFST_FOOD_INT: case EFST_FOOD_INT_CASH: - std::sprintf(message, LookupMessage(1238)); + std::sprintf(message, LookupMessage(MSI_DSST_INT)); break; case EFST_FOOD_LUK: case EFST_FOOD_LUK_CASH: - std::sprintf(message, LookupMessage(1242)); + std::sprintf(message, LookupMessage(MSI_DSST_LUK)); break; case EFST_FOOD_BASICAVOIDANCE: - std::sprintf(message, LookupMessage(1244)); + std::sprintf(message, LookupMessage(MSI_DSST_AVOIDANCE)); break; case EFST_FOOD_BASICHIT: - std::sprintf(message, LookupMessage(1246)); + std::sprintf(message, LookupMessage(MSI_DSST_HIT)); break; case EFST_FOOD_CRITICALSUCCESSVALUE: - std::sprintf(message, LookupMessage(1248)); + std::sprintf(message, LookupMessage(MSI_DSST_CRITICALSUCCESSVALUE)); break; case EFST_CASH_BOSS_ALARM: if (aid == g_session.m_aid) { @@ -6380,7 +6380,7 @@ void CGameMode::ApplyStatusChange( break; case EFST_ALL_STAT_DOWN: color = 0xFFFF00; - std::sprintf(message, LookupMessage(3247)); + std::sprintf(message, LookupMessage(MSI_ACCOUNTCLASS_INTEGRATION)); break; case EFST_SOULCURSE: { @@ -6519,7 +6519,7 @@ __declspec(noinline) void CGameMode::ReceiveObjectsDisappear(int count, const st __declspec(noinline) void CGameMode::ReceiveWindow107List(const unsigned char* packet) { const std::int64_t count = (*reinterpret_cast(packet + 2) - 4) / sizeof(Window107Entry); if (count == 0) { - g_windowMgr.Confirm(LookupMessage(424), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_MAKE_ITEM), 0, true, false, 0, "Message", 280, 120, 0); return; } @@ -6568,12 +6568,12 @@ __declspec(noinline) void CGameMode::ReceiveWearEquipAck(unsigned char result, s break; } case ITEM_EQUIP_ACK_FAILLEVEL: { - const char* text = LookupMessage(1953); + const char* text = LookupMessage(MSI_CAN_NOT_EQUIP_ITEM_FORBID); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 7, 0, 0); break; } case ITEM_EQUIP_ACK_FAIL: { - const char* text = LookupMessage(372); + const char* text = LookupMessage(MSI_CAN_NOT_EQUIP_ITEM); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 7, 0, 0); break; } @@ -6593,7 +6593,7 @@ __declspec(noinline) void CGameMode::ReceiveFormattedMessage(const unsigned char item.SetItemId(*reinterpret_cast(packet + 4)); int capacity = sizeof(name); item.GetIdDisplayName(name, capacity, 0); - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(3278), name); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_HOMUN_SELF_FEEDING_REST), name); } else { std::sprintf(text, LookupMessage(messageId), *reinterpret_cast(packet + 4)); } @@ -6639,7 +6639,7 @@ __declspec(noinline) void CGameMode::ReceiveParaItemResult(unsigned char success window->SendMsg(nullptr, UM_SETTITLE, (count - 2 > 0 ? count : 0) * 32 + 120, 0, 0, 0); window->SendMsg(nullptr, UM_REFRESHITEM, 0, 0, 0, 0); if (!success) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3043)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RULE)), 0xFF, 0, 0, 0); } } @@ -6691,7 +6691,7 @@ __declspec(noinline) void CGameMode::OpenBuyingStoreMake(unsigned char slotCount return; } - g_windowMgr.Confirm(LookupMessage(587), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_OPEN_STORE_WHILE_CHAT), 0, true, false, 0, "Message", 280, 120, 0); this->SendMsg(MM_CANCEL_BUYING_STORE_MAKE, 0, 0, 0, 0); } @@ -6722,7 +6722,7 @@ __declspec(noinline) void CGameMode::OpenVendingMake(unsigned char slotCount, in return; } - g_windowMgr.Confirm(LookupMessage(587), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_OPEN_STORE_WHILE_CHAT), 0, true, false, 0, "Message", 280, 120, 0); this->SendMsg(MM_CANCEL_VENDING_MAKE, 0, 0, 0, 0); } @@ -6736,7 +6736,7 @@ __declspec(noinline) void CGameMode::ReceiveAgitNotice(unsigned char agitId, int char text[256] = {}; const char* agitName = nullptr; g_session.m_hotkeyScript->Call("get_agit_name", "d>s", agitId, &agitName); - sprintf_s(text, LookupMessage(3632), agitName, second, 100, first, 100); + sprintf_s(text, LookupMessage(MSI_BAN_IP_BLOCK_FOR_ZERO), agitName, second, 100, first, 100); g_windowMgr.Confirm(text, 0, true, false, 0, "Message", 250, 130, 0); } @@ -6831,7 +6831,7 @@ __declspec(noinline) void CGameMode::ReceiveTakeOffEquipResult(unsigned char res } break; case 1: { - const char* text = LookupMessage(1953); + const char* text = LookupMessage(MSI_CAN_NOT_EQUIP_ITEM_FORBID); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 7, 0, 0); break; } @@ -6898,7 +6898,7 @@ void CGameMode::ReceiveHomunculusChange(const unsigned char* packet) { // FUNCTION: fn_21683 __declspec(noinline) void CGameMode::ReceiveItemConsumed(const unsigned char* packet) { if (g_windowMgr.unknown_0458) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2734)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_FRIEND_ADD__ALREADY_REQUEST)), 0x64FFFF, 0, 0, 0); g_modeMgr.GetGameMode()->SendMsg(MM_CANCEL_WRITE_RODEX, 0, 0, 0, 0); g_windowMgr.CloseWindow(WID_RODEXCOMPOSEWND); } @@ -6931,7 +6931,7 @@ __declspec(noinline) void CGameMode::ReceivePartyLeaderChange(const unsigned cha g_session.SetPartyLeader(*reinterpret_cast(packet + 2), 1); g_session.SetPartyLeader(*reinterpret_cast(packet + 6), 0); g_session.unknown_5464 = *reinterpret_cast(packet + 6) == g_session.m_aid; - std::sprintf(text, LookupMessage(1552), member.name.c_str()); + std::sprintf(text, LookupMessage(MSI_NOTIFY_PARTY_ROLE_MASTER), member.name.c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 12, 0, 0); RefreshPartyWindows(&g_session); if (g_windowMgr.unknown_03F8) { @@ -6949,7 +6949,7 @@ __declspec(noinline) void CGameMode::ReceiveItemSellResult(const unsigned char* ITEM_INFO item = LookupClientItemByIdentity(g_session.m_inventoryItems, *reinterpret_cast(packet + 2)); g_windowMgr.SendNotice( UIM_PUSHINTOCHATHISTORY, - reinterpret_cast(FormatOwnedString(LookupMessage(1746), item.DisplayName(0).c_str(), count, price * count).c_str()), + reinterpret_cast(FormatOwnedString(LookupMessage(MSI_BUYINGSTORE_TRADE_SELLCOMPLETE), item.DisplayName(0).c_str(), count, price * count).c_str()), 0xFFFF64, 0, 0, 0 ); g_session.RemoveItem1710( @@ -7063,14 +7063,14 @@ void CGameMode::ReceiveBuyingStoreOpenResult(const unsigned char* packet) { switch (*reinterpret_cast(packet + 2)) { case 1: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1741)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BUYINGSTORE_OPEN_FAILED)), 0xFF, 0, 0, 0); g_session.ClearItems1768(); g_windowMgr.CloseWindow(WID_MERCHANTSHOPMAKEWND_MODE_1); g_windowMgr.CloseWindow(WID_MERCHANTMIRRORITEMWND_MODE_1); break; case 2: std::sprintf( - text, LookupMessage(1742), + text, LookupMessage(MSI_BUYINGSTORE_OVERWEIGHT), static_cast( static_cast(*reinterpret_cast(packet + 4) / 10 + g_session.m_weight) - static_cast(g_session.m_maxWeight) * 0.9f ) @@ -7079,11 +7079,11 @@ void CGameMode::ReceiveBuyingStoreOpenResult(const unsigned char* packet) { break; case 9: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1797)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAIL_OPEN_STORE)), 0xFF, 0, 0, 0); break; case 10: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3229)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CONNECT_SNS_FAIL_SEND)), 0xFF, 0, 0, 0); g_session.ClearItems1768(); g_windowMgr.CloseWindow(WID_MERCHANTSHOPMAKEWND_MODE_1); g_windowMgr.CloseWindow(WID_MERCHANTMIRRORITEMWND_MODE_1); @@ -7101,22 +7101,22 @@ void CGameMode::ReceiveItemObtainNotice(const unsigned char* packet) { switch (*reinterpret_cast(packet + 2)) { case MSG_WEAPONREFINE_SUCCESS: g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(911), item.DisplayName(0).c_str()).c_str()), 0xFFFF00, 0, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_ITEM_REFINE_SUCCEESS), item.DisplayName(0).c_str()).c_str()), 0xFFFF00, 0, 0, 0 ); break; case MSG_WEAPONREFINE_FAIL: g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(912), item.DisplayName(0).c_str()).c_str()), 0xCDCD00, 0, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_ITEM_REFINE_FAIL), item.DisplayName(0).c_str()).c_str()), 0xCDCD00, 0, 0, 0 ); break; case MSG_WEAPONREFINE_FAIL_LEVEL: g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(913), item.DisplayName(0).c_str()).c_str()), 0xC8C8FF, 0, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_ITEM_REFINE_FAIL_LEVEL), item.DisplayName(0).c_str()).c_str()), 0xC8C8FF, 0, 0, 0 ); break; case MSG_WEAPONREFINE_FAIL_ITEM: g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(914), item.DisplayName(0).c_str()).c_str()), 0xC8C8FF, 0, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_ITEM_REFINE_FAIL_MATERIAL), item.DisplayName(0).c_str()).c_str()), 0xC8C8FF, 0, 0, 0 ); break; } @@ -7134,14 +7134,14 @@ __declspec(noinline) void CGameMode::ReceiveTakeOffEquipItemResult(const unsigne } else { g_session.UnequipItem61B8(item); } - const char* suffix = LookupMessage(3144); + const char* suffix = LookupMessage(MSI_CHINESE_CHARACTER); g_windowMgr.SendNotice( UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s%s", item.DisplayName(0).c_str(), suffix).c_str()), 0xC8FF00, 7, 0, 0 ); break; } case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3009)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_LAST_LOGIN)), 0xFF, 0, 0, 0); if (g_session.IsCostumeLocation(*reinterpret_cast(packet + 4))) { g_session.UnequipItem6B68(item); } else { @@ -7157,19 +7157,19 @@ void CGameMode::ReceiveBuyingStoreSellResult(const unsigned char* packet) { switch (*reinterpret_cast(packet + 2)) { case 5: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(57)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DEAL_FAIL)), 0xFF, 0, 0, 0); break; case 6: { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); ITEM_INFO item = LookupClientItem(g_session.m_inventoryItems, *reinterpret_cast(packet + 4), 0); g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(1747), item.DisplayName(0).c_str()).c_str()), 0xFF, 0, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_BUYINGSTORE_TRADE_OVERCOUNT), item.DisplayName(0).c_str()).c_str()), 0xFF, 0, 0, 0 ); break; } case 7: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1745)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BUYINGSTORE_TRADE_LACKBUYERZENY)), 0xFF, 0, 0, 0); break; } @@ -7282,7 +7282,7 @@ __declspec(noinline) void CGameMode::ReceivePartyItemPickupNotice(const unsigned item.unknown_0060 = packet[0x0C]; g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(1276), member.name.c_str(), item.DisplayName(0).c_str()).c_str()), + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_ITEM_PICKUP_PARTY), member.name.c_str(), item.DisplayName(0).c_str()).c_str()), 0xFFFF00, 9, 0, 0 ); } @@ -7615,9 +7615,9 @@ void CGameMode::ReceiveAddQuest64(const unsigned char* data) { const int mobId = hunt.mobId; if ((mobId < 1001 || mobId > 3998) && static_cast(mobId - 20021) > 11978) { if (mobId == 0x1099) { - StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(3558)); + StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(MSI_INVENTORY_EXTEND)); } else if (mobId == 0x109A) { - StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(3559)); + StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(MSI_INVENTORY_EXTEND_FAILED)); } else if (mobId == 0x287B) { const std::string mapName = FormatOwnedString("%s.rsw", hunt.name); StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", g_session.GetMapDisplayName(mapName.c_str())); @@ -7632,7 +7632,7 @@ void CGameMode::ReceiveAddQuest64(const unsigned char* data) { g_renewQuestMgr->AddOngoingQuest(packet->questId, info); g_renewQuestMgr->UpdateQuestWindows(); g_windowMgr.EnsureWindow(WID_NOTIFYQUESTWND); - const char* text = LookupMessage(0x55E); + const char* text = LookupMessage(MSI_QUESTGET); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 0x13, 0, 0); } @@ -7668,9 +7668,9 @@ void CGameMode::ReceiveAddQuest(const unsigned char* data) { const int mobId = hunt.mobId; if ((mobId < 1001 || mobId > 3998) && static_cast(mobId - 20021) > 11978) { if (mobId == 0x1099) { - StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(3558)); + StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(MSI_INVENTORY_EXTEND)); } else if (mobId == 0x109A) { - StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(3559)); + StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", LookupMessage(MSI_INVENTORY_EXTEND_FAILED)); } else if (mobId == 0x287B) { const std::string mapName = FormatOwnedString("%s.rsw", hunt.name); StringFormat(info.m_huntName[i], 0x33, static_cast(-1), "%s", g_session.GetMapDisplayName(mapName.c_str())); @@ -7685,7 +7685,7 @@ void CGameMode::ReceiveAddQuest(const unsigned char* data) { g_renewQuestMgr->AddOngoingQuest(packet->questId, info); g_renewQuestMgr->UpdateQuestWindows(); g_windowMgr.EnsureWindow(WID_NOTIFYQUESTWND); - const char* text = LookupMessage(0x55E); + const char* text = LookupMessage(MSI_QUESTGET); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 0x13, 0, 0); } @@ -7757,50 +7757,50 @@ void CGameMode::ReceiveNotifyBan(const unsigned char* packet) { std::string text; switch (code) { case BAN_UNFAIR: - text = text + LookupMessage(3) + "(" + IntToString(0, 0) + ")"; + text = text + LookupMessage(MSI_BANNED) + "(" + IntToString(0, 0) + ")"; break; case BAN_SERVER_SHUTDOWN: - text = text + LookupMessage(4) + "(" + IntToString(1, 0) + ")"; + text = text + LookupMessage(MSI_SERVER_OFF) + "(" + IntToString(1, 0) + ")"; break; case BAN_ANOTHER_LOGIN: - text = text + LookupMessage(5) + "(" + IntToString(2, 0) + ")"; + text = text + LookupMessage(MSI_DOUBLE_LOGIN_PROHIBITED) + "(" + IntToString(2, 0) + ")"; break; case BAN_DETECTED_SPEEDHACK: - text = text + LookupMessage(241) + "(" + IntToString(3, 0) + ")"; + text = text + LookupMessage(MSI_SPEEDHACK) + "(" + IntToString(3, 0) + ")"; break; case BAN_PC_OVERFLOW: - text = text + LookupMessage(264) + "(" + IntToString(4, 0) + ")"; + text = text + LookupMessage(MSI_PC_OVERFLOW) + "(" + IntToString(4, 0) + ")"; break; case BAN_UNDER_AGE: - text = text + LookupMessage(305) + "(" + IntToString(5, 0) + ")"; + text = text + LookupMessage(MSI_UNDER_AGE) + "(" + IntToString(5, 0) + ")"; break; case BAN_IP_OVERFLOW: - text = text + LookupMessage(529) + "(" + IntToString(9, 0) + ")"; + text = text + LookupMessage(MSI_BAN_IP_OVERFLOW) + "(" + IntToString(9, 0) + ")"; break; case BAN_PAY_OUT: - text = text + LookupMessage(530) + "(" + IntToString(10, 0) + ")"; + text = text + LookupMessage(MSI_BAN_PAY_OUT) + "(" + IntToString(10, 0) + ")"; break; case BAN_OP_FORCE: if (g_serviceType == 4) { - text = text + LookupMessage(579) + "(" + IntToString(15, 0) + ")"; + text = text + LookupMessage(MSI_BAN_OP_FORCE) + "(" + IntToString(15, 0) + ")"; } break; case 110: - text = text + LookupMessage(1589) + "(" + IntToString(110, 0) + ")"; + text = text + LookupMessage(MSI_BAN_NOT_ALLOWED_JOBCLASS) + "(" + IntToString(110, 0) + ")"; break; case 113: - text = text + LookupMessage(2021) + "(" + IntToString(113, 0) + ")"; + text = text + LookupMessage(MSI_BAN_SHUTDOWN_TEENAGER) + "(" + IntToString(113, 0) + ")"; break; case 115: - text = text + LookupMessage(2347) + "(" + IntToString(115, 0) + ")"; + text = text + LookupMessage(MSI_MENU_REPLAYWND) + "(" + IntToString(115, 0) + ")"; break; default: - text = text + LookupMessage(3) + "(" + IntToString(code, 0) + ")"; + text = text + LookupMessage(MSI_BANNED) + "(" + IntToString(code, 0) + ")"; break; } if (text.size() == 0) { - text = LookupMessage(0x718); + text = LookupMessage(MSI_RESULT_FAIL_UNKNOWN); } g_windowMgr.Confirm(text.c_str(), 0, true, true, 0, "Message", 280, 120, 0); this->SendMsg(MM_QUIT, 0, 0, 0, 0); @@ -8295,7 +8295,7 @@ void CGameMode::ReceiveItemPickupAck2(const unsigned char* data) { g_session.AddItem1710(item, 1); g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 ); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); @@ -8344,7 +8344,7 @@ void CGameMode::ReceiveItemPickupAck2(const unsigned char* data) { if (current.unknown_0000[1] > 0) { amount -= current.quantity; } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); window->SendMsg(nullptr, UM_SET_IDENTIFIY_INFO, item.identified, 0, 0, 0); @@ -8394,7 +8394,7 @@ void CGameMode::ReceiveItemPickupAck3(const unsigned char* data) { g_session.AddItem1710(item, 1); g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 ); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); @@ -8447,7 +8447,7 @@ void CGameMode::ReceiveItemPickupAck3(const unsigned char* data) { if (current.unknown_0000[1] > 0) { amount -= current.quantity; } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); window->SendMsg(nullptr, UM_SET_IDENTIFIY_INFO, item.identified, 0, 0, 0); @@ -8497,7 +8497,7 @@ void CGameMode::ReceiveItemPickupAck(const unsigned char* data) { g_session.AddItem1710(item, 1); g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 ); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); @@ -8544,10 +8544,10 @@ void CGameMode::ReceiveItemPickupAck(const unsigned char* data) { std::string text; int amount; if (current.unknown_0000[1] > 0) { - text = FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), packet->amount - current.quantity); + text = FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), packet->amount - current.quantity); amount = packet->amount - current.quantity; } else { - text = FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), packet->amount); + text = FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), packet->amount); amount = packet->amount; } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFFFF00, 6, 0, 0); @@ -8607,7 +8607,7 @@ void CGameMode::ReceiveItemPickupAck5( } g_session.AddItem1710(item, 1); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); window->SendMsg(nullptr, UM_SET_IDENTIFIY_INFO, item.identified, 0, 0, 0); @@ -8669,7 +8669,7 @@ void CGameMode::ReceiveItemPickupAck5( if (current.unknown_0000[1] > 0) { count -= current.quantity; } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), count).c_str()), 0xFFFF00, 6, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), count).c_str()), 0xFFFF00, 6, 0, 0); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); window->SendMsg(nullptr, UM_SET_IDENTIFIY_INFO, item.identified, 0, 0, 0); @@ -8728,7 +8728,7 @@ void CGameMode::ReceiveItemPickupAck7(const unsigned char* data) { g_session.AddItem1710(item, 1); g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 ); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); @@ -8788,7 +8788,7 @@ void CGameMode::ReceiveItemPickupAck7(const unsigned char* data) { if (current.unknown_0000[1] > 0) { amount -= current.quantity; } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); window->SendMsg(nullptr, UM_SET_IDENTIFIY_INFO, item.identified, 0, 0, 0); @@ -8825,16 +8825,16 @@ void CGameMode::ReceiveEquipItemDamaged(const unsigned char* packet) { if (member.valid) { switch (location) { case EQP_HAND_L: - text = FormatOwnedString(LookupMessage(0x515), member.name.c_str(), LookupMessage(0x109A)); + text = FormatOwnedString(LookupMessage(MSI_DAMAGED_EQUIP_PARTY), member.name.c_str(), LookupMessage(0x109A)); break; case EQP_HAND_R: - text = FormatOwnedString(LookupMessage(0x515), member.name.c_str(), LookupMessage(0x109B)); + text = FormatOwnedString(LookupMessage(MSI_DAMAGED_EQUIP_PARTY), member.name.c_str(), LookupMessage(0x109B)); break; case EQP_ARMOR: - text = FormatOwnedString(LookupMessage(0x515), member.name.c_str(), LookupMessage(0x517)); + text = FormatOwnedString(LookupMessage(MSI_DAMAGED_EQUIP_PARTY), member.name.c_str(), LookupMessage(MSI_DAMAGED_BODY)); break; case EQP_HEAD_TOP: - text = FormatOwnedString(LookupMessage(0x515), member.name.c_str(), LookupMessage(0x10CB)); + text = FormatOwnedString(LookupMessage(MSI_DAMAGED_EQUIP_PARTY), member.name.c_str(), LookupMessage(0x10CB)); break; } } @@ -8842,7 +8842,7 @@ void CGameMode::ReceiveEquipItemDamaged(const unsigned char* packet) { const EquipSlots slots = g_session.GetEquipSlots(location); ITEM_INFO item = g_session.GetItem17F0(slots.values[2]); if (item.unknown_0000[1] != 0) { - text = FormatOwnedString(LookupMessage(0x514), item.DisplayName(0).c_str()); + text = FormatOwnedString(LookupMessage(MSI_DAMAGED_EQUIP), item.DisplayName(0).c_str()); } } @@ -9013,11 +9013,11 @@ void CGameMode::ReceiveFeedResult(const unsigned char* data) { item.SetItemId(packet->itemId); int capacity = sizeof(name); item.GetIdDisplayName(name, capacity, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0xA12), name, count).c_str()), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_REFRESH), name, count).c_str()), 0xFFFF64, 0, 0, 0); } else { ITEM_INFO item; item.SetItemId(packet->itemId); - const std::string text = FormatOwnedString(LookupMessage(0x24F), item.DisplayName(0).c_str()); + const std::string text = FormatOwnedString(LookupMessage(MSI_NOT_EXIST_PET_FOOD), item.DisplayName(0).c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0x1E1EF5, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(text.c_str()), 0x1E1EF5, 0, 0, 0); } @@ -9032,11 +9032,11 @@ void CGameMode::ReceiveFeedResult(const unsigned char* data) { item.SetItemId(packet->itemId); int capacity = sizeof(name); item.GetIdDisplayName(name, capacity, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0xCD1), name, count).c_str()), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_HOMUN_SELF_FEEDING_EXP_INFORMATION), name, count).c_str()), 0xFFFF64, 0, 0, 0); } else { ITEM_INFO item; item.SetItemId(packet->itemId); - const std::string text = FormatOwnedString(LookupMessage(0x24F), item.DisplayName(0).c_str()); + const std::string text = FormatOwnedString(LookupMessage(MSI_NOT_EXIST_PET_FOOD), item.DisplayName(0).c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0x1E1EF5, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(text.c_str()), 0x1E1EF5, 0, 0, 0); if (CRenderObject* actor = this->scene->GetGameActorByAID(*reinterpret_cast(&g_session.unknown_5570[8]))) { @@ -9085,7 +9085,7 @@ void CGameMode::ReceivePetChangeState(const unsigned char* data) { window->UpdateFriendlyGauge(); } if (g_session.GetDisplayJob() >= 0xFD2 && g_session.GetDisplayJob() <= 0xFD4 && packet->value < 100 && g_session.unknown_1044 < 30) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x4A4)), 0x3232FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PET_STARVING)), 0x3232FF, 0, 0, 0); } if (friendlyState != g_session.GetPetFriendlyState(g_session.m_petFriendly)) { EquipmentProperties::CEquipmentPropertiesMgr* properties = EquipmentProperties::CEquipmentPropertiesMgr::GetInstance(); @@ -9161,7 +9161,7 @@ void CGameMode::ReceivePetChangeState(const unsigned char* data) { break; case 7: if (g_serviceOptions.Get(0x128) == 1) { - g_windowMgr.AddMessageBox(LookupMessage(0x10F8), 0, true, 0, 0, LookupMessage(0xDF6), 0x118, 0x78, nullptr, false); + g_windowMgr.AddMessageBox(LookupMessage(0x10F8), 0, true, 0, 0, LookupMessage(MSI_SHOW_NAME_OF_ENTERED_MAP), 0x118, 0x78, nullptr, false); } break; } @@ -9266,34 +9266,34 @@ void CGameMode::ReceiveSkillFailure(const unsigned char* data) { if (packet->skillId == NV_BASIC) { switch (packet->value) { case ZCSK_ITEMEXCHANGE: - notice = LookupMessage(0x9F); + notice = LookupMessage(MSI_NOT_ENOUGH_SKILLLEVE1); break; case ZCSK_EMOTION: this->unknown_026E[0x16] = 0; - notice = LookupMessage(0xA0); + notice = LookupMessage(MSI_NOT_ENOUGH_SKILLLEVE2); break; case ZCSK_SIT: - notice = LookupMessage(0xA1); + notice = LookupMessage(MSI_NOT_ENOUGH_SKILLLEVE3); break; case ZCSK_CHAT: - notice = LookupMessage(0xA2); + notice = LookupMessage(MSI_NOT_ENOUGH_SKILLLEVE4); break; case ZCSK_PARTY: - notice = LookupMessage(0xA3); + notice = LookupMessage(MSI_NOT_ENOUGH_SKILLLEVE5); break; case ZCSK_SHOUT: - notice = LookupMessage(0xA4); + notice = LookupMessage(MSI_NOT_ENOUGH_SKILLLEVE6); break; case ZCSK_PK: - notice = LookupMessage(0xA5); + notice = LookupMessage(MSI_NOT_ENOUGH_SKILLLEVE7); break; case ZCSK_MANNERPOINT: { - const char* text = LookupMessage(0x17F); + const char* text = LookupMessage(MSI_NOT_ENOUGH_FOR_MANNER_POINT); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0xB, 0, 0); } [[fallthrough]]; case ZCSK_JOINPARTY: - notice = LookupMessage(0x518); + notice = LookupMessage(MSI_NOT_ENOUGH_SKILLLEVE5_2); break; default: return; @@ -9301,53 +9301,53 @@ void CGameMode::ReceiveSkillFailure(const unsigned char* data) { } else { switch (packet->skillId) { case AL_WARP: - notice = LookupMessage(0xD6); + notice = LookupMessage(MSI_NOTENOUGHSKILLLEVEL); break; case TF_STEAL: - notice = LookupMessage(0xCD); + notice = LookupMessage(MSI_FAIL_STEAL); break; case TF_POISON: - notice = LookupMessage(0xCF); + notice = LookupMessage(MSI_FAIL_POISON); break; default: if (!showMessage) { return; } - notice = LookupMessage(0xCC); + notice = LookupMessage(MSI_NOT_ENOUGH_SKILLLEVE8); break; } } break; case USESKILL_FAIL_SP_INSUFFICIENT: - notice = LookupMessage(0xCA); + notice = LookupMessage(MSI_USESKILL_FAIL_SP_INSUFFICIENT); break; case USESKILL_FAIL_HP_INSUFFICIENT: - notice = LookupMessage(0xCB); + notice = LookupMessage(MSI_USESKILL_FAIL_HP_INSUFFICIENT); break; case USESKILL_FAIL_STUFF_INSUFFICIENT: - notice = LookupMessage(0x328); + notice = LookupMessage(MSI_NOT_ENOUGH_SOURCE); break; case USESKILL_FAIL_SKILLINTERVAL: if (HidesUseFailureMessage(packet->skillId) || !showMessage) { return; } - std::sprintf(text, LookupMessage(0x5B4), CSkillInfo::DisplayName(*g_session.m_hotkeyScript, packet->skillId)); + std::sprintf(text, LookupMessage(MSI_SKILLINTERVAL2), CSkillInfo::DisplayName(*g_session.m_hotkeyScript, packet->skillId)); notice = text; break; case USESKILL_FAIL_MONEY: - notice = LookupMessage(0xE9); + notice = LookupMessage(MSI_SKILL_FAIL_MONEY); break; case USESKILL_FAIL_THIS_WEAPON: - notice = LookupMessage(0xEF); + notice = LookupMessage(MSI_USESKILL_FAIL_NOT_SUITABLE_WEAPON); break; case USESKILL_FAIL_REDJAMSTONE: - notice = LookupMessage(0xF6); + notice = LookupMessage(MSI_NEED_REDJAMSTONE); break; case USESKILL_FAIL_BLUEJAMSTONE: - notice = LookupMessage(0xF7); + notice = LookupMessage(MSI_NEED_BLUEJAMSTONE); break; case USESKILL_FAIL_WEIGHTOVER: - notice = LookupMessage(0x244); + notice = LookupMessage(MSI_USESKILL_FAIL_WEIGHTOVER); break; case USESKILL_FAIL: if (packet->skillId == WL_TETRAVORTEX || packet->skillId == WL_TETRAVORTEX_FIRE || packet->skillId == WL_TETRAVORTEX_WATER || packet->skillId == WL_TETRAVORTEX_WIND || packet->skillId == WL_TETRAVORTEX_GROUND) { @@ -9359,120 +9359,120 @@ void CGameMode::ReceiveSkillFailure(const unsigned char* data) { if (!showMessage) { return; } - notice = LookupMessage(0x11D); + notice = LookupMessage(MSI_USESKILL_FAIL); break; case USESKILL_FAIL_TOTARGET: - notice = LookupMessage(0x574); + notice = LookupMessage(MSI_USESKILL_FAIL_TOTARGET); break; case USESKILL_FAIL_ANCILLA_NUMOVER: - notice = LookupMessage(0x575); + notice = LookupMessage(MSI_USESKILL_FAIL_ANCILLA_NUMOVER); break; case USESKILL_FAIL_HOLYWATER: - notice = LookupMessage(0x576); + notice = LookupMessage(MSI_USESKILL_FAIL_HOLYWATER); break; case USESKILL_FAIL_ANCILLA: - notice = LookupMessage(0x577); + notice = LookupMessage(MSI_USESKILL_FAIL_ANCILLA); break; case USESKILL_FAIL_DUPLICATE_RANGEIN: - notice = LookupMessage(0x578); + notice = LookupMessage(MSI_USESKILL_FAIL_DUPLICATE_RANGEIN); break; case USESKILL_FAIL_NEED_OTHER_SKILL: - notice = LookupMessage(0x579); + notice = LookupMessage(MSI_USESKILL_FAIL_NEED_OTHER_SKILL); break; case USESKILL_FAIL_NEED_HELPER: - notice = LookupMessage(0x583); + notice = LookupMessage(MSI_USESKILL_FAIL_NEED_HELPER); break; case USESKILL_FAIL_INVALID_DIR: - notice = LookupMessage(0x584); + notice = LookupMessage(MSI_USESKILL_FAIL_INVALID_DIR); break; case USESKILL_FAIL_SUMMON: - notice = LookupMessage(0x585); + notice = LookupMessage(MSI_USESKILL_FAIL_SUMMON); break; case USESKILL_FAIL_SUMMON_NONE: - notice = LookupMessage(0x586); + notice = LookupMessage(MSI_USESKILL_FAIL_SUMMON_NONE); break; case USESKILL_FAIL_IMITATION_SKILL_NONE: - notice = LookupMessage(0x587); + notice = LookupMessage(MSI_USESKILL_FAIL_IMITATION_SKILL_NONE); break; case USESKILL_FAIL_DUPLICATE: - notice = LookupMessage(0x588); + notice = LookupMessage(MSI_USESKILL_FAIL_DUPLICATE); break; case USESKILL_FAIL_CONDITION: - notice = LookupMessage(0x589); + notice = LookupMessage(MSI_USESKILL_FAIL_CONDITION); break; case USESKILL_FAIL_PAINTBRUSH: - notice = LookupMessage(0x591); + notice = LookupMessage(MSI_USESKILL_FAIL_PAINTBRUSH); break; case USESKILL_FAIL_DRAGON: - notice = LookupMessage(0x748); + notice = LookupMessage(MSI_USESKILL_FAIL_DRAGON); break; case USESKILL_FAIL_POS: - notice = LookupMessage(0x593); + notice = LookupMessage(MSI_USESKILL_FAIL_POS); break; case USESKILL_FAIL_HELPER_SP_INSUFFICIENT: - notice = LookupMessage(0x594); + notice = LookupMessage(MSI_USESKILL_FAIL_HELPER_SP_INSUFFICIENT); break; case USESKILL_FAIL_NEER_WALL: - notice = LookupMessage(0x789); + notice = LookupMessage(MSI_USESKILL_FAIL_NEER_WALL); break; case USESKILL_FAIL_NEED_EXP_1PERCENT: - notice = LookupMessage(0x78C); + notice = LookupMessage(MSI_USESKILL_FAIL_NEED_EXP_1PERCENT); break; case USESKILL_FAIL_CHORUS_SP_INSUFFICIENT: - notice = LookupMessage(0x791); + notice = LookupMessage(MSI_USESKILL_FAIL_CHORUS_SP_INSUFFICIENT); break; case USESKILL_FAIL_GC_WEAPONBLOCKING: - notice = LookupMessage(0x599); + notice = LookupMessage(MSI_USESKILL_FAIL_GC_WEAPONBLOCKING); break; case USESKILL_FAIL_GC_POISONINGWEAPON: - notice = LookupMessage(0x59A); + notice = LookupMessage(MSI_USESKILL_FAIL_GC_POISONINGWEAPON); break; case USESKILL_FAIL_MADOGEAR: - notice = LookupMessage(0x59B); + notice = LookupMessage(MSI_USESKILL_FAIL_MADOGEAR); break; case USESKILL_FAIL_NEED_EQUIPMENT_KUNAI: - notice = LookupMessage(0x79C); + notice = LookupMessage(MSI_USESKILL_FAIL_NEED_EQUIPMENT_KUNAI); break; case USESKILL_FAIL_TOTARGET_PLAYER: - notice = LookupMessage(0x7A0); + notice = LookupMessage(MSI_USESKILL_FAIL_TOTARGET_PLAYER); break; case USESKILL_FAIL_SIZE: - notice = LookupMessage(0x79F); + notice = LookupMessage(MSI_USESKILL_FAIL_SIZE); break; case USESKILL_FAIL_CANONBALL: - notice = LookupMessage(0x59F); + notice = LookupMessage(MSI_USESKILL_FAIL_CANONBALL); break; case USESKILL_FAIL_MADOGEAR_HOVERING: - notice = LookupMessage(0x5AA); + notice = LookupMessage(MSI_USESKILL_FAIL_MADOGEAR_HOVERING); break; case USESKILL_FAIL_GUILLONTINE_POISON: - notice = LookupMessage(0x5AD); + notice = LookupMessage(MSI_USESKILL_FAIL_GUILLONTINE_POISON); break; case USESKILL_FAIL_MADOGEAR_RIDE: - notice = LookupMessage(0x5B6); + notice = LookupMessage(MSI_USESKILL_FAIL_MADOGEAR_RIDE); break; case USESKILL_FAIL_SPELLBOOK: - notice = LookupMessage(0x5C2); + notice = LookupMessage(MSI_USESKILL_FAIL_SPELLBOOK); break; case USESKILL_FAIL_SPELLBOOK_DIFFICULT_SLEEP: - notice = LookupMessage(0x5C3); + notice = LookupMessage(MSI_USESKILL_FAIL_SPELLBOOK_DIFFICULT_SLEEP); break; case USESKILL_FAIL_SPELLBOOK_PRESERVATION_POINT: - notice = LookupMessage(0x5C4); + notice = LookupMessage(MSI_USESKILL_FAIL_SPELLBOOK_PRESERVATION_POINT); break; case USESKILL_FAIL_SPELLBOOK_READING: - notice = LookupMessage(0x5C5); + notice = LookupMessage(MSI_USESKILL_FAIL_SPELLBOOK_READING); break; case USESKILL_FAIL_CART: - notice = LookupMessage(0x5EF); + notice = LookupMessage(MSI_USESKILL_FAIL_CART); break; case USESKILL_FAIL_NO_MORE_SPELL: - notice = LookupMessage(0x5F2); + notice = LookupMessage(MSI_USESKILL_FAIL_NO_MORE_SPELL); break; case USESKILL_FAIL_NEED_ITEM: { ITEM_INFO item; item.SetItemId(packet->itemId); - const std::string message = FormatOwnedString(LookupMessage(0x600), item.DisplayName(0).c_str(), packet->value); + const std::string message = FormatOwnedString(LookupMessage(MSI_USESKILL_FAIL_NEED_ITEM), item.DisplayName(0).c_str(), packet->value); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0xFF, 0xB, 0, 0); return; } @@ -9480,75 +9480,75 @@ void CGameMode::ReceiveSkillFailure(const unsigned char* data) { ITEM_INFO item; item.SetItemId(packet->itemId); item.identified = 1; - const std::string message = FormatOwnedString(LookupMessage(0x602), item.DisplayName(0).c_str()); + const std::string message = FormatOwnedString(LookupMessage(MSI_USESKILL_FAIL_NEED_EQUIPMENT), item.DisplayName(0).c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0xFF, 0xB, 0, 0); return; } case USESKILL_FAIL_COMBOSKILL: if (packet->value == 0) { - std::sprintf(text, LookupMessage(0x618)); + std::sprintf(text, LookupMessage(MSI_USESKILL_FAIL_COMBOSKILL2)); } else { - std::sprintf(text, LookupMessage(0x617), CSkillInfo::DisplayName(*g_session.m_hotkeyScript, packet->value)); + std::sprintf(text, LookupMessage(MSI_USESKILL_FAIL_COMBOSKILL), CSkillInfo::DisplayName(*g_session.m_hotkeyScript, packet->value)); } notice = text; break; case USESKILL_FAIL_SPIRITS: if (packet->value == 0) { - std::sprintf(text, LookupMessage(0x61A)); + std::sprintf(text, LookupMessage(MSI_USESKILL_FAIL_SPIRITS2)); } else { - std::sprintf(text, LookupMessage(0x619), packet->value); + std::sprintf(text, LookupMessage(MSI_USESKILL_FAIL_SPIRITS), packet->value); } notice = text; break; case USESKILL_FAIL_NEED_EQUIPPED_WEAPON_CLASS: { const int reason = packet->value; if (reason == 0x15) { - notice = LookupMessage(0xA01); + notice = LookupMessage(MSI_GUILD_STORAGE_WARNING); } else if (reason == 0x11) { - notice = LookupMessage(0x9FD); + notice = LookupMessage(MSI_MERCHANT_ITEM_BUY_LOG); } else if (reason == 0x12) { - notice = LookupMessage(0x9FC); + notice = LookupMessage(MSI_MERCHANT_SOLD_ITEM_LOG); } else if (reason == 0x14) { - notice = LookupMessage(0x9FB); + notice = LookupMessage(MSI_FAIL_NEED_EQUIPPED_PROPERTY_SAINT_BULLET); } else if (reason == 0x13) { - notice = LookupMessage(0x9FA); + notice = LookupMessage(MSI_FAIL_NEED_EQUIPPED_GUN_HANDGUN); } else if (reason == 0xB) { - notice = LookupMessage(0x69B); + notice = LookupMessage(MSI_FAIL_NEED_EQUIPPED_BOW); } else if (reason == 0xD || reason == 0xE) { - notice = LookupMessage(0x69C); + notice = LookupMessage(MSI_FAIL_NEED_EQUIPPED_INSTRUMENT_WHIP); } else if (reason == 4) { - notice = LookupMessage(0x747); + notice = LookupMessage(MSI_FAIL_NEED_EQUIPPED_SPEAR); } else if (reason == 0x16) { - notice = LookupMessage(0x7CA); + notice = LookupMessage(MSI_FAIL_NEED_EQUIPPED_SYURIKEN); } else { return; } break; } case USESKILL_FAIL_EL_SUMMON: - notice = LookupMessage(0x6D4); + notice = LookupMessage(MSI_USESKILL_FAIL_EL_SUMMON); break; case USESKILL_FAIL_RELATIONGRADE: - notice = LookupMessage(0x71F); + notice = LookupMessage(MSI_USESKILL_FAIL_RELATIONGRADE); break; case USESKILL_FAIL_STYLE_CHANGE_FIGHTER: - notice = LookupMessage(0x720); + notice = LookupMessage(MSI_USESKILL_FAIL_STYLE_CHANGE_FIGHTER); break; case USESKILL_FAIL_STYLE_CHANGE_GRAPPLER: - notice = LookupMessage(0x721); + notice = LookupMessage(MSI_USESKILL_FAIL_STYLE_CHANGE_GRAPPLER); break; case USESKILL_FAIL_THERE_ARE_NPC_AROUND: - notice = LookupMessage(0x7A2); + notice = LookupMessage(MSI_USESKILL_FAIL_THERE_ARE_NPC_AROUND); break; case USESKILL_FAIL_NEED_MORE_BULLET: - notice = LookupMessage(0x9A2); + notice = LookupMessage(MSI_STEAMAGENCY_ERROR); break; case USESKILL_FAIL_COINS: std::memset(text, 0, sizeof(text)); if (packet->value > 0) { - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(0x9F9), packet->value); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_FAIL_NEED_EQUIPPED_GUN_RIFLE), packet->value); } else { - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(0x9F8)); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_FAIL_NEED_EQUIPPED_GUN_SHOTGUN)); } notice = text; break; @@ -9556,101 +9556,101 @@ void CGameMode::ReceiveSkillFailure(const unsigned char* data) { notice = LookupMessage(packet->value); break; case USESKILL_FAIL_MAP: - notice = LookupMessage(0xA03); + notice = LookupMessage(MSI_SECOND_PASSWORD_INFO_4); break; case USESKILL_FAIL_NEED_SUMMON_SP: - notice = LookupMessage(0xA42); + notice = LookupMessage(MSI_SET_ITEMS_TO_MAIL_FAILED); break; case USESKILL_FAIL_SAME_VEND: - notice = LookupMessage(0xBA6); + notice = LookupMessage(MSI_FAILED_PET_AUTO_FEEDING_CLOSE_RODEX); break; case USESKILL_FAIL_NEED_BULLETS: { - const std::string message = FormatOwnedString(LookupMessage(0xBB5), packet->value); + const std::string message = FormatOwnedString(LookupMessage(MSI_SWAP_EQUIPITEM_FAIL_CASTING), packet->value); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0xFF, 0xB, 0, 0); return; } case USESKILL_FAIL_NEED_ARROWS: { - const std::string message = FormatOwnedString(LookupMessage(0xBBE), packet->value); + const std::string message = FormatOwnedString(LookupMessage(MSI_SWAP_EQUIPITEM_FAIL_NO_ITEM), packet->value); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0xFF, 0xB, 0, 0); return; } case USESKILL_FAIL_NEED_PARTY: { - const std::string message = FormatOwnedString(LookupMessage(0xD82), packet->value); + const std::string message = FormatOwnedString(LookupMessage(MSI_CANNOT_OFFER_GUILD_EXP_MAX_LEVEL), packet->value); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0xFF, 0xB, 0, 0); return; } case USESKILL_FAIL_NEED_PARTY_LEADER: - notice = LookupMessage(0xD9A); + notice = LookupMessage(MSI_STORE_ASSISTANT_TRADE_FORCED_REMOVAL_CONTENT); break; case USESKILL_FAIL_NEED_PARTNER_SP: - notice = LookupMessage(0xD9B); + notice = LookupMessage(MSI_CAN_NOT_OFFER_EXP_LIMIT_RATE); break; case USESKILL_FAIL_NEED_WEAPON: - notice = LookupMessage(0xDC9); + notice = LookupMessage(MSI_DRAW_EMBLEM_FRAME_ONOFF); break; case USESKILL_FAIL_NEED_ENERGY_SPHERE: - notice = LookupMessage(0xDCA); + notice = LookupMessage(MSI_USESKILL_FAIL_GC_WEAPONBLOCK_ON); break; case USESKILL_FAIL_NEED_WEAPON_BLOCKING: - notice = LookupMessage(0xDCD); + notice = LookupMessage(MSI_RUSSIA_PERSONALINFO_DROP); break; case USESKILL_FAIL_MAX_TRAPS: { - const std::string message = FormatOwnedString(LookupMessage(0xE00), packet->value); + const std::string message = FormatOwnedString(LookupMessage(MSI_EMBLEM_REGIST_FAILED_INCORRECT_SIZE), packet->value); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0xFF, 0xB, 0, 0); return; } case USESKILL_FAIL_NEED_MAGIC_SPELLBOOK: - notice = LookupMessage(0xE14); + notice = LookupMessage(MSI_USE_WORLDMAP_WITH_PERIOD_MSG3); break; case USESKILL_FAIL_AP_INSUFFICIENT: - notice = LookupMessage(0xE3B); + notice = LookupMessage(MSI_LAPINE_WARNING_HAS_CARD_OR_ENCHANTED); break; case USESKILL_FAIL_NEED_SERVANT_WEAPON: { - const std::string message = FormatOwnedString(LookupMessage(0xEBD), packet->value); + const std::string message = FormatOwnedString(LookupMessage(MSI_CHANGE_MATERIAL_SEARCHTEXT), packet->value); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0xFF, 0xB, 0, 0); return; } case USESKILL_FAIL_NEED_TWINKLING_GALAXY: - notice = LookupMessage(0xF75); + notice = LookupMessage(MSI_USESKILL_FAIL_NEED_GATLING_OR_SHOTGUN); break; case USESKILL_FAIL_NEED_SOUL_ENGERY: - notice = LookupMessage(0xF76); + notice = LookupMessage(MSI_USESKILL_FAIL_NEED_RIFLE_OR_HANDGUN); break; case USESKILL_FAIL_NEED_AMULET: - notice = LookupMessage(0xF77); + notice = LookupMessage(MSI_USESKILL_FAIL_NEED_GRANADE_OR_RIFLE); break; case USESKILL_FAIL_NEED_GATLING_SHOTGUT: - notice = LookupMessage(0xF78); + notice = LookupMessage(MSI_USESKILL_FAIL_NEED_GATLING_OR_HANDGUN); break; case USESKILL_FAIL_NEED_RIFLE_REVOLVER: - notice = LookupMessage(0xF79); + notice = LookupMessage(MSI_USESKILL_FAIL_NEED_SHOTGUN_OR_GRANADE); break; case USESKILL_FAIL_NEED_GLAUNCHER_RIFLE: - notice = LookupMessage(0xF7A); + notice = LookupMessage(MSI_USESKILL_FAIL_NEED_SHIELD_WEAPON); break; case USESKILL_FAIL_NEED_GATLING_REVOLVER: - notice = LookupMessage(0xF7B); + notice = LookupMessage(MSI_CLOSE_BANKING_FOR_EXPANDED_BARTERMARKET); break; case USESKILL_FAIL_NEED_SHOTGUN_GLAUNCHER: - notice = LookupMessage(0xF7C); + notice = LookupMessage(MSI_CANNOT_OPEN_BANKING_DURING_EXPANDED_BARTERMARKET); break; case USESKILL_FAIL_NEED_SHIELD: - notice = LookupMessage(0xF7D); + notice = LookupMessage(MSI_FAIL_NO_SPACE_BEHIND_THE_TARGET); break; case USESKILL_FAIL_TARGET_SHADOW_SPACE: - notice = LookupMessage(0xF80); + notice = LookupMessage(MSI_PACKAGEITEM_BURROWFAIL); break; case USESKILL_FAIL_MAX: - notice = LookupMessage(0xF93); + notice = LookupMessage(MSI_DAMAGE_EQUIPMENT_TOOLTIP); break; case 113: - notice = LookupMessage(0xFA4); + notice = LookupMessage(MSI_MACRO_REPORTER_SELECT_MODE_QUIZ); break; case 114: - notice = LookupMessage(0xFA5); + notice = LookupMessage(MSI_MACRO_REPORTER_TOOLTIP_MAP); break; case 115: - notice = LookupMessage(0x1061); + notice = LookupMessage(MSI_ERRORPOPUP_DETAIL); break; case 116: case 117: @@ -9805,7 +9805,7 @@ void CGameMode::ReceiveItemPickupAck8(const unsigned char* data) { g_session.AddItem1710(item, 1); g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 ); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); @@ -9868,7 +9868,7 @@ void CGameMode::ReceiveItemPickupAck8(const unsigned char* data) { if (current.unknown_0000[1] > 0) { amount -= current.quantity; } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); window->SendMsg(nullptr, UM_SET_IDENTIFIY_INFO, item.identified, 0, 0, 0); @@ -9930,7 +9930,7 @@ void CGameMode::ReceiveItemPickupAck9(const unsigned char* data) { g_session.AddItem1710(item, 1); g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), packet->amount).c_str()), 0xFFFF00, 6, 0, 0 ); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); @@ -10001,7 +10001,7 @@ void CGameMode::ReceiveItemPickupAck9(const unsigned char* data) { if (current.unknown_0000[1] != 0) { amount -= current.quantity; } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x99), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); UIWindow* window = g_windowMgr.EnsureWindow(WID_NOTIFYITEMOBTAINWND); window->SendMsg(nullptr, UM_SET_IDENTIFIY_INFO, item.identified, 0, 0, 0); @@ -10127,12 +10127,12 @@ void CGameMode::ReceiveEffectNumber(const unsigned char* data) { if (previous > 10) { if (count <= 10) { char text[260]; - std::sprintf(text, LookupMessage(0x246), g_session.DecodePlayerName(), count); + std::sprintf(text, LookupMessage(MSI_RANK_IN_TEN), g_session.DecodePlayerName(), count); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 0, 0, 0); } } else if (count > 10) { char text[260]; - std::sprintf(text, LookupMessage(0x247), g_session.DecodePlayerName(), count); + std::sprintf(text, LookupMessage(MSI_RANK_OUT_TEN), g_session.DecodePlayerName(), count); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 0, 0, 0); } CPlayer* player = this->scene->player; @@ -10226,7 +10226,7 @@ void CGameMode::ReceiveGuildBanList2(const unsigned char* data) { entry.name = LookupPlayerName(entry.characterId); entry.unknown_0034 = reason; if (entry.name.size() == 0) { - entry.name = LookupMessage(0x245) + g_gameModeNamelessTag; + entry.name = LookupMessage(MSI_NAMELESS_USER) + g_gameModeNamelessTag; } if (entry.characterId != 0) { guildInfo->unknown_00EC.push_back(entry); @@ -10260,7 +10260,7 @@ void CGameMode::ReceiveGuildBanList3(const unsigned char* data) { } entry.name = LookupPlayerName(entry.characterId); if (entry.name.size() == 0) { - entry.name = LookupMessage(0x245) + g_gameModeNamelessTag; + entry.name = LookupMessage(MSI_NAMELESS_USER) + g_gameModeNamelessTag; } if (entry.characterId != 0) { guildInfo->unknown_00EC.push_back(entry); @@ -10452,7 +10452,7 @@ void CGameMode::ReceiveActorDisappear(const unsigned char* data) { this->SendMsg(MM_PET_ACT, action, 0, 0, 0); } if (g_serviceType == 4) { - g_windowMgr.Confirm(LookupMessage(0x2B7), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PRESS_ESC_TO_RESTART), 0, true, false, 0, "Message", 280, 120, 0); } else if (!g_windowMgr.CloseWindow(WID_ESCOPTIONWND)) { g_windowMgr.EnsureWindow(WID_ESCOPTIONWND); } @@ -10600,7 +10600,7 @@ void CGameMode::ReceiveGuildInfo3(const unsigned char* data) { std::string masterName = LookupPlayerName(packet->masterCharacterId); if (masterName.size() == 0) { - masterName = LookupMessage(0x245) + g_gameModeNamelessTag; + masterName = LookupMessage(MSI_NAMELESS_USER) + g_gameModeNamelessTag; } char guildName[25]; @@ -10648,7 +10648,7 @@ void CGameMode::ReceiveGuildInfo4(const unsigned char* data) { } g_guildInfo.unknown_0018 = LookupPlayerName(packet->masterCharacterId); if (g_guildInfo.unknown_0018.size() == 0) { - g_guildInfo.unknown_0018 = LookupMessage(0x245) + g_gameModeNamelessTag; + g_guildInfo.unknown_0018 = LookupMessage(MSI_NAMELESS_USER) + g_gameModeNamelessTag; } char guildName[25]; @@ -10801,7 +10801,7 @@ void CGameMode::ReceiveGuildMemberAdd2(const unsigned char* data) { } member.name = LookupPlayerName(packet->characterId); if (member.name.size() == 0) { - member.name = LookupMessage(0x245) + g_gameModeNamelessTag; + member.name = LookupMessage(MSI_NAMELESS_USER) + g_gameModeNamelessTag; } guildInfo->AddMember(member); @@ -10836,7 +10836,7 @@ void CGameMode::ReceiveGuildMemberAdd3(const unsigned char* data) { member.exp = packet->exp; member.online = packet->online; if (member.name.size() == 0) { - member.name = LookupMessage(0x245) + g_gameModeNamelessTag; + member.name = LookupMessage(MSI_NAMELESS_USER) + g_gameModeNamelessTag; } guildInfo->AddMember(member); @@ -10922,7 +10922,7 @@ void CGameMode::ReceiveGuildMemberList2(const unsigned char* data) { } member.name = LookupPlayerName(record->characterId); if (member.name.size() == 0) { - member.name = LookupMessage(0x245) + g_gameModeNamelessTag; + member.name = LookupMessage(MSI_NAMELESS_USER) + g_gameModeNamelessTag; } } @@ -10962,7 +10962,7 @@ void CGameMode::ReceiveGuildMemberList3(const unsigned char* data) { } else { member.name = LookupPlayerName(member.characterId); if (member.name.size() == 0) { - member.name = LookupMessage(0x245) + g_gameModeNamelessTag; + member.name = LookupMessage(MSI_NAMELESS_USER) + g_gameModeNamelessTag; } } @@ -11079,7 +11079,7 @@ void CGameMode::ReceiveMapMove(const unsigned char* data) { g_session.m_loginTimeTicks = _Xtime_get_ticks(); mapName.append(".rsw", 4); g_modeMgr.Switch(1, mapName.c_str()); - static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(121), 17, 1); + static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(MSI_PLEASE_BE_PATIENT), 17, 1); g_windowMgr.unknown_0474 = 185; g_session.ClearEntryList5BD4(); sameMap = 0; @@ -11277,13 +11277,13 @@ void CGameMode::ReceiveEquipItemNotice(const unsigned char* data) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); switch (packet->result) { case 6: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x69F)), 0x6464FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAIL_BUY_ITEM_INVALID_MCSTORE)), 0x6464FF, 0, 0, 0); return; case 7: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x705)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAIL_OPEN_STORE)), 0xFF, 0, 0, 0); return; case 15: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xE75)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_GRADE_ENCHANT_FAIL_DOWNGRADE)), 0xFF, 0, 0, 0); return; } @@ -11292,27 +11292,27 @@ void CGameMode::ReceiveEquipItemNotice(const unsigned char* data) { switch (packet->result) { case 1: g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0xE5), item.DisplayName(0).c_str(), LookupMessage(0x37)).c_str()), 0x6464FF, 0, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_FAIL_BUY_ITEM_FROM_MERCHANT), item.DisplayName(0).c_str(), LookupMessage(MSI_INSUFFICIENT_MONEY)).c_str()), 0x6464FF, 0, 0, 0 ); break; case 2: g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0xE5), item.DisplayName(0).c_str(), LookupMessage(0x38)).c_str()), 0x6464FF, 0, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_FAIL_BUY_ITEM_FROM_MERCHANT), item.DisplayName(0).c_str(), LookupMessage(MSI_OVER_WEIGHT)).c_str()), 0x6464FF, 0, 0, 0 ); break; case 4: g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0xF0), item.DisplayName(0).c_str(), packet->value).c_str()), 0x6464FF, 0, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_FAIL_BUY_ITEM_FROM_MERCHANT_NO_STOCK), item.DisplayName(0).c_str(), packet->value).c_str()), 0x6464FF, 0, 0, 0 ); break; case 5: g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0x119), item.DisplayName(0).c_str(), packet->value).c_str()), 0x6464FF, 0, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_FAIL_BUY_ITEM_ITEM_EXCHANGING), item.DisplayName(0).c_str(), packet->value).c_str()), 0x6464FF, 0, 0, 0 ); break; case 8: g_windowMgr.SendNotice( - UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(0xE5), item.DisplayName(0).c_str(), LookupMessage(0x756)).c_str()), 0x6464FF, 0, 0, 0 + UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_FAIL_BUY_ITEM_FROM_MERCHANT), item.DisplayName(0).c_str(), LookupMessage(MSI_MCSTORE_FAIL_SELLER_MONEY_GIVE)).c_str()), 0x6464FF, 0, 0, 0 ); break; } @@ -11337,8 +11337,8 @@ void NoticeSkillUse(CGameActor* target, CGameActor* source, std::uint16_t skillI if (partyMember) { color = 17; std::string name = static_cast(g_modeMgr.GetGameMode())->ActorName(target->render.accountId); - name = LookupMessage(1604); - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(1612), name.c_str()); + name = LookupMessage(MSI_WHO_IS); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_NOTIFY_WHO), name.c_str()); message += text; } @@ -11350,14 +11350,14 @@ void NoticeSkillUse(CGameActor* target, CGameActor* source, std::uint16_t skillI } if (name.empty()) { const CActorNameCard& card = static_cast(g_modeMgr.GetGameMode())->LookupNameCard(source->render.accountId); - name = card.unknown_007C.empty() ? std::string(LookupMessage(1604)) : card.unknown_007C; + name = card.unknown_007C.empty() ? std::string(LookupMessage(MSI_WHO_IS)) : card.unknown_007C; } - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(1624), name.c_str()); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_NOTIFY_TARGET_WHO), name.c_str()); message += text; } const std::string skillName = CSkillInfo::DisplayName(*g_session.m_hotkeyScript, skillId); - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(1625), skillName.c_str()); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_NOTIFY_SKILL_TO_TARGET), skillName.c_str()); message += text; if (!message.empty()) { g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0xFFFF, color, 0, 0); @@ -11564,27 +11564,27 @@ void CGameMode::ReceiveParaResultList(const unsigned char* packet) { switch (*reinterpret_cast(packet + 4)) { case -1: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3043)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RULE)), 0xFF, 0, 0, 0); break; case PURCHASE_SUCCEED: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(54)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DEAL_SECCESS)), 0xFFFF00, 0, 0, 0); break; case PURCHASE_FAIL_MONEY: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(55)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INSUFFICIENT_MONEY)), 0xFF, 0, 0, 0); break; case PURCHASE_FAIL_WEIGHT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(56)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_OVER_WEIGHT)), 0xFF, 0, 0, 0); break; case PURCHASE_FAIL_COUNT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(221)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INSUFFICIENT_OVER_COUNT)), 0xFF, 0, 0, 0); break; case PURCHASE_FAIL_EACHITEM_COUNT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1940)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PURCHASE_FAIL_EACHITEM_COUNT)), 0xFF, 0, 0, 0); break; } @@ -11795,7 +11795,7 @@ void CGameMode::ReceiveEquipItemResult(const unsigned char* packet) { g_session.EquipItem61B8(item); } - const char* suffix = LookupMessage(3143); + const char* suffix = LookupMessage(MSI_BASIC_EXP_MSG_FRA); g_windowMgr.SendNotice( UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s%s", item.DisplayName(0).c_str(), suffix).c_str()), 0xC8FF00, 7, 0, 0 ); @@ -11843,7 +11843,7 @@ void CGameMode::ReceiveGuildMemberAdd4(const unsigned char* data) { member.online = packet->online; *reinterpret_cast(member.unknown_0074) = packet->unknown_0020; if (member.name.size() == 0) { - member.name = LookupMessage(0x245) + g_gameModeNamelessTag; + member.name = LookupMessage(MSI_NAMELESS_USER) + g_gameModeNamelessTag; } guildInfo->AddMember(member); @@ -12160,11 +12160,11 @@ void CGameMode::ReceivePartyMemberLeft(const unsigned char* data) { break; case 2: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x750)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PREVENT_PARTY_LEAVE)), 0xFF, 0, 0, 0); return; case 3: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x751)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PREVENT_PARTY_EXPEL)), 0xFF, 0, 0, 0); return; } @@ -12173,7 +12173,7 @@ void CGameMode::ReceivePartyMemberLeft(const unsigned char* data) { g_session.ClearPartyMembers(); g_session.unknown_54C4.assign("", 0); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x54)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_YOU_LEAVE_FROM_PARTY)), 0xFFFF00, 0, 0, 0); g_windowMgr.CloseWindow(WID_PARTYSETTINGWND_PARTYCOUNT); this->SendMsg(MM_DELETEPARTYPOSALL, 0, 0, 0, 0); if (g_windowMgr.unknown_03F8) { @@ -15156,7 +15156,7 @@ void CGameMode::ReceiveRefineBroadcast(const unsigned char* data) { material.SetItemId(packet->materialId); material.identified = 1; - std::string text = FormatOwnedString(LookupMessage(0x65C), name.c_str(), material.DisplayName(0).c_str(), item.DisplayName(1).c_str()); + std::string text = FormatOwnedString(LookupMessage(MSI_BROADCASTING_SPECIAL_ITEM_OBTAIN), name.c_str(), material.DisplayName(0).c_str(), item.DisplayName(1).c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFFFF, 0, 0, 0); if (UIBroadcastBalloon* balloon = this->EnsureBroadcastBalloon()) { BroadcastBalloonMessage message{{}, {}, std::chrono::seconds(20), 12, 0x40000000, 0, 0}; @@ -15177,7 +15177,7 @@ void CGameMode::ReceiveTradeBroadcast(const unsigned char* data) { item.identified = 1; std::string otherName(packet->otherName, 24); - std::string text = FormatOwnedString(LookupMessage(0x65C), name.c_str(), otherName.c_str(), item.DisplayName(1).c_str()); + std::string text = FormatOwnedString(LookupMessage(MSI_BROADCASTING_SPECIAL_ITEM_OBTAIN), name.c_str(), otherName.c_str(), item.DisplayName(1).c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFFFF, 0, 0, 0); if (UIBroadcastBalloon* balloon = this->EnsureBroadcastBalloon()) { BroadcastBalloonMessage message{{}, {}, std::chrono::seconds(20), 12, 0x40000000, 0, 0}; @@ -15197,7 +15197,7 @@ void CGameMode::ReceiveItemBroadcast(const unsigned char* data) { item.SetItemId(packet->itemId); item.identified = 1; - std::string text = FormatOwnedString(LookupMessage(0x74C), name.c_str(), item.DisplayName(0).c_str()); + std::string text = FormatOwnedString(LookupMessage(MSI_BROADCASTING_SPECIAL_ITEM_OBTAIN2), name.c_str(), item.DisplayName(0).c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFFFF, 0, 0, 0); if (UIBroadcastBalloon* balloon = this->EnsureBroadcastBalloon()) { BroadcastBalloonMessage message{{}, {}, std::chrono::seconds(20), 12, 0x40000000, 0, 0}; @@ -15389,19 +15389,19 @@ void CGameMode::ReceiveRateInfo(const unsigned char* packet) { } } - std::string expLine = LookupMessage(1933); - std::string dropLine = LookupMessage(1934); - std::string deathLine = LookupMessage(1935); + std::string expLine = LookupMessage(MSI_EXP_MSG); + std::string dropLine = LookupMessage(MSI_DROP_MSG); + std::string deathLine = LookupMessage(MSI_DEATH_MSG); expLine += FormatOwnedString( - LookupMessage(3032), static_cast(*reinterpret_cast(packet + 4)) * 0.001f, static_cast(basic.exp) * 0.001f, + LookupMessage(MSI_MAX_WEIGHT_IN_RODEX_CLIENT), static_cast(*reinterpret_cast(packet + 4)) * 0.001f, static_cast(basic.exp) * 0.001f, static_cast(server.exp) * 0.001f, g_session.m_serverName.c_str(), static_cast(premium.exp) * 0.001f ); dropLine += FormatOwnedString( - LookupMessage(3032), static_cast(*reinterpret_cast(packet + 12)) * 0.001f, static_cast(basic.drop) * 0.001f, + LookupMessage(MSI_MAX_WEIGHT_IN_RODEX_CLIENT), static_cast(*reinterpret_cast(packet + 12)) * 0.001f, static_cast(basic.drop) * 0.001f, static_cast(server.drop) * 0.001f, g_session.m_serverName.c_str(), static_cast(premium.drop) * 0.001f ); deathLine += FormatOwnedString( - LookupMessage(3032), static_cast(*reinterpret_cast(packet + 8)) * 0.001f, static_cast(basic.death) * 0.001f, + LookupMessage(MSI_MAX_WEIGHT_IN_RODEX_CLIENT), static_cast(*reinterpret_cast(packet + 8)) * 0.001f, static_cast(basic.death) * 0.001f, static_cast(server.death) * 0.001f, g_session.m_serverName.c_str(), static_cast(premium.death) * 0.001f ); @@ -15669,16 +15669,16 @@ void CGameMode::ReceiveItemObtainBroadcast(const unsigned char* data, bool packa item.identified = 1; std::string text; if (data[4] == 2) { - text = static_cast(FormatOwnedString(LookupMessage(0x74C), name.c_str(), item.DisplayName(0).c_str())); + text = static_cast(FormatOwnedString(LookupMessage(MSI_BROADCASTING_SPECIAL_ITEM_OBTAIN2), name.c_str(), item.DisplayName(0).c_str())); } else if (package && data[4] == 0) { const int count = *reinterpret_cast(tail + 16); if (count > 0) { - text = static_cast(FormatOwnedString(LookupMessage(0xF91), name.c_str(), source.c_str(), count, item.DisplayName(0).c_str())); + text = static_cast(FormatOwnedString(LookupMessage(MSI_FAIL_ITEMCOMPOSITION_LIST), name.c_str(), source.c_str(), count, item.DisplayName(0).c_str())); } else { - text = static_cast(FormatOwnedString(LookupMessage(0x65C), name.c_str(), source.c_str(), item.DisplayName(0).c_str())); + text = static_cast(FormatOwnedString(LookupMessage(MSI_BROADCASTING_SPECIAL_ITEM_OBTAIN), name.c_str(), source.c_str(), item.DisplayName(0).c_str())); } } else { - text = static_cast(FormatOwnedString(LookupMessage(0x65C), name.c_str(), source.c_str(), item.DisplayName(0).c_str())); + text = static_cast(FormatOwnedString(LookupMessage(MSI_BROADCASTING_SPECIAL_ITEM_OBTAIN), name.c_str(), source.c_str(), item.DisplayName(0).c_str())); } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFFFF, 0, 0, 0); @@ -17217,7 +17217,7 @@ void CGameMode::ReceiveSkillUse(std::uint16_t skillId, int level, std::uint32_t if (target != nullptr) { if (sourceAid == g_session.m_aid) { char notice[512]; - std::sprintf(notice, LookupMessage(0x651), static_cast(g_modeMgr.GetGameMode())->ActorName(target->render.accountId).c_str(), level); + std::sprintf(notice, LookupMessage(MSI_NOTIFY_STEAL_COIN), static_cast(g_modeMgr.GetGameMode())->ActorName(target->render.accountId).c_str(), level); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(notice), 0xC8C8FF, 0x10, 0, 0); } if (CRagEffect* effect = target->LaunchEffect(0x112, vector3d{0.0f, 0.0f, 0.0f}, 0.0f)) { @@ -21826,7 +21826,7 @@ void CGameMode::ProcessIncomingPackets() { switch (packet[8]) { case ACK_REQ_EQUIP_FAILURE: case ACK_REQ_EQUIP_FAILURE_LEVEL: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(372)), 0xFF, 7, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CAN_NOT_EQUIP_ITEM)), 0xFF, 7, 0, 0); break; case ACK_REQ_EQUIP_SUCCESS: { ITEM_INFO item = LookupClientItemByIdentity(g_session.m_inventoryItems, *reinterpret_cast(packet + 2)); @@ -21864,7 +21864,7 @@ void CGameMode::ProcessIncomingPackets() { const std::int16_t amount = *reinterpret_cast(packet + 4); ITEM_INFO item = LookupClientItemByIdentity(g_session.m_inventoryItems, index); if (item.unknown_0000[1] && amount > 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(1609), item.DisplayName(0).c_str(), amount).c_str()), + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_DROP_ITEM), item.DisplayName(0).c_str(), amount).c_str()), 0xFFFF00, 6, 0, 0); } g_session.RemoveItem1710(index, amount); @@ -21928,7 +21928,7 @@ void CGameMode::ProcessIncomingPackets() { if (g_serviceType == 3 && !IsAdminAccount(g_session.m_aid)) { strcpy(text, GetUserCountText(*reinterpret_cast(g_gameModePacketBuffer + 2))); } else { - sprintf(text, LookupMessage(178), *reinterpret_cast(g_gameModePacketBuffer + 2)); + sprintf(text, LookupMessage(MSI_NUMPEOPLE), *reinterpret_cast(g_gameModePacketBuffer + 2)); } g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 0, 0, 0); @@ -21969,11 +21969,11 @@ void CGameMode::ProcessIncomingPackets() { switch (g_gameModePacketBuffer[2]) { case SELL_SUCCEED: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(54)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DEAL_SECCESS)), 0xFFFF00, 0, 0, 0); break; case SELL_FAIL: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(57)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DEAL_FAIL)), 0xFF, 0, 0, 0); break; } g_session.ClearTradeItems(); @@ -21993,20 +21993,20 @@ void CGameMode::ProcessIncomingPackets() { case WT_EXCLUDE_WHISPER: switch (g_gameModePacketBuffer[3]) { case WHISPER_SETTING_SUCCEED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3427)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_TO_ASK_ALL_CHAT)), 0xFFFF, 0, 0, 0); break; case WHIPSER_SETTING_FAILED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3428)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_OPENING)), 0xFFFF, 0, 0, 0); break; } break; case WT_INCLUDE_WHISPER: switch (g_gameModePacketBuffer[3]) { case WHISPER_SETTING_SUCCEED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3429)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DO_YOU_WANT_TO_BACK_LOGINWND)), 0xFFFF, 0, 0, 0); break; case WHIPSER_SETTING_FAILED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3430)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENST_SHOUT2)), 0xFFFF, 0, 0, 0); break; } break; @@ -22033,7 +22033,7 @@ void CGameMode::ProcessIncomingPackets() { switch (g_gameModePacketBuffer[2]) { case ENTERROOM_FULL: { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(64)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ROOM_IS_MADE)), 0xFFFF00, 0, 0, 0); UIWindow *window = g_windowMgr.EnsureWindow(WID_CHATROOMWND); this->unknown_03FC = 1; window->SendMsg(nullptr, UM_SETINFO, reinterpret_cast(&this->unknown_03C8), 0, 0, 0); @@ -22043,11 +22043,11 @@ void CGameMode::ProcessIncomingPackets() { } case ENTERROOM_WRONG_PASSWORD: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(65)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TOO_MANY_ROOM)), 0xFF, 0, 0, 0); break; case ENTERROOM_KICKED: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(66)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SAME_ROOM_TITLE)), 0xFF, 0, 0, 0); break; } break; @@ -22074,7 +22074,7 @@ void CGameMode::ProcessIncomingPackets() { window->SendMsg(nullptr, UM_SETINFO, reinterpret_cast(&info), 0, 0, 0); window->SendMsg(nullptr, UM_ADDMEMBER, reinterpret_cast(name), 1, 0, 0); char text[128]; - sprintf(text, LookupMessage(179), name); + sprintf(text, LookupMessage(MSI_USERGETINTHEROOM), name); g_windowMgr.SendNotice(UIM_PUSH_INTO_CHATROOM, reinterpret_cast(text), 0x808000, 0, 0, 0); break; } @@ -22097,11 +22097,11 @@ void CGameMode::ProcessIncomingPackets() { char text[128]; switch (g_gameModePacketBuffer[0x1C]) { case ROOMEXITTYPE_EXIT: - sprintf(text, LookupMessage(180), name); + sprintf(text, LookupMessage(MSI_USERGETOUTOFTHEROOM), name); g_windowMgr.SendNotice(UIM_PUSH_INTO_CHATROOM, reinterpret_cast(text), 0x80, 0, 0, 0); break; case ROOMEXITTYPE_EXPEL: - sprintf(text, LookupMessage(181), name); + sprintf(text, LookupMessage(MSI_USERGETOUTOFTHEROOMBYFORCE), name); g_windowMgr.SendNotice(UIM_PUSH_INTO_CHATROOM, reinterpret_cast(text), 0x80, 0, 0, 0); break; } @@ -22148,7 +22148,7 @@ void CGameMode::ProcessIncomingPackets() { *reinterpret_cast(&this->unknown_0100[0x14]) = 0; g_session.ResetSlots(); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(74)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DEAL_IS_CANCELED)), 0xFF, 0, 0, 0); break; case ID_ZC_EXEC_EXCHANGE_ITEM: this->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); @@ -22156,12 +22156,12 @@ void CGameMode::ProcessIncomingPackets() { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); switch (g_gameModePacketBuffer[2]) { case EXITEM_EXCHANGE_SUCCEED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(75)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DEAL_SUCCESS)), 0xFFFF00, 0, 0, 0); break; case EXITEM_EXCHANGE_FAILED: *reinterpret_cast(&this->unknown_0100[0x14]) = 0; g_session.ResetSlots(); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(76)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DEAL_FAILED)), 0xFF, 0, 0, 0); break; } break; @@ -22189,17 +22189,17 @@ void CGameMode::ProcessIncomingPackets() { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); switch (g_gameModePacketBuffer[2]) { case GROUP_MAKE_SUCCEED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(77)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PARTY_MAKE_SUCCEED)), 0xFFFF00, 0, 0, 0); g_windowMgr.EnsureWindow(WID_MESSENGERGROUPWND); break; case GROUP_MAKE_FAILED_SAMENAME: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(78)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SAME_PARTY_NAME)), 0xFF, 0, 0, 0); break; case GROUP_MAKE_FAILED_ALEADY_GROUP_MEMBER: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(79)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_YOU_ARE_ALREADY_IN_PARTY)), 0xFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1387)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOPARTY)), 0xFF, 0, 0, 0); break; } break; @@ -22224,9 +22224,9 @@ void CGameMode::ProcessIncomingPackets() { } g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); if (g_session.unknown_54A0 == 0 || g_session.unknown_54A0 == 1) { - sprintf(text, "%s - %s : %s", LookupMessage(291), LookupMessage(292), LookupMessage(g_session.unknown_54A0 == 0 ? 287 : 288)); + sprintf(text, "%s - %s : %s", LookupMessage(MSI_PARTYSETTING), LookupMessage(MSI_HOWEXPDIV), LookupMessage(g_session.unknown_54A0 == 0 ? 287 : 288)); } else if (g_session.unknown_54A0 == 2) { - StringFormat(text, 128, static_cast(-1), LookupMessage(373), LookupMessage(292), LookupMessage(288)); + StringFormat(text, 128, static_cast(-1), LookupMessage(MSI_PARTYSETTING_CHANGE_IMPOSSIBLE), LookupMessage(MSI_HOWEXPDIV), LookupMessage(MSI_EXPDIV2)); } else { break; } @@ -22264,15 +22264,15 @@ void CGameMode::ProcessIncomingPackets() { item.unknown_0060 = 0; item.identified = 0; g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - const char *suffix = LookupMessage(144); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s%s", LookupMessage(143), item.DisplayName(0).c_str(), suffix).c_str()), + const char *suffix = LookupMessage(MSI_YOU_RECEIVE_MVP_ITEM2); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s%s", LookupMessage(MSI_YOU_RECEIVE_MVP_ITEM), item.DisplayName(0).c_str(), suffix).c_str()), 0xFFFF00, 0, 0, 0); break; } case ID_ZC_MVP_GETTING_SPECIAL_EXP: { char text[256]; memset(text, 0, sizeof(text)); - StringFormat(text, 256, static_cast(-1), "%s%s", LookupMessage(145), LookupMessage(146)); + StringFormat(text, 256, static_cast(-1), "%s%s", LookupMessage(MSI_YOU_RECEIVE_MVP_EXP), LookupMessage(MSI_YOU_RECEIVE_MVP_EXP2)); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF00, 0, 0, 0); break; @@ -22288,7 +22288,7 @@ void CGameMode::ProcessIncomingPackets() { } case ID_ZC_THROW_MVPITEM: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(147)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_YOU_THROW_MVPITEM)), 0xFF, 0, 0, 0); break; case ID_ZC_SKILLINFO_LIST: case ID_ZC_HOSKILLINFO_LIST: @@ -22372,20 +22372,20 @@ void CGameMode::ProcessIncomingPackets() { case ID_ZC_ACK_REMEMBER_WARPPOINT: switch (g_gameModePacketBuffer[2]) { case WARPPOINT_SUCCESS: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(217)), 0xFFFF00, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(217)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_WARPPOINTSTORED)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(MSI_WARPPOINTSTORED)), 0xFFFF00, 0, 0, 0); break; case WARPPOINT_LOW_LEVEL: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(214)), 0xFF, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(214)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOTENOUGHSKILLLEVEL)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(MSI_NOTENOUGHSKILLLEVEL)), 0xFF, 0, 0, 0); break; case WARPPOINT_NOT_LEARNED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(216)), 0xFF, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(216)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOWARPSKILL)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(MSI_NOWARPSKILL)), 0xFF, 0, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2535)), 0xFF, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(2535)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GUILD_STORAGE_ITEM)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(MSI_GUILD_STORAGE_ITEM)), 0xFF, 0, 0, 0); break; } break; @@ -22483,11 +22483,11 @@ void CGameMode::ProcessIncomingPackets() { switch (g_gameModePacketBuffer[2]) { case ADDITEM_TO_CART_FAIL_WEIGHT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(56)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_OVER_WEIGHT)), 0xFF, 0, 0, 0); break; case ADDITEM_TO_CART_FAIL_COUNT: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(221)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INSUFFICIENT_OVER_COUNT)), 0xFF, 0, 0, 0); break; } break; @@ -22506,7 +22506,7 @@ void CGameMode::ProcessIncomingPackets() { } g_session.ClearItems1768(); if (g_windowMgr.window_027C || g_windowMgr.window_0274) { - g_windowMgr.Confirm(LookupMessage(587), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_OPEN_STORE_WHILE_CHAT), 0, true, false, 0, "Message", 280, 120, 0); this->SendMsg(MM_REQ_CLOSESTORE, 0, 0, 0, 0); } else if (UIMerchantShopMakeWnd *window = static_cast(g_windowMgr.EnsureWindow(WID_MERCHANTSHOPMAKEWND))) { window->AddActionButton(); @@ -22637,13 +22637,13 @@ void CGameMode::ProcessIncomingPackets() { case ID_ZC_ACK_GIVE_MANNER_POINT: switch (*reinterpret_cast(g_gameModePacketBuffer + 2)) { case MP_SUCCESS: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(854)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SEND_MANNER_POINT)), 0xFFFF00, 0, 0, 0); break; case MP_SUCCESS_BY_ADMIN: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(830)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GM_BAD_MANNER_START)), 0xFFFF, 0, 0, 0); break; case MP_BYSELF: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(833)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_AUTO_BAD_MANNER_START)), 0xFFFF, 0, 0, 0); break; } break; @@ -22653,7 +22653,7 @@ void CGameMode::ProcessIncomingPackets() { name[24] = 0; if (g_gameModePacketBuffer[2] == 0) { char text[128]; - sprintf(text, LookupMessage(387), name); + sprintf(text, LookupMessage(MSI_RECEIVE_PLUS_MANNER_POINT), name); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF00, 0, 0, 0); } break; @@ -22695,13 +22695,13 @@ void CGameMode::ProcessIncomingPackets() { g_session.ClearAdditionalShortcutSkills(); g_guildInfo.Init(); g_windowMgr.CloseWindow(WID_GUILDWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(400)), 0xFFFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DISORGANIZE_GUILD_SUCCESS)), 0xFFFF, 4, 0, 0); break; case DISRESULT_INVALIDKEY: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(401)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DISORGANIZE_GUILD_INVALIDKEY)), 0xFFFF, 0, 0, 0); break; case DISRESULT_MEMBEREXIST: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(402)), 0xFFFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DISORGANIZE_GUILD_MEMBEREXIST)), 0xFFFF, 4, 0, 0); break; } break; @@ -22710,7 +22710,7 @@ void CGameMode::ProcessIncomingPackets() { std::memcpy(reason, g_gameModePacketBuffer + 2, 40); reason[40] = 0; char text[1024]; - sprintf(text, LookupMessage(367), reason); + sprintf(text, LookupMessage(MSI_DISORGANIZATION_REASON), reason); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 4, 0, 0); break; } @@ -22720,22 +22720,22 @@ void CGameMode::ProcessIncomingPackets() { case ID_ZC_RESULT_MAKE_GUILD: switch (g_gameModePacketBuffer[2]) { case GM_SUCCESS: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(374)), 0xFFFF00, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GUILD_MAKE_SUCCESS)), 0xFFFF00, 4, 0, 0); g_windowMgr.CloseWindow(WID_GUILDTIPWND); g_windowMgr.CloseWindow(WID_CREATEGUILDWND_MODE_0); g_windowMgr.CloseWindow(WID_GUILDHELPERWND); break; case GM_ALREADY_MEMBER: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(375)), 0xFFFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GUILD_MAKE_ALREADY_MEMBER)), 0xFFFF, 4, 0, 0); break; case GM_GUILD_EXIST: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(376)), 0xFFFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GUILD_MAKE_GUILD_EXIST)), 0xFFFF, 4, 0, 0); break; case GM_NONE_ITEM: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(405)), 0xFFFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GUILD_MAKE_GUILD_NONE_ITEM)), 0xFFFF, 4, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2687)), 0xFFFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GUILD_LEAVE_GUILD_NOT_PERMITTED_MAP)), 0xFFFF, 4, 0, 0); break; } break; @@ -22743,19 +22743,19 @@ void CGameMode::ProcessIncomingPackets() { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); switch (g_gameModePacketBuffer[2]) { case REQJOINGUILD_ALREADY_OTHERGUILDM: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(378)), 0xFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_IS_ALREADY_IN_GUILD)), 0xFF, 4, 0, 0); break; case REQJOINGUILD_REJECT: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(379)), 0xFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_REJECT_JOIN_GUILD)), 0xFF, 4, 0, 0); break; case REQJOINGUILD_ACCEPT: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(380)), 0xFFFF00, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHARACTER_ACCEPT_JOIN_GUILD)), 0xFFFF00, 4, 0, 0); break; case REQJOINGUILD_OVERSIZE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(381)), 0xFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TOO_MANY_PEOPLE_IN_GUILD)), 0xFF, 4, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2090)), 0xFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_JOINGUILD_TARGET_USER_IN_SIEGEMAP)), 0xFF, 4, 0, 0); break; } break; @@ -22816,22 +22816,22 @@ void CGameMode::ProcessIncomingPackets() { case ID_ZC_ACK_REQ_ALLY_GUILD: switch (g_gameModePacketBuffer[2]) { case REQALLYGUILD_ALREADY_ALLIED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(394)), 0xFFFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_REQALLYGUILD_ALREADY_ALLIED)), 0xFFFF, 4, 0, 0); break; case REQALLYGUILD_REJECT: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(395)), 0xFFFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_REQALLYGUILD_REJECT)), 0xFFFF, 4, 0, 0); break; case REQALLYGUILD_ACCEPT: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(396)), 0xFFFF00, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_REQALLYGUILD_ACCEPT)), 0xFFFF00, 4, 0, 0); break; case REQALLYGUILD_OVERSIZE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(397)), 0xFFFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_REQALLYGUILD_OVERSIZE)), 0xFFFF, 4, 0, 0); break; case REQMYGUILD_OVERSIZE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(398)), 0xFFFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_REQALLYMYGUILD_OVERSIZE)), 0xFFFF, 4, 0, 0); break; case 5: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1717)), 0xFFFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GUILD_ALLY_REQUEST_DISABLE)), 0xFFFF, 4, 0, 0); break; } break; @@ -22852,14 +22852,14 @@ void CGameMode::ProcessIncomingPackets() { case ID_ZC_ACK_ITEMIDENTIFY: switch (g_gameModePacketBuffer[4]) { case ITEMIDENTIFY_SUCCESS: { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(491)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_IDENTIFY_SUCCEESS)), 0xFFFF00, 0, 0, 0); ITEM_INFO item = LookupClientItemByIdentity(g_session.m_inventoryItems, *reinterpret_cast(g_gameModePacketBuffer + 2)); item.identified = 1; g_session.UpdateInventoryItem(item, 1); break; } case ITEMIDENTIFY_FAIL: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(492)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_IDENTIFY_FAIL)), 0xFF, 0, 0, 0); break; } break; @@ -22881,16 +22881,16 @@ void CGameMode::ProcessIncomingPackets() { case ID_ZC_ACK_REQ_HOSTILE_GUILD: switch (g_gameModePacketBuffer[2]) { case RESULT_HOSTILE_SUCCESS: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(495)), 0xFFFF00, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_HOSTILE_GUILD_SUCCEESS)), 0xFFFF00, 4, 0, 0); break; case RESULT_HOSTILE_OVERSIZE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(496)), 0xFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TOO_MANY_HOSTILE_GUILD)), 0xFF, 4, 0, 0); break; case RESULT_HOSTILE_ALREADY_HOSTILE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(497)), 0xFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ALREADY_REGISTERED_HOSTILE_GUILD)), 0xFF, 4, 0, 0); break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1718)), 0xFF, 4, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GUILD_HOSTILE_REQUEST_DISABLE)), 0xFF, 4, 0, 0); break; } break; @@ -22902,21 +22902,21 @@ void CGameMode::ProcessIncomingPackets() { case ID_ZC_NOTIFY_MAPINFO: switch (*reinterpret_cast(g_gameModePacketBuffer + 2)) { case TELEPORT_IMPOSSIBLE_AREA: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(500)), 0xFF, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(500)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_IMPOSSIBLE_TELEPORT_AREA)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(MSI_IMPOSSIBLE_TELEPORT_AREA)), 0xFF, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(501)), 0xFFFF00, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(501)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_POSSIBLE_TELEPORT_AREA)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(MSI_POSSIBLE_TELEPORT_AREA)), 0xFFFF00, 0, 0, 0); break; case IMPOSSIBLE_AREA_SKILL: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1334)), 0xFFFF00, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(1334)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_IMPOSSIBLE_SKILL_AREA)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(MSI_IMPOSSIBLE_SKILL_AREA)), 0xFFFF00, 0, 0, 0); break; case IMPOSSIBLE_AREA_USEITEM: this->unknown_02CC = 0; - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1335)), 0xFFFF00, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(1335)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_IMPOSSIBLE_USEITEM_AREA)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY2, reinterpret_cast(LookupMessage(MSI_IMPOSSIBLE_USEITEM_AREA)), 0xFFFF00, 0, 0, 0); break; } break; @@ -22927,7 +22927,7 @@ void CGameMode::ProcessIncomingPackets() { this->SendMsg(MM_QUIT, 0, 0, 0, 0); break; case NOTDISCONNECTABLE_STATE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(502)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANT_EXIT_NOW)), 0xFF, 0, 0, 0); break; } break; @@ -22941,7 +22941,7 @@ void CGameMode::ProcessIncomingPackets() { case ID_ZC_MAKABLEITEMLIST: { unsigned int count = static_cast(*reinterpret_cast(g_gameModePacketBuffer + 2) - 4) >> 4; if (count == 0) { - g_windowMgr.Confirm(LookupMessage(424), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_MAKE_ITEM), 0, true, false, 0, "Message", 280, 120, 0); break; } g_windowMgr.CloseWindow(WID_MAKETARGETLISTWND); @@ -22985,7 +22985,7 @@ void CGameMode::ProcessIncomingPackets() { g_serviceOptions.Set(229, 1); break; case MAPPROPERTY_PKSERVERZONE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(855)), 0x9B9BFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PKZONE)), 0x9B9BFF, 0, 0, 0); break; } if (g_session.GetMapProperty0F()) { @@ -23171,7 +23171,7 @@ void CGameMode::ProcessIncomingPackets() { if (*reinterpret_cast(g_gameModePacketBuffer + 4) != 103061) { break; } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4209)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_REWARD_OVER_ITEM_COUNT)), 0xFF, 0, 0, 0); } } if (g_gameModePacketBuffer[0xE]) { @@ -23390,7 +23390,7 @@ void CGameMode::ProcessIncomingPackets() { case ID_ZC_REPAIRITEMLIST_01fc: { const int count = static_cast(*reinterpret_cast(g_gameModePacketBuffer + 2) - 4) / 23; if (count == 0) { - g_windowMgr.Confirm(LookupMessage(424), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_MAKE_ITEM), 0, true, false, 0, "Message", 280, 120, 0); break; } g_windowMgr.CloseWindow(WID_ITEMREPAIRWND); @@ -23404,10 +23404,10 @@ void CGameMode::ProcessIncomingPackets() { case ID_ZC_ACK_ITEMREPAIR: switch (g_gameModePacketBuffer[4]) { case ITEMREPAIR_SUCCESS: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(813)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_REPAIR_SUCCEESS)), 0xFFFF00, 0, 0, 0); break; case ITEMREPAIR_FAIL: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(814)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_REPAIR_FAIL)), 0xFF, 0, 0, 0); break; } break; @@ -23431,7 +23431,7 @@ void CGameMode::ProcessIncomingPackets() { } case ID_ZC_DIVORCE: { char message[1024]; - sprintf(message, LookupMessage(836), g_session.DecodePlayerName(), reinterpret_cast(g_gameModePacketBuffer + 2)); + sprintf(message, LookupMessage(MSI_DIVORCE), g_session.DecodePlayerName(), reinterpret_cast(g_gameModePacketBuffer + 2)); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFFFF00, 0, 0, 0); break; @@ -23469,20 +23469,20 @@ void CGameMode::ProcessIncomingPackets() { case ID_ZC_BABYMSG: switch (*reinterpret_cast(g_gameModePacketBuffer + 2)) { case 0: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(899)), 0x9B9BFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BABY1)), 0x9B9BFF, 0, 0, 0); break; case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(900)), 0x9B9BFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BABY2)), 0x9B9BFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(916)), 0x9B9BFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BABY3)), 0x9B9BFF, 0, 0, 0); break; } break; case ID_ZC_NOTIFY_WEAPONITEMLIST: { const int count = static_cast(*reinterpret_cast(g_gameModePacketBuffer + 2) - 4) / 23; if (count == 0) { - g_windowMgr.Confirm(LookupMessage(424), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_MAKE_ITEM), 0, true, false, 0, "Message", 280, 120, 0); break; } if (g_windowMgr.LookupWindow(WID_WEAPONREFINEWND)) { @@ -23547,7 +23547,7 @@ void CGameMode::ProcessIncomingPackets() { unsigned int id = *reinterpret_cast(g_gameModePacketBuffer + 2); manager->m_ongoingQuests.erase(id); manager->UpdateQuestWindows(); - std::string message = FormatOwnedString(LookupMessage(1611), title.c_str()); + std::string message = FormatOwnedString(LookupMessage(MSI_DELETE_QUEST), title.c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0xFFFF, 19, 0, 0); break; } @@ -23559,7 +23559,7 @@ void CGameMode::ProcessIncomingPackets() { ITEM_INFO item = LookupClientItemByIdentity(g_session.m_inventoryItems, *reinterpret_cast(g_gameModePacketBuffer + 2)); if (item.unknown_0000[1]) { std::string name = item.DisplayName(0); - std::string message = FormatOwnedString(LookupMessage(1328), name.c_str()); + std::string message = FormatOwnedString(LookupMessage(MSI_YOURITEM_EQUIPED), name.c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message.c_str()), 0x6EFFFF, 0, 0, 0); } break; @@ -23742,7 +23742,7 @@ void CGameMode::ProcessIncomingPackets() { char message[256]; memset(message, 0, sizeof(message)); const char *job = g_session.GetJobName(*reinterpret_cast(g_gameModePacketBuffer + 0x1A), -1); - sprintf(message, LookupMessage(1930), *reinterpret_cast(g_gameModePacketBuffer + 0x1E), + sprintf(message, LookupMessage(MSI_SEEK_PARTY_SET), *reinterpret_cast(g_gameModePacketBuffer + 0x1E), reinterpret_cast(g_gameModePacketBuffer + 2), job); if (g_windowMgr.window_027C) { g_windowMgr.SendNotice(UIM_PUSH_INTO_CHATROOM, reinterpret_cast(message), 0x222222, 0, 0, 0); @@ -24247,7 +24247,7 @@ void CGameMode::ProcessIncomingPackets() { break; } case ITEM_EQUIP_ACK_FAILLEVEL: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1953)), 0xFF, 7, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CAN_NOT_EQUIP_ITEM_FORBID)), 0xFF, 7, 0, 0); break; } break; @@ -24268,7 +24268,7 @@ void CGameMode::ProcessIncomingPackets() { break; } case 1: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1953)), 0xFF, 7, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CAN_NOT_EQUIP_ITEM_FORBID)), 0xFF, 7, 0, 0); break; } break; @@ -25018,7 +25018,7 @@ void CGameMode::ProcessIncomingPackets() { g_windowMgr.CloseWindow(WID_MERCHANTITEMPURCHASEWND); g_session.ClearItems1760And1748(); g_session.ClearItems1758(); - g_windowMgr.Confirm(LookupMessage(2639), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SOUNDEFFECT_ITEMSELLWND), 0, true, false, 0, "Message", 280, 120, 0); g_windowMgr.CloseWindow(WID_MERCHANTSHOPMAKEWND); break; case OPENSTORE2_NOVENDING: @@ -25028,7 +25028,7 @@ void CGameMode::ProcessIncomingPackets() { g_session.ClearItems1760And1748(); g_session.ClearItems1758(); g_windowMgr.CloseWindow(WID_MERCHANTSHOPMAKEWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3229)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CONNECT_SNS_FAIL_SEND)), 0xFF, 0, 0, 0); break; } break; @@ -25203,7 +25203,7 @@ void CGameMode::ProcessIncomingPackets() { case 5: case 10: if (*reinterpret_cast(g_session.unknown_5620) != *reinterpret_cast(g_gameModePacketBuffer + 0x1D)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1018)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_HOMUN_HUNGRY)), 0xFF, 0, 0, 0); *reinterpret_cast(g_session.unknown_5620) = *reinterpret_cast(g_gameModePacketBuffer + 0x1D); } break; diff --git a/Source/Client/Mode/LoginMode.cpp b/Source/Client/Mode/LoginMode.cpp index 9185f4d33..921e1ddc9 100644 --- a/Source/Client/Mode/LoginMode.cpp +++ b/Source/Client/Mode/LoginMode.cpp @@ -82,6 +82,7 @@ #include "Utility/Cipher/AES.h" #include "Utility/Cipher/Rijndael.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -405,18 +406,18 @@ void CLoginMode::SubD8D500(const char* packet) { UIWindow* window = g_windowMgr.window_03D4; switch (*reinterpret_cast(packet + 2)) { case 0: - g_windowMgr.Confirm(LookupMessage(0x4BE), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CHANGE_NAME_SUCCESS), 0, true, false, 0, "Message", 280, 120, 0); if (window) { window->SendMsg(nullptr, UM_COMMAND, ID_CHANGE_NAME_SUCCESS, 0, 0, 0); } return; case 1: - if (g_windowMgr.Confirm(LookupMessage(0x4C2), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8 && g_windowMgr.window_03DC) { + if (g_windowMgr.Confirm(LookupMessage(MSI_ALREADY_CHANGED_NAME), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8 && g_windowMgr.window_03DC) { g_windowMgr.CloseWindow(WID_CHANGENAMEWND); } return; case 2: - if (g_windowMgr.Confirm(LookupMessage(0x4C3), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { + if (g_windowMgr.Confirm(LookupMessage(MSI_NOTREGISTED_USER), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { return; } if (window) { @@ -424,12 +425,12 @@ void CLoginMode::SubD8D500(const char* packet) { } return; case 3: - if (g_windowMgr.Confirm(LookupMessage(0x4BF), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8 && g_windowMgr.window_03DC) { + if (g_windowMgr.Confirm(LookupMessage(MSI_CHANGE_NAME_FAILURE), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8 && g_windowMgr.window_03DC) { g_windowMgr.CloseWindow(WID_CHANGENAMEWND); } return; case 4: - if (g_windowMgr.Confirm(LookupMessage(0x4C4), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DUPLICATED_CHAR_NAME), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { return; } if (window) { @@ -437,17 +438,17 @@ void CLoginMode::SubD8D500(const char* packet) { } return; case 5: - if (g_windowMgr.Confirm(LookupMessage(0x7E6), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8 && g_windowMgr.window_03DC) { + if (g_windowMgr.Confirm(LookupMessage(MSI_FAILED_RENAME_BELONGS_TO_GUILD), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8 && g_windowMgr.window_03DC) { g_windowMgr.CloseWindow(WID_CHANGENAMEWND); } return; case 6: - if (g_windowMgr.Confirm(LookupMessage(0x7E7), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8 && g_windowMgr.window_03DC) { + if (g_windowMgr.Confirm(LookupMessage(MSI_FAILED_RENAME_BELONGS_TO_PARTY), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8 && g_windowMgr.window_03DC) { g_windowMgr.CloseWindow(WID_CHANGENAMEWND); } return; case 7: - if (g_windowMgr.Confirm(LookupMessage(0x7EB), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { + if (g_windowMgr.Confirm(LookupMessage(MSI_FAILED_RENAME_OVER_LENGTH), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { return; } if (window) { @@ -455,7 +456,7 @@ void CLoginMode::SubD8D500(const char* packet) { } return; case 8: - if (g_windowMgr.Confirm(LookupMessage(0x7EC), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { + if (g_windowMgr.Confirm(LookupMessage(MSI_FAILED_RENAME_PREVENTNAM), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { return; } if (window) { @@ -463,7 +464,7 @@ void CLoginMode::SubD8D500(const char* packet) { } return; case 9: - if (g_windowMgr.Confirm(LookupMessage(0x7ED), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { + if (g_windowMgr.Confirm(LookupMessage(MSI_FAILED_RENAME_FORBIDDEN), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { return; } if (window) { @@ -471,7 +472,7 @@ void CLoginMode::SubD8D500(const char* packet) { } return; case 10: - if (g_windowMgr.Confirm(LookupMessage(0x7E8), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8 && g_windowMgr.window_03DC) { + if (g_windowMgr.Confirm(LookupMessage(MSI_FAILED_RENAME_UNKOWN), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8 && g_windowMgr.window_03DC) { g_windowMgr.CloseWindow(WID_CHANGENAMEWND); } return; @@ -634,22 +635,22 @@ int CLoginMode::GetMaxCharacterSlot() { // FUNCTION: fn_22273 const char* GetUserCountText(unsigned short userCount) { if (userCount <= 1000) { - return LookupMessage(825); + return LookupMessage(MSI_LITTLEUSER); } if (userCount <= 3000) { - return LookupMessage(826); + return LookupMessage(MSI_ALITTLEUSER); } if (userCount <= 6000) { - return LookupMessage(827); + return LookupMessage(MSI_NORMLEUSER); } if (userCount <= 10000) { - return LookupMessage(828); + return LookupMessage(MSI_MANYUSER); } - return LookupMessage(829); + return LookupMessage(MSI_VERYMANYUSER); } // OFFSET: 0x00D8E990 @@ -710,7 +711,7 @@ void CLoginMode::ReceiveCharacterResult(const CharacterResultPacket* packet) { int message; switch (packet->result) { case 0: - g_windowMgr.Confirm(LookupMessage(1214), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CHANGE_NAME_SUCCESS), 0, true, false, 0, "Message", 280, 120, 0); if (window) { window->SendMsg(nullptr, UM_COMMAND, ID_CHANGE_NAME_SUCCESS, 0, 0, 0); } @@ -722,12 +723,12 @@ void CLoginMode::ReceiveCharacterResult(const CharacterResultPacket* packet) { message = 1219; break; case 3: - if (g_windowMgr.Confirm(LookupMessage(1215), 0, true, true, 0, "Message", 280, 120, 0) == 184 && window) { + if (g_windowMgr.Confirm(LookupMessage(MSI_CHANGE_NAME_FAILURE), 0, true, true, 0, "Message", 280, 120, 0) == 184 && window) { window->SendMsg(nullptr, UM_COMMAND, ID_CHANGE_NAME, 0, 0, 0); } return; case 4: - if (g_windowMgr.Confirm(LookupMessage(1220), 0, true, true, 0, "Message", 280, 120, 0) == 184 && window) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DUPLICATED_CHAR_NAME), 0, true, true, 0, "Message", 280, 120, 0) == 184 && window) { window->SendMsg(nullptr, UM_COMMAND, ID_CHANGE_NAME, 0, 0, 0); } return; @@ -827,34 +828,34 @@ void CLoginMode::ReceiveDeleteCharacter(const CharacterDeletePacket* packet) { std::string message; switch (packet->result) { case 0: - message = LookupMessage(1816); + message = LookupMessage(MSI_RESULT_FAIL_UNKNOWN); break; case 1: this->characterDeleted = true; break; case 2: - message = LookupMessage(1820); + message = LookupMessage(MSI_RESULT_FAIL_CONFIGURATION); break; case 3: - message = LookupMessage(1817); + message = LookupMessage(MSI_RESULT_FAIL_DATABASE); break; case 4: - message = LookupMessage(1821); + message = LookupMessage(MSI_RESULT_FAIL_DATE); break; case 5: - message = LookupMessage(1822); + message = LookupMessage(MSI_RESULT_FAIL_BIRTH); break; case 6: - message = LookupMessage(2369); + message = LookupMessage(MSI_SPRITE_ALTER); break; case 7: - message = LookupMessage(301); + message = LookupMessage(MSI_CANNOT_DELETE_CHARACTER_EMAIL); break; case 8: - message = LookupMessage(3044); + message = LookupMessage(MSI_ZENY_LOTTO_BUY_1); break; default: - message = LookupMessage(1816); + message = LookupMessage(MSI_RESULT_FAIL_UNKNOWN); break; } @@ -871,7 +872,7 @@ void CLoginMode::ReceiveDeleteCharacter(const CharacterDeletePacket* packet) { void CLoginMode::ReceiveDeleteCancel(const CharacterDeletePacket* packet) { std::string message; if (packet->result == 0) { - message = LookupMessage(1816); + message = LookupMessage(MSI_RESULT_FAIL_UNKNOWN); } else if (packet->result == 1) { for (int i = 0; i < this->characterCount; ++i) { if (this->characters[i].gid == packet->gid) { @@ -881,9 +882,9 @@ void CLoginMode::ReceiveDeleteCancel(const CharacterDeletePacket* packet) { } this->pendingCursorType = 7; } else if (packet->result == 2) { - message = LookupMessage(1817); + message = LookupMessage(MSI_RESULT_FAIL_DATABASE); } else { - message = LookupMessage(1816); + message = LookupMessage(MSI_RESULT_FAIL_UNKNOWN); } if (!message.empty()) { @@ -897,7 +898,7 @@ void CLoginMode::ReceiveDeleteReservation(const CharacterDeletePacket* packet) { std::string message; switch (packet->result) { case 0: - message = LookupMessage(1816); + message = LookupMessage(MSI_RESULT_FAIL_UNKNOWN); break; case 1: for (int i = 0; i < this->characterCount; ++i) { @@ -913,22 +914,22 @@ void CLoginMode::ReceiveDeleteReservation(const CharacterDeletePacket* packet) { case 2: break; case 3: - message = LookupMessage(1817); + message = LookupMessage(MSI_RESULT_FAIL_DATABASE); break; case 4: - message = LookupMessage(1818); + message = LookupMessage(MSI_RESULT_FAIL_GUILD); break; case 5: - message = LookupMessage(1819); + message = LookupMessage(MSI_RESULT_FAIL_PARTY); break; case 6: - message = LookupMessage(2981); + message = LookupMessage(MSI_RESULT_FAILED_ASSISTANT_POS_CHARACTER); break; case 7: - message = LookupMessage(3092); + message = LookupMessage(MSI_ZENY_LOTTO_RODEX_WINNER_TITLE); break; default: - message = LookupMessage(1816); + message = LookupMessage(MSI_RESULT_FAIL_UNKNOWN); break; } @@ -964,7 +965,7 @@ void CLoginMode::ReceiveMapStates(const MapStatePacket* packet) { } if (this->mapStates.size() == 0) { - g_windowMgr.Confirm(LookupMessage(1811), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NOT_EXIST_ENTRYMAP), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 7; return; } @@ -1070,7 +1071,7 @@ void CLoginMode::SubD97780(int value) { case 5: if (static_cast(timeGetTime()) > this->otpStarted + 0x13880) { GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(1), 0, true, false, 0, "Message", 280, 120, 0) != 0x10D) { + if (g_windowMgr.Confirm(LookupMessage(MSI_SERVER_CONNECTION_FAILED), 0, true, false, 0, "Message", 280, 120, 0) != 0x10D) { this->otpStarted = timeGetTime(); g_charServerAccountIdPending = 0; this->pendingCursorType = 3; @@ -1080,7 +1081,7 @@ void CLoginMode::SubD97780(int value) { case 6: if (static_cast(timeGetTime()) > this->otpStarted + 0x3A98) { GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(1), 0, true, false, 0, "Message", 280, 120, 0) != 0x10D) { + if (g_windowMgr.Confirm(LookupMessage(MSI_SERVER_CONNECTION_FAILED), 0, true, false, 0, "Message", 280, 120, 0) != 0x10D) { g_modeMgr.Quit(); } } @@ -1088,7 +1089,7 @@ void CLoginMode::SubD97780(int value) { case 12: if (static_cast(timeGetTime()) > this->otpStarted + 0x3A98) { GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(1), 0, true, false, 0, "Message", 280, 120, 0) != 0x10D) { + if (g_windowMgr.Confirm(LookupMessage(MSI_SERVER_CONNECTION_FAILED), 0, true, false, 0, "Message", 280, 120, 0) != 0x10D) { this->otpStarted = timeGetTime(); g_charServerAccountIdPending = 0; this->pendingCursorType = 3; @@ -1102,7 +1103,7 @@ void CLoginMode::SubD97780(int value) { if (this->unknown_6F74 == true && this->unknown_6F75 == true) { this->unknown_6F76 = true; if (!g_windowMgr.HasModalWindow()) { - if (g_windowMgr.Confirm(LookupMessage(0xD16), 0, true, false, 0, "Message", 280, 120, 0) == 0xB8) { + if (g_windowMgr.Confirm(LookupMessage(MSI_PRIVATE_AIRPLANE_FAILED_SAME_MAP), 0, true, false, 0, "Message", 280, 120, 0) == 0xB8) { this->unknown_6F75 = false; this->unknown_6F76 = false; this->unknown_6F74 = false; @@ -1116,7 +1117,7 @@ void CLoginMode::SubD97780(int value) { if (static_cast(timeGetTime()) > this->otpStarted + 0x13880) { GetRagConnection().Close(); if (this->unknown_6F74 == false) { - if (g_windowMgr.Confirm(LookupMessage(0xD70), 0, true, false, 0, "Message", 280, 120, 0) == 0xB8) { + if (g_windowMgr.Confirm(LookupMessage(MSI_NO_PARTY_FOUND), 0, true, false, 0, "Message", 280, 120, 0) == 0xB8) { this->unknown_6F74 = false; this->otpStarted = timeGetTime(); this->pendingCursorType = 3; @@ -1206,11 +1207,11 @@ void CLoginMode::OpenAccountRegistration() { switch (g_serviceType) { case ServiceKorea: if (*reinterpret_cast(&g_session.unknown_59DC[0x198]) == 1) { - const char* url = LookupMessage(1308); + const char* url = LookupMessage(MSI_SETTLE_WEB_URL_HANGAME); const char source[] = {'\x30', '\x45', '\xCA', '\xFB', '\x9D'}; ShellExecuteA(hWnd, DecryptName<0xCFF3899D95AF355FULL>(source), url, nullptr, nullptr, SW_SHOWNORMAL); } else { - const char* url = LookupMessage(528); + const char* url = LookupMessage(MSI_SETTLE_WEB_URL); const char source[] = {'\x4A', '\x01', '\xCA', '\xA5', '\x0D'}; ShellExecuteA(hWnd, DecryptName<0xE52DF30DCBAF7125ULL>(source), url, nullptr, nullptr, SW_SHOWNORMAL); } @@ -1238,7 +1239,7 @@ void CLoginMode::OpenAccountRegistration() { break; } default: { - const char* url = LookupMessage(528); + const char* url = LookupMessage(MSI_SETTLE_WEB_URL); const char source[] = {'\x02', '\xCB', '\xF0', '\x43', '\x93'}; ShellExecuteA(hWnd, DecryptName<0xC517FB932D95BB6DULL>(source), url, nullptr, nullptr, SW_SHOWNORMAL); break; @@ -1263,50 +1264,50 @@ void CLoginMode::ReceiveRefuseLogin(const RefuseLoginPacket* packet) { char text[260]; memset(text, 0, sizeof(text)); { - const char* message = LookupMessage(3202); + const char* message = LookupMessage(MSI_NAVIGATION_ROADLISTVIEW); const char source[] = {'\x40', '\x6A', '\x45'}; StringFormat(text, sizeof(text), static_cast(-1), DecryptName<0x891B232D09451965ULL>(source), message); } switch (packet->result) { case 1: { - const char* message = LookupMessage(3196); + const char* message = LookupMessage(MSI_TAREN_LOGINREFUSE_FAIL_PERSONALNUMBER); const char source[] = {'\x9C', '\x76', '\x77'}; StringFormat(text, sizeof(text), static_cast(-1), DecryptName<0x758F1D0B4F7705B9ULL>(source), message); break; } case 2: { - const char* message = LookupMessage(3197); + const char* message = LookupMessage(MSI_TAREN_LOGINREFUSE_FAIL_ACCOUNT_BLOCK); const char source[] = {'\x50', '\xBE', '\xED'}; StringFormat(text, sizeof(text), static_cast(-1), DecryptName<0x35E5656B5DEDCD75ULL>(source), message); break; } case 3: { - const char* message = LookupMessage(3198); + const char* message = LookupMessage(MSI_TAREN_LOGINREFUSE_FAIL_SYSTEM); const char source[] = {'\xD8', '\xCA', '\xBB'}; StringFormat(text, sizeof(text), static_cast(-1), DecryptName<0x4941FD9F21BBB9FDULL>(source), message); break; } case 4: { - const char* message = LookupMessage(3199); + const char* message = LookupMessage(MSI_TAREN_LOGINREFUSE_FAIL_UNKNOWN); const char source[] = {'\xD8', '\xA4', '\x4D'}; StringFormat(text, sizeof(text), static_cast(-1), DecryptName<0xE7978FB5A94DD7FDULL>(source), message); break; } case 5: { - const char* message = LookupMessage(3200); + const char* message = LookupMessage(MSI_NAVIGATION_ICONTITEL); const char source[] = {'\x4E', '\xCA', '\xC7'}; StringFormat(text, sizeof(text), static_cast(-1), DecryptName<0xB7FD8F670FC7B96BULL>(source), message); break; } case 6: { - const char* message = LookupMessage(3201); + const char* message = LookupMessage(MSI_NAVIGATION_RUITELISTTITEL); const char source[] = {'\xAA', '\xEA', '\xEB'}; StringFormat(text, sizeof(text), static_cast(-1), DecryptName<0x39FF7FB50DEB998FULL>(source), message); break; } case 7: { - const char* message = LookupMessage(3214); + const char* message = LookupMessage(MSI_NAVIGATION_V4_HELP02); const char source[] = {'\xB2', '\x82', '\xE1'}; StringFormat(text, sizeof(text), static_cast(-1), DecryptName<0x2FE993D1DDE1F197ULL>(source), message); break; @@ -1314,13 +1315,13 @@ void CLoginMode::ReceiveRefuseLogin(const RefuseLoginPacket* packet) { case 8: case 100: case 102: { - const char* message = LookupMessage(3202); + const char* message = LookupMessage(MSI_NAVIGATION_ROADLISTVIEW); const char source[] = {'\xE8', '\x82', '\x99'}; StringFormat(text, sizeof(text), static_cast(-1), DecryptName<0xAD075B8DB599F1CDULL>(source), message); break; } case 9: { - const char* message = LookupMessage(3911); + const char* message = LookupMessage(MSI_ZEROQUEST_SIMPLEUI_ON); const char source[] = {'\x5A', '\x66', '\x8D'}; StringFormat(text, sizeof(text), static_cast(-1), DecryptName<0x2F8B0F37118D157FULL>(source), message); break; @@ -1328,7 +1329,7 @@ void CLoginMode::ReceiveRefuseLogin(const RefuseLoginPacket* packet) { case 101: { char blockDate[21] = {}; memcpy_s(blockDate, 20, packet->blockDate, 20); - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(449), blockDate); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_LOGIN_REFUSE_BLOCKED_UNTIL), blockDate); break; } default: @@ -1382,16 +1383,16 @@ void CLoginMode::ReceiveLoginErrorDetail(const LoginErrorDetailPacket* packet) { this->otpStarted = timeGetTime(); break; case 500: - message = LookupMessage(1752); + message = LookupMessage(MSI_OTP_FAILED); break; case 600: - message = LookupMessage(7); + message = LookupMessage(MSI_INCORRECT_PASSWORD); break; case 700: - message = LookupMessage(3252); + message = LookupMessage(MSI_AUTHORIZATION_CODE); break; case 900: { - ShowErrorDialog(GetRenderSystemHolder()->system, LookupMessage(3462), 0); + ShowErrorDialog(GetRenderSystemHolder()->system, LookupMessage(MSI_CHECK_ATTENDANCE_REWARD), 0); const char parametersSource[] = {'\x7F', '\x25', '\x95', '\x31', '\x03', '\xEC', '\xAC', '\xF5', '\x78', '\x7F', '\x86', '\x2F', '\x53', '\xAC', '\xFA', '\xA9', '\x74', '\x3E', '\x8C', '\x6E', '\x39'}; const char* parametersText = DecryptName<0x8783C33941E15117ULL>(parametersSource); @@ -1407,7 +1408,7 @@ void CLoginMode::ReceiveLoginErrorDetail(const LoginErrorDetailPacket* packet) { message = LookupMessage(4355); break; default: - message = LookupMessage(1816); + message = LookupMessage(MSI_RESULT_FAIL_UNKNOWN); break; } @@ -1461,19 +1462,19 @@ void CLoginMode::ReceiveLoginError(const LoginErrorPacket* packet) { this->otpStarted = timeGetTime(); break; case 500: - message = LookupMessage(1752); + message = LookupMessage(MSI_OTP_FAILED); break; case 600: - message = LookupMessage(7); + message = LookupMessage(MSI_INCORRECT_PASSWORD); break; case 700: - message = LookupMessage(3252); + message = LookupMessage(MSI_AUTHORIZATION_CODE); break; case 800: - message = LookupMessage(3440); + message = LookupMessage(MSI_NO_PARTY_FOUND); break; default: - message = LookupMessage(1816); + message = LookupMessage(MSI_RESULT_FAIL_UNKNOWN); break; } @@ -1661,12 +1662,12 @@ void CLoginMode::SubD90C90(const PasswordModePacket* packet) { case PINCODE_ILLEGAL: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); this->pendingCursorType = 7; - g_windowMgr.Confirm(LookupMessage(0x768), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_EDIT_RESTRICT_PW), 0, true, false, 0, "Message", 280, 120, 0); break; case PINCODE_KSSN: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); this->pendingCursorType = 7; - g_windowMgr.Confirm(LookupMessage(0x769), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_EDIT_PERSONALNUM_PW), 0, true, false, 0, "Message", 280, 120, 0); break; case PINCODE_PASSED: g_session.m_passwordWndMode = 1; @@ -1676,29 +1677,29 @@ void CLoginMode::SubD90C90(const PasswordModePacket* packet) { g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); if (packet->count != 0) { this->pendingCursorType = 7; - std::string message = FormatOwnedString(LookupMessage(0x764), packet->count); + std::string message = FormatOwnedString(LookupMessage(MSI_SECOND_PASSWORD_LOGIN_FAILED), packet->count); g_windowMgr.Confirm(message.c_str(), 0, true, false, 0, "Message", 280, 120, 0); } else { - g_windowMgr.Confirm(LookupMessage(0xD7E), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_ACCOUNTLINKEDUSERDATA_LOAD_FAIL), 0, true, false, 0, "Message", 280, 120, 0); this->SendMsg(MM_QUIT, 0, 0, 0, 0); } break; case 9: { - const char* text = LookupMessage(0xC81); + const char* text = LookupMessage(MSI_NAVIGATION_RUITELISTTITEL); const char source[] = {'\xF2', '\xE6', '\x37', '\xBE', '\x35', '\x6C', '\x87'}; g_windowMgr.Confirm(FormatString(DecryptName<0x0B8745519B1F95D7ULL>(source), text, 9), 0, true, false, 0, "Message", 280, 120, 0); break; } case 10: { - const char* text = LookupMessage(0xC81); + const char* text = LookupMessage(MSI_NAVIGATION_RUITELISTTITEL); const char source[] = {'\xF0', '\x4A', '\x03', '\x6C', '\x83', '\x8E', '\x97'}; g_windowMgr.Confirm(FormatString(DecryptName<0xA597A7E7492B39D5ULL>(source), text, 10), 0, true, false, 0, "Message", 280, 120, 0); break; } case 11: { - const char* text = LookupMessage(0xC81); + const char* text = LookupMessage(MSI_NAVIGATION_RUITELISTTITEL); const char source[] = {'\x56', '\x9C', '\x93', '\xF4', '\xB1', '\xCA', '\xAB'}; g_windowMgr.Confirm(FormatString(DecryptName<0xFFABE3D5D1BBEF73ULL>(source), text, 11), 0, true, false, 0, "Message", 280, 120, 0); @@ -1741,12 +1742,12 @@ void CLoginMode::SubD911C0(const PasswordModePacket* packet) { case PINCODE_ILLEGAL: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); this->pendingCursorType = 7; - g_windowMgr.Confirm(LookupMessage(0x768), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_EDIT_RESTRICT_PW), 0, true, false, 0, "Message", 280, 120, 0); break; case PINCODE_KSSN: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); this->pendingCursorType = 7; - g_windowMgr.Confirm(LookupMessage(0x769), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_EDIT_PERSONALNUM_PW), 0, true, false, 0, "Message", 280, 120, 0); break; case PINCODE_PASSED: g_session.m_passwordWndMode = 1; @@ -1758,30 +1759,30 @@ void CLoginMode::SubD911C0(const PasswordModePacket* packet) { const int remaining = 3 - this->passwordRetryCount; this->pendingCursorType = 7; if (remaining > 0) { - std::string message = FormatOwnedString(LookupMessage(0x764), remaining); + std::string message = FormatOwnedString(LookupMessage(MSI_SECOND_PASSWORD_LOGIN_FAILED), remaining); g_windowMgr.Confirm(message.c_str(), 0, true, false, 0, "Message", 280, 120, 0); } else { - g_windowMgr.Confirm(LookupMessage(0x773), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_INFO_3), 0, true, false, 0, "Message", 280, 120, 0); this->SendMsg(MM_QUIT, 0, 0, 0, 0); } break; } case 9: { - const char* text = LookupMessage(0xC81); + const char* text = LookupMessage(MSI_NAVIGATION_RUITELISTTITEL); const char source[] = {'\x16', '\x10', '\x7D', '\xD4', '\x4D', '\x1C', '\xD3'}; g_windowMgr.Confirm(FormatString(DecryptName<0x49D33529F1556333ULL>(source), text, 9), 0, true, false, 0, "Message", 280, 120, 0); break; } case 10: { - const char* text = LookupMessage(0xC81); + const char* text = LookupMessage(MSI_NAVIGATION_RUITELISTTITEL); const char source[] = {'\x14', '\x8A', '\xFB', '\xDC', '\x79', '\x66', '\xCB'}; g_windowMgr.Confirm(FormatString(DecryptName<0x01CB4F1DF9D3F931ULL>(source), text, 10), 0, true, false, 0, "Message", 280, 120, 0); break; } case 11: { - const char* text = LookupMessage(0xC81); + const char* text = LookupMessage(MSI_NAVIGATION_RUITELISTTITEL); const char source[] = {'\xB2', '\xBA', '\xE1', '\xBE', '\xA9', '\x92', '\xB1'}; g_windowMgr.Confirm(FormatString(DecryptName<0xC5B1BBCD9BC9C997ULL>(source), text, 11), 0, true, false, 0, "Message", 280, 120, 0); @@ -1872,7 +1873,7 @@ void CLoginMode::Zc_Accept_Enter3(const AcceptEnterPositionPacket* packet) { char mapName[36]; sprintf(mapName, "%s.rsw", g_session.m_navigationPlayerMap); g_modeMgr.Switch(1, mapName); - static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(121), 17, 1); + static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(MSI_PLEASE_BE_PATIENT), 17, 1); GetRagConnection().SetBlock(0); g_session.SetOption(17, 0, 0); @@ -1914,7 +1915,7 @@ void CLoginMode::Zc_Accept_Enter2(const AcceptEnterPositionPacket* packet) { char mapName[36]; sprintf(mapName, "%s.rsw", g_session.m_navigationPlayerMap); g_modeMgr.Switch(1, mapName); - static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(121), 17, 1); + static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(MSI_PLEASE_BE_PATIENT), 17, 1); GetRagConnection().SetBlock(0); if (g_pingLogEnabled) { @@ -1948,16 +1949,16 @@ void CLoginMode::ShowLoginError(int code, int argument) { switch (code) { case 0x1393: - message = LookupMessage(0x72F); + message = LookupMessage(MSI_REFUSE_SSO_AUTH_INVALID_TOKEN); break; case 0x1394: { - const std::string text = FormatOwnedString(LookupMessage(0x337), argument); + const std::string text = FormatOwnedString(LookupMessage(MSI_BLOCKED), argument); message = text; break; } case 0x1395: case 0x13BE: - message = LookupMessage(0x6FD); + message = LookupMessage(MSI_WITHDREW_USERS); break; case 0x1397: if (g_launchPassCommandLine) { @@ -1974,16 +1975,16 @@ void CLoginMode::ShowLoginError(int code, int argument) { g_modeMgr.Quit(); return; } - message = LookupMessage(0x730); + message = LookupMessage(MSI_REFUSE_SSO_AUTH_INVALID_USER); break; case 0x1399: - message = LookupMessage(0x731); + message = LookupMessage(MSI_REFUSE_SSO_AUTH_INVALID_AGE); break; case 0x13C7: - message = LookupMessage(0x701); + message = LookupMessage(MSI_ACCOUNT_BLOCK); break; case 0x13C8: - message = LookupMessage(0x702); + message = LookupMessage(MSI_BUG_BLOCK); break; case 0x1396: case 0x1398: @@ -1998,25 +1999,25 @@ void CLoginMode::ShowLoginError(int code, int argument) { case 0x13C3: case 0x13C4: case 0x13C5: - message = LookupMessage(0x72E); + message = LookupMessage(MSI_SSO_ERROR_MSG); break; case 0x13BA: - message = LookupMessage(0x726); + message = LookupMessage(MSI_REFUSE_SSO_NOT_PAY_USER); break; case 0x13BB: - message = LookupMessage(5); + message = LookupMessage(MSI_DOUBLE_LOGIN_PROHIBITED); break; case 0x14B4: - message = LookupMessage(0xDCE); + message = LookupMessage(MSI_RUSSIA_PERSONALINFO_DEATH); break; case 0x14B5: - message = LookupMessage(0xDD3); + message = LookupMessage(MSI_RODEX_BUTTON_DELETE); break; case 33: - message = LookupMessage(0xA7A); + message = LookupMessage(MSI_TITLE_EQUIPMENT); break; case REFUSE_INVALID_ID: - message = LookupMessage(6); + message = LookupMessage(MSI_INCORRECT_USERID); break; case REFUSE_INVALID_PASSWD: if (g_serviceType == 0 && ++g_loginFailCount >= 3) { @@ -2039,70 +2040,70 @@ void CLoginMode::ShowLoginError(int code, int argument) { } message.clear(); } else { - message = LookupMessage(0x10B); + message = LookupMessage(MSI_INCORRECT_LOGIN_PASSWORD); } break; case REFUSE_ID_EXPIRED: - message = LookupMessage(8); + message = LookupMessage(MSI_ID_EXPIRED); break; case REFUSE_NOT_CONFIRMED: case 0x13C6: - message = LookupMessage(0x10A); + message = LookupMessage(MSI_ID_EMAIL_CONFIRM_NEEDED); break; case REFUSE_INVALID_VERSION: - message = LookupMessage(0x136); + message = LookupMessage(MSI_INVALID_VERSION); break; case REFUSE_DELETED_ACCOUNT: - message = LookupMessage(0x170); + message = LookupMessage(MSI_DELETED_ACCOUNT); break; case REFUSE_BLOCK_TEMPORARY: { - const std::string text = FormatOwnedString(LookupMessage(0x1C1), argument); + const std::string text = FormatOwnedString(LookupMessage(MSI_LOGIN_REFUSE_BLOCKED_UNTIL), argument); message = text; break; } case REFUSE_TEMP_BAN_HACKING_INVESTIGATION: { - const std::string text = FormatOwnedString(LookupMessage(0x32A), argument); + const std::string text = FormatOwnedString(LookupMessage(MSI_HACKING_INVESTIGATION), argument); message = text; break; } case REFUSE_TEMP_BAN_BUG_INVESTIGATION: - message = LookupMessage(0x32B); + message = LookupMessage(MSI_BUG_INVESTIGATION); break; case REFUSE_TEMP_BAN_DELETING_CHAR: - message = LookupMessage(0x35B); + message = LookupMessage(MSI_DELETING_CHAR); break; case REFUSE_TEMP_BAN_DELETING_SPOUSE_CHAR: - message = LookupMessage(0x35C); + message = LookupMessage(MSI_DELETING_SPOUSE_CHAR); break; case 7: - message = LookupMessage(0x1B7); + message = LookupMessage(MSI_ACCOUNT_BUSY); break; case REFUSE_NONSAKRAY_ID_BLOCKED: - message = LookupMessage(0x2A9); + message = LookupMessage(MSI_REFUSE_NONSAKRAY_ID_BLOCKED); break; case REFUSE_BAN_BY_DBA: - message = LookupMessage(0x2BF); + message = LookupMessage(MSI_REFUSE_BAN_BY_DBA); break; case REFUSE_EMAIL_NOT_CONFIRMED: - message = LookupMessage(0x2C0); + message = LookupMessage(MSI_REFUSE_EMAIL_NOT_CONFIRMED); break; case REFUSE_BAN_BY_GM: - message = LookupMessage(0x2C1); + message = LookupMessage(MSI_REFUSE_BAN_BY_GM); break; case REFUSE_TEMP_BAN_FOR_DBWORK: - message = LookupMessage(0x2C2); + message = LookupMessage(MSI_REFUSE_TEMP_BAN_FOR_DBWORK); break; case REFUSE_SELF_LOCK: - message = LookupMessage(0x2C3); + message = LookupMessage(MSI_REFUSE_SELF_LOCK); break; case REFUSE_NOT_PERMITTED_GROUP: - message = LookupMessage(0x2C4); + message = LookupMessage(MSI_REFUSE_NOT_PERMITTED_GROUP); break; case REFUSE_WAIT_FOR_SAKRAY_ACTIVE: - message = LookupMessage(0x2C5); + message = LookupMessage(MSI_REFUSE_WAIT_FOR_SAKRAY_ACTIVE); break; case REFUSE_ALREADY_CONNECT: { - const std::string text = FormatOwnedString(LookupMessage(0x329), argument); + const std::string text = FormatOwnedString(LookupMessage(MSI_ALREADY_CONNECT), argument); message = text; break; } @@ -2127,13 +2128,13 @@ void CLoginMode::ShowLoginError(int code, int argument) { } break; case ACCEPT_LOGIN_USER_PHONE_BLOCK: - message = LookupMessage(0x50D); + message = LookupMessage(MSI_PHONE_CONFIRM); break; case REFUSE_USER_PHONE_BLOCK: - message = LookupMessage(0x55C); + message = LookupMessage(MSI_PHONE_BLOCK); break; case 17: { - const std::string text = FormatOwnedString(LookupMessage(0x564), argument); + const std::string text = FormatOwnedString(LookupMessage(MSI_RE17), argument); message = text; if (g_windowMgr.Confirm(message.c_str(), 2, true, true, 0, "Message", 280, 120, 0) == 0xBB) { g_modeMgr.Quit(); @@ -2142,19 +2143,19 @@ void CLoginMode::ShowLoginError(int code, int argument) { break; } case 18: - message = LookupMessage(0x565); + message = LookupMessage(MSI_RE18); break; case 19: - message = LookupMessage(0x6D7); + message = LookupMessage(MSI_DB_ERROR); break; case 20: - message = LookupMessage(0x6D8); + message = LookupMessage(MSI_OTP_FAILED); break; case 108: - message = LookupMessage(0x571); + message = LookupMessage(MSI_MAIN_USER_CANONT_LOGIN_FREE_SERVER); break; case 109: - message = LookupMessage(0x572); + message = LookupMessage(MSI_INVALID_ONETIMELIMIT); break; case 22: case 23: @@ -2163,21 +2164,21 @@ void CLoginMode::ShowLoginError(int code, int argument) { case 26: case 27: case 30: - message = LookupMessage(0xD70); + message = LookupMessage(MSI_NO_PARTY_FOUND); break; case 28: - message = LookupMessage(0xAAB); + message = LookupMessage(MSI_FAILED_MAIL_CAUSE_TO_USE_ITEM); break; case 29: - message = LookupMessage(0xAAC); + message = LookupMessage(MSI_FAILIED_ONECLICK_ITEMIDENTIFY_NO_MAGNIFIER); break; case 21: case 0x139A: - message = LookupMessage(0x6FA); + message = LookupMessage(MSI_SSO_FAILED); break; case 110: - if (g_windowMgr.Confirm(LookupMessage(0x929), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8) { - const char* file = LookupMessage(0x92A); + if (g_windowMgr.Confirm(LookupMessage(MSI_SHOUTDOWN_TIME), 0, true, true, 0, "Message", 280, 120, 0) == 0xB8) { + const char* file = LookupMessage(MSI_PARTIAL_SHOUTDOWN_TIME); const char source[] = {'\xFC', '\x05', '\xBA', '\x81', '\x4D'}; ShellExecuteA(hWnd, DecryptName<0x9B0F234DEFDF7593ULL>(source), file, nullptr, nullptr, SW_SHOWNORMAL); g_modeMgr.Quit(); @@ -2185,25 +2186,25 @@ void CLoginMode::ShowLoginError(int code, int argument) { message = ""; break; case 112: - message = LookupMessage(0x96A); + message = LookupMessage(MSI_NAVIGATION_HELP_3); break; case 242: - message = LookupMessage(0xD6F); + message = LookupMessage(MSI_THE_PARTY_MASTER_CANNOT_BE_REQUESTED); break; case 36: { const int remaining = this->unknown_6F78; - const std::string text = FormatOwnedString(LookupMessage(0xD7D), remaining / 3600, static_cast(std::ceil(static_cast(remaining % 3600) / 60.0f))); + const std::string text = FormatOwnedString(LookupMessage(MSI_CHECK_ATTENDANCE_RODEX_CONTENTS), remaining / 3600, static_cast(std::ceil(static_cast(remaining % 3600) / 60.0f))); message = text; break; } case 243: - message = LookupMessage(0xE67); + message = LookupMessage(MSI_UPGRADESKILLERROR_MORE_THIRDJOBSKILL); break; case 244: - message = LookupMessage(0x105E); + message = LookupMessage(MSI_TIPTAG_FOCUS_WARNING); break; default: { - message = LookupMessage(9); + message = LookupMessage(MSI_ACCESS_DENIED); const char source[] = {'\x6B', '\x1C', '\x3F', '\x42', '\x67'}; message += FormatOwnedString(DecryptName<0xC9712D676B5B3943ULL>(source), code); break; @@ -2267,17 +2268,17 @@ bool CLoginMode::ShowNotice(int notice, bool append) { switch (notice) { case 45: - window->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(2163)), 0, 0, 0); + window->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_MSG_MAKECHARCTER)), 0, 0, 0); window->SendMsg(nullptr, UM_ADJUSTSIZE, 0, 0, 0, 0); this->unknown_6F1C.push_back(45); break; case 46: - window->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(2164)), 0, 0, 0); + window->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_UAE_URL)), 0, 0, 0); window->SendMsg(nullptr, UM_ADJUSTSIZE, 0, 0, 0, 0); this->unknown_6F1C.push_back(46); break; case 47: - window->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(2165)), 0, 0, 0); + window->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_UAE_SERVERSTR)), 0, 0, 0); window->SendMsg(nullptr, UM_ADJUSTSIZE, 0, 0, 0, 0); this->unknown_6F1C.push_back(47); break; @@ -2317,7 +2318,7 @@ static void ComputeLoginDigest(unsigned char* digest, const void* data, int size // FUNCTION: fn_22264 void CLoginMode::ReceiveAcceptLogin(const AcceptLoginPacket* packet, int version) { g_loginAcceptTime = timeGetTime(); - *reinterpret_cast(&g_session.unknown_56B8[4]) = LookupMessage(940); + *reinterpret_cast(&g_session.unknown_56B8[4]) = LookupMessage(MSI_AUTO_MSG); SessionAccount& account = *reinterpret_cast(&g_session.m_sex); account.authCode = packet->authCode; @@ -2449,25 +2450,25 @@ void CLoginMode::PollNetworkStatus() { GetRagConnection().Close(); switch (reinterpret_cast(g_gameModePacketBuffer)->result) { case 1: - g_windowMgr.Confirm(LookupMessage(0xD0), 0, true, true, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_ID_MISMATCH), 0, true, true, 0, "Message", 280, 120, 0); g_charServerAccountIdPending = 0; this->pendingCursorType = 3; break; case 0x6F: - g_windowMgr.Confirm(LookupMessage(0x749), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_OVER_CONNECT_USER), 0, true, false, 0, "Message", 280, 120, 0); g_charServerAccountIdPending = 0; this->pendingCursorType = 3; break; case 0x76: - g_windowMgr.Confirm(LookupMessage(0xEEA), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_GRADE_ENCHANT_REFINING_LEVEL_LACK), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 6; break; case 0x77: - g_windowMgr.Confirm(LookupMessage(0xB71), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_ASSISTANT_TRADE_DATE), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 6; break; default: - g_windowMgr.Confirm(LookupMessage(9), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_ACCESS_DENIED), 0, true, false, 0, "Message", 280, 120, 0); g_charServerAccountIdPending = 0; this->pendingCursorType = 3; break; @@ -2545,7 +2546,7 @@ void CLoginMode::PollNetworkStatus() { this->Zc_Accept_Enter2(reinterpret_cast(g_gameModePacketBuffer)); return; case ID_ZC_REFUSE_ENTER: - g_windowMgr.Confirm(LookupMessage(9), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_ACCESS_DENIED), 0, true, false, 0, "Message", 280, 120, 0); GetRagConnection().Close(); g_charServerAccountIdPending = 0; this->pendingCursorType = 3; @@ -2557,7 +2558,7 @@ void CLoginMode::PollNetworkStatus() { this->ReceiveBillingInfo(g_gameModePacketBuffer); break; case 0x1BE: - if (g_windowMgr.Confirm(LookupMessage(0x2B3), 2, true, false, 0, "Message", 280, 120, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_ASK_PNGAMEROOM), 2, true, false, 0, "Message", 280, 120, 0) == 0xBB) { GameRoomReplyPacket reply; reply.id = 0x1BF; reply.permission = 1; @@ -2592,7 +2593,7 @@ void CLoginMode::PollNetworkStatus() { break; } case 0x23D: - g_windowMgr.Confirm(LookupMessage(0x3FC), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_EVENT_RESULT), 0, true, false, 0, "Message", 280, 120, 0); break; case 0x28B: { const AcceptEnterNeoUnionPacket* packet = reinterpret_cast(g_gameModePacketBuffer); @@ -2613,7 +2614,7 @@ void CLoginMode::PollNetworkStatus() { const ShortResultPacket* packet = reinterpret_cast(g_gameModePacketBuffer); if (packet->result != 0) { char text[300]; - sprintf(text, LookupMessage(0x4BD), reinterpret_cast(&g_session.unknown_5913[5])); + sprintf(text, LookupMessage(MSI_CONFIRM_TO_CHANGE_NAME), reinterpret_cast(&g_session.unknown_5913[5])); if (g_windowMgr.Confirm(text, 2, false, false, 0, "Message", 280, 120, 0) == 0xBB) { ChangeCharacterNamePacket request; request.id = 0x28F; @@ -2621,7 +2622,7 @@ void CLoginMode::PollNetworkStatus() { GetRagConnection().Send(g_packetLengths.FixedLength(request.id), &request); break; } - } else if (g_windowMgr.Confirm(LookupMessage(10), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { + } else if (g_windowMgr.Confirm(LookupMessage(MSI_CHARACTER_NAME_ALREADY_EXISTS), 0, true, true, 0, "Message", 280, 120, 0) != 0xB8) { break; } @@ -2636,22 +2637,22 @@ void CLoginMode::PollNetworkStatus() { case 0x2CA: switch (reinterpret_cast(g_gameModePacketBuffer)->result) { case 0: - g_windowMgr.Confirm(LookupMessage(0x546), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_FR_INVALID_SLOT), 0, true, false, 0, "Message", 280, 120, 0); break; case 1: - g_windowMgr.Confirm(LookupMessage(0x547), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_FR_BASELVL), 0, true, false, 0, "Message", 280, 120, 0); break; case 2: - g_windowMgr.Confirm(LookupMessage(0x548), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_FR_INVALID_JOBLV), 0, true, false, 0, "Message", 280, 120, 0); break; case 3: - g_windowMgr.Confirm(LookupMessage(0x549), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_FR_JOB), 0, true, false, 0, "Message", 280, 120, 0); break; case 4: - g_windowMgr.Confirm(LookupMessage(0x54A), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_FR_MAP), 0, true, false, 0, "Message", 280, 120, 0); break; case 5: - g_windowMgr.Confirm(LookupMessage(0x554), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_FR_INVALID_MONEY), 0, true, false, 0, "Message", 280, 120, 0); break; } this->pendingCursorType = GetRagConnection().NativeSocket() != INVALID_SOCKET ? 7 : 3; @@ -2695,26 +2696,26 @@ void CLoginMode::PollNetworkStatus() { switch (packet->result) { case 0: g_windowMgr.CloseWindow(WID_SECONDPASSWORDEDITWND); - g_windowMgr.Confirm(LookupMessage(0x761), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_MAKE_SUCCESS), 0, true, false, 0, "Message", 280, 120, 0); break; case 1: g_windowMgr.CloseWindow(WID_SECONDPASSWORDEDITWND); - g_windowMgr.Confirm(LookupMessage(0x76A), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_MAKE_DUPLICATED_PW), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 7; break; case 2: g_windowMgr.CloseWindow(WID_SECONDPASSWORDEDITWND); - g_windowMgr.Confirm(LookupMessage(0x768), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_EDIT_RESTRICT_PW), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 7; break; case 3: g_windowMgr.CloseWindow(WID_SECONDPASSWORDEDITWND); - g_windowMgr.Confirm(LookupMessage(0x769), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_EDIT_PERSONALNUM_PW), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 7; break; case 4: g_windowMgr.CloseWindow(WID_SECONDPASSWORDEDITWND); - g_windowMgr.Confirm(LookupMessage(0x765), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_MAKE_FAILED), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 7; break; } @@ -2726,11 +2727,11 @@ void CLoginMode::PollNetworkStatus() { switch (packet->result) { case 0: g_windowMgr.CloseWindow(WID_SECONDPASSWORDEDITWND); - g_windowMgr.Confirm(LookupMessage(0x762), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_DEL_SUCCESS), 0, true, false, 0, "Message", 280, 120, 0); break; case 1: g_windowMgr.CloseWindow(WID_SECONDPASSWORDEDITWND); - g_windowMgr.Confirm(LookupMessage(0x766), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_DEL_FAILED), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 7; break; } @@ -2742,21 +2743,21 @@ void CLoginMode::PollNetworkStatus() { switch (packet->result) { case 0: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); - g_windowMgr.Confirm(LookupMessage(0x763), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_EDIT_SUCCESS), 0, true, false, 0, "Message", 280, 120, 0); break; case 1: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); - g_windowMgr.Confirm(LookupMessage(0x767), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_EDIT_FAILED), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 7; break; case 2: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); - g_windowMgr.Confirm(LookupMessage(0x768), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_EDIT_RESTRICT_PW), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 7; break; case 3: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); - g_windowMgr.Confirm(LookupMessage(0x769), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWORD_EDIT_PERSONALNUM_PW), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 7; break; } @@ -2768,13 +2769,13 @@ void CLoginMode::PollNetworkStatus() { switch (packet->result) { case 0: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); - g_windowMgr.Confirm(LookupMessage(0x76D), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWDRD_NOT_AVAILABLE_SUCCESS), 0, true, false, 0, "Message", 280, 120, 0); static_cast(g_windowMgr.window_03D4)->EnableButtonById(0x1A2); g_session.m_passwordWndMode = 1; break; case 1: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); - g_windowMgr.Confirm(LookupMessage(0x76E), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWDRD_NOT_AVAILABLE_FAILED), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 7; break; } @@ -2784,12 +2785,12 @@ void CLoginMode::PollNetworkStatus() { switch (reinterpret_cast(g_gameModePacketBuffer)->result) { case 0: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); - g_windowMgr.Confirm(LookupMessage(0x76F), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWDRD_AVAILABLE_SUCCESS), 0, true, false, 0, "Message", 280, 120, 0); static_cast(g_windowMgr.window_03D4)->DisableButtonById(0x1A2); break; case 1: g_windowMgr.CloseWindow(WID_SECONDPASSWORDINPUTWND); - g_windowMgr.Confirm(LookupMessage(0x770), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SECOND_PASSWDRD_AVAILABLE_FAILED), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 7; break; } @@ -2797,7 +2798,7 @@ void CLoginMode::PollNetworkStatus() { case ID_HC_ACK_CHANGE_CHARACTER_SLOT_V1: case ID_HC_ACK_CHANGE_CHARACTER_SLOT: if (reinterpret_cast(g_gameModePacketBuffer)->result == 1) { - g_windowMgr.Confirm(LookupMessage(0x7E1), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CHANGE_CHARACTER_SLOT_FAILED), 0, true, false, 0, "Message", 280, 120, 0); } break; case ID_HC_ACK_CHANGE_CHARNAME: @@ -2810,7 +2811,7 @@ void CLoginMode::PollNetworkStatus() { const tm when = *_localtime32(&endTime); char text[0x400]; memset(text, 0, sizeof(text)); - _snprintf(text, sizeof(text), LookupMessage(0x92C), when.tm_year + 1900, when.tm_mon + 1, when.tm_mday, when.tm_hour, when.tm_min, when.tm_sec); + _snprintf(text, sizeof(text), LookupMessage(MSI_MENU_MACROWND), when.tm_year + 1900, when.tm_mon + 1, when.tm_mday, when.tm_hour, when.tm_min, when.tm_sec); g_windowMgr.Confirm(text, 0, true, true, 0, "Message", 280, 120, 0); const std::uint64_t timestamp = static_cast(startTime) * 10000000; const std::int64_t interval = 3600000; @@ -3000,7 +3001,7 @@ int CLoginMode::SendMsg(int event, int argument1, int argument2, int argument3, } case MM_SOCKETERROR: GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(2), 0, true, true, 0, "Message", 280, 120, 0) != 0x10D) { + if (g_windowMgr.Confirm(LookupMessage(MSI_UNABLE_TO_CONNECT_SERVER), 0, true, true, 0, "Message", 280, 120, 0) != 0x10D) { g_charServerAccountIdPending = 0; this->pendingCursorType = 3; } @@ -3027,7 +3028,7 @@ int CLoginMode::SendMsg(int event, int argument1, int argument2, int argument3, *reinterpret_cast(buffer + 2) = 14; GetRagConnection().Send(*reinterpret_cast(buffer + 2), buffer); this->window_6F14 = g_windowMgr.EnsureWindow(WID_WAITWND); - static_cast(this->window_6F14)->SetMessage(LookupMessage(122), 16, 1); + static_cast(this->window_6F14)->SetMessage(LookupMessage(MSI_WAITING_RESPONSE_FROM_SERVER), 16, 1); _freea(buffer); } return 0; @@ -3066,7 +3067,7 @@ int CLoginMode::SendMsg(int event, int argument1, int argument2, int argument3, memcpy_s(packet.code, sizeof(packet.code), &this->unknown_0138[0x80], sizeof(packet.code)); GetRagConnection().Send(reinterpret_cast(&GetRagConnection())->FixedLength(packet.id), &packet); this->window_6F14 = g_windowMgr.EnsureWindow(WID_WAITWND); - static_cast(this->window_6F14)->SetMessage(LookupMessage(122), 16, 1); + static_cast(this->window_6F14)->SetMessage(LookupMessage(MSI_WAITING_RESPONSE_FROM_SERVER), 16, 1); return 0; } case LMM_QUERY_LAST_CHARACTER_INFO: @@ -3085,7 +3086,7 @@ int CLoginMode::SendMsg(int event, int argument1, int argument2, int argument3, ServerAddress2* servers = reinterpret_cast(this->serverList); if (servers[argument1].address.state == 3) { - g_windowMgr.Confirm(LookupMessage(0x2FC), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_CONNECT_TO_PAY_SERVER), 0, true, false, 0, "Message", 280, 120, 0); this->pendingCursorType = 6; return 0; } @@ -3282,19 +3283,19 @@ int CLoginMode::SendMsg(int event, int argument1, int argument2, int argument3, char* output = reinterpret_cast(argument1); switch (this->slotExtension.unknown_0001) { case 100: - std::sprintf(output, LookupMessage(0x215), this->slotExtension.unknown_0005 / 60); + std::sprintf(output, LookupMessage(MSI_BILLING_100), this->slotExtension.unknown_0005 / 60); return 0; case 200: { const std::uint32_t value = this->slotExtension.unknown_0005; - std::sprintf(output, LookupMessage(0x216), value / 3600, (value / 60) % 60, value % 60); + std::sprintf(output, LookupMessage(MSI_BILLING_200), value / 3600, (value / 60) % 60, value % 60); return 0; } case 300: - std::sprintf(output, LookupMessage(0x217)); + std::sprintf(output, LookupMessage(MSI_BILLING_300)); return 0; case 400: { const std::uint32_t value = this->slotExtension.unknown_0009 - this->slotExtension.unknown_0005; - std::sprintf(output, LookupMessage(0x218), value / 3600, (value / 60) % 60, value % 60); + std::sprintf(output, LookupMessage(MSI_BILLING_400), value / 3600, (value / 60) % 60, value % 60); return 0; } case 500: { @@ -3304,22 +3305,22 @@ int CLoginMode::SendMsg(int event, int argument1, int argument2, int argument3, return 0; } case 600: - std::sprintf(output, LookupMessage(0x21B)); + std::sprintf(output, LookupMessage(MSI_BILLING_600)); return 0; case 700: - std::sprintf(output, LookupMessage(0x21C)); + std::sprintf(output, LookupMessage(MSI_BILLING_700)); return 0; case 800: - std::sprintf(output, LookupMessage(0x21D)); + std::sprintf(output, LookupMessage(MSI_BILLING_800)); return 0; default: - std::sprintf(output, LookupMessage(0x64)); + std::sprintf(output, LookupMessage(MSI_CHARACTER_INFO)); return 0; } } case LMM_DISCONNECT_ACSVR: GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(1), 0, true, false, 0, "Message", 280, 120, 0) != 0x10D) { + if (g_windowMgr.Confirm(LookupMessage(MSI_SERVER_CONNECTION_FAILED), 0, true, false, 0, "Message", 280, 120, 0) != 0x10D) { this->otpStarted = timeGetTime(); g_charServerAccountIdPending = 0; this->pendingCursorType = 3; @@ -3683,7 +3684,7 @@ void CLoginMode::OnChangeState(int value) { this->unknown_0018 = GetRagConnection().Connect(*reinterpret_cast(&endpoint)); if (!this->unknown_0018) { GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(1), 1, true, true, 0, "Message", 280, 120, 0) != 0x10D) { + if (g_windowMgr.Confirm(LookupMessage(MSI_SERVER_CONNECTION_FAILED), 1, true, true, 0, "Message", 280, 120, 0) != 0x10D) { this->pendingCursorType = 3; } break; @@ -3709,7 +3710,7 @@ void CLoginMode::OnChangeState(int value) { GetRagConnection().Send(sizeof(packet), &packet); this->otpStarted = timeGetTime(); this->window_6F14 = g_windowMgr.EnsureWindow(WID_WAITWND); - static_cast(this->window_6F14)->SetMessage(LookupMessage(122), 16, 1); + static_cast(this->window_6F14)->SetMessage(LookupMessage(MSI_WAITING_RESPONSE_FROM_SERVER), 16, 1); break; } case 2: @@ -3771,7 +3772,7 @@ void CLoginMode::OnChangeState(int value) { char text[64]; std::memset(text, 0, sizeof(text)); if (server.address.property == 1) { - std::sprintf(text, LookupMessage(0x1E2)); + std::sprintf(text, LookupMessage(MSI_SERVER_PROPERTY_NEW)); } const bool custom = server.address.userCount == 4 && server.address.state == 0; std::sprintf(text + std::strlen(text), custom ? server.domain : server.address.name); @@ -3783,28 +3784,28 @@ void CLoginMode::OnChangeState(int value) { std::string purple = "^BA00FF"; switch (server.address.userCount) { case 0: - status = static_cast(FormatOwnedString("%s%s ^000000%s", green.c_str(), LookupMessage(0xCBD), text)); + status = static_cast(FormatOwnedString("%s%s ^000000%s", green.c_str(), LookupMessage(MSI_SERVER_USERCOUNT_STATE_VERY_BUSY), text)); break; case 1: - status = static_cast(FormatOwnedString("%s%s ^000000%s", orange.c_str(), LookupMessage(0xCBE), text)); + status = static_cast(FormatOwnedString("%s%s ^000000%s", orange.c_str(), LookupMessage(MSI_MENUICON_MAP), text)); break; case 2: - status = static_cast(FormatOwnedString("%s%s ^000000%s", red.c_str(), LookupMessage(0xCBF), text)); + status = static_cast(FormatOwnedString("%s%s ^000000%s", red.c_str(), LookupMessage(MSI_WORLDSTORE_ONLY_INVENTORY), text)); break; case 3: - status = static_cast(FormatOwnedString("%s%s ^000000%s", purple.c_str(), LookupMessage(0xCC0), text)); + status = static_cast(FormatOwnedString("%s%s ^000000%s", purple.c_str(), LookupMessage(MSI_WORLDSTORE_PUT_BLOCK_PETEGG), text)); break; } switch (server.address.state) { case 2: - status.append(LookupMessage(0xCBA)); + status.append(LookupMessage(MSI_SERVER_USERCOUNT_STATE_NICE)); break; case 3: - status.append(LookupMessage(0xCBB)); + status.append(LookupMessage(MSI_SERVER_USERCOUNT_STATE_NORMAL)); break; case 4: - status.append(LookupMessage(0xCBC)); + status.append(LookupMessage(MSI_SERVER_USERCOUNT_STATE_BUSY)); break; } @@ -3932,7 +3933,7 @@ void CLoginMode::OnChangeState(int value) { this->unknown_0018 = GetRagConnection().Connect(*reinterpret_cast(&endpoint)); if (!this->unknown_0018) { GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(1), 1, true, true, 0, "Message", 280, 120, 0) != 0x10D) { + if (g_windowMgr.Confirm(LookupMessage(MSI_SERVER_CONNECTION_FAILED), 1, true, true, 0, "Message", 280, 120, 0) != 0x10D) { g_charServerAccountIdPending = 0; this->pendingCursorType = 3; } @@ -3956,7 +3957,7 @@ void CLoginMode::OnChangeState(int value) { } packet.clientType = static_cast(GetClientType()); GetRagConnection().Send(reinterpret_cast(&GetRagConnection())->FixedLength(packet.id), &packet); - static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(122), 16, 1); + static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(MSI_WAITING_RESPONSE_FROM_SERVER), 16, 1); break; } case 24: @@ -3970,7 +3971,7 @@ void CLoginMode::OnChangeState(int value) { this->unknown_0018 = GetRagConnection().Connect(*reinterpret_cast(&g_charServerEndpoint)); if (!this->unknown_0018) { GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(1), 1, true, true, 0, "Message", 280, 120, 0) != 0x10D) { + if (g_windowMgr.Confirm(LookupMessage(MSI_SERVER_CONNECTION_FAILED), 1, true, true, 0, "Message", 280, 120, 0) != 0x10D) { g_charServerAccountIdPending = 0; this->pendingCursorType = 3; } @@ -3987,7 +3988,7 @@ void CLoginMode::OnChangeState(int value) { packet.userLevel = account.userLevel; packet.sex = static_cast(account.sex); GetRagConnection().Send(reinterpret_cast(&GetRagConnection())->FixedLength(packet.id), &packet); - static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(122), 16, 1); + static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(MSI_WAITING_RESPONSE_FROM_SERVER), 16, 1); g_accountLinkedUserDataMgr->Load(g_session.m_aid, g_session.m_accountName); break; } @@ -4004,7 +4005,7 @@ void CLoginMode::OnChangeState(int value) { packet.sex = g_charInfo.sex; GetRagConnection().Send(reinterpret_cast(&GetRagConnection())->FixedLength(packet.id), &packet); if (UIWaitWnd* wait = static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))) { - wait->SetMessage(LookupMessage(123), 17, 1); + wait->SetMessage(LookupMessage(MSI_MAKING_CHARACTER), 17, 1); } break; } @@ -4031,7 +4032,7 @@ void CLoginMode::OnChangeState(int value) { } else { GetRagConnection().Send(reinterpret_cast(&GetRagConnection())->FixedLength(packet.id), &packet); } - static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(124), 17, 1); + static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(MSI_DELETING_CHARACTER), 17, 1); break; } case 9: { @@ -4042,7 +4043,7 @@ void CLoginMode::OnChangeState(int value) { packet.slot = static_cast(g_selectedSlotIndex); g_cashEmotionMgr->ClearOwnedPacks(); GetRagConnection().Send(reinterpret_cast(&GetRagConnection())->FixedLength(packet.id), &packet); - static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(122), 16, 1); + static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(MSI_WAITING_RESPONSE_FROM_SERVER), 16, 1); break; } case 12: { @@ -4054,7 +4055,7 @@ void CLoginMode::OnChangeState(int value) { this->unknown_0018 = GetRagConnection().Connect(g_zoneServerEndpoint); if (!this->unknown_0018) { GetRagConnection().Close(); - if (g_windowMgr.Confirm(LookupMessage(1), 1, true, true, 0, "Message", 280, 120, 0) != 0x10D) { + if (g_windowMgr.Confirm(LookupMessage(MSI_SERVER_CONNECTION_FAILED), 1, true, true, 0, "Message", 280, 120, 0) != 0x10D) { g_charServerAccountIdPending = 0; this->pendingCursorType = 3; } @@ -4088,7 +4089,7 @@ void CLoginMode::OnChangeState(int value) { GetRagConnection().Send(reinterpret_cast(&GetRagConnection())->FixedLength(packet.packetType), &packet); g_session.SetOption(17, 1, 0); GetRagConnection().SetBlock(1); - static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(122), 16, 1); + static_cast(g_windowMgr.EnsureWindow(WID_WAITWND))->SetMessage(LookupMessage(MSI_WAITING_RESPONSE_FROM_SERVER), 16, 1); break; } case 19: @@ -4121,7 +4122,7 @@ void CLoginMode::OnChangeState(int value) { if (ReplayFileList::Instance().Open(32, 0, 0) == 1) { this->pendingCursorType = 28; } else { - g_windowMgr.Confirm(LookupMessage(0xC4E), 4, true, true, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_TABNAME_9), 4, true, true, 0, "Message", 280, 120, 0); this->pendingCursorType = 26; } break; diff --git a/Source/Client/Mode/LoginModeNotices.cpp b/Source/Client/Mode/LoginModeNotices.cpp index e92d007a8..f9bb79c8b 100644 --- a/Source/Client/Mode/LoginModeNotices.cpp +++ b/Source/Client/Mode/LoginModeNotices.cpp @@ -9,6 +9,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Cipher/XorBytes.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -72,7 +73,7 @@ void CLoginMode::ReceiveBillingInfo(const unsigned char* data) { const std::uint32_t remainingTime = packet->remainingTime; if (remainingTime == 0xFFFFFFFE && packet->remainingFreeTime == 0xFFFFFFFE) { - const char* message = LookupMessage(680); + const char* message = LookupMessage(MSI_BILLING_FREE_USER); const char* format = [] { const std::uint8_t source[] = {0x34, 0x90, 0x59, 0x99}; // GLOBAL: gl_25061 @@ -81,7 +82,7 @@ void CLoginMode::ReceiveBillingInfo(const unsigned char* data) { }(); sprintf(text, format, message); } else if (remainingTime == 0xFFFFFFFD && packet->remainingFreeTime == 0xFFFFFFFD) { - const char* message = LookupMessage(1052); + const char* message = LookupMessage(MSI_BILLING_PCB); const char* format = [] { const std::uint8_t source[] = {0x7E, 0xC4, 0x6B, 0x59}; // GLOBAL: gl_25062 @@ -90,7 +91,7 @@ void CLoginMode::ReceiveBillingInfo(const unsigned char* data) { }(); sprintf(text, format, message); } else if (remainingTime == 0xFFFFFFFF && packet->remainingFreeTime == 0xFFFFFFFF) { - const char* message = LookupMessage(725); + const char* message = LookupMessage(MSI_BILLING_INTERNET_CAFE); const char* format = [] { const std::uint8_t source[] = {0xBC, 0x4A, 0xF7, 0x31}; // GLOBAL: gl_25063 @@ -102,10 +103,10 @@ void CLoginMode::ReceiveBillingInfo(const unsigned char* data) { const std::uint32_t freeTime = packet->remainingFreeTime; if (freeTime != 0) { sprintf( - text, LookupMessage(726), remainingTime / 60 / 24, remainingTime / 60 % 24, remainingTime % 60, freeTime / 60, freeTime % 60 + text, LookupMessage(MSI_BILLING_BOTH), remainingTime / 60 / 24, remainingTime / 60 % 24, remainingTime % 60, freeTime / 60, freeTime % 60 ); } else { - const char* message = LookupMessage(533); + const char* message = LookupMessage(MSI_BILLING_100); const char* format = [] { const std::uint8_t source[] = {0xF6, 0x4A, 0x65, 0x11}; // GLOBAL: gl_25064 @@ -114,11 +115,11 @@ void CLoginMode::ReceiveBillingInfo(const unsigned char* data) { }(); sprintf(text, format, message); const std::uint32_t time = packet->remainingTime; - sprintf(text + strlen(text), LookupMessage(677), time / 60 / 24, time / 60 % 24, time % 60); + sprintf(text + strlen(text), LookupMessage(MSI_BILLING_DAY_HOUR_MINUTES), time / 60 / 24, time / 60 % 24, time % 60); } } else { if (packet->remainingFreeTime > 0) { - const char* message = LookupMessage(541); + const char* message = LookupMessage(MSI_BILLING_800); const char* format = [] { const std::uint8_t source[] = {0x8A, 0x7A, 0x03, 0xE7}; // GLOBAL: gl_25065 @@ -127,7 +128,7 @@ void CLoginMode::ReceiveBillingInfo(const unsigned char* data) { }(); sprintf(text, format, message); const std::uint32_t freeTime = packet->remainingFreeTime; - sprintf(text + strlen(text), LookupMessage(679), freeTime / 60, freeTime % 60); + sprintf(text + strlen(text), LookupMessage(MSI_BILLING_HOUR_MINUTES), freeTime / 60, freeTime % 60); } else { const char* format = [] { const std::uint8_t source[] = {0x67, 0xBF}; @@ -154,25 +155,25 @@ void CLoginMode::ReceiveNotifyBan(const unsigned char* data) { switch (errorCode) { case BAN_UNFAIR: - strcpy(text, LookupMessage(3)); + strcpy(text, LookupMessage(MSI_BANNED)); break; case BAN_SERVER_SHUTDOWN: - strcpy(text, LookupMessage(4)); + strcpy(text, LookupMessage(MSI_SERVER_OFF)); break; case BAN_ANOTHER_LOGIN: - strcpy(text, LookupMessage(5)); + strcpy(text, LookupMessage(MSI_DOUBLE_LOGIN_PROHIBITED)); break; case BAN_DETECTED_SPEEDHACK: - strcpy(text, LookupMessage(241)); + strcpy(text, LookupMessage(MSI_SPEEDHACK)); break; case BAN_PC_OVERFLOW: - strcpy(text, LookupMessage(264)); + strcpy(text, LookupMessage(MSI_PC_OVERFLOW)); break; case BAN_UNDER_AGE: - strcpy(text, LookupMessage(305)); + strcpy(text, LookupMessage(MSI_UNDER_AGE)); break; case BAN_NOT_SETTLED: - strcpy(text, LookupMessage(438)); + strcpy(text, LookupMessage(MSI_NOT_SETTLED)); if (g_windowMgr.Confirm(text, 2, true, true, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.Quit(); this->OpenAccountRegistration(); @@ -180,83 +181,83 @@ void CLoginMode::ReceiveNotifyBan(const unsigned char* data) { text[0] = '\0'; break; case BAN_ACCOUNT_BUSY: - strcpy(text, LookupMessage(439)); + strcpy(text, LookupMessage(MSI_ACCOUNT_BUSY)); break; case BAN_INFORMATION_REMAINED: - strcpy(text, LookupMessage(440)); + strcpy(text, LookupMessage(MSI_INFORMATION_REMAINED)); break; case BAN_IP_OVERFLOW: - strcpy(text, LookupMessage(529)); + strcpy(text, LookupMessage(MSI_BAN_IP_OVERFLOW)); break; case BAN_PAY_OUT: - strcpy(text, LookupMessage(530)); + strcpy(text, LookupMessage(MSI_BAN_PAY_OUT)); break; case BAN_PAY_SUSPEND: - strcpy(text, LookupMessage(575)); + strcpy(text, LookupMessage(MSI_BAN_PAY_SUSPEND)); break; case BAN_PAY_CHANGE: - strcpy(text, LookupMessage(576)); + strcpy(text, LookupMessage(MSI_BAN_PAY_CHANGE)); break; case BAN_PAY_WRONGIP: - strcpy(text, LookupMessage(577)); + strcpy(text, LookupMessage(MSI_BAN_PAY_WRONGIP)); break; case BAN_PAY_PNGAMEROOM: - strcpy(text, LookupMessage(578)); + strcpy(text, LookupMessage(MSI_BAN_PAY_PNGAMEROOM)); break; case BAN_JAPAN_REFUSE1: - strcpy(text, LookupMessage(606)); + strcpy(text, LookupMessage(MSI_BAN_JAPAN_REFUSE1)); break; case BAN_JAPAN_REFUSE2: - strcpy(text, LookupMessage(607)); + strcpy(text, LookupMessage(MSI_BAN_JAPAN_REFUSE2)); break; case BAN_INFORMATION_REMAINED_ANOTHER_ACCOUNT: - strcpy(text, LookupMessage(678)); + strcpy(text, LookupMessage(MSI_BAN_INFORMATION_REMAINED_ANOTHER_ACCOUNT)); break; case BAN_PC_IP_UNFAIR: - strcpy(text, LookupMessage(1123)); + strcpy(text, LookupMessage(MSI_BAN_PC_IP_UNFAIR)); break; case BAN_PC_IP_COUNT_ALL: - strcpy(text, LookupMessage(1178)); + strcpy(text, LookupMessage(MSI_BAN_PC_IP_COUNT_ALL)); break; case BAN_PC_IP_COUNT: - strcpy(text, LookupMessage(1179)); + strcpy(text, LookupMessage(MSI_BAN_PC_IP_COUNT)); break; case BAN_GRAVITY_MEM_AGREE: - strcpy(text, LookupMessage(1309)); + strcpy(text, LookupMessage(MSI_BAN_GRAVITY_MEM_AGREE)); break; case BAN_GAME_MEM_AGREE: - strcpy(text, LookupMessage(1310)); + strcpy(text, LookupMessage(MSI_BAN_GAME_MEM_AGREE)); break; case BAN_HAN_VALID: - strcpy(text, LookupMessage(1311)); + strcpy(text, LookupMessage(MSI_BAN_HAN_VALID)); break; case 107: if (g_serviceType == 0) { char buffer[200]; - sprintf(buffer, LookupMessage(1429), 9); + sprintf(buffer, LookupMessage(MSI_BAN_OVER_CHARACTER_LIST), 9); strcpy(text, buffer); } break; case 108: - strcpy(text, LookupMessage(1582)); + strcpy(text, LookupMessage(MSI_BAN_IP_BLOCK)); break; case 109: - strcpy(text, LookupMessage(1583)); + strcpy(text, LookupMessage(MSI_BAN_INVALID_PWD_CNT)); break; case 110: - strcpy(text, LookupMessage(1589)); + strcpy(text, LookupMessage(MSI_BAN_NOT_ALLOWED_JOBCLASS)); break; case 113: - strcpy(text, LookupMessage(2021)); + strcpy(text, LookupMessage(MSI_BAN_SHUTDOWN_TEENAGER)); break; case 114: - strcpy(text, LookupMessage(2344)); + strcpy(text, LookupMessage(MSI_PLANNED_TIME_SHUTDOWN)); break; case 116: - strcpy(text, LookupMessage(3635)); + strcpy(text, LookupMessage(MSI_MCSTORE_BACKUP_TOOLTIP)); break; default: - strcpy(text, LookupMessage(3)); + strcpy(text, LookupMessage(MSI_BANNED)); break; } diff --git a/Source/Client/Session.cpp b/Source/Client/Session.cpp index 2d4f3004d..54768f47b 100644 --- a/Source/Client/Session.cpp +++ b/Source/Client/Session.cpp @@ -60,6 +60,7 @@ #include "Contents/PetEvolutionMgr.h" #include "Contents/PrivateAirplaneMgr.h" #include "Contents/SpecialPopupMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -1213,7 +1214,7 @@ int CSession::GetTalkType(const char* text, int* talkType, std::string* parts) { *talkType = 0x5C; return -1; } - if (tokenizer[0] == "/mineffect" || tokenizer[0] == LookupMessage(0x2BA)) { + if (tokenizer[0] == "/mineffect" || tokenizer[0] == LookupMessage(MSI_MINEFFECT)) { *talkType = 0xE5; return -1; } @@ -1337,7 +1338,7 @@ int CSession::GetTalkType(const char* text, int* talkType, std::string* parts) { if (space != std::string::npos) { parts[0] = command.erase(0, space + 1); } else { - g_windowMgr.SetUnknown04DC(LookupMessage(0x9E4)); + g_windowMgr.SetUnknown04DC(LookupMessage(MSI_NOWARPSKILL2)); } return -1; } @@ -1348,7 +1349,7 @@ int CSession::GetTalkType(const char* text, int* talkType, std::string* parts) { if (space != std::string::npos) { parts[0] = command.erase(0, space + 1); } else { - g_windowMgr.SetUnknown04DC(LookupMessage(0x9E5)); + g_windowMgr.SetUnknown04DC(LookupMessage(MSI_PARA_PURCHASE_ITEM_WEIGHT)); } return -1; } @@ -1379,7 +1380,7 @@ int CSession::GetTalkType(const char* text, int* talkType, std::string* parts) { parts[0] = text + (tokenizer[0] == "/cl" ? 4 : 10); return -1; } - if (tokenizer[0] == LookupMessage(0x9DF)) { + if (tokenizer[0] == LookupMessage(MSI_PARA_RESULT_TITLE)) { *talkType = 0xD8; return -1; } @@ -2203,9 +2204,9 @@ int CSession::SetFriendOffline(std::uint32_t accountId, std::uint32_t characterI char message[256]; if (member.offline == 0) { - std::sprintf(message, LookupMessage(1041), member.name.c_str()); + std::sprintf(message, LookupMessage(MSI_LOGIN_FRIEND), member.name.c_str()); } else { - std::sprintf(message, LookupMessage(1042), member.name.c_str()); + std::sprintf(message, LookupMessage(MSI_LOGOUT_FRIEND), member.name.c_str()); } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFFFF00, 0, 0, 0); } @@ -3604,8 +3605,8 @@ void CSession::InitCommandTables() { this->m_commandIds.push_back(std::make_pair("/xkfxhl", 27)); this->m_commandIds.push_back(std::make_pair("/leave", 27)); this->m_commandIds.push_back(std::make_pair("/stat", 2)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(544), 29)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(545), 30)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_SURPRISE), 29)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_QUESTION), 30)); this->m_commandIds.push_back(std::make_pair("/delight", 31)); this->m_commandIds.push_back(std::make_pair("/ghk", 36)); this->m_commandIds.push_back(std::make_pair("/fret", 35)); @@ -3626,7 +3627,7 @@ void CSession::InitCommandTables() { this->m_commandIds.push_back(std::make_pair("/whkvy", 9)); this->m_commandIds.push_back(std::make_pair("/wkdth", 9)); this->m_commandIds.push_back(std::make_pair("/where", 9)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(554), 38)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_THINK), 38)); this->m_commandIds.push_back(std::make_pair("/money", 37)); this->m_commandIds.push_back(std::make_pair("/ehs", 37)); this->m_commandIds.push_back(std::make_pair("/anger", 36)); @@ -3701,19 +3702,19 @@ void CSession::InitCommandTables() { this->m_commandIds.push_back(std::make_pair("/ㄴㅅ뭉", 22)); this->m_commandIds.push_back(std::make_pair("/ㅂ", 24)); this->m_commandIds.push_back(std::make_pair("/탈퇴", 27)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(546), 31)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(547), 32)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(549), 33)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_DELIGHT), 31)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_THROB), 32)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_SWEAT), 33)); this->m_commandIds.push_back(std::make_pair("/주먹", 40)); this->m_commandIds.push_back(std::make_pair("/보", 41)); this->m_commandIds.push_back(std::make_pair("/가위", 39)); this->m_commandIds.push_back(std::make_pair("/바위", 40)); this->m_commandIds.push_back(std::make_pair("/좌표", 9)); this->m_commandIds.push_back(std::make_pair("/장소", 9)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(553), 37)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(552), 36)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(551), 35)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(550), 34)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_MONEY), 37)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_ANGER), 36)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_FRET), 35)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_AHA), 34)); this->m_commandIds.push_back(std::make_pair("/샤ㅔ", 42)); this->m_commandIds.push_back(std::make_pair("/기억", 43)); this->m_commandIds.push_back(std::make_pair("/누메", 46)); @@ -3743,63 +3744,63 @@ void CSession::InitCommandTables() { this->m_commandIds.push_back(std::make_pair("/stateinfo", 201)); this->m_commandIds.push_back(std::make_pair("/monsterhp", 213)); this->m_commandIds.push_back(std::make_pair("/ㅡㅐㅜㄴㅅㄷ고ㅔ", 213)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(548), 79)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(555), 66)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_BIGTHROB), 79)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_THANKS), 66)); this->m_commandIds.push_back(std::make_pair("/ㄳ", 66)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(556), 67)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(557), 68)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_KEK), 67)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_SORRY), 68)); this->m_commandIds.push_back(std::make_pair("/sorry", 68)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(558), 69)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_SMILE), 69)); this->m_commandIds.push_back(std::make_pair("/하하", 69)); this->m_commandIds.push_back(std::make_pair("/ㅇ", 69)); this->m_commandIds.push_back(std::make_pair("/smile", 69)); this->m_commandIds.push_back(std::make_pair("/ㄱ", 31)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(559), 70)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(560), 71)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(561), 72)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_PROFUSELY_SWEAT), 70)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_SCRATCH), 71)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_BEST), 72)); this->m_commandIds.push_back(std::make_pair("/원츄", 72)); this->m_commandIds.push_back(std::make_pair("/ㅊ", 72)); this->m_commandIds.push_back(std::make_pair("/emotion", 86)); this->m_commandIds.push_back(std::make_pair("/lightmap", 119)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(562), 73)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(563), 74)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_STARE_ABOUT), 73)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_HUK), 74)); this->m_commandIds.push_back(std::make_pair("/ㅎ", 74)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(564), 75)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_O), 75)); this->m_commandIds.push_back(std::make_pair("/o", 75)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(565), 76)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_X), 76)); this->m_commandIds.push_back(std::make_pair("/x", 76)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(566), 77)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_HELP), 77)); this->m_commandIds.push_back(std::make_pair("/ㅊㅊ", 77)); this->m_commandIds.push_back(std::make_pair("/help", 77)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(567), 78)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(568), 80)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(569), 81)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_GO), 78)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_CRY), 80)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_KIK), 81)); this->m_commandIds.push_back(std::make_pair("/킥", 81)); this->m_commandIds.push_back(std::make_pair("/ㅋ", 81)); this->m_commandIds.push_back(std::make_pair("/케케", 81)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(570), 82)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(571), 83)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(572), 84)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_CHUP), 82)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_CHUPCHUP), 83)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_HNG), 84)); this->m_commandIds.push_back(std::make_pair("/끄덕", 85)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(573), 85)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_OK), 85)); this->m_commandIds.push_back(std::make_pair("/이모션", 86)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(772), 123)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_STARE), 123)); this->m_commandIds.push_back(std::make_pair("/ㅉ", 123)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(773), 124)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(774), 125)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(775), 126)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(776), 127)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_HUNGRY), 124)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_COOL), 125)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_MERONG), 126)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_SHY), 127)); this->m_commandIds.push_back(std::make_pair("/부", 127)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(777), 128)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(778), 129)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_GOODBOY), 128)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_SPTIME), 129)); this->m_commandIds.push_back(std::make_pair("/엠", 129)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(779), 130)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(780), 131)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(781), 132)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_SEXY), 130)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_COMEON), 131)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_SLEEPY), 132)); this->m_commandIds.push_back(std::make_pair("/ㅈ", 132)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(782), 133)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_CONGRATULATION), 133)); this->m_commandIds.push_back(std::make_pair("/ㅊㅋ", 133)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(783), 134)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_HPTIME), 134)); this->m_commandIds.push_back(std::make_pair("/피", 134)); this->m_commandIds.push_back(std::make_pair("/e1", 123)); this->m_commandIds.push_back(std::make_pair("/e2", 124)); @@ -3813,15 +3814,15 @@ void CSession::InitCommandTables() { this->m_commandIds.push_back(std::make_pair("/e10", 132)); this->m_commandIds.push_back(std::make_pair("/e11", 133)); this->m_commandIds.push_back(std::make_pair("/e12", 134)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(945), 154)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(946), 155)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(947), 156)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_SPARK), 154)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_CONFUSE), 155)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_OHNO), 156)); this->m_commandIds.push_back(std::make_pair("/한숨", 156)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(948), 157)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(949), 158)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_HUM), 157)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_BLABLA), 158)); this->m_commandIds.push_back(std::make_pair("/시끌시끌", 158)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(950), 159)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(951), 160)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_OTL), 159)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_EMOTION_DICE), 160)); this->m_commandIds.push_back(std::make_pair("/dice", 160)); this->m_commandIds.push_back(std::make_pair("/e19", 160)); this->m_commandIds.push_back(std::make_pair("/e13", 154)); @@ -3872,11 +3873,11 @@ void CSession::InitCommandTables() { this->m_commandIds.push_back(std::make_pair("/eqopen", 185)); this->m_commandIds.push_back(std::make_pair("/show_addressbar", 205)); this->m_commandIds.push_back(std::make_pair("/buildinfo", 207)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(2861), 223)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_GUILD_MEMBERLIST_SORT), 223)); this->m_commandIds.push_back(std::make_pair("/viewpointvalue", 227)); this->m_commandIds.push_back(std::make_pair("/mable", 240)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(3513), 241)); - this->m_commandIds.push_back(std::make_pair(LookupMessage(3532), 243)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_CHECK_LEVEL_BEFORE_REGISTER_AGENCY), 241)); + this->m_commandIds.push_back(std::make_pair(LookupMessage(MSI_RUSSIA_PERSONALINFO_EXP), 243)); std::stable_sort(this->m_commandIds.begin(), this->m_commandIds.end(), [](const std::pair& left, const std::pair& right) { return std::strcmp(left.first, right.first) < 0; @@ -7069,7 +7070,7 @@ void CSession::LoadSessionTables() { const std::uint8_t source[] = {0xA5, 0xA8, 0x04, 0x07, 0x1C, 0xEB, 0x1E, 0xFA, 0xD7, 0x9A, 0x06, 0x1D, 0x08, 0xE9, 0x71}; thread_local EncryptedName setupName(source); if (HWND window = FindWindowA(nullptr, setupName.Text())) { - ShowErrorDialog(nullptr, LookupMessage(3194), 0); + ShowErrorDialog(nullptr, LookupMessage(MSI_TAREN_LOGINREFUSE_FAIL_PASSWORD), 0); SendMessageA(window, WM_CLOSE, 0, 0); } diff --git a/Source/Client/SessionAchievements.cpp b/Source/Client/SessionAchievements.cpp index fe9e5e07b..3d908a8d1 100644 --- a/Source/Client/SessionAchievements.cpp +++ b/Source/Client/SessionAchievements.cpp @@ -8,6 +8,7 @@ #include "Contents/MessageTable.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -75,7 +76,7 @@ bool CSession::ToggleTrackedAchievement(int id) { tracked.erase(found); } else { if (tracked.size() >= 3) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA78)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GET_ROULLETE_PRIZE)), 0x64FFFF, 0, 0, 0); return false; } diff --git a/Source/Client/SessionState.cpp b/Source/Client/SessionState.cpp index 1ca9d4474..3e837fe64 100644 --- a/Source/Client/SessionState.cpp +++ b/Source/Client/SessionState.cpp @@ -23,6 +23,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" extern "C" { void lua_settop(lua_State* L, int index); int lua_type(lua_State* L, int index); @@ -260,7 +261,7 @@ void CSession::UnequipItem61B8(const ITEM_INFO& item) { if (location == 0x8000) { ITEM_INFO equipped = g_session.FindItemByIdentity(item.unknown_0000[1], location); if (equipped.unknown_0000[1] != 0) { - const char* message = LookupMessage(0xAB); + const char* message = LookupMessage(MSI_ITEM_IS_REMOVED); const std::string name = equipped.DisplayName(0); const std::string text = FormatOwnedString("%s%s", name.c_str(), message); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFF, 7, 0, 0); diff --git a/Source/Contents/Actors/GameActor.cpp b/Source/Contents/Actors/GameActor.cpp index 99ed737f6..24ee9e749 100644 --- a/Source/Contents/Actors/GameActor.cpp +++ b/Source/Contents/Actors/GameActor.cpp @@ -28,6 +28,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" #include "Contents/Effects/RagEffect.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -75,25 +76,25 @@ void CGameActor::ProcessDamageMessages() { if (targetName.empty()) { const CActorNameCard& card = static_cast(g_modeMgr.GetGameMode())->LookupNameCard(targetAid); - targetName.assign(card.unknown_007C.empty() ? std::string(LookupMessage(1604)) : card.unknown_007C); + targetName.assign(card.unknown_007C.empty() ? std::string(LookupMessage(MSI_WHO_IS)) : card.unknown_007C); } if (attackerName.empty()) { const CActorNameCard& card = static_cast(g_modeMgr.GetGameMode())->LookupNameCard(attackerAid); - attackerName.assign(card.unknown_007C.empty() ? std::string(LookupMessage(1604)) : card.unknown_007C); + attackerName.assign(card.unknown_007C.empty() ? std::string(LookupMessage(MSI_WHO_IS)) : card.unknown_007C); } if (IsPlayerJob(this->GetEffectiveJob(-1))) { if (g_session.m_aid == targetAid) { - std::sprintf(notice, LookupMessage(1605), attackerName.c_str(), it->damage); + std::sprintf(notice, LookupMessage(MSI_I_RECEIVED_DAMAGE), attackerName.c_str(), it->damage); } else if (g_session.IsPartyMember(targetAid, true)) { - std::sprintf(partyNotice, LookupMessage(1606), targetName.c_str(), attackerName.c_str(), it->damage); + std::sprintf(partyNotice, LookupMessage(MSI_PARTY_RECEIVED_DAMAGE), targetName.c_str(), attackerName.c_str(), it->damage); } } else { if (g_session.m_aid == attackerAid) { - std::sprintf(notice, LookupMessage(1607), targetName.c_str(), it->damage); + std::sprintf(notice, LookupMessage(MSI_I_GAVE_DAMAGE), targetName.c_str(), it->damage); } else if (g_session.IsPartyMember(attackerAid, true)) { - std::sprintf(partyNotice, LookupMessage(1608), attackerName.c_str(), targetName.c_str(), it->damage); + std::sprintf(partyNotice, LookupMessage(MSI_PARTY_GAVE_DAMAGE), attackerName.c_str(), targetName.c_str(), it->damage); } } diff --git a/Source/Contents/Actors/Item.cpp b/Source/Contents/Actors/Item.cpp index ea42aa3d5..96f7a49d1 100644 --- a/Source/Contents/Actors/Item.cpp +++ b/Source/Contents/Actors/Item.cpp @@ -21,6 +21,7 @@ #include "Render/Renderer.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -167,7 +168,7 @@ void CItem::SendMsg(CGameObject* sender, int message, int a, int b, int c, int d item.itemId = itemName; item.identified = entry->identified; item.unknown_0060 = 0; - this->name = static_cast(FormatOwnedString(LookupMessage(183), item.DisplayName(0).c_str(), entry->count)); + this->name = static_cast(FormatOwnedString(LookupMessage(MSI_EA2), item.DisplayName(0).c_str(), entry->count)); this->GetActRes(); this->render.unknown_008C = timeGetTime(); diff --git a/Source/Contents/CashEmotionMgr.cpp b/Source/Contents/CashEmotionMgr.cpp index 737182669..a44da0a8d 100644 --- a/Source/Contents/CashEmotionMgr.cpp +++ b/Source/Contents/CashEmotionMgr.cpp @@ -49,6 +49,7 @@ #include "UI/Emotion/UIEmotionWnd.h" #include "Client/Mode/CMode.h" +#include "Resource/MSGSTRINGID.h" extern "C" { #include #include @@ -2278,7 +2279,7 @@ void UICashEmotionListWnd::OnCreate(int width, int height) { void UICashEmotionListWnd::Paint() { this->ClearSurface(0xFFFF00FF); const int width = this->geometry.width - 30; - const int top = this->DrawTitleBarAt(29, width, false, LookupMessage(542)); + const int top = this->DrawTitleBarAt(29, width, false, LookupMessage(MSI_EMOTION_LIST)); this->DrawPanelBackgroundAt(29, top, width, nullptr); DrawRectangleBorder(*this, 60, 22, 161, 18, 0xB5B5B5); this->FillRegion(29, 46, width, 1, 0xCECECE); diff --git a/Source/Contents/ClientItemLists.cpp b/Source/Contents/ClientItemLists.cpp index 75c02a7c7..a60ee3785 100644 --- a/Source/Contents/ClientItemLists.cpp +++ b/Source/Contents/ClientItemLists.cpp @@ -25,6 +25,7 @@ #include "UI/Window/UIWindow.h" #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -369,7 +370,7 @@ void ReceiveFriendAddResult(const unsigned char* data) { int message; switch (packet->result) { case FRIEND_ADD_SUCCEED: { - std::sprintf(buffer, LookupMessage(821), name); + std::sprintf(buffer, LookupMessage(MSI_FRIEND_ADD_SUCCEED), name); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(buffer), 0xFFFF00, 0, 0, 0); MessengerMember member; @@ -385,7 +386,7 @@ void ReceiveFriendAddResult(const unsigned char* data) { message = 822; break; case FRIEND_ADD_ME_OVERSIZE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(819)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FRIEND_ADD_ME_OVERSIZE)), 0xFF, 0, 0, 0); return; case FRIEND_ADD_OTHER_OVERSIZE: message = 820; @@ -1067,7 +1068,7 @@ bool CSession::EquipUnknown17F0(const ITEM_INFO& item, const char* name) { // OFFSET: 0x00DFC9B0 // FUNCTION: fn_23599 bool CSession::OnItemEquipped(ITEM_INFO& item) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s %s", item.DisplayName(0).c_str(), LookupMessage(0xAA)).c_str()), 0xC8FF00, 7, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s %s", item.DisplayName(0).c_str(), LookupMessage(MSI_ITEM_IS_EQUIPED)).c_str()), 0xC8FF00, 7, 0, 0); if (item.unknown_0064 == 1) { item.unknown_0064 = 2; } @@ -1111,7 +1112,7 @@ bool CSession::UnequipItem(int location, std::uint32_t identity) { if (location == 0x8000) { const ITEM_INFO item = LookupClientItemByIdentity(g_session.m_inventoryItems, identity); if (item.unknown_0000[1] != 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s%s", item.DisplayName(0).c_str(), LookupMessage(0xAB)).c_str()), 0xFF, 7, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s%s", item.DisplayName(0).c_str(), LookupMessage(MSI_ITEM_IS_REMOVED)).c_str()), 0xFF, 7, 0, 0); } this->unknown_16EC = 0; g_windowMgr.InvalidateFrames(); @@ -1137,7 +1138,7 @@ bool CSession::UnequipItem(int location, std::uint32_t identity) { if (slots.values[2] < 10) { if (slots.values[2] != -1) { ITEM_INFO& item = this->unknown_17F0[slots.values[2]]; - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s%s", item.DisplayName(0).c_str(), LookupMessage(0xAB)).c_str()), 0xFF, 7, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s%s", item.DisplayName(0).c_str(), LookupMessage(MSI_ITEM_IS_REMOVED)).c_str()), 0xFF, 7, 0, 0); item.unknown_0000[3] = 0; bool merged = false; diff --git a/Source/Contents/Configuration/ServiceOptions.cpp b/Source/Contents/Configuration/ServiceOptions.cpp index b7326e17c..71c970d49 100644 --- a/Source/Contents/Configuration/ServiceOptions.cpp +++ b/Source/Contents/Configuration/ServiceOptions.cpp @@ -38,6 +38,7 @@ #include "Utility/Singleton.h" #include "Utility/Text/StringUtil.h" +#include "Resource/MSGSTRINGID.h" extern "C" { #include } @@ -1000,7 +1001,7 @@ void ApplyServiceOptionWithNotice(int id, unsigned char value, bool notify, int if (value != g_serviceOptions.Get(id)) { g_serviceOptions.Set(id, value); if (g_serviceOptions.Get(107)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBB4)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SWAP_EQUIPITEM_FAIL_DEAD)), 0x64FFFF, 0, 0, 0); return; } @@ -1273,7 +1274,7 @@ void ApplyServiceOptionWeatherFlag(int id, unsigned char value, bool notify, int // FUNCTION: fn_06364 void ApplyServiceOptionWindow27() { if (g_windowMgr.unknown_0304 != 0) { - g_windowMgr.Confirm(LookupMessage(0x24B), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_OPEN_STORE_WHILE_CHAT), 0, true, false, 0, "Message", 0x118, 0x78, 0); return; } @@ -1524,7 +1525,7 @@ void CSession::LoadOptionInfo() { } Singleton::GetInstance(); - ::SetOption(LookupMessage(0xDB9), this->GetOptionInteger(LookupMessage(0xDB9), 0) != 0); + ::SetOption(LookupMessage(MSI_CHECK_LEVEL_BEFORE_REGISTER_AGENCY), this->GetOptionInteger(LookupMessage(MSI_CHECK_LEVEL_BEFORE_REGISTER_AGENCY), 0) != 0); g_serviceOptionJitterScale = g_serviceOptions.Get(0xF1) ? 730.0f : g_jitterDistanceScale; if (g_outdoorCameraPitch < -65.0f) { @@ -1622,7 +1623,7 @@ void CSession::LoadOptionInfo() { this->m_itemDescendingOrder = this->GetOptionInteger("bItemDescendingOrder", 0) != 0; this->m_showMenuIcon = this->GetOptionInteger("bShowMenuIcon", 1) != 0; - Singleton::GetInstance()->ApplyScriptOption(0xF3, LookupMessage(0xDC6)); + Singleton::GetInstance()->ApplyScriptOption(0xF3, LookupMessage(MSI_USESKILL_FAIL_NEED_EQUIPPED_WEAPONE)); Singleton::GetInstance()->ApplyScriptOption(0x10B, "bExtendDamage"); Singleton::GetInstance()->ApplyScriptOption(0x10C, "bShowMapName"); Singleton::GetInstance()->ApplyScriptOption(0x10D, "bShowOnlyMineFootprint"); @@ -1707,11 +1708,11 @@ void CSession::SaveOptionInfo() { this->WriteOptionInteger(output, "bItemDefaultSort", this->m_itemDefaultSort != 0); this->WriteOptionInteger(output, "bItemAscendingOrder", this->m_itemAscendingOrder != 0); this->WriteOptionInteger(output, "bItemDescendingOrder", this->m_itemDescendingOrder != 0); - this->WriteOptionInteger(output, LookupMessage(0xDC6), g_serviceOptions.Get(0xF3)); + this->WriteOptionInteger(output, LookupMessage(MSI_USESKILL_FAIL_NEED_EQUIPPED_WEAPONE), g_serviceOptions.Get(0xF3)); this->WriteOptionInteger(output, "bExtendDamage", g_serviceOptions.Get(0x10B)); this->WriteOptionInteger(output, "bShowMapName", g_serviceOptions.Get(0x10C)); this->WriteOptionInteger(output, "bShowOnlyMineFootprint", g_serviceOptions.Get(0x10D)); - this->WriteOptionInteger(output, LookupMessage(0xDB9), g_serviceOptions.Get(0xF1)); + this->WriteOptionInteger(output, LookupMessage(MSI_CHECK_LEVEL_BEFORE_REGISTER_AGENCY), g_serviceOptions.Get(0xF1)); this->WriteOptionInteger(output, "DamageSkin", this->m_damageSkinIndex); this->WriteOptionInteger(output, "DamageDir", this->m_damageSkinMode); this->WriteOptionInteger(output, "PriorityClass", this->m_priorityClass); diff --git a/Source/Contents/Emblems/EmblemUpload.cpp b/Source/Contents/Emblems/EmblemUpload.cpp index 966d87118..62e30cd12 100644 --- a/Source/Contents/Emblems/EmblemUpload.cpp +++ b/Source/Contents/Emblems/EmblemUpload.cpp @@ -6,6 +6,7 @@ #include "Utility/Async/AsyncDiagnostic.h" #include "Utility/Cipher/XorBytes.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -81,7 +82,7 @@ void CEmblemDataMgr::CompleteUpload(AsyncDiagnostic diagnostic, std::string resp case 2: case 3: case 4: { - const char* message = LookupMessage(3586); + const char* message = LookupMessage(MSI_RODEX_BUTTON_DELETE_ALL); g_windowMgr.Confirm(message, 0, true, false, 0, "Message", 280, 120, 0); break; } diff --git a/Source/Contents/EnchantMgr.cpp b/Source/Contents/EnchantMgr.cpp index d8d72782f..756050f93 100644 --- a/Source/Contents/EnchantMgr.cpp +++ b/Source/Contents/EnchantMgr.cpp @@ -13,6 +13,7 @@ #include "UI/Enchant/EnchantUI.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include namespace { @@ -163,7 +164,7 @@ void CEnchantMgr::HandleEnchantResult(int messageId, int itemId) { // FUNCTION: fn_05545 void CEnchantMgr::RequestPerfectEnchant(uint64_t group, int16_t index, int16_t slot, int32_t itemId) { if (g_session.m_weight * 100 / g_session.m_maxWeight >= 70) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3837)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENCHANT_UPGRADE_BUTTON)), 0xFF, 0, 0, 0); return; } @@ -182,7 +183,7 @@ void CEnchantMgr::RequestPerfectEnchant(uint64_t group, int16_t index, int16_t s // FUNCTION: fn_05546 void CEnchantMgr::RequestRandomEnchant(uint64_t group, int16_t index, int16_t slot) { if (g_session.m_weight * 100 / g_session.m_maxWeight >= 70) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3837)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENCHANT_UPGRADE_BUTTON)), 0xFF, 0, 0, 0); return; } @@ -200,7 +201,7 @@ void CEnchantMgr::RequestRandomEnchant(uint64_t group, int16_t index, int16_t sl // FUNCTION: fn_05547 void CEnchantMgr::RequestResetEnchant(uint64_t group, int16_t index) { if (g_session.m_weight * 100 / g_session.m_maxWeight >= 70) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3837)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENCHANT_UPGRADE_BUTTON)), 0xFF, 0, 0, 0); return; } @@ -218,7 +219,7 @@ void CEnchantMgr::RequestResetEnchant(uint64_t group, int16_t index) { // FUNCTION: fn_05548 void CEnchantMgr::RequestUpgradePerfectEnchant(uint64_t group, int16_t index, int16_t slot, int32_t itemId) { if (g_session.m_weight * 100 / g_session.m_maxWeight >= 70) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3837)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENCHANT_UPGRADE_BUTTON)), 0xFF, 0, 0, 0); return; } @@ -238,7 +239,7 @@ void CEnchantMgr::RequestUpgradePerfectEnchant(uint64_t group, int16_t index, in // FUNCTION: fn_05549 void CEnchantMgr::RequestUpgradeEnchant(uint64_t group, int16_t index, int16_t slot) { if (g_session.m_weight * 100 / g_session.m_maxWeight >= 70) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3837)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENCHANT_UPGRADE_BUTTON)), 0xFF, 0, 0, 0); return; } @@ -257,7 +258,7 @@ void CEnchantMgr::RequestUpgradeEnchant(uint64_t group, int16_t index, int16_t s // FUNCTION: fn_05550 void CEnchantMgr::RequestUpgradeRandomEnchant(uint64_t group, int16_t index, int16_t slot) { if (g_session.m_weight * 100 / g_session.m_maxWeight >= 70) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3837)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENCHANT_UPGRADE_BUTTON)), 0xFF, 0, 0, 0); return; } diff --git a/Source/Contents/EntryQueueMgr.cpp b/Source/Contents/EntryQueueMgr.cpp index 322381a6a..de43e4f3a 100644 --- a/Source/Contents/EntryQueueMgr.cpp +++ b/Source/Contents/EntryQueueMgr.cpp @@ -11,6 +11,7 @@ #include "UI/EntryQueue/UIEntryQueueWnd.h" #include "UI/Window/UIWindowMgr.h" #include "Script/LuaScript.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -135,7 +136,7 @@ void CEntryQueueMgr::OnApplyResult(const EntryQueueApplyResult* packet) { text += this->current->displayName; } text += "]"; - text += LookupMessage(0x833); + text += LookupMessage(MSI_BATTLEFIELD_MSG_UNKNOWN_TYPE); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0x4763FF, 0, 0, 0); this->ready = 1; return; @@ -182,18 +183,18 @@ void CEntryQueueMgr::OnApplyResult(const EntryQueueApplyResult* packet) { void CEntryQueueMgr::OnCancelResult(const EntryQueueNotice* notice) { switch (notice->result) { case 1: - g_windowMgr.Confirm(LookupMessage(0x83E), 0, false, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BATTLEFIELD_MSG_FAIL_CHOICE), 0, false, false, 0, "Message", 0x118, 0x78, 0); g_windowMgr.CloseWindow(WID_ENTRYQUEUESTANDBYWND); this->ready = 0; break; case 3: - g_windowMgr.Confirm(LookupMessage(0x83F), 0, false, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BATTLEFIELD_MSG_CANCEL_JOIN), 0, false, false, 0, "Message", 0x118, 0x78, 0); break; case 11: - g_windowMgr.Confirm(LookupMessage(0x840), 0, false, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BATTLEFIELD_MSG_DOYOU_JOIN), 0, false, false, 0, "Message", 0x118, 0x78, 0); break; case 14: - g_windowMgr.Confirm(LookupMessage(0x841), 0, false, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BATTLEFIELD_HELP1), 0, false, false, 0, "Message", 0x118, 0x78, 0); g_windowMgr.CloseWindow(WID_ENTRYQUEUESTANDBYWND); this->ready = 0; break; @@ -202,7 +203,7 @@ void CEntryQueueMgr::OnCancelResult(const EntryQueueNotice* notice) { std::string text("["); text += this->current->displayName; text += "]"; - text += LookupMessage(0x842); + text += LookupMessage(MSI_BATTLEFIELD_HELP2); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFF, 0, 0, 0); this->current = nullptr; } @@ -261,7 +262,7 @@ void CEntryQueueMgr::OnReady(const EntryQueueReady* packet) { std::string text("["); text += this->current->displayName; text += "]"; - text += LookupMessage(0x843); + text += LookupMessage(MSI_BATTLEFIELD_HELP3); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0x4763FF, 0, 0, 0); } @@ -270,10 +271,10 @@ void CEntryQueueMgr::OnReady(const EntryQueueReady* packet) { void CEntryQueueMgr::OnResultNotice(const EntryQueueNotice* notice) { switch (notice->result) { case 3: - g_windowMgr.Confirm(LookupMessage(0x83F), 0, false, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BATTLEFIELD_MSG_CANCEL_JOIN), 0, false, false, 0, "Message", 0x118, 0x78, 0); break; case 11: - g_windowMgr.Confirm(LookupMessage(0x840), 0, false, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BATTLEFIELD_MSG_DOYOU_JOIN), 0, false, false, 0, "Message", 0x118, 0x78, 0); } } diff --git a/Source/Contents/GuildInfo.cpp b/Source/Contents/GuildInfo.cpp index e8bdda623..a505e3058 100644 --- a/Source/Contents/GuildInfo.cpp +++ b/Source/Contents/GuildInfo.cpp @@ -9,6 +9,7 @@ #include "UI/Window/UIWindow.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" // GLOBAL: gl_25465 GuildInfo g_guildInfo; @@ -222,7 +223,7 @@ void GuildInfo::UpdateCharacterName(int characterId, const char* name) { this->unknown_0018 = name; } - std::string unknownName = LookupMessage(581); + std::string unknownName = LookupMessage(MSI_NAMELESS_USER); for (auto it = this->m_members.begin(); it != this->m_members.end(); ++it) { if (it->characterId == characterId) { if (it->name.empty() || it->name == unknownName) { diff --git a/Source/Contents/Hotkeys/EmotionHotkeys.cpp b/Source/Contents/Hotkeys/EmotionHotkeys.cpp index 07bff5d4f..2cb20ee23 100644 --- a/Source/Contents/Hotkeys/EmotionHotkeys.cpp +++ b/Source/Contents/Hotkeys/EmotionHotkeys.cpp @@ -5,6 +5,7 @@ #include "File/ShortcutFilename.h" #include "Network/TextEncoding.h" #include "Script/LuaInstance.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -73,16 +74,16 @@ void EmotionHotkeys::Save(std::uint32_t accountId, CRenderSystemBase*) const { // FUNCTION: fn_24191 bool EmotionHotkeys::LoadDefaults(std::uint32_t accountId) { this->current.clear(); - this->current.emplace_back(LookupMessage(544)); - this->current.emplace_back(LookupMessage(545)); - this->current.emplace_back(LookupMessage(546)); - this->current.emplace_back(LookupMessage(547)); - this->current.emplace_back(LookupMessage(549)); - this->current.emplace_back(LookupMessage(550)); - this->current.emplace_back(LookupMessage(551)); - this->current.emplace_back(LookupMessage(552)); - this->current.emplace_back(LookupMessage(553)); - this->current.emplace_back(LookupMessage(554)); + this->current.emplace_back(LookupMessage(MSI_EMOTION_SURPRISE)); + this->current.emplace_back(LookupMessage(MSI_EMOTION_QUESTION)); + this->current.emplace_back(LookupMessage(MSI_EMOTION_DELIGHT)); + this->current.emplace_back(LookupMessage(MSI_EMOTION_THROB)); + this->current.emplace_back(LookupMessage(MSI_EMOTION_SWEAT)); + this->current.emplace_back(LookupMessage(MSI_EMOTION_AHA)); + this->current.emplace_back(LookupMessage(MSI_EMOTION_FRET)); + this->current.emplace_back(LookupMessage(MSI_EMOTION_ANGER)); + this->current.emplace_back(LookupMessage(MSI_EMOTION_MONEY)); + this->current.emplace_back(LookupMessage(MSI_EMOTION_THINK)); CLuaInstance script; const bool loaded = script.LoadFile(std::format("savedata\\shortcutlist\\{}.lua", ShortcutFilename(accountId)), false); diff --git a/Source/Contents/Items/ItemNaming.cpp b/Source/Contents/Items/ItemNaming.cpp index 7f3a8f7f0..8f7e5cf86 100644 --- a/Source/Contents/Items/ItemNaming.cpp +++ b/Source/Contents/Items/ItemNaming.cpp @@ -10,6 +10,7 @@ #include #include #include +#include "Resource/MSGSTRINGID.h" // GLOBAL: gl_24725 std::map g_itemMoveInfo; @@ -122,7 +123,7 @@ int ITEM_INFO::Creator(char* output, int& capacity, unsigned char consume) const std::string name = g_playerNameDictionary->Lookup(static_cast(ids[2]) + (static_cast(ids[3]) << 16)); if (name.empty()) { - name = LookupMessage(581); + name = LookupMessage(MSI_NAMELESS_USER); } const int bytes = Copy(output, capacity, name.c_str()); @@ -231,21 +232,21 @@ int ITEM_INFO::Suffixes(char* output, int& capacity, unsigned char consume) cons switch (count) { case 2: - bytes = StringFormat(cursor, remaining, _TRUNCATE, " %s", LookupMessage(446)); + bytes = StringFormat(cursor, remaining, _TRUNCATE, " %s", LookupMessage(MSI_DOUBLE)); if (bytes > 0) { cursor += bytes; remaining -= bytes; } break; case 3: - bytes = StringFormat(cursor, remaining, _TRUNCATE, " %s", LookupMessage(447)); + bytes = StringFormat(cursor, remaining, _TRUNCATE, " %s", LookupMessage(MSI_TRIPLE)); if (bytes > 0) { cursor += bytes; remaining -= bytes; } break; case 4: - bytes = StringFormat(cursor, remaining, _TRUNCATE, " %s", LookupMessage(448)); + bytes = StringFormat(cursor, remaining, _TRUNCATE, " %s", LookupMessage(MSI_QUADROPLE)); if (bytes > 0) { cursor += bytes; remaining -= bytes; @@ -841,16 +842,16 @@ int ITEM_INFO::Element(char* output, int& capacity, unsigned char consume) const break; } case 1: - text = LookupMessage(452); + text = LookupMessage(MSI_MANUFACTURED_ICE_ITEM); break; case 2: - text = LookupMessage(454); + text = LookupMessage(MSI_MANUFACTURED_EARTH_ITEM); break; case 3: - text = LookupMessage(451); + text = LookupMessage(MSI_MANUFACTURED_FIRE_ITEM); break; case 4: - text = LookupMessage(453); + text = LookupMessage(MSI_MANUFACTURED_WIND_ITEM); break; default: return 0; @@ -874,13 +875,13 @@ int ITEM_INFO::Star(char* output, int& capacity, unsigned char consume) const { const char* text = nullptr; switch (this->unknown_001C[5]) { case 5: - text = LookupMessage(459); + text = LookupMessage(MSI_ONE_STARPIECE); break; case 10: - text = LookupMessage(460); + text = LookupMessage(MSI_TWO_STARPIECE); break; case 15: - text = LookupMessage(461); + text = LookupMessage(MSI_THREE_STARPIECE); break; default: return 0; @@ -901,7 +902,7 @@ int ITEM_INFO::Star(char* output, int& capacity, unsigned char consume) const { // OFFSET: 0x006D6D50 // FUNCTION: fn_06586 int ITEM_INFO::Apprentice(char* output, int& capacity, unsigned char consume) const { - const char* text = LookupMessage(756); + const char* text = LookupMessage(MSI_NAMED_PET); const int error = strncpy_s(output, capacity, text, _TRUNCATE); if (error != 0 && error != 80) { return 0; diff --git a/Source/Contents/Jobs/JobInheritance.cpp b/Source/Contents/Jobs/JobInheritance.cpp index 3a9a3adb5..c430c431c 100644 --- a/Source/Contents/Jobs/JobInheritance.cpp +++ b/Source/Contents/Jobs/JobInheritance.cpp @@ -36,6 +36,7 @@ #include "Resource/World/TerrainResource.h" #include "Utility/Math/AffineMatrix.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -1852,7 +1853,7 @@ bool CSession::UnequipItem2B50(int location) { if (slots.values[2] < 10) { if (slots.values[2] != -1) { ITEM_INFO& item = this->unknown_2B50[slots.values[2]]; - const char* message = LookupMessage(0xAB); + const char* message = LookupMessage(MSI_ITEM_IS_REMOVED); const std::string name = item.DisplayName(0); const std::string text = FormatOwnedString("%s%s", name.c_str(), message); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 0xFF, 7, 0, 0); diff --git a/Source/Contents/MapInfoMgr.cpp b/Source/Contents/MapInfoMgr.cpp index 31975d8b5..4a8b55238 100644 --- a/Source/Contents/MapInfoMgr.cpp +++ b/Source/Contents/MapInfoMgr.cpp @@ -11,6 +11,7 @@ #include "Script/NLuaState.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" extern "C" { #include #include @@ -186,7 +187,7 @@ const char* CMapInfoMgr::GetSignSubName(std::string map) { // OFFSET: 0x006CEFF0 // FUNCTION: fn_06492 bool CMapInfoMgr::LoadScript() { - this->m_emptyName = LookupMessage(187); + this->m_emptyName = LookupMessage(MSI_NOWHERE); NLuaState lua; if (lua.IsValid()) { diff --git a/Source/Contents/Messenger/MessengerMember.cpp b/Source/Contents/Messenger/MessengerMember.cpp index d6bb3a40d..f50ee70cd 100644 --- a/Source/Contents/Messenger/MessengerMember.cpp +++ b/Source/Contents/Messenger/MessengerMember.cpp @@ -41,6 +41,7 @@ #include "Resource/SkinPalette.h" #include "Client/Mode/CMode.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -490,29 +491,29 @@ UIFriendOptionWnd::~UIFriendOptionWnd() = default; // FUNCTION: fn_07681 void UIFriendOptionWnd::OnCreate(int, int) { - const char* label = LookupMessage(361); + const char* label = LookupMessage(MSI_AUTOOPEN_1ON1_WINDOW); int width = std::min(this->TextWidth(label, 0, 0, 12, 0, 0) + 12, this->geometry.width - 15); this->option0Box = new UICheckBox(); this->option0Box->SetSize(width, 12); - this->option0Box->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(361)); + this->option0Box->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_AUTOOPEN_1ON1_WINDOW)); this->option0Box->Move(6, 21); this->option0Box->SetChecked(g_session.m_autoOpenWhisperWindow); this->AddChild(this->option0Box); - label = LookupMessage(359); + label = LookupMessage(MSI_AUTOOPENWHISPERLISTWND_FRIEND); width = std::min(this->TextWidth(label, 0, 0, 12, 0, 0) + 12, this->geometry.width - 15); this->option2Box = new UICheckBox(); this->option2Box->SetSize(width, 12); - this->option2Box->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(359)); + this->option2Box->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_AUTOOPENWHISPERLISTWND_FRIEND)); this->option2Box->Move(6, 37); this->option2Box->SetChecked(g_session.m_autoOpenFriendWhisperWindow); this->AddChild(this->option2Box); - label = LookupMessage(362); + label = LookupMessage(MSI_WHISPER_OPEN_SOUND); width = std::min(this->TextWidth(label, 0, 0, 12, 0, 0) + 12, this->geometry.width - 15); this->option1Box = new UICheckBox(); this->option1Box->SetSize(width, 12); - this->option1Box->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(362)); + this->option1Box->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_WHISPER_OPEN_SOUND)); this->option1Box->Move(6, 53); this->option1Box->SetChecked(g_session.m_whisperOpenSound); this->AddChild(this->option1Box); @@ -524,7 +525,7 @@ void UIFriendOptionWnd::OnCreate(int, int) { // FUNCTION: fn_07682 void UIFriendOptionWnd::Paint() { - const int titleHeight = this->DrawTitleBar(true, LookupMessage(355), 0); + const int titleHeight = this->DrawTitleBar(true, LookupMessage(MSI_FRIEND_SETTING), 0); this->DrawPanelBackground(titleHeight, 0, ""); const int barHeight = this->DrawButtonBar(0, 0, 1); this->FillRegion(0, this->geometry.height - barHeight, this->geometry.width, 1, 0xC0C0C0); @@ -801,8 +802,8 @@ void UIMessengerGroupWnd::OnCreate(int, int) { this->mode = 1; { - const char* tabLabels[2] = {LookupMessage(0x66), LookupMessage(0x67)}; - int tabWidths[2] = {48, this->TextWidth(LookupMessage(0x67), 0, 0, 12, 0, 0) + 13}; + const char* tabLabels[2] = {LookupMessage(MSI_FRIEND), LookupMessage(MSI_PARTY)}; + int tabWidths[2] = {48, this->TextWidth(LookupMessage(MSI_PARTY), 0, 0, 12, 0, 0) + 13}; int tabValues[2] = {0, 1}; for (int index = 0; index < 2; ++index) { this->tabs[index] = new UIRadioBtn(); @@ -815,7 +816,7 @@ void UIMessengerGroupWnd::OnCreate(int, int) { } char title[64]; - const char* titles[2] = {LookupMessage(0x66), LookupMessage(0x67)}; + const char* titles[2] = {LookupMessage(MSI_FRIEND), LookupMessage(MSI_PARTY)}; if (this->mode == 1) { if (g_session.unknown_54C4.size()) { sprintf(title, "%s(%s)", titles[1], g_session.unknown_54C4.c_str()); @@ -838,12 +839,12 @@ void UIMessengerGroupWnd::OnCreate(int, int) { std::string prefix = "유저인터페이스\\basic_interface\\mesbtn_0"; int ids[11] = {544, 232, 233, 234, 235, 377, 377, 445, 446, 447, 364}; const char* friendTooltips[10] = { - LookupMessage(0x62), LookupMessage(0x63), LookupMessage(0x64), LookupMessage(0x163), LookupMessage(0x15F), - LookupMessage(0x65A), LookupMessage(0x65B), LookupMessage(0x806), LookupMessage(0x807), LookupMessage(0x808), + LookupMessage(MSI_MSG), LookupMessage(MSI_1ON1), LookupMessage(MSI_CHARACTER_INFO), LookupMessage(MSI_FRIEND_SETTING), LookupMessage(MSI_DELETE), + LookupMessage(MSI_LOCK_MOUSE), LookupMessage(MSI_UNLOCK_MOUSE), LookupMessage(MSI_CREATE_PARTY), LookupMessage(MSI_WITHDRAW_PARTY), LookupMessage(MSI_INVITE_PARTY), }; const char* partyTooltips[11] = { - LookupMessage(0xDBA), LookupMessage(0x63), LookupMessage(0x64), LookupMessage(0x65), LookupMessage(0x61), LookupMessage(0x65A), - LookupMessage(0x65B), LookupMessage(0x806), LookupMessage(0x807), LookupMessage(0x808), LookupMessage(0xF8F), + LookupMessage(MSI_CANNOT_MORE_SELECT_JOB), LookupMessage(MSI_1ON1), LookupMessage(MSI_CHARACTER_INFO), LookupMessage(MSI_PARTY_SETTING), LookupMessage(MSI_EXPEL), LookupMessage(MSI_LOCK_MOUSE), + LookupMessage(MSI_UNLOCK_MOUSE), LookupMessage(MSI_CREATE_PARTY), LookupMessage(MSI_WITHDRAW_PARTY), LookupMessage(MSI_INVITE_PARTY), LookupMessage(MSI_FAILED_ALL_RODEX_LIST), }; unsigned char disabled[11] = {1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0}; this->hiddenButtons[0] = 0; @@ -1040,7 +1041,7 @@ void UIMessengerGroupWnd::Paint() { memset(path, 0, sizeof(path)); sprintf(path, "%sbg_partymember.bmp", prefix.c_str()); auto* background = static_cast(ResourceMgr::Instance().Load(Resolve(path))); - this->DrawTextAt(this->geometry.width - 96, this->geometry.height - 16, LookupMessage(3231), 0, 0, 12, 0, 0, 0 + this->DrawTextAt(this->geometry.width - 96, this->geometry.height - 16, LookupMessage(MSI_CONNECT_SNS_FAIL_CUZ_NOT_CONNECTING), 0, 0, 12, 0, 0, 0 ); this->DrawBitmap(this->geometry.width - 58, this->geometry.height - 18, background, true); @@ -1056,7 +1057,7 @@ void UIMessengerGroupWnd::Paint() { } if (entry.name.size() == 0) { - entry.name = LookupMessage(581) + g_messengerNamelessTag; + entry.name = LookupMessage(MSI_NAMELESS_USER) + g_messengerNamelessTag; } else if (!g_session.IsFriendName(entry.name.c_str())) { g_session.UpdateFriendName(entry.characterId, entry.name.c_str()); } @@ -1482,7 +1483,7 @@ int UIMessengerGroupWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, this->UpdateScroll(); this->Invalidate(); char title[64]; - const char* titles[2] = {LookupMessage(0x66), LookupMessage(0x67)}; + const char* titles[2] = {LookupMessage(MSI_FRIEND), LookupMessage(MSI_PARTY)}; if (this->mode == 1) { if (g_session.unknown_54C4.size()) { sprintf(title, "%s(%s)", titles[1], g_session.unknown_54C4.c_str()); @@ -1526,32 +1527,32 @@ int UIMessengerGroupWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, } if (this->selected != -1) { if (this->mode == 0) { - this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(0x168)).c_str(), 7)); - this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(0xAF8)).c_str(), 0x3A)); - this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(0x15F)).c_str(), 0x13)); + this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_OPEN_1ON1_WINDOW)).c_str(), 7)); + this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_USA_PERSONALINFO_DEATH)).c_str(), 0x3A)); + this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_DELETE)).c_str(), 0x13)); MessengerMember member = this->MemberAtIndex(this->selected); if (member.valid && !member.offline && g_session.unknown_5464 && !g_session.PartyByName(member.name.c_str()).valid) { char text[200]; - sprintf(text, LookupMessage(0x532), member.name.c_str()); + sprintf(text, LookupMessage(MSI_REQ_JOIN_PARTY3), member.name.c_str()); this->menuItems.push_back(MiniPartyInfoEntry(text, 5)); } } else { MessengerMember member = this->MemberAtIndex(this->selected); if (member.valid) { - this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(0xAF8)).c_str(), 0x3A)); + this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_USA_PERSONALINFO_DEATH)).c_str(), 0x3A)); if (member.name == g_session.DecodePlayerName()) { - this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(0x60)).c_str(), 9)); + this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_LEAVE_PARTY)).c_str(), 9)); } else { - this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(0x168)).c_str(), 7)); + this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_OPEN_1ON1_WINDOW)).c_str(), 7)); if (g_session.unknown_5464) { - this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(0x61)).c_str(), 0)); - this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(0x5FC)).c_str(), 0x2B)); + this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_EXPEL)).c_str(), 0)); + this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_YIELD_PARTYMASTER)).c_str(), 0x2B)); } } if (!member.offline) { - this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(0xC1D)).c_str(), 0x3C)); - this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(0xC1E)).c_str(), 0x3D)); + this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_DATE_MM_DD)).c_str(), 0x3C)); + this->menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_ACHIEVEMENT_NEXT_GRADE)).c_str(), 0x3D)); } } } @@ -1575,7 +1576,7 @@ int UIMessengerGroupWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, } MessengerMember member = this->MemberAtIndex(this->selected); if (member.name.find(g_messengerNamelessTag, 0) != std::string::npos) { - g_windowMgr.Confirm(LookupMessage(0xBE1), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CHR_DELETE_FAIL_CHN_TAREN_PERSONALNUMBER), 0, true, false, 0, "Message", 0x118, 0x78, 0); return 0; } if (!member.valid) { @@ -1613,12 +1614,12 @@ int UIMessengerGroupWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, if (this->selected != -1) { MessengerMember target = this->MemberAtIndex(this->selected); if (target.valid && !target.offline) { - if (g_windowMgr.Confirm(LookupMessage(0x5FD), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_YIELD_PARTYMASTER), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { g_modeMgr.gameMode->SendMsg(MM_GROUP_CHANGE_MASTER, target.accountId, 0, 0, 0); } } else { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x5FE)), 0xFF, 3, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_YIELD_PARTYMASTER)), 0xFF, 3, 0, 0); } } return 0; @@ -1659,7 +1660,7 @@ int UIMessengerGroupWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, if (member.valid && !(member.name == g_session.DecodePlayerName())) { const char* tag; if (g_windowMgr.IsFriend(member.name.c_str())) { - tag = LookupMessage(0x66); + tag = LookupMessage(MSI_FRIEND); } else { tag = g_session.IsGuildMemberCharacter(member.characterId) ? "GuildMember" : nullptr; } @@ -1674,7 +1675,7 @@ int UIMessengerGroupWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, if (!g_session.m_lockMouse && this->selected != -1) { MessengerMember member = this->MemberAtIndex(this->selected); if (member.valid) { - g_windowMgr.Confirm(LookupMessage(0xBF), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NOTSUPPORTEDYET), 0, true, false, 0, "Message", 0x118, 0x78, 0); } } return 0; @@ -1712,11 +1713,11 @@ int UIMessengerGroupWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, MessengerMember member = this->MemberAtIndex(this->selected); if (member.valid) { if (this->mode == 0) { - if (g_windowMgr.Confirm(LookupMessage(0x164), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_DELETE), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { g_modeMgr.gameMode->SendMsg(MM_DELETE_FRIEND, member.accountId, member.characterId, 0, 0); } } else if (!(member.name == g_session.DecodePlayerName())) { - if (g_windowMgr.Confirm(LookupMessage(0x16B), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_EXPEL), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { g_modeMgr.gameMode->SendMsg(MM_REQ_EXPEL_GROUP_MEMBER, reinterpret_cast(member.name.c_str()), 0, 0, 0); } } @@ -1730,7 +1731,7 @@ int UIMessengerGroupWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, if (!g_session.m_lockMouse && this->selected != -1) { MessengerMember member = this->MemberAtIndex(this->selected); if (member.valid && member.name == g_session.DecodePlayerName()) { - if (g_windowMgr.Confirm(LookupMessage(0x165), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_LEAVE), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { g_modeMgr.gameMode->SendMsg(MM_REQ_LEAVE_GROUP, 0, 0, 0, 0); } } @@ -1845,7 +1846,7 @@ int UIMessengerGroupWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, return 0; case ID_LEAVE_PARTY: if (!g_session.m_lockMouse) { - if (g_windowMgr.Confirm(LookupMessage(0x165), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_LEAVE), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { g_modeMgr.gameMode->SendMsg(MM_REQ_LEAVE_GROUP, 0, 0, 0, 0); if (g_windowMgr.unknown_042C) { g_windowMgr.CloseWindow(WID_PARTYINVITATIONTOWND); @@ -1865,7 +1866,7 @@ int UIMessengerGroupWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, if (g_session.unknown_5464) { g_windowMgr.EnsureWindow(WID_PARTYINVITATIONTOWND); } else { - g_windowMgr.Confirm(LookupMessage(0x816), 4, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_YOU_ARE_NOT_PARTYMASTER), 4, true, false, 0, "Message", 0x118, 0x78, 0); } } if (this->mode == 1) { @@ -1961,7 +1962,7 @@ int UIMessengerGroupWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, char title[64]; memset(title, 0, sizeof(title)); - const char* titles[2] = {LookupMessage(0x66), LookupMessage(0x67)}; + const char* titles[2] = {LookupMessage(MSI_FRIEND), LookupMessage(MSI_PARTY)}; if (this->mode == 1) { if (g_session.unknown_54C4.size()) { sprintf(title, "%s(%s)", titles[1], g_session.unknown_54C4.c_str()); diff --git a/Source/Contents/NavigationCandidates.cpp b/Source/Contents/NavigationCandidates.cpp index 9d76f5a06..59ecdbbac 100644 --- a/Source/Contents/NavigationCandidates.cpp +++ b/Source/Contents/NavigationCandidates.cpp @@ -6,6 +6,7 @@ #include "Resource/ResourceMgr.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -17,7 +18,7 @@ bool CNavigationManager::CollectStartLinks() { const std::string resolved = ResourceMgr::Instance().aliases.ResolveMapName(g_session.m_navigationPlayerMap); info = this->FindObject(resolved.c_str()); if (info == nullptr) { - g_windowMgr.Confirm(LookupMessage(2293), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NAVIGATION_RS_FAILSTARTDATA), 0, true, false, 0, "Message", 280, 120, 0); return false; } } diff --git a/Source/Contents/NavigationRoute.cpp b/Source/Contents/NavigationRoute.cpp index 2161c43df..1e3cb37b7 100644 --- a/Source/Contents/NavigationRoute.cpp +++ b/Source/Contents/NavigationRoute.cpp @@ -36,6 +36,7 @@ #include "Render/Renderer.h" #include "Render/TextureQuad.h" +#include "Resource/MSGSTRINGID.h" namespace { // GLOBAL: gl_25136 int g_locationFrame = 1; @@ -265,7 +266,7 @@ void CNavigationManager::RequestPrivateAirship(std::string mapName, int itemId) if (itemId == 0x1AFD) { UIPayConfirmWnd* window = new UIPayConfirmWnd(); - window->Configure(LookupMessage(0xFC1), 0x1AFD); + window->Configure(LookupMessage(MSI_ENCHANT_POSSIBLE), 0x1AFD); window->SendMsg(nullptr, 0x9C, 1, 0, 0, 0); window->SetId(0x16B); g_windowMgr.AddRendered(window); @@ -318,9 +319,9 @@ std::string CNavigationManager::RouteText() { NaviCell cellX; const int y = this->data.GetCell(&cellY)->y; const int x = this->data.GetCell(&cellX)->x; - StringFormat(buffer, sizeof(buffer), static_cast(-1), "[%s] -> %s %d %d", LookupMessage(3585), info->GetName(), x, y); + StringFormat(buffer, sizeof(buffer), static_cast(-1), "[%s] -> %s %d %d", LookupMessage(MSI_RODEX_BUTTON_DELETE_SELECTED), info->GetName(), x, y); } else { - StringFormat(buffer, sizeof(buffer), static_cast(-1), "[%s] %s", LookupMessage(3585), info->GetName()); + StringFormat(buffer, sizeof(buffer), static_cast(-1), "[%s] %s", LookupMessage(MSI_RODEX_BUTTON_DELETE_SELECTED), info->GetName()); } } @@ -334,67 +335,67 @@ __declspec(noinline) void CNavigationManager::ShowRouteResult(int result, int mo std::string message; switch (result) { case -100: - message = LookupMessage(2294); + message = LookupMessage(MSI_NAVIGATION_RS_FAILTARGET); break; case -99: - message = LookupMessage(2295); + message = LookupMessage(MSI_NAVIGATION_RS_FAILROUTE); break; case -98: - message = LookupMessage(2296); + message = LookupMessage(MSI_NAVIGATION_RS_FAILPLAYER); break; case -97: - message = LookupMessage(2297); + message = LookupMessage(MSI_NAVIGATION_RS_NODATA); break; case -96: - message = LookupMessage(2298); + message = LookupMessage(MSI_NAVIGATION_RS_MAPNOTNAVIGATION); break; case -95: - message = LookupMessage(2299); + message = LookupMessage(MSI_NAVIGATION_RS_FAILTARGETROUTE); break; case -94: - message = LookupMessage(2300); + message = LookupMessage(MSI_NAVIGATION_RS_SUCCESS); break; case -93: - message = LookupMessage(2301); + message = LookupMessage(MSI_NAVIGATION_RS_START); break; case -92: - message = LookupMessage(2302); + message = LookupMessage(MSI_NAVIGATION_RS_MOBTARGETMAP); break; case 0: - message = LookupMessage(2303); + message = LookupMessage(MSI_NAVIGATION_RS_TARGETMAP); break; case 1: - message = LookupMessage(2304); + message = LookupMessage(MSI_NAVIGATION_RS_SCROLL); break; case 2: - message = LookupMessage(2305); + message = LookupMessage(MSI_NAVIGATION_RS_ROUTE_SUCCESS); break; case 3: - message = LookupMessage(2306); + message = LookupMessage(MSI_NAVIGATION_RS_MAPTMAP_SUCCESS); break; case 4: - message = LookupMessage(2307); + message = LookupMessage(MSI_NAVIGATION_RS_NPCTMAP_SUCCESS); break; case 5: - message = LookupMessage(2308); + message = LookupMessage(MSI_NAVIGATION_RS_MOBTMAP_SUCCESS); break; case 6: - message = LookupMessage(2309); + message = LookupMessage(MSI_NAVIGATION_RS_POSTMAP_SUCCESS); break; case 7: - message = LookupMessage(2310); + message = LookupMessage(MSI_NAVIGATION_RS_SAMETARGET); break; case 8: - message = LookupMessage(2311); + message = LookupMessage(MSI_NAVIGATION_RS_HERE); break; case 10: - message = LookupMessage(2312); + message = LookupMessage(MSI_NAVIGATION_PRINT_S); break; case 9: - message = LookupMessage(2313); + message = LookupMessage(MSI_NAVIGATION_PRINT_GO_S); break; case 11: - message = LookupMessage(2314); + message = LookupMessage(MSI_NAVIGATION_PRINT_MAP_S); break; case -90: message = LookupMessage(4692); @@ -407,13 +408,13 @@ __declspec(noinline) void CNavigationManager::ShowRouteResult(int result, int mo if (mode == 0 || mode == 1) { char buffer[250]; std::memset(buffer, 0, sizeof(buffer)); - std::sprintf(buffer, LookupMessage(2315), message.c_str()); + std::sprintf(buffer, LookupMessage(MSI_NAVIGATION_PRINT_SELECTMAP_S), message.c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(buffer), 0x62B0FF, 0, 0, 0); if (result == 5 && this->selectedNode != -1 && this->nodes.size() > static_cast(this->selectedNode)) { const int type = this->nodes[this->selectedNode]->GetType(); if (type == 201 || type == 202 || type == 203 || type == 204) { - std::sprintf(buffer, LookupMessage(2316), this->nodes[this->selectedNode]->GetName()); + std::sprintf(buffer, LookupMessage(MSI_NAVIGATION_PRINT_PLANE), this->nodes[this->selectedNode]->GetName()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(buffer), 0x62B0FF, 0, 0, 0); CNaviInfo* info = static_cast(this->nodes[this->selectedNode])->GetLinkedInfo(); @@ -421,14 +422,14 @@ __declspec(noinline) void CNavigationManager::ShowRouteResult(int result, int mo char text[0x104]; std::memset(text, 0, sizeof(text)); std::sprintf(text, " %s[ %s ] ", info->GetTitle(), info->GetName()); - std::sprintf(buffer, LookupMessage(2317), text); + std::sprintf(buffer, LookupMessage(MSI_NAVIGATION_PRINT_WARP), text); } } else if (type == 205) { - std::sprintf(buffer, LookupMessage(2316), this->nodes[this->selectedNode]->GetName()); + std::sprintf(buffer, LookupMessage(MSI_NAVIGATION_PRINT_PLANE), this->nodes[this->selectedNode]->GetName()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(buffer), 0x62B0FF, 0, 0, 0); - std::sprintf(buffer, LookupMessage(2319)); + std::sprintf(buffer, LookupMessage(MSI_NAVIGATION_ZZ)); } else { - std::sprintf(buffer, LookupMessage(2320)); + std::sprintf(buffer, LookupMessage(MSI_NAVIGATION_ZZLV)); } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(buffer), 0x62B0FF, 0, 0, 0); } @@ -439,7 +440,7 @@ __declspec(noinline) void CNavigationManager::ShowRouteResult(int result, int mo if (mode == 4) { const int count = static_cast(g_navigationManager.nodes.size()); CNavi_Object* node = count == 0 ? nullptr : g_navigationManager.nodes[0]; - std::string text(LookupMessage(2321)); + std::string text(LookupMessage(MSI_NAVIGATION_ZZLIMIT)); text += node->GetName(); text += " "; text += static_cast(node)->GetLinkedName(); @@ -1124,13 +1125,13 @@ __declspec(noinline) bool CNaviData::Search(std::string query, int type, std::ve // OFFSET: 0x00B891C0 // FUNCTION: fn_19385 int CNaviData::ParseSearchKind(std::vector& tokens) { - if (std::strncmp(tokens[0].c_str(), LookupMessage(0x912), std::strlen(LookupMessage(0x912))) != 0) { + if (std::strncmp(tokens[0].c_str(), LookupMessage(MSI_NAVIGATION_ZZALL), std::strlen(LookupMessage(MSI_NAVIGATION_ZZALL))) != 0) { return 1; } - std::size_t prefixLength = std::strlen(LookupMessage(0x913)); - if (prefixLength < tokens[0].size() && std::strncmp(tokens[0].c_str(), LookupMessage(0x913), prefixLength) == 0) { + std::size_t prefixLength = std::strlen(LookupMessage(MSI_SHOP_ITEM_BAY_TITLE)); + if (prefixLength < tokens[0].size() && std::strncmp(tokens[0].c_str(), LookupMessage(MSI_SHOP_ITEM_BAY_TITLE), prefixLength) == 0) { std::string token(tokens[0]); - const char* separator = std::strstr(token.c_str(), LookupMessage(0x914)); + const char* separator = std::strstr(token.c_str(), LookupMessage(MSI_SHOP_ITEM_BAY_MAG1)); std::string minimum; std::string maximum; if (separator == nullptr) { @@ -1138,7 +1139,7 @@ int CNaviData::ParseSearchKind(std::vector& tokens) { maximum = minimum; } else { minimum.assign(token.c_str() + prefixLength, separator); - maximum.assign(separator + std::strlen(LookupMessage(0x914)), token.c_str() + token.size()); + maximum.assign(separator + std::strlen(LookupMessage(MSI_SHOP_ITEM_BAY_MAG1)), token.c_str() + token.size()); if (maximum.size() == 0) { maximum = "500"; } @@ -1156,7 +1157,7 @@ int CNaviData::ParseSearchKind(std::vector& tokens) { } return kind; } - if (std::strncmp(tokens[0].c_str(), LookupMessage(0x915), std::strlen(LookupMessage(0x915))) == 0) { + if (std::strncmp(tokens[0].c_str(), LookupMessage(MSI_SHOP_ITEM_BAY_MAG2), std::strlen(LookupMessage(MSI_SHOP_ITEM_BAY_MAG2))) == 0) { return 2; } return std::strncmp(tokens[0].c_str(), "$$DB", 4) == 0 ? 4 : 0; @@ -1248,7 +1249,7 @@ bool CNavigationManager::SelectNodeState() { this->LoadTargetPreview(); this->ClearRouteNodes(); if (this->data.GetInfo() && !this->data.GetInfo()->IsSearchable(this->data.GetInfo()->GetName())) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4195)), 0x0A0AFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_REWARD_NOTMET)), 0x0A0AFF, 0, 0, 0); } return false; } @@ -1565,7 +1566,7 @@ bool CNavigationManager::BuildTargetRouteLines() { this->routeLines.push_back(NaviRouteLine(2, 142, 125, text, 0xDCDCDC, 0xCB6B54)); if (mob->GetType() == 301) { - this->routeLines.push_back(NaviRouteLine(2, 142, 149, LookupMessage(2230), 0xC8C8C8, 0xFF)); + this->routeLines.push_back(NaviRouteLine(2, 142, 149, LookupMessage(MSI_NAVIGATION_TARGET_D_D), 0xC8C8C8, 0xFF)); } } else if (type == 0) { this->AddWrappedRouteLines(1, 141, 46, static_cast(object)->GetName()); @@ -1671,7 +1672,7 @@ void CNavigationManager::CancelRoute() { static_cast(g_windowMgr.window_4F174)->RefreshLayout(); } } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2309)), 0x62B0FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NAVIGATION_RS_POSTMAP_SUCCESS)), 0x62B0FF, 0, 0, 0); } // OFFSET: 0x00B97B90 diff --git a/Source/Contents/Party/PartyBookingMgr.cpp b/Source/Contents/Party/PartyBookingMgr.cpp index 540980c01..7ff13a9f5 100644 --- a/Source/Contents/Party/PartyBookingMgr.cpp +++ b/Source/Contents/Party/PartyBookingMgr.cpp @@ -8,6 +8,7 @@ #include "UI/Window/UISeekPartyListWnd.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -182,7 +183,7 @@ void PartyBookingMgr::OnAdvertisement(PARTY_BOOKING_AD_INFO info) { if (this->m_alarm) { g_soundMgr->PlayWave("party_alarm.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0); - const char* message = LookupMessage(0x6D9); + const char* message = LookupMessage(MSI_PARTY_BOOKING_NOTIFY); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFFFF00, 15, 0, 0); } return; diff --git a/Source/Contents/Party/PartyInfoCompletion.cpp b/Source/Contents/Party/PartyInfoCompletion.cpp index bffe632ef..bf2fd574d 100644 --- a/Source/Contents/Party/PartyInfoCompletion.cpp +++ b/Source/Contents/Party/PartyInfoCompletion.cpp @@ -12,6 +12,7 @@ #include "UI/Window/UINewSelectCharWnd.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -38,7 +39,7 @@ void CAdventurerAgencyMgr::CompletePartyInfo(AsyncDiagnostic diagnostic, std::st auto entry = root["data"].begin(); if (entry == root["data"].end()) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3443)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_QUESTWND_HIGHER)), 0xFF, 0, 0, 0); g_windowMgr.CloseWindow(WID_APPLYFORPARTYWND); return; } @@ -76,9 +77,9 @@ void CAdventurerAgencyMgr::CompletePartyInfo(AsyncDiagnostic diagnostic, std::st } if (info.minimumLevel > g_session.m_level || info.maximumLevel < g_session.m_level) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3416)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INPUT_SEARCH_TEXT)), 0xFF, 0, 0, 0); } else if (g_session.PartyCount() > 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(79)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_YOU_ARE_ALREADY_IN_PARTY)), 0xFF, 0, 0, 0); } else { g_modeMgr.gameMode->SendMsg(MM_PARTY_REQ_MASTER_TO_JOIN, reinterpret_cast(&info.accountId), reinterpret_cast(&info.characterId), 0, 0); g_windowMgr.CloseWindow(WID_APPLYFORPARTYWND); diff --git a/Source/Contents/Party/PartyJoinResult.cpp b/Source/Contents/Party/PartyJoinResult.cpp index 079bcfaf1..17240d6d8 100644 --- a/Source/Contents/Party/PartyJoinResult.cpp +++ b/Source/Contents/Party/PartyJoinResult.cpp @@ -6,6 +6,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include // OFFSET: 0x00D3B9E0 @@ -19,43 +20,43 @@ void ReceivePartyJoinResult(const void* packet) { switch (status) { case 5: case 6: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3492)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_JOIN_PARTY_BECAUSE_LOW_LEVEL)), 0xFF, 0, 0, 0); break; case 9: { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3494)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EXCEEDED_NUMBER_OF_PARTYMEMBERS)), 0xFF, 0, 0, 0); std::uint32_t master; std::memcpy(&master, bytes + 50, sizeof(master)); g_adventurerAgencyMgr->RequestStop(master); break; } case 10: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3443)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_QUESTWND_HIGHER)), 0xFF, 0, 0, 0); break; case 11: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3495)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_JOIN_ACCEPT)), 0xFF, 0, 0, 0); break; case 4: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3496)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_JOIN_REFUSE)), 0xFF, 0, 0, 0); break; case 8: { char text[500] = {}; - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(3503), reinterpret_cast(bytes + 2)); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_NOT_PARTYMASTER_CANNOT_REGISTER_ADVENTURER_AGENCY), reinterpret_cast(bytes + 2)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); break; } case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3442)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_WEB_ADDRESS_FOR_RESTART)), 0xFF, 0, 0, 0); break; case 2: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3497)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ALREADY_JOINED_REQUEST_USER)), 0xFF, 0, 0, 0); break; case 0: { char text[500] = {}; if (g_session.unknown_5464 == 1) { - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(3501), reinterpret_cast(bytes + 2)); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_ADVENTURER_AGENCY_LIST), reinterpret_cast(bytes + 2)); } else { - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(3498), reinterpret_cast(bytes + 26)); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_JOIN_ACCEPT_REQUEST_USER), reinterpret_cast(bytes + 26)); } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF64, 0, 0, 0); @@ -65,9 +66,9 @@ void ReceivePartyJoinResult(const void* packet) { char text[500] = {}; if (g_session.unknown_5464 == 1) { - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(3502), reinterpret_cast(bytes + 2)); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_REQUEST_JOIN_PARTY), reinterpret_cast(bytes + 2)); } else { - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(3499), reinterpret_cast(bytes + 26)); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_JOIN_REFUSE_REQUEST_USER), reinterpret_cast(bytes + 26)); } g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); @@ -75,16 +76,16 @@ void ReceivePartyJoinResult(const void* packet) { } case 7: { char text[500] = {}; - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(3500), reinterpret_cast(bytes + 2)); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_REQUEST_REJECTED_BECAUSE_INVALID_MAPPROPERTY), reinterpret_cast(bytes + 2)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); break; } case 13: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1816)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RESULT_FAIL_UNKNOWN)), 0xFF, 0, 0, 0); break; case 12: { char text[500] = {}; - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(608), reinterpret_cast(bytes + 2)); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_ALREADY_SAME_AID_JOINED), reinterpret_cast(bytes + 2)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); break; } diff --git a/Source/Contents/Party/PartyRegistrationCompletion.cpp b/Source/Contents/Party/PartyRegistrationCompletion.cpp index 418d37483..867ae2c06 100644 --- a/Source/Contents/Party/PartyRegistrationCompletion.cpp +++ b/Source/Contents/Party/PartyRegistrationCompletion.cpp @@ -6,6 +6,7 @@ #include "UI/Window/UIWindow.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -28,12 +29,12 @@ void CAdventurerAgencyMgr::CompleteRegistration(AsyncDiagnostic diagnostic, std: const int type = root["Type"].asInt(); if (type == 2 || type == 3) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3417)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ADVEN_TANKER)), 0xFF, 0, 0, 0); return; } this->registered = true; - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3418)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BASIC_EXP_ZERO)), 0xFFFF64, 0, 0, 0); UIWindow* board = g_windowMgr.LookupWindow(WID_ADVENPARTYBOARDWND); if (board) { diff --git a/Source/Contents/Party/StopRecruitingCompletion.cpp b/Source/Contents/Party/StopRecruitingCompletion.cpp index c7b375b5f..e23afd0ed 100644 --- a/Source/Contents/Party/StopRecruitingCompletion.cpp +++ b/Source/Contents/Party/StopRecruitingCompletion.cpp @@ -8,6 +8,7 @@ #include "UI/Buttons/UIBasicButton.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -18,7 +19,7 @@ void CAdventurerAgencyMgr::CompleteStopRecruiting(AsyncDiagnostic diagnostic, st if (!diagnostic.success) { if (this->unknown_0008 == g_session.m_aid) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3507)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EXPAND_SIGHT_HELP)), 0xFF, 0, 0, 0); } return; @@ -35,14 +36,14 @@ void CAdventurerAgencyMgr::CompleteStopRecruiting(AsyncDiagnostic diagnostic, st case 2: case 3: if (this->unknown_0008 == g_session.m_aid) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3507)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EXPAND_SIGHT_HELP)), 0xFF, 0, 0, 0); } return; } if (this->unknown_0008 == g_session.m_aid) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3459)), 0xFFFF64, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FORCED_WEB_LOGIN)), 0xFFFF64, 0, 0, 0); } this->registered = false; diff --git a/Source/Contents/PlayerNameDictionary.cpp b/Source/Contents/PlayerNameDictionary.cpp index 578bb0439..18de4a1ae 100644 --- a/Source/Contents/PlayerNameDictionary.cpp +++ b/Source/Contents/PlayerNameDictionary.cpp @@ -2,6 +2,7 @@ #include "Contents/PlayerNameDictionary.h" #include "Network/Connection/Connection.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -29,7 +30,7 @@ std::string CPlayerNameDictionary::Lookup(std::uint32_t id) { this->m_pending.push_back(id); } - return LookupMessage(581); + return LookupMessage(MSI_NAMELESS_USER); } // OFFSET: 0x0060ABB0 diff --git a/Source/Contents/RenewQuestMgr.cpp b/Source/Contents/RenewQuestMgr.cpp index 707de4de7..46e3c0223 100644 --- a/Source/Contents/RenewQuestMgr.cpp +++ b/Source/Contents/RenewQuestMgr.cpp @@ -15,6 +15,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Client/Session.h" +#include "Resource/MSGSTRINGID.h" extern "C" { #include #include @@ -177,7 +178,7 @@ void CRenewQuestMgr::RemoveStatusRequest(unsigned int id) { // OFFSET: 0x00677D80 // FUNCTION: fn_05438 std::string RenewQuestOngoingInfo::GetDateString() const { - return this->m_year > 1970 ? std::format("{0} [{1:04}/{2:02}/{3:02} {4:02}:{5:02}]", LookupMessage(2195), this->m_year, + return this->m_year > 1970 ? std::format("{0} [{1:04}/{2:02}/{3:02} {4:02}:{5:02}]", LookupMessage(MSI_NAVIGATION_ROUTEINFO), this->m_year, this->m_month, this->m_day, this->m_hour, this->m_minute) : std::string(""); } @@ -204,115 +205,115 @@ std::string CRenewQuestMgr::GetMonsterConditionText(unsigned int flags, int minL if (flags != 0) { if (flags & 0x20000) { - std::string text(LookupMessage(2263)); + std::string text(LookupMessage(MSI_NAVIGATION_PROPERTY4)); text.erase(text.size() - 2, text.size()); result = result + text + separator; } if (flags & 0x40000) { - std::string text(LookupMessage(2266)); + std::string text(LookupMessage(MSI_NAVIGATION_PROPERTY7)); text.erase(text.size() - 2, text.size()); result = result + text + separator; } if (flags & 0x80000) { - std::string text(LookupMessage(2264)); + std::string text(LookupMessage(MSI_NAVIGATION_PROPERTY5)); text.erase(text.size() - 2, text.size()); result = result + text + separator; } if (flags & 0x100000) { - std::string text(LookupMessage(2265)); + std::string text(LookupMessage(MSI_NAVIGATION_PROPERTY6)); text.erase(text.size() - 2, text.size()); result = result + text + separator; } if (flags & 0x200000) { - std::string text(LookupMessage(2269)); + std::string text(LookupMessage(MSI_NAVIGATION_PROPERTY0)); text.erase(text.size() - 2, text.size()); result = result + text + separator; } if (flags & 0x400000) { - std::string text(LookupMessage(2268)); + std::string text(LookupMessage(MSI_NAVIGATION_PROPERTY9)); text.erase(text.size() - 2, text.size()); result = result + text + separator; } if (flags & 0x800000) { - std::string text(LookupMessage(2267)); + std::string text(LookupMessage(MSI_NAVIGATION_PROPERTY8)); text.erase(text.size() - 2, text.size()); result = result + text + separator; } if (flags & 0x1000000) { - std::string text(LookupMessage(2270)); + std::string text(LookupMessage(MSI_NAVIGATION_SCALE1)); text.erase(text.size() - 2, text.size()); result = result + text + separator; } if (flags & 0x2000000) { - std::string text(LookupMessage(2272)); + std::string text(LookupMessage(MSI_NAVIGATION_SCALE0)); text.erase(text.size() - 2, text.size()); result = result + text + separator; } if (flags & 0x4000000) { - std::string text(LookupMessage(2271)); + std::string text(LookupMessage(MSI_NAVIGATION_SCALE2)); text.erase(text.size() - 2, text.size()); result = result + text + separator; } if (flags & 0x10) { - result = result + std::string(LookupMessage(2275)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_RACE3)) + separator; } if (flags & 0x20) { - result = result + std::string(LookupMessage(2273)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_RACE1)) + separator; } if (flags & 0x40) { - result = result + std::string(LookupMessage(2274)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_RACE2)) + separator; } if (flags & 0x80) { - result = result + std::string(LookupMessage(2282)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_RACE0)) + separator; } if (flags & 0x100) { - result = result + std::string(LookupMessage(2277)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_RACE5)) + separator; } if (flags & 0x200) { - result = result + std::string(LookupMessage(2279)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_RACE7)) + separator; } if (flags & 0x400) { - result = result + std::string(LookupMessage(2280)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_RACE8)) + separator; } if (flags & 0x800) { - result = result + std::string(LookupMessage(2278)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_RACE6)) + separator; } if (flags & 0x1000) { - result = result + std::string(LookupMessage(2281)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_RACE9)) + separator; } if (flags & 0x2000) { - result = result + std::string(LookupMessage(2283)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_MOVECLICK)) + separator; } if (flags & 0x4000) { - result = result + std::string(LookupMessage(2276)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_RACE4)) + separator; } if (flags & 0x8000) { - result = result + std::string(LookupMessage(2285)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_NPCCLICK)) + separator; } if (flags & 0x10000) { - result = result + std::string(LookupMessage(2284)) + separator; + result = result + std::string(LookupMessage(MSI_NAVIGATION_NPCMOVE)) + separator; } } @@ -369,7 +370,7 @@ std::string RenewQuestOngoingInfo::GetHuntText(int index) const { if (goal > 0) { const short count = this->m_huntUnknown00E0[index]; if (count == goal) { - text = std::format("{} ( {} )", text, LookupMessage(2030)); + text = std::format("{} ( {} )", text, LookupMessage(MSI_COMPLETE_HUNTING_QUEST)); } else { text = std::format("{} ( {} / {} )", text, count, goal); } diff --git a/Source/Contents/ReputeMgr.cpp b/Source/Contents/ReputeMgr.cpp index 41a9be771..c16241796 100644 --- a/Source/Contents/ReputeMgr.cpp +++ b/Source/Contents/ReputeMgr.cpp @@ -10,6 +10,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/JsonCppLoader.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -248,7 +249,7 @@ void CReputeMgr::OpenRepute(std::uint64_t groupId, std::uint64_t reputeId) { const unsigned int groupIdHigh = static_cast(groupId >> 32); if (groupIdLow == 0 && groupIdHigh == 0) { - window->SendMsg(nullptr, UM_TAB, reinterpret_cast(LookupMessage(3829)), 0, 0, 0); + window->SendMsg(nullptr, UM_TAB, reinterpret_cast(LookupMessage(MSI_ENCHANT)), 0, 0, 0); } else { auto group = this->m_groups.find(groupId); if (group != this->m_groups.end()) { diff --git a/Source/Contents/Schedule/CheckGDISchedule.cpp b/Source/Contents/Schedule/CheckGDISchedule.cpp index c09772a24..668eafc61 100644 --- a/Source/Contents/Schedule/CheckGDISchedule.cpp +++ b/Source/Contents/Schedule/CheckGDISchedule.cpp @@ -9,6 +9,7 @@ #include "Network/Connection/ConnectionRuntime.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -50,9 +51,9 @@ perform_check: g_timeScheduler->m_unknown_000D = true; if (roll == 2) { - g_windowMgr.Confirm(LookupMessage(857), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NPGAMEMON_XP_COMPATIBILITY), 0, true, false, 0, "Message", 280, 120, 0); } else if (roll == 4) { - g_windowMgr.Confirm(LookupMessage(800), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NPGAMEMON_ERROR_ILLEGAL_PRG), 0, true, false, 0, "Message", 280, 120, 0); } GetRagConnection().Close(); diff --git a/Source/Contents/Schedule/PartialShutDownSchedule.cpp b/Source/Contents/Schedule/PartialShutDownSchedule.cpp index b4580ee17..1b6a3f244 100644 --- a/Source/Contents/Schedule/PartialShutDownSchedule.cpp +++ b/Source/Contents/Schedule/PartialShutDownSchedule.cpp @@ -7,6 +7,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Timestamp.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -77,7 +78,7 @@ void CPartialShutDownSchedule::Process(const std::uint64_t& now) { if (seconds >= 3600) { char text[256]; std::memset(text, 0, 255); - std::sprintf(text, LookupMessage(2349), seconds / 3600, (seconds % 3600) / 60); + std::sprintf(text, LookupMessage(MSI_MENU_WEBBROWSERWND), seconds / 3600, (seconds % 3600) / 60); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 0, 0, 0); return; } @@ -87,7 +88,7 @@ void CPartialShutDownSchedule::Process(const std::uint64_t& now) { char text[256]; std::memset(text, 0, 255); std::sprintf( - text, LookupMessage(2348), this->endTime->Year(), this->endTime->Month(), this->endTime->Day(), this->endTime->Hour(), this->endTime->Minute(), + text, LookupMessage(MSI_MENU_MACROWND), this->endTime->Year(), this->endTime->Month(), this->endTime->Day(), this->endTime->Hour(), this->endTime->Minute(), this->endTime->Second() ); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFFFF, 0, 0, 0); diff --git a/Source/Contents/Schedule/ShutDownSchedule.cpp b/Source/Contents/Schedule/ShutDownSchedule.cpp index de82dbfcd..4a04af0ff 100644 --- a/Source/Contents/Schedule/ShutDownSchedule.cpp +++ b/Source/Contents/Schedule/ShutDownSchedule.cpp @@ -5,6 +5,7 @@ #include "Contents/MessageTable.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" // GLOBAL: gl_24854 double s_shutDownNoticeSeconds[6] = { 1800.0, @@ -34,7 +35,7 @@ void CShutDownSchedule::UpdateNotice() { void CShutDownSchedule::Process(const std::uint64_t& now) { if (this->noticeIndex < 6) { if (g_modeMgr.GetGameMode()) { - const char* message = LookupMessage(2020); + const char* message = LookupMessage(MSI_SHUTDOWN_ALERT_MSG); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFFFF, 0, 0, 0); ++this->noticeIndex; this->UpdateNotice(); diff --git a/Source/Contents/ShowRankingScheduler.cpp b/Source/Contents/ShowRankingScheduler.cpp index fb0929359..2ae0de152 100644 --- a/Source/Contents/ShowRankingScheduler.cpp +++ b/Source/Contents/ShowRankingScheduler.cpp @@ -8,6 +8,7 @@ #include "Contents/PlayerNameDictionary.h" #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -63,7 +64,7 @@ void CShowRankingScheduler::Process(const std::uint64_t& now) { } } if (!complete) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3481)), 0xffff, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_STORE_ASSISTANT_TRADE_FORCED_REMOVAL_TITLE)), 0xffff, 0, 0, 0); return; } this->Show(); @@ -131,7 +132,7 @@ void CShowRankingScheduler::Show() { } } if (name.empty() || name.find(g_namelessName) != std::string::npos) { - name = LookupMessage(581); + name = LookupMessage(MSI_NAMELESS_USER); } std::string line = FormatOwnedString("[ %2d ] %s : %4d POINT", index + 1, name.c_str(), points[index]); diff --git a/Source/Contents/Skills/SkillActionImperialGuard.cpp b/Source/Contents/Skills/SkillActionImperialGuard.cpp index 9c25369ec..652ab26ac 100644 --- a/Source/Contents/Skills/SkillActionImperialGuard.cpp +++ b/Source/Contents/Skills/SkillActionImperialGuard.cpp @@ -14,6 +14,7 @@ #include "Contents/World/World.h" #include "Utility/Math/Vector3d.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -188,13 +189,13 @@ void CEfstAction_IG_GUARDIAN_SHIELD::OnEfstUpdate(int efstId, int value, int arg // OFFSET: 0x007880C0 // FUNCTION: fn_08594 EfstActionMessage CEfstAction_IG_GUARDIAN_SHIELD::GetEfstBeginMessage() { - return {LookupMessage(3752), 0xFFFF00}; + return {LookupMessage(MSI_IG_REBOUND_SHIELD_OFF), 0xFFFF00}; } // OFFSET: 0x007880F0 // FUNCTION: fn_08595 EfstActionMessage CEfstAction_IG_GUARDIAN_SHIELD::GetEfstEndMessage() { - return {LookupMessage(3753), 0xFF}; + return {LookupMessage(MSI_IG_HOLY_SHIELD_ON), 0xFF}; } // OFFSET: 0x00788120 @@ -257,13 +258,13 @@ void CEfstAction_IG_HOLY_SHIELD::OnEfstUpdate(int efstId, int value, int argumen // OFFSET: 0x00788B20 // FUNCTION: fn_08601 EfstActionMessage CEfstAction_IG_HOLY_SHIELD::GetEfstBeginMessage() { - return {LookupMessage(3756), 0xFFFF00}; + return {LookupMessage(MSI_IG_ULTIMATE_SACRIFICE_OFF), 0xFFFF00}; } // OFFSET: 0x00788B50 // FUNCTION: fn_08602 EfstActionMessage CEfstAction_IG_HOLY_SHIELD::GetEfstEndMessage() { - return {LookupMessage(3757), 0xFF}; + return {LookupMessage(MSI_AG_CLIMAX_ON), 0xFF}; } // OFFSET: 0x00788B90 @@ -391,13 +392,13 @@ void CSkillAction_IG_REBOUND_SHIELD::OnSkillEffect(int level, CGameActor* source // OFFSET: 0x00789EE0 // FUNCTION: fn_08614 EfstActionMessage CEfstAction_REBOUND_S::GetEfstBeginMessage() { - return {LookupMessage(3754), 0xFFFF00}; + return {LookupMessage(MSI_IG_HOLY_SHIELD_OFF), 0xFFFF00}; } // OFFSET: 0x00789F10 // FUNCTION: fn_08615 EfstActionMessage CEfstAction_REBOUND_S::GetEfstEndMessage() { - return {LookupMessage(3755), 0xFF}; + return {LookupMessage(MSI_IG_ULTIMATE_SACRIFICE_ON), 0xFF}; } // OFFSET: 0x00789F40 @@ -644,13 +645,13 @@ void CEfstAction_IG_ATTACK_STANCE::OnEfstUpdate(int efstId, int value, int argum // OFFSET: 0x0078BFC0 // FUNCTION: fn_08641 EfstActionMessage CEfstAction_IG_ATTACK_STANCE::GetEfstBeginMessage() { - return {LookupMessage(3748), 0xFFFF00}; + return {LookupMessage(MSI_IG_GUARD_STANCE_OFF), 0xFFFF00}; } // OFFSET: 0x0078BFF0 // FUNCTION: fn_08642 EfstActionMessage CEfstAction_IG_ATTACK_STANCE::GetEfstEndMessage() { - return {LookupMessage(3749), 0xFF}; + return {LookupMessage(MSI_IG_GUARDIAN_SHIELD_ON), 0xFF}; } // OFFSET: 0x0078C020 @@ -869,11 +870,11 @@ void CEfstAction_IG_GUARD_STANCE::OnEfstUpdate(int efstId, int value, int argume // OFFSET: 0x0078C850 // FUNCTION: fn_08649 EfstActionMessage CEfstAction_IG_GUARD_STANCE::GetEfstBeginMessage() { - return {LookupMessage(3750), 0xFFFF00}; + return {LookupMessage(MSI_IG_GUARDIAN_SHIELD_OFF), 0xFFFF00}; } // OFFSET: 0x0078C880 // FUNCTION: fn_08650 EfstActionMessage CEfstAction_IG_GUARD_STANCE::GetEfstEndMessage() { - return {LookupMessage(3751), 0xFF}; + return {LookupMessage(MSI_IG_REBOUND_SHIELD_ON), 0xFF}; } diff --git a/Source/Contents/Skills/SkillActionTroubadour.cpp b/Source/Contents/Skills/SkillActionTroubadour.cpp index 02d19308a..72881b1f1 100644 --- a/Source/Contents/Skills/SkillActionTroubadour.cpp +++ b/Source/Contents/Skills/SkillActionTroubadour.cpp @@ -11,6 +11,7 @@ #include "Contents/Skills/SkillInfo.h" #include "Utility/Math/Vector3d.h" +#include "Resource/MSGSTRINGID.h" class CSkillAction_TR_ROSEBLOSSOM : public CSkillAction { public: void OnSkillCast(int level, CGameActor* source) override; @@ -187,13 +188,13 @@ void CSkillAction_TR_KVASIR_SONATA::OnSkillEffect(int level, CGameActor* source, // OFFSET: 0x007A2820 // FUNCTION: fn_08980 EfstActionMessage CEfstAction_KVASIR_SONATA::GetEfstBeginMessage() { - return {LookupMessage(3791), 0xFFFF00}; + return {LookupMessage(MSI_TR_MYSTIC_SYMPHONY_OFF), 0xFFFF00}; } // OFFSET: 0x007A2850 // FUNCTION: fn_08981 EfstActionMessage CEfstAction_KVASIR_SONATA::GetEfstEndMessage() { - return {LookupMessage(3792), 0xFF}; + return {LookupMessage(MSI_TR_GEF_NOCTURN_ON), 0xFF}; } // OFFSET: 0x007A2880 @@ -234,13 +235,13 @@ void CEfstAction_PRON_MARCH::OnEfstBegin(int efstId, int value, int argument3, i // OFFSET: 0x007A2CF0 // FUNCTION: fn_08985 EfstActionMessage CEfstAction_PRON_MARCH::GetEfstBeginMessage() { - return {LookupMessage(3803), 0xFFFF00}; + return {LookupMessage(MSI_WH_CALAMITYGALE_OFF), 0xFFFF00}; } // OFFSET: 0x007A2D20 // FUNCTION: fn_08986 EfstActionMessage CEfstAction_PRON_MARCH::GetEfstEndMessage() { - return {LookupMessage(3804), 0xFF}; + return {LookupMessage(MSI_WH_WIND_SIGN_ON), 0xFF}; } // OFFSET: 0x007A2D50 @@ -283,13 +284,13 @@ void CEfstAction_JAWAII_SERENADE::OnEfstBegin(int efstId, int value, int argumen // OFFSET: 0x007A31E0 // FUNCTION: fn_08990 EfstActionMessage CEfstAction_JAWAII_SERENADE::GetEfstBeginMessage() { - return {LookupMessage(3801), 0xFFFF00}; + return {LookupMessage(MSI_TR_PRON_MARCH_OFF), 0xFFFF00}; } // OFFSET: 0x007A3210 // FUNCTION: fn_08991 EfstActionMessage CEfstAction_JAWAII_SERENADE::GetEfstEndMessage() { - return {LookupMessage(3802), 0xFF}; + return {LookupMessage(MSI_WH_CALAMITYGALE_ON), 0xFF}; } // OFFSET: 0x007A3240 @@ -326,13 +327,13 @@ void CEfstAction_AIN_RHAPSODY::OnEfstBegin(int efstId, int value, int argument3, // OFFSET: 0x007A35A0 // FUNCTION: fn_08995 EfstActionMessage CEfstAction_AIN_RHAPSODY::GetEfstBeginMessage() { - return {LookupMessage(3797), 0xFF}; + return {LookupMessage(MSI_TR_MUSICAL_INTERLUDE_OFF), 0xFF}; } // OFFSET: 0x007A35D0 // FUNCTION: fn_08996 EfstActionMessage CEfstAction_AIN_RHAPSODY::GetEfstEndMessage() { - return {LookupMessage(3798), 0xFFFF00}; + return {LookupMessage(MSI_TR_JAWAII_SERENADE_ON), 0xFFFF00}; } // OFFSET: 0x007A3600 @@ -374,13 +375,13 @@ void CEfstAction_GEF_NOCTURN::OnEfstBegin(int efstId, int value, int argument3, // OFFSET: 0x007A3A80 // FUNCTION: fn_09000 EfstActionMessage CEfstAction_GEF_NOCTURN::GetEfstBeginMessage() { - return {LookupMessage(3795), 0xFF}; + return {LookupMessage(MSI_TR_AIN_RHAPSODY_OFF), 0xFF}; } // OFFSET: 0x007A3AB0 // FUNCTION: fn_09001 EfstActionMessage CEfstAction_GEF_NOCTURN::GetEfstEndMessage() { - return {LookupMessage(3796), 0xFFFF00}; + return {LookupMessage(MSI_TR_MUSICAL_INTERLUDE_ON), 0xFFFF00}; } // OFFSET: 0x007A3AE0 @@ -479,13 +480,13 @@ void CEfstAction_MYSTIC_SYMPHONY::OnEfstUpdate(int efstId, int value, int argume // OFFSET: 0x007A4900 // FUNCTION: fn_09012 EfstActionMessage CEfstAction_MYSTIC_SYMPHONY::GetEfstBeginMessage() { - return {LookupMessage(3793), 0xFFFF00}; + return {LookupMessage(MSI_TR_GEF_NOCTURN_OFF), 0xFFFF00}; } // OFFSET: 0x007A4930 // FUNCTION: fn_09013 EfstActionMessage CEfstAction_MYSTIC_SYMPHONY::GetEfstEndMessage() { - return {LookupMessage(3794), 0xFF}; + return {LookupMessage(MSI_TR_AIN_RHAPSODY_ON), 0xFF}; } // OFFSET: 0x007A4960 diff --git a/Source/Contents/Skills/SkillActionWindHawk.cpp b/Source/Contents/Skills/SkillActionWindHawk.cpp index 7234c89f1..ed6845458 100644 --- a/Source/Contents/Skills/SkillActionWindHawk.cpp +++ b/Source/Contents/Skills/SkillActionWindHawk.cpp @@ -9,6 +9,7 @@ #include "Contents/MessageTable.h" #include "Contents/Skills/SkillInfo.h" +#include "Resource/MSGSTRINGID.h" class CSkillAction_WH_GALESTORM : public CSkillAction { public: void OnSkillCast(int level, CGameActor* source) override; @@ -124,13 +125,13 @@ void CEfstAction_CALAMITYGALE::OnEfstUpdate(int efstId, int value, int argument3 // OFFSET: 0x007A6370 // FUNCTION: fn_09031 EfstActionMessage CEfstAction_CALAMITYGALE::GetEfstBeginMessage() { - return {LookupMessage(3805), 0xFFFF00}; + return {LookupMessage(MSI_WH_WIND_SIGN_OFF), 0xFFFF00}; } // OFFSET: 0x007A63A0 // FUNCTION: fn_09032 EfstActionMessage CEfstAction_CALAMITYGALE::GetEfstEndMessage() { - return {LookupMessage(3806), 0xFF}; + return {LookupMessage(MSI_THAI_PERSONALINFO_EXP2), 0xFF}; } // OFFSET: 0x007A63D0 diff --git a/Source/Contents/Skills/SkillInfo.cpp b/Source/Contents/Skills/SkillInfo.cpp index cdd2ebba5..2da4beea5 100644 --- a/Source/Contents/Skills/SkillInfo.cpp +++ b/Source/Contents/Skills/SkillInfo.cpp @@ -24,6 +24,7 @@ #include "Utility/Math/AffineMatrix.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -886,13 +887,13 @@ void CEfstAction_UNLIMIT::OnEfstUpdate(int efstId, int value, int argument3, int // OFFSET: 0x007764E0 // FUNCTION: fn_08346 EfstActionMessage CEfstAction_SHADOW_WEAPON::GetEfstBeginMessage() { - return {LookupMessage(3766), 0xFFFF00}; + return {LookupMessage(MSI_HUNTING_QUEST_INFO_OFF), 0xFFFF00}; } // OFFSET: 0x00776510 // FUNCTION: fn_08347 EfstActionMessage CEfstAction_SHADOW_WEAPON::GetEfstEndMessage() { - return {LookupMessage(3767), 0xFF}; + return {LookupMessage(MSI_TARGET_AP_MAX), 0xFF}; } // OFFSET: 0x00777910 @@ -931,13 +932,13 @@ void CEfstAction_SHADOW_EXCEED::OnEfstUpdate(int efstId, int value, int argument // OFFSET: 0x00777F00 // FUNCTION: fn_08368 EfstActionMessage CEfstAction_SHADOW_EXCEED::GetEfstBeginMessage() { - return {LookupMessage(3762), 0xFFFF00}; + return {LookupMessage(MSI_SHC_POTENT_VENOM_OFF), 0xFFFF00}; } // OFFSET: 0x00777F30 // FUNCTION: fn_08369 EfstActionMessage CEfstAction_SHADOW_EXCEED::GetEfstEndMessage() { - return {LookupMessage(3763), 0xFF}; + return {LookupMessage(MSI_SHC_ENCHANTING_SHADOW_ON), 0xFF}; } // OFFSET: 0x00778140 @@ -1922,7 +1923,7 @@ void CEfstAction_VIGOR::OnEfstUpdate(int efstId, int value, int argument3, int a // OFFSET: 0x0077E370 // FUNCTION: fn_08454 EfstActionMessage CEfstAction_VIGOR::GetEfstEndMessage() { - return {LookupMessage(3747), 0xFF}; + return {LookupMessage(MSI_IG_GUARD_STANCE_ON), 0xFF}; } // OFFSET: 0x0077E3B0 @@ -1956,7 +1957,7 @@ void CEfstAction_SERVANTWEAPON::OnEfstEnd(int efstId, int argument2, int argumen // OFFSET: 0x0077E7E0 // FUNCTION: fn_08459 EfstActionMessage CEfstAction_SERVANTWEAPON::GetEfstEndMessage() { - return {LookupMessage(3745), 0xFF}; + return {LookupMessage(MSI_IG_ATTACK_STANCE_ON), 0xFF}; } // OFFSET: 0x0077E820 @@ -2269,7 +2270,7 @@ void CSkillAction_DK_CHARGINGPIERCE::OnSkillEffect(int level, CGameActor* source // OFFSET: 0x00781070 // FUNCTION: fn_08489 EfstActionMessage CEfstAction_CHARGINGPIERCE::GetEfstEndMessage() { - return {LookupMessage(3746), 0xFF}; + return {LookupMessage(MSI_IG_ATTACK_STANCE_OFF), 0xFF}; } // OFFSET: 0x007810A0 diff --git a/Source/Contents/Store/MCStoreInfoBackup.cpp b/Source/Contents/Store/MCStoreInfoBackup.cpp index 164e39dc3..a73bec9dd 100644 --- a/Source/Contents/Store/MCStoreInfoBackup.cpp +++ b/Source/Contents/Store/MCStoreInfoBackup.cpp @@ -7,6 +7,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Async/AsyncDiagnostic.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -135,9 +136,9 @@ void CMCStoreInfoBackup::CompleteSave(AsyncDiagnostic diagnostic, std::string re g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); if (this->type == 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3685)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EQUIP_FAIL_DURING_BARTER)), 0xFFFF, 0, 0, 0); } else if (this->type == 1) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3686)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BARTER_ITEMLIST)), 0xFFFF, 0, 0, 0); } } diff --git a/Source/Contents/World/WorldObjects.cpp b/Source/Contents/World/WorldObjects.cpp index dd80c3617..73e97f0f6 100644 --- a/Source/Contents/World/WorldObjects.cpp +++ b/Source/Contents/World/WorldObjects.cpp @@ -57,6 +57,7 @@ #include #include "Contents/GuildInfo.h" +#include "Resource/MSGSTRINGID.h" // GLOBAL: gl_24371 HANDLE hObject; // GLOBAL: gl_24757 @@ -666,13 +667,13 @@ void CGameMode::OpenActorMenu(const ActorPickInfo* pick, int handled) { this->unknown_02E0 = pick->accountId; this->actorMenuIds.push_back(0x25); - sprintf(text, LookupMessage(0x458)); + sprintf(text, LookupMessage(MSI_HOMUN_SHOWINFO)); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(text), 0, 0, 0); this->actorMenuIds.push_back(0x26); - sprintf(text, LookupMessage(0x459)); + sprintf(text, LookupMessage(MSI_HOMUN_FEEDING)); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(text), 0, 0, 0); this->actorMenuIds.push_back(0x27); - sprintf(text, LookupMessage(0x45A)); + sprintf(text, LookupMessage(MSI_HOMUN_WAITING)); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(text), 0, 0, 0); } else if (actor != nullptr && g_session.IsMercenaryAid(pick->accountId)) { if (g_windowMgr.unknown_0210 != nullptr) { @@ -683,10 +684,10 @@ void CGameMode::OpenActorMenu(const ActorPickInfo* pick, int handled) { this->unknown_02E0 = pick->accountId; this->actorMenuIds.push_back(0x28); - sprintf(text, LookupMessage(0x458)); + sprintf(text, LookupMessage(MSI_HOMUN_SHOWINFO)); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(text), 0, 0, 0); this->actorMenuIds.push_back(0x29); - sprintf(text, LookupMessage(0x45A)); + sprintf(text, LookupMessage(MSI_HOMUN_WAITING)); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(text), 0, 0, 0); } else if (actor != nullptr && pick->accountId == g_session.unknown_1010 && actor->unknown_0314 == 7) { if (g_windowMgr.unknown_0210 != nullptr) { @@ -697,19 +698,19 @@ void CGameMode::OpenActorMenu(const ActorPickInfo* pick, int handled) { this->unknown_02E0 = pick->accountId; this->actorMenuIds.push_back(0x21); - sprintf(text, LookupMessage(0x254)); + sprintf(text, LookupMessage(MSI_PET_SHOWINFO)); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(text), 0, 0, 0); this->actorMenuIds.push_back(0x1D); - sprintf(text, LookupMessage(0x250)); + sprintf(text, LookupMessage(MSI_PET_FEEDING)); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(text), 0, 0, 0); this->actorMenuIds.push_back(0x1E); - sprintf(text, LookupMessage(0x251)); + sprintf(text, LookupMessage(MSI_PET_PERFORMANCE)); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(text), 0, 0, 0); this->actorMenuIds.push_back(0x20); - sprintf(text, LookupMessage(0x253)); + sprintf(text, LookupMessage(MSI_PET_ACC_OFF)); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(text), 0, 0, 0); this->actorMenuIds.push_back(0x1F); - sprintf(text, LookupMessage(0x252)); + sprintf(text, LookupMessage(MSI_PET_RETURN_EGG)); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(text), 0, 0, 0); } else { if (pick->accountId == g_session.m_aid) { @@ -749,7 +750,7 @@ void CGameMode::OpenActorMenu(const ActorPickInfo* pick, int handled) { this->unknown_02E0 = pick->accountId; this->actorMenuIds.push_back(0x41); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0xDA5)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_INVALID_MAPPROPERTY_REQUEST_USER)), 0, 0, 0); } else { std::string name; if (target->unknown_02F8 == 1 && (this->scene->unknown_0048 == 1 || this->scene->unknown_004C == 1)) { @@ -769,19 +770,19 @@ void CGameMode::OpenActorMenu(const ActorPickInfo* pick, int handled) { std::memset(line, 0, sizeof(line)); if (isAdmin) { this->actorMenuIds.push_back(0x1C); - sprintf(line, LookupMessage(0x1CA), name.c_str()); + sprintf(line, LookupMessage(MSI_BAN_USER), name.c_str()); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(line), 0, 0, 0); } CPlayer* player = static_cast(g_modeMgr.GetGameMode())->scene->player; if (!StateFlag01(player->GetStateFlags()) && !StateFlag02(player->GetStateFlags())) { this->actorMenuIds.push_back(0x2A); - sprintf(line, LookupMessage(0x550), name.c_str()); + sprintf(line, LookupMessage(MSI_REQ_VIEW_OTHERUSER), name.c_str()); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(line), 0, 0, 0); } if (!StateFlag01(player->GetStateFlags()) && !StateFlag02(player->GetStateFlags())) { this->actorMenuIds.push_back(4); - sprintf(line, LookupMessage(0x187), name.c_str()); + sprintf(line, LookupMessage(MSI_REQ_DEAL_WITH2), name.c_str()); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(line), 0, 0, 0); } @@ -789,13 +790,13 @@ void CGameMode::OpenActorMenu(const ActorPickInfo* pick, int handled) { g_session.unknown_5464 != 0 && g_session.PartyByName(name.c_str()).valid == 0; if (canInviteParty) { this->actorMenuIds.push_back(5); - sprintf(line, LookupMessage(0x188), name.c_str()); + sprintf(line, LookupMessage(MSI_REQ_JOIN_PARTY2), name.c_str()); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(line), 0, 0, 0); } if (g_session.IsPartyRecommendTarget(pick->accountId) == true) { this->actorMenuIds.push_back(0x24); - sprintf(line, LookupMessage(0x377), name.c_str()); + sprintf(line, LookupMessage(MSI_REQ_JOIN_BABY), name.c_str()); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(line), 0, 0, 0); } @@ -804,47 +805,47 @@ void CGameMode::OpenActorMenu(const ActorPickInfo* pick, int handled) { const std::uint32_t guildId = member != nullptr ? member->GetGdid() : 0; if (g_guildInfo.unknown_00AC != 0 && guildId == 0) { this->actorMenuIds.push_back(0x16); - sprintf(line, LookupMessage(0x17E), name.c_str()); + sprintf(line, LookupMessage(MSI_REQ_JOIN_GUILD), name.c_str()); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(line), 0, 0, 0); } if (g_guildInfo.unknown_00B4 != 0 && guildId != g_guildInfo.m_guildId) { menu->SendMsg(nullptr, UM_ADDBOUNDARY, 0, 0, 0, 0); this->actorMenuIds.push_back(0x19); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x18F)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_REQ_ALLY_GUILD)), 0, 0, 0); this->actorMenuIds.push_back(0x1A); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x193)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_REQ_HOSTILE_GUILD)), 0, 0, 0); } } menu->SendMsg(nullptr, UM_ADDBOUNDARY, 0, 0, 0, 0); this->actorMenuIds.push_back(0x14); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x168)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_OPEN_1ON1_WINDOW)), 0, 0, 0); if (!IsAdminAccount(pick->accountId) && !g_windowMgr.IsFriend(name.c_str()) && g_serviceMode != 3) { this->actorMenuIds.push_back(10); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x166)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_ADD_TO_FRIEND_CHAR_LIST)), 0, 0, 0); } this->actorMenuIds.push_back(0x3A); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0xAF8)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_USA_PERSONALINFO_DEATH)), 0, 0, 0); menu->SendMsg(nullptr, UM_ADDBOUNDARY, 0, 0, 0, 0); if (g_whisperBlockMgr->Contains(name)) { this->actorMenuIds.push_back(0xD); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0xEEB)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_GRADE_ENCHANT_ITEM_UNBREAKABLE)), 0, 0, 0); } else { this->actorMenuIds.push_back(0xC); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0xEEC)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_GRADE_ENCHANT_ADDITIONAL_SOURCE_NOT_SELECT)), 0, 0, 0); } if (IsAdminAccount(g_session.m_aid)) { menu->SendMsg(nullptr, UM_ADDBOUNDARY, 0, 0, 0, 0); this->actorMenuIds.push_back(0x2C); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x636)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_REMOVE_EQUIPEDITEM)), 0, 0, 0); if (g_serviceMode != 3) { this->actorMenuIds.push_back(0x17); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x185)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_GIVE_PLUS_MANNER_POINT)), 0, 0, 0); this->actorMenuIds.push_back(0x18); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x186)), 0, 0, 0); - sprintf(line, LookupMessage(0x2C9), g_session.CountProhibitionLog(this->unknown_02E0)); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_GIVE_MINUS_MANNER_POINT)), 0, 0, 0); + sprintf(line, LookupMessage(MSI_PROHIBIT_LOG), g_session.CountProhibitionLog(this->unknown_02E0)); this->actorMenuIds.push_back(0x23); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(line), 0, 0, 0); } @@ -856,7 +857,7 @@ void CGameMode::OpenActorMenu(const ActorPickInfo* pick, int handled) { this->unknown_02EC = name; menu->SendMsg(nullptr, UM_ADDBOUNDARY, 0, 0, 0, 0); this->actorMenuIds.push_back(0x3F); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0xFE3)), 0xFF, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_MACRO_USER_REPORT_COOLTIME)), 0xFF, 0, 0); menu->SendMsg(nullptr, UM_ADDBOUNDARY, 0, 0, 0, 0); if (CPc* pc = dynamic_cast(static_cast(this->scene->GetGameActorByAID(pick->accountId)))) { diff --git a/Source/Contents/WorldView/WorldViewData.cpp b/Source/Contents/WorldView/WorldViewData.cpp index b82fedd5b..be3562911 100644 --- a/Source/Contents/WorldView/WorldViewData.cpp +++ b/Source/Contents/WorldView/WorldViewData.cpp @@ -11,6 +11,7 @@ #include "Script/LuaScript.h" #include "UI/Window/UIRoMapWnd.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -603,7 +604,7 @@ CWorldViewWorld* CWorldViewMgr::CurrentWorld() { // OFFSET: 0x00617950 // FUNCTION: fn_04391 bool __stdcall IsMapDisplayNameTranslated(const char* mapName) { - const std::string placeholder = LookupMessage(0xBB); + const std::string placeholder = LookupMessage(MSI_NOWHERE); const std::string displayName = g_session.GetMapDisplayName(mapName); return placeholder != displayName; } diff --git a/Source/Network/ActorNamePacket.cpp b/Source/Network/ActorNamePacket.cpp index 31ac0adec..b9e097efc 100644 --- a/Source/Network/ActorNamePacket.cpp +++ b/Source/Network/ActorNamePacket.cpp @@ -6,6 +6,7 @@ #include "UI/Window/UIPetInfoWnd.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -36,7 +37,7 @@ void CGameMode::ReceiveActorNameTitle(const ActorNameTitlePacket* packet) { // FUNCTION: fn_21631 void CGameMode::ReceivePlayerNameUpdate(const PlayerNameUpdatePacket* packet) { if (packet->type == 4 || packet->type == 3) { - std::string name = packet->type == 4 ? std::string(LookupMessage(581)) + std::string name = packet->type == 4 ? std::string(LookupMessage(MSI_NAMELESS_USER)) : std::string(std::string(packet->name, packet->name + sizeof(packet->name)).c_str()); SetPlayerName(packet->characterId, name); } diff --git a/Source/Security/NProtectGameGuardMgr.cpp b/Source/Security/NProtectGameGuardMgr.cpp index 3f14c1eba..f471909fd 100644 --- a/Source/Security/NProtectGameGuardMgr.cpp +++ b/Source/Security/NProtectGameGuardMgr.cpp @@ -8,6 +8,7 @@ #include "Utility/Text/FormatString.h" #include "Utility/Threading/NSyncObject.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -200,21 +201,21 @@ int __stdcall GameGuardCallback(int code, const int* packet) { } case 0x3F3: { const char source[] = {'\x32', '\x68', '\x05', '\x86', '\xD9', '\xC2', '\x41'}; - g_nProtectGameGuardMgr->SetError(g_nprotectSource, 0x136, std::string(FormatString(DecryptName<0x0F41EBBDA32D1B17ULL>(source), LookupMessage(0x3A1), code))); + g_nProtectGameGuardMgr->SetError(g_nprotectSource, 0x136, std::string(FormatString(DecryptName<0x0F41EBBDA32D1B17ULL>(source), LookupMessage(MSI_SPEEDHACK_DETECT), code))); return 0; } case 0x3F4: case 0x3F5: - g_nProtectGameGuardMgr->SetError(g_nprotectSource, 0x14B, std::string(LookupMessage(0xAF7))); + g_nProtectGameGuardMgr->SetError(g_nprotectSource, 0x14B, std::string(LookupMessage(MSI_USA_PERSONALINFO_DROP))); return 0; case 0x3F6: { const char source[] = {'\x40', '\x80', '\xFF', '\x78', '\xE9', '\x3A', '\x6F'}; - g_nProtectGameGuardMgr->SetError(g_nprotectSource, 0x13F, std::string(FormatString(DecryptName<0x176F138D5DD7F365ULL>(source), LookupMessage(0x3A0), code))); + g_nProtectGameGuardMgr->SetError(g_nprotectSource, 0x13F, std::string(FormatString(DecryptName<0x176F138D5DD7F365ULL>(source), LookupMessage(MSI_INIT_ERROR), code))); return 0; } case 0x3F7: { const char source[] = {'\xE4', '\x34', '\xED', '\x32', '\x85', '\xB0', '\xD5'}; - g_nProtectGameGuardMgr->SetError(g_nprotectSource, 0x151, std::string(FormatString(DecryptName<0xFBD599E117C547C1ULL>(source), LookupMessage(0x3A3), code))); + g_nProtectGameGuardMgr->SetError(g_nprotectSource, 0x151, std::string(FormatString(DecryptName<0xFBD599E117C547C1ULL>(source), LookupMessage(MSI_GAMEHACK_DOUBT), code))); return 0; } case 0x3FB: { diff --git a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp index b8c2aaa42..e649da7c6 100644 --- a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp +++ b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp @@ -170,6 +170,7 @@ #include #include "UI/Window/UICntWnd.h" +#include "Resource/MSGSTRINGID.h" namespace { constexpr char prefix[] = "유저인터페이스\\"; #pragma pack(push, 1) @@ -349,7 +350,7 @@ void UIChooseSellBuyWnd::OnCreate(int width, int height) { this->viewer->textColor = 0xFF000000u | RGB(red, green, blue); this->viewer->Invalidate(); this->AddChild(this->viewer); - this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(92)), 38, 0, 0); + this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_SELECT_DEAL_TYPE)), 38, 0, 0); } // OFFSET: 0x008DD9A0 @@ -358,7 +359,7 @@ void UIChooseWarpWnd::OnCreate(int width, int height) { auto* title = new UIStaticText(); title->SetSize(this->geometry.width - 30, 15); title->Move(12, 9); - title->SetText(LookupMessage(213), 0); + title->SetText(LookupMessage(MSI_SELECTWHERETOWARP), 0); title->SetFont(0, 12, 0, 0); this->AddChild(title); @@ -456,7 +457,7 @@ void UIDisconnectedServerMsgWnd::OnCreate(int width, int height) { this->m_viewer->textColor = 0xFF000000u | RGB(red, green, blue); this->m_viewer->Invalidate(); this->AddChild(this->m_viewer); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2)), 38, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_UNABLE_TO_CONNECT_SERVER)), 38, 0, 0); } // OFFSET: 0x008DE6D0 @@ -551,12 +552,12 @@ void UIEquipWnd::Paint() { if (this->m_viewOther == 1) { char title[100]; - std::sprintf(title, LookupMessage(1361), reinterpret_cast(&g_session.unknown_5974[0x2C])); + std::sprintf(title, LookupMessage(MSI_OTHERUSER_EQUIPED_ITEM), reinterpret_cast(&g_session.unknown_5974[0x2C])); this->DrawTextAt(17, 4, title, 0, 0, 12, 0xFFFFFF, 0, 0); this->DrawTextAt(16, 3, title, 0, 0, 12, 0, 0, 0); } else { - this->DrawTextAt(17, 4, LookupMessage(104), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(16, 3, LookupMessage(104), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(17, 4, LookupMessage(MSI_EQUIPED_ITEM), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(16, 3, LookupMessage(MSI_EQUIPED_ITEM), 0, 0, 12, 0, 0, 0); } if (this->geometry.height == 17) { @@ -643,8 +644,8 @@ void UIGraffiStrboxWnd::Paint() { const int titleHeight = this->DrawTitleBar(false, "", 0); this->DrawPanelBackground(titleHeight, 0, ""); this->DrawButtonBar(2, 0, 1); - this->DrawTextAt(17, 23, LookupMessage(436), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(16, 22, LookupMessage(436), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(17, 23, LookupMessage(MSI_TALKBOX_WINDOW_MSG), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(16, 22, LookupMessage(MSI_TALKBOX_WINDOW_MSG), 0, 0, 12, 0, 0, 0); } // OFFSET: 0x008EE9D0 @@ -663,7 +664,7 @@ void UIItemParamChangeDisplayWnd::Paint() { }; this->DrawBorder(0, 0, 0, 0); - std::sprintf(text, LookupMessage(269)); + std::sprintf(text, LookupMessage(MSI_ATK)); this->DrawTextAt(20, 10, text, 0, 0, 12, 0, 0, 0); std::sprintf(text, "%d", this->m_before); this->DrawTextAt(70, 10, text, 0, 0, 12, 0, 0, 0); @@ -671,7 +672,7 @@ void UIItemParamChangeDisplayWnd::Paint() { std::sprintf(text, "%d", this->m_after); this->DrawTextAt(110, 10, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, LookupMessage(270)); + std::sprintf(text, LookupMessage(MSI_DEF)); this->DrawTextAt(152, 10, text, 0, 0, 12, 0, 0, 0); std::sprintf(text, "%d", this->m_beforeSecond); this->DrawTextAt(202, 10, text, 0, 0, 12, 0, 0, 0); @@ -766,7 +767,7 @@ void UIMinimapZoomWnd::OnCreate(int, int) { const int ys[5] = {128, 128, 128, 128, 128}; const int xs[5] = {1, this->geometry.width - 55, this->geometry.width - 41, this->geometry.width - 27, this->geometry.width - 13}; const int ids[5] = {452, 216, 217, 189, 454}; - const char* tooltips[5] = {LookupMessage(2855), LookupMessage(2856), LookupMessage(2857), LookupMessage(2858), LookupMessage(2859)}; + const char* tooltips[5] = {LookupMessage(MSI_MINIMAP_TIP_MAP_VIEW), LookupMessage(MSI_MINIMAP_TIP_WORLD_VIEW), LookupMessage(MSI_INVENTORY_NUMBER_OF_ITEM), LookupMessage(MSI_MINIMAP_BUTTON_ONOFF), LookupMessage(MSI_MINIMAP_BUTTON_ON)}; const char* names[5] = {"object", "plus", "minus", "mini", "viewon"}; const std::string prefix("minimap\\i_"); @@ -799,7 +800,7 @@ int UIMinimapZoomWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argum switch (argument1) { case ID_BUTTON1: if (!g_session.IsNavigationAllowed()) { - g_windowMgr.Confirm(LookupMessage(2767), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BANK_0_MONEY), 0, true, false, 0, "Message", 280, 120, 0); } else if (!g_windowMgr.CloseWindow(WID_MINIMAPWND)) { g_windowMgr.EnsureWindow(WID_MINIMAPWND); } @@ -1009,7 +1010,7 @@ void UINpcTextEditDialogWnd::Paint() { // FUNCTION: fn_12365 int UINpcEditDialogWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) { if (g_windowMgr.unknown_0458) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2730)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_UNEQUIP_ARROW2)), 0x64FFFF, 0, 0, 0); return 0; } @@ -1036,7 +1037,7 @@ int UINpcEditDialogWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg int UINpcTextEditDialogWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) { if (message != UM_COMMAND) { if (g_windowMgr.unknown_0458) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2730)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_UNEQUIP_ARROW2)), 0x64FFFF, 0, 0, 0); return 0; } @@ -1066,7 +1067,7 @@ int UINpcTextEditDialogWnd::SendMsg(UIWindow* sender, int message, std::intptr_t if (!g_forbiddenWords.Allows(this->edit->Text())) { this->edit->TextColor(RGB(255, 0, 0), 0xFFFFFFFF); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(14)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BAD_SENTANGE)), 0xFF, 0, 0, 0); return 0; } @@ -1074,7 +1075,7 @@ int UINpcTextEditDialogWnd::SendMsg(UIWindow* sender, int message, std::intptr_t if (g_navigationLinkParser->HasLink(std::string(this->edit->Text())) || (!this->edit->LinkedText().empty() && this->m_tagCtrl && !this->m_tagCtrl->unknown_0140.empty())) { this->edit->SetText(""); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3042)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CLOSE)), 0xFF, 0, 0, 0); return 0; } @@ -1097,10 +1098,10 @@ int UINpcTextEditDialogWnd::SendMsg(UIWindow* sender, int message, std::intptr_t // OFFSET: 0x008EF9A0 // FUNCTION: fn_12239 void UIPartyInvitationToWnd::Paint() { - const int titleHeight = this->DrawTitleBar(true, LookupMessage(2056), 0); + const int titleHeight = this->DrawTitleBar(true, LookupMessage(MSI_INVITE_PARTY), 0); this->DrawPanelBackground(titleHeight, 0, ""); this->DrawButtonBar(2, 0, 1); - this->DrawTextAt(10, 22, LookupMessage(2058), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(10, 22, LookupMessage(MSI_PUT_PLAYER_NAME_IN), 0, 0, 12, 0, 0, 0); } // OFFSET: 0x008EFA00 @@ -1112,13 +1113,13 @@ void UIPartySettingWnd::Paint() { this->DrawButtonBar(2, 0, 1); if (this->m_mode == 70) { - this->DrawTextAt(10, 22, LookupMessage(292), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(10, 22, LookupMessage(MSI_HOWEXPDIV), 0, 0, 12, 0, 0, 0); } else if (this->m_mode == 50) { - this->DrawTextAt(10, 22, LookupMessage(2057), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(10, 22, LookupMessage(MSI_PUT_PARTY_NAME_IN), 0, 0, 12, 0, 0, 0); } - this->DrawTextAt(10, this->m_mode + 82, LookupMessage(738), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(10, this->m_mode + 17, LookupMessage(293), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(10, this->m_mode + 82, LookupMessage(MSI_HOWITEMDIV), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(10, this->m_mode + 17, LookupMessage(MSI_HOWITEMCOLLECT), 0, 0, 12, 0, 0, 0); } // OFFSET: 0x008EFAF0 @@ -1141,7 +1142,7 @@ int UIPartyInvitationToWnd::SendMsg(UIWindow* sender, int message, std::intptr_t if (std::strlen(name.c_str()) != 0) { g_modeMgr.GetGameMode()->SendMsg(MM_REQ_JOIN_GROUP, reinterpret_cast(name.c_str()), 0, 0, 0); } else { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2072)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PLEASE_PUT_CHARACTER_NAME_IN)), 0xFF, 0, 0, 0); } } else if (argument1 == ID_CANCEL) { g_windowMgr.CloseWindow(WID_PARTYINVITATIONTOWND); @@ -1177,16 +1178,16 @@ int UIPartySettingWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s std::string name = this->m_nameEdit->Text(); if (name.find('#') != std::string::npos) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2839)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INVENTORY_ITEM_COMPARE)), 0xFF, 0, 0, 0); } else if (name.find(s_partyItemLinkOpen) != std::string::npos || name.find(s_partyItemLinkClose) != std::string::npos) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2812)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_STYLING_SHOP_OPEN_COUPON)), 0xFF, 0, 0, 0); } else if (std::strlen(name.c_str()) != 0) { mode->SendMsg(MM_WHISPER_FILTER, reinterpret_cast(name.c_str()), 0, 0, 0); g_windowMgr.CloseWindow(WID_PARTYSETTINGWND_PARTYCOUNT); g_windowMgr.CloseWindow(WID_PARTYSETTINGWND_HEIGHT_220); mode->SendMsg(MM_CONFORM_MAKEGROUP, 0, this->m_itemShare, this->m_itemDistribute, 0); } else { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2073)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PLEASE_PUT_PARTY_NAME_IN)), 0xFF, 0, 0, 0); } return 0; } @@ -1219,7 +1220,7 @@ int UIPartySettingWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s } } else { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(294)), 0xFFFF64, 10, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ONLY_PARTYMASTER)), 0xFFFF64, 10, 0, 0); } return 0; default: @@ -1281,7 +1282,7 @@ int UIPasswordWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: void UIProhibitListWnd::Paint() { char text[256]; - const int titleHeight = this->DrawTitleBar(true, LookupMessage(714), 0); + const int titleHeight = this->DrawTitleBar(true, LookupMessage(MSI_PROHIBIT_LIST), 0); this->DrawPanelBackground(titleHeight, 0, ""); auto* left = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\sysboxs_ld.bmp"))); this->DrawBitmap(0, this->geometry.height - left->image.height, left, false); @@ -1338,7 +1339,7 @@ void UISayDialogWnd::Paint() { // OFFSET: 0x008F0350 // FUNCTION: fn_12249 void UISelectCartWnd::Paint() { - const int titleHeight = this->DrawTitleBar(true, LookupMessage(659), 0); + const int titleHeight = this->DrawTitleBar(true, LookupMessage(MSI_CART_LIST), 0); this->DrawPanelBackground(titleHeight, 0, ""); const auto* left = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\sysboxs_ld.bmp"))); this->DrawBitmap(0, this->geometry.height - left->image.height, &left->image, false); @@ -1442,7 +1443,7 @@ UISpellListWnd::~UISpellListWnd() { } void UISpellListWnd::Paint() { - const int titleHeight = this->DrawTitleBar(true, LookupMessage(697), 0); + const int titleHeight = this->DrawTitleBar(true, LookupMessage(MSI_SPELL_LIST), 0); this->DrawPanelBackground(titleHeight, 0, ""); this->DrawButtonBar(2, 0, 1); @@ -1485,7 +1486,7 @@ void CSession::ItemBitmapPath(const char* name, char* output) { // OFFSET: 0x008F2460 // FUNCTION: fn_12255 void UITipOfTheDayWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(174), 0); + this->DrawTitleBar(true, LookupMessage(MSI_TIPOFTHEDAY), 0); if (this->geometry.height == 17) { return; @@ -1563,7 +1564,7 @@ void UIItemIdentifyWnd::OnLBtnDblClk(int x, int y) { // OFFSET: 0x008F0750 // FUNCTION: fn_12253 void UIStatusWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(105), 0); + this->DrawTitleBar(true, LookupMessage(MSI_STATUS), 0); if (this->geometry.height == this->m_titleHeight || this->geometry.unknown_0030 != 0) { return; } @@ -2033,9 +2034,9 @@ void UIStatusWnd::OnMouseHover(int x, int y) { {6, 25}, {6, 41}, {6, 57}, {6, 73}, {6, 89}, {6, 105}, {108, 24}, {108, 40}, {108, 56}, {108, 72}, {108, 88}, {108, 104}, {194, 24}, {194, 40}, {194, 56}, {194, 72}, }; const char* statTexts[16] = { - LookupMessage(3112), LookupMessage(3113), LookupMessage(3114), LookupMessage(3115), LookupMessage(3116), LookupMessage(3117), - LookupMessage(3118), LookupMessage(3124), LookupMessage(3120), LookupMessage(3121), LookupMessage(3123), LookupMessage(3122), - LookupMessage(3119), LookupMessage(3125), LookupMessage(3126), LookupMessage(3127), + LookupMessage(MSI_DESC_INT2), LookupMessage(MSI_DESC_DEX2), LookupMessage(MSI_DESC_LUK2), LookupMessage(MSI_DESC_ATK2), LookupMessage(MSI_DESC_DEF2), LookupMessage(MSI_DESC_HIT2), + LookupMessage(MSI_DESC_CRI2), LookupMessage(MSI_DESC_ASPD2), LookupMessage(MSI_DESC_POINT2), LookupMessage(MSI_DESC_MATK2), LookupMessage(MSI_DESC_FLEE2), LookupMessage(MSI_DESC_MDEF2), + LookupMessage(MSI_DESC_GUILD2), LookupMessage(MSI_HOTKEY_GUIDE), LookupMessage(MSI_OPTION), LookupMessage(MSI_SKILL_HOTKEY_F1_F9), }; for (int index = 0; index < 16; ++index) { @@ -2057,8 +2058,8 @@ void UIStatusWnd::OnMouseHover(int x, int y) { {6, 146}, {6, 162}, {6, 178}, {6, 194}, {6, 210}, {6, 226}, {108, 145}, {108, 161}, {108, 177}, {108, 193}, {108, 209}, {194, 145}, {194, 161}, }; const char* traitTexts[13] = { - LookupMessage(3614), LookupMessage(3615), LookupMessage(3616), LookupMessage(3617), LookupMessage(3618), LookupMessage(3619), LookupMessage(3620), - LookupMessage(3621), LookupMessage(3624), LookupMessage(3625), LookupMessage(3626), LookupMessage(3622), LookupMessage(3623), + LookupMessage(MSI_DESC_SPL), LookupMessage(MSI_DESC_CON), LookupMessage(MSI_DESC_CRT), LookupMessage(MSI_DESC_ADV_STATUS_POWER_ATK), LookupMessage(MSI_DESC_ADV_STATUS_SPELL_MATK), LookupMessage(MSI_DESC_ADV_STATUS_STAMINA_RESIST), LookupMessage(MSI_DESC_ADV_STATUS_WISDOM_MRESIST), + LookupMessage(MSI_DESC_ADV_STATUS_CREATIVE_HEALPULS), LookupMessage(MSI_BASICINFO_JOBLEVEL2), LookupMessage(MSI_BASICINFO_AP), LookupMessage(MSI_GUILD_AGIT_MOVE_AGIT), LookupMessage(MSI_DESC_ADV_STATUS_CREATIVE_CRIDAMAGE_RATE), LookupMessage(MSI_DESC_ADV_POINT), }; for (int index = 0; index < 13; ++index) { @@ -2719,7 +2720,7 @@ int UIItemCompositionWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a ITEM_INFO item = LookupClientItemByIdentity(g_session.m_inventoryItems, static_cast(a)); if (item.unknown_0000[1] != 0) { const std::string name = item.DisplayName(0); - this->m_title = FormatOwnedString("%s (%s)", LookupMessage(0x20A), name.c_str()); + this->m_title = FormatOwnedString("%s (%s)", LookupMessage(MSI_ITEM_COMPOUNDING), name.c_str()); } } return 0; @@ -3123,7 +3124,7 @@ int UIEquipWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::int case ID_EQUIP_OPTION_OFF: { if (g_windowMgr.unknown_0304 != nullptr) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(525)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PLEASE_CLOSE_STORE)), 255, 0, 0, 0); return 0; } @@ -3133,10 +3134,10 @@ int UIEquipWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::int const int job = g_session.GetDisplayJob(); notice = LookupMessage(job == 4082 || job == 4083 || job == 4110 ? 2096 : 442); } else if (StateFlag22(g_session.m_jobFlags)) { - notice = LookupMessage(1464); + notice = LookupMessage(MSI_MADOOFF); } else if (StateFlag19(g_session.m_jobFlags) || StateFlag23(g_session.m_jobFlags) || StateFlag24(g_session.m_jobFlags) || StateFlag25(g_session.m_jobFlags) || StateFlag26(g_session.m_jobFlags)) { - notice = LookupMessage(1463); + notice = LookupMessage(MSI_DRAGONOFF); } else { notice.clear(); } @@ -3316,14 +3317,14 @@ void UIEquipWnd::OnCreate(int width, int height) { if (this->m_viewOther == 0) { this->unknown_00DC = new UICheckBox(); this->unknown_00DC->SetSize(80, 12); - this->unknown_00DC->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(0x552)); + this->unknown_00DC->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_OPEN_EQUIPED_ITEM)); this->unknown_00DC->Move(10, this->geometry.height - 15); this->unknown_00DC->SetChecked(*reinterpret_cast(g_session.unknown_5974)); this->AddChild(this->unknown_00DC); this->unknown_00E0 = new UICheckBox(); this->unknown_00E0->SetSize(80, 12); - this->unknown_00E0->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(0x1007)); + this->unknown_00E0->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_SHORTCUT_SKILL_TOOLTIP_SP_PERCENT_AP_VALUE)); this->unknown_00E0->SetChecked(*reinterpret_cast(g_session.unknown_8128) == 0); this->unknown_00E0->Show(0); this->unknown_00E0->Move(10, this->geometry.height - 15); @@ -3352,23 +3353,23 @@ void UIEquipWnd::OnCreate(int width, int height) { const char* tooltip = nullptr; const std::uint32_t flags = g_session.m_jobFlags; if (StateFlag04(flags)) { - tooltip = LookupMessage(0x1B9); + tooltip = LookupMessage(MSI_BIRDOFF); } else if (StateFlag05(flags)) { switch (g_session.GetDisplayJob()) { case JT_ROYAL_CHICKEN: case JT_ROYAL_CHICKEN_H: case JT_ROYAL_CHICKEN_B: case JT_IMPERIAL_GUARD_CHICKEN: - tooltip = LookupMessage(0x830); + tooltip = LookupMessage(MSI_BATTLEFIELD_MSG_REQUEST_JOINWAIT); break; default: - tooltip = LookupMessage(0x1BA); + tooltip = LookupMessage(MSI_CHIKENOFF); break; } } else if (StateFlag22(flags)) { - tooltip = LookupMessage(0x5B8); + tooltip = LookupMessage(MSI_MADOOFF); } else if (StateFlag19(flags) || StateFlag23(flags) || StateFlag24(flags) || StateFlag25(flags) || StateFlag26(flags)) { - tooltip = LookupMessage(0x5B7); + tooltip = LookupMessage(MSI_DRAGONOFF); } if (g_session.unknown_5C1C > 0) { tooltip = LookupMessage(tooltip ? 0xE34 : 0xDF); @@ -3388,7 +3389,7 @@ void UIEquipWnd::OnCreate(int width, int height) { this->m_otherButton->SetSize(this->m_otherButton->BitmapWidth(), this->m_otherButton->BitmapHeight()); this->m_otherButton->Move(x, bottom + (g_session.unknown_5C1C > 0 ? -60 : 170)); this->m_otherButton->SetId(249); - this->m_otherButton->SetTooltip(g_session.unknown_5C1C > 0 ? LookupMessage(0xED) : ""); + this->m_otherButton->SetTooltip(g_session.unknown_5C1C > 0 ? LookupMessage(MSI_OPENCARTWINDOW) : ""); this->AddChild(this->m_otherButton); } } @@ -3402,10 +3403,10 @@ void UIEquipWnd::OnCreate(int width, int height) { this->m_tabs->Configure(1, 17, 15, 1, 0, 0, 0, 0, 0, 0, 0, 0); this->m_tabs->Move(0, 17); this->AddChild(this->m_tabs); - this->m_tabs->AddTab(LookupMessage(0x70D), LookupMessage(0xC56)); - this->m_tabs->AddTab(LookupMessage(0x973), LookupMessage(0xC57)); + this->m_tabs->AddTab(LookupMessage(MSI_GENERAL_EQUIPMENT), LookupMessage(MSI_HELP_QUAKE_ONOFF)); + this->m_tabs->AddTab(LookupMessage(MSI_NAVIGATION_ALL_SD), LookupMessage(MSI_HELP_AURA_EFFECT_OFF)); if (this->m_viewOther == 0) { - this->m_tabs->AddTab(LookupMessage(0xA7D), LookupMessage(0xC58)); + this->m_tabs->AddTab(LookupMessage(MSI_GUILD_DISORGANIZE_GUILD_NOT_PERMITTED_MAP), LookupMessage(MSI_GRAPHIC_SETTING_TAB_BASIC)); } this->m_titleList = new UIListBoxTitle(); @@ -3425,7 +3426,7 @@ void UIEquipWnd::OnCreate(int width, int height) { this->unknown_012C->SetSize(this->unknown_012C->BitmapWidth(), this->unknown_012C->BitmapHeight()); this->unknown_012C->Move(193, 167); this->unknown_012C->SetId(508); - this->unknown_012C->SetTooltip(LookupMessage(0xBAA)); + this->unknown_012C->SetTooltip(LookupMessage(MSI_REFINING_FAIL_ITEM_DOWMGRADE)); this->AddChild(this->unknown_012C); } @@ -3437,12 +3438,12 @@ void UIEquipWnd::OnCreate(int width, int height) { this->unknown_0130->SetSize(this->unknown_0130->BitmapWidth(), this->unknown_0130->BitmapHeight()); this->unknown_0130->Move(235, 167); this->unknown_0130->SetId(575); - this->unknown_0130->SetTooltip(LookupMessage(0xF73)); + this->unknown_0130->SetTooltip(LookupMessage(MSI_USESKILL_FAIL_NEED_SOULCOLLECT)); this->AddChild(this->unknown_0130); this->SendMsg(this, UM_SET_DISABLE, 575, 0, 0, 0); if (this->m_viewOther == 0) { - this->m_tabs->AddTab(LookupMessage(0xF95), LookupMessage(0xF96)); + this->m_tabs->AddTab(LookupMessage(MSI_DAMAGE_DIR_CENTER), LookupMessage(MSI_DAMAGE_DIR_RIGHT)); UIBitmapButton* apply = new UIBitmapButton(); this->unknown_0138[0] = apply; @@ -3486,7 +3487,7 @@ void UIEquipWnd::OnCreate(int width, int height) { scrollBar->SetRange(count - 4 > 0 ? count - 4 : 0, 4, count); this->AddChild(this->m_scrollBar); - const char* labels[4] = {LookupMessage(0xF9A), LookupMessage(0xF99), LookupMessage(0xF98), LookupMessage(0xF97)}; + const char* labels[4] = {LookupMessage(MSI_MACRO_CHECK_REMOVE_NOT_EXISTS), LookupMessage(MSI_MACRO_CHECK_REMOVE_SUCCESS), LookupMessage(MSI_MACRO_CHECK_REMOVE_RUNNING), LookupMessage(MSI_DAMAGE_DIR_DEFAULT)}; for (int index = 0; index < 4; ++index) { UIRadioBtn* radio = new UIRadioBtn(); this->unknown_0138[index + 2] = radio; @@ -3515,7 +3516,7 @@ void UIEquipWnd::OnCreate(int width, int height) { this->unknown_0178->SetSize(this->unknown_0178->BitmapWidth(), this->unknown_0178->BitmapHeight()); this->unknown_0178->Move(g_equipAbilityButtonPosition[0], g_equipAbilityButtonPosition[1]); this->unknown_0178->SetId(582); - this->unknown_0178->SetTooltip(LookupMessage(0xFBD)); + this->unknown_0178->SetTooltip(LookupMessage(MSI_SEND_TO_ALLY)); this->AddChild(this->unknown_0178); } } @@ -3567,7 +3568,7 @@ int UIBabyAcceptWnd2::SendMsg(UIWindow* sender, int message, std::intptr_t a, st } case UM_SET_BABY_MSG: { this->identity = static_cast(a); - const std::string text = LookupMessage(2965); + const std::string text = LookupMessage(MSI_NOTENOUGH_ZENY); this->viewer->Clear(); this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text.c_str()), 38, 0, 0); return 0; @@ -3620,7 +3621,7 @@ int UIBabyAcceptWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std std::string text = "("; text += reinterpret_cast(b); text += ")"; - text += LookupMessage(794); + text += LookupMessage(MSI_SUGGEST_BABY); this->viewer->Clear(); this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text.c_str()), 38, 0, 0); return 0; @@ -3926,7 +3927,7 @@ void UIBookWnd::OnCreate(int width, int height) { int x; int y; } positions[4] = {{10, 25}, {width - 57, 25}, {width - 35, 25}, {width - 25, height - 25}}; - const char* tooltips[4] = {LookupMessage(1296), LookupMessage(1297), LookupMessage(1298), LookupMessage(1299)}; + const char* tooltips[4] = {LookupMessage(MSI_BOOK_KEEP), LookupMessage(MSI_BOOK_PREV), LookupMessage(MSI_BOOK_NEXT), LookupMessage(MSI_BOOK_CLOSE)}; for (int index = 0; index < 4; ++index) { this->m_buttons[index] = new UISpriteButton(); @@ -3965,7 +3966,7 @@ void UIItemCollectionWnd::OnCreate(int width, int height) { this->AddChild(this->m_viewButton); const std::string prefix = "book\\"; - const char* tooltips[2] = {LookupMessage(1294), LookupMessage(1295)}; + const char* tooltips[2] = {LookupMessage(MSI_BOOK_READ), LookupMessage(MSI_BOOK_AUTOREAD)}; const int ids[2] = {287, 288}; const char* names[2] = {"책읽기", "책읽기"}; for (int index = 0; index < 2; ++index) { @@ -3990,11 +3991,11 @@ void UIItemCollectionWnd::OnCreate(int width, int height) { this->m_previewTick = 0; if (!this->m_moveInfo) { this->m_moveInfo = new UIItemMoveInfo(); - this->m_moveInfo->Configure(LookupMessage(2796), 0, 0, 12, 0, 1); + this->m_moveInfo->Configure(LookupMessage(MSI_REFUSE_MDENGEON_IS_FULL), 0, 0, 12, 0, 1); this->m_moveInfo->SetId(487); UIItemMoveInfo* moveInfo = this->m_moveInfo; - int textHeight = this->TextHeight(LookupMessage(2796), 0, 0, 12, 0, 0); - moveInfo->ResizeToTextClipped(this->TextWidth(LookupMessage(2796), 0, 0, 12, 0, 0) + 1, textHeight); + int textHeight = this->TextHeight(LookupMessage(MSI_REFUSE_MDENGEON_IS_FULL), 0, 0, 12, 0, 0); + moveInfo->ResizeToTextClipped(this->TextWidth(LookupMessage(MSI_REFUSE_MDENGEON_IS_FULL), 0, 0, 12, 0, 0) + 1, textHeight); this->AddChild(this->m_moveInfo); } @@ -4006,7 +4007,7 @@ void UIItemCollectionWnd::OnCreate(int width, int height) { this->m_helpButton->SetSize(this->m_helpButton->BitmapWidth(), this->m_helpButton->BitmapHeight()); this->m_helpButton->Move(10, 10); this->m_helpButton->SetId(343); - this->m_helpButton->SetTooltip(LookupMessage(4115)); + this->m_helpButton->SetTooltip(LookupMessage(MSI_PROBABILITY_TITLE)); this->AddChild(this->m_helpButton); } @@ -4044,14 +4045,14 @@ void UIItemCollection_ComparisonWnd::OnCreate(int width, int height) { // FUNCTION: fn_12160 void UICardItemIllustWnd::OnCreate(int, int) { this->unknown_00E4 = 0; - this->m_name = LookupMessage(527); + this->m_name = LookupMessage(MSI_ITEM_NAME); this->AddCloseButton("", 0); } // OFFSET: 0x008E2590 // FUNCTION: fn_12178 void UIItemIdentifyWnd::OnCreate(int, int) { - this->m_title.assign(LookupMessage(521)); + this->m_title.assign(LookupMessage(MSI_ITEM_IDENTIFY)); this->m_selected = -1; this->m_scroll = 0; this->m_columns = 1; @@ -4105,7 +4106,7 @@ void UIItemIdentifyWnd::OnCreate(int, int) { // FUNCTION: fn_12177 void UIItemCompositionWnd::OnCreate(int width, int height) { this->UIItemIdentifyWnd::OnCreate(width, height); - this->m_title = LookupMessage(522); + this->m_title = LookupMessage(MSI_ITEM_COMPOUNDING); this->m_compositionState = 0; } @@ -4120,7 +4121,7 @@ void UIComboBoxWnd::OnCreate(int width, int height) { // OFFSET: 0x008E85C0 // FUNCTION: fn_12199 void UISkillDescribeWnd::OnCreate(int width, int height) { - this->unknown_00D4 = LookupMessage(526); + this->unknown_00D4 = LookupMessage(MSI_SKILL_NAME); this->m_skillId = -1; this->m_viewer = new UITextViewer(); this->m_viewer->Configure(3, 3, width - 6, height - 6, 0); @@ -4197,7 +4198,7 @@ void UIStatusWnd::OnCreate(int, int) { this->m_expandButton->AddTextStyle(2, 12, 0, 0, 1, 16, 3); this->m_expandButton->SetSize(this->m_expandButton->BitmapWidth(), this->m_expandButton->BitmapHeight()); { - const std::string label = LookupMessage(3613); + const std::string label = LookupMessage(MSI_DESC_WIS); this->m_expandButton->text = label; this->m_expandButton->Invalidate(); } @@ -4345,7 +4346,7 @@ void UIMakingArrowListWnd::Paint() { // OFFSET: 0x008EFB00 // FUNCTION: fn_12242 void UIPetEggListWnd::Paint() { - this->m_title = LookupMessage(599); + this->m_title = LookupMessage(MSI_PET_EGG_LIST); this->UIItemIdentifyWnd::Paint(); } @@ -4375,7 +4376,7 @@ void UInCashWnd::DrawItems() { char number[64]; const int width = this->DrawFittedItemName(x, -30, &*it, 0, 0, 12, 0); this->DrawWrappedItemName(x - width / 2 + 90, y + 4, width, &*it, 0, 0, 12); - int length = std::sprintf(text, LookupMessage(1854)); + int length = std::sprintf(text, LookupMessage(MSI_NC_COST)); this->DrawTextAt(x + 112, y + 64, text, length, 0, 12, 0, 0, 0); length = std::sprintf(text, " %s C", FormatGroupedInteger(static_cast(it->unknown_0014[0]), number, 64)); this->DrawRightAlignedText(x + 152, y + 84, text, length, 0, 12, 0, 0); @@ -4405,13 +4406,13 @@ void UInCashWnd::DrawItems() { std::memset(number, 0, sizeof(number)); const int width = this->DrawFittedItemName(453, -30, &*it, 0, 0, 12, 0); this->DrawWrappedItemName(535 - width / 2, y + 4, width, &*it, 0, 0, 12); - int length = std::sprintf(text, LookupMessage(1854)); + int length = std::sprintf(text, LookupMessage(MSI_NC_COST)); this->DrawTextAt(565, y + 24, text, length, 0, 12, 0, 0, 0); length = std::sprintf(text, " %s C", FormatGroupedInteger(static_cast(it->unknown_0014[0]), number, 64)); this->DrawTextAt(550, y + 42, text, length, 0, 12, 0, 0, 0); - length = std::sprintf(text, LookupMessage(1855)); + length = std::sprintf(text, LookupMessage(MSI_NC_NUM)); this->DrawTextAt(565, y + 66, text, length, 0, 12, 0, 0, 0); - length = std::sprintf(text, " %d %s", it->quantity, LookupMessage(1856)); + length = std::sprintf(text, " %d %s", it->quantity, LookupMessage(MSI_NC_COUNT)); this->DrawRightAlignedText(590, y + 84, text, length, 0, 12, 0, 0); ++row; @@ -4425,7 +4426,7 @@ void UInCashWnd::DrawItems() { // FUNCTION: fn_12183 void UIMonsterDisplayWnd::OnCreate(int, int) { this->unknown_00E4 = 0; - this->unknown_00CC = LookupMessage(527); + this->unknown_00CC = LookupMessage(MSI_ITEM_NAME); this->AddCloseButton("", 0); } @@ -4618,7 +4619,7 @@ int UIWhisperWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i if (HasItemLinkTag(std::string(this->m_edit->Text())) == true) { this->m_edit->SetText(""); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3042)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CLOSE)), 0xFF, 0, 0, 0); return 0; } @@ -4631,7 +4632,7 @@ int UIWhisperWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i } if (g_serviceType == 1 && !ValidateCharacterName(text)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(190)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENGLISHONLY)), 0xFF, 0, 0, 0); return 0; } @@ -4679,9 +4680,9 @@ int UIWhisperWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i g_windowMgr.CloseWindow(WID_MENUWND); } - this->m_log.push_back(WhisperLogLine{std::string(LookupMessage(312)), 11}); + this->m_log.push_back(WhisperLogLine{std::string(LookupMessage(MSI_WRITE_CHAT_TO_FILE)), 11}); if (!g_windowMgr.IsFriend(this->m_target.c_str()) && g_serviceMode != 3) { - this->m_log.push_back(WhisperLogLine{std::string(LookupMessage(358)), 21}); + this->m_log.push_back(WhisperLogLine{std::string(LookupMessage(MSI_ADD_TO_FRIEND_CHAR_LIST)), 21}); } g_modeMgr.gameMode->SendMsg(MM_INITWHISPERMENU, reinterpret_cast(this->m_target.c_str()), 0, 0, 0); @@ -5071,7 +5072,7 @@ void UInCashWnd::StoreInfo() { // FUNCTION: fn_12375 int UISayDialogWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) { if (g_windowMgr.unknown_0458) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2730)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_UNEQUIP_ARROW2)), 0x64FFFF, 0, 0, 0); return 0; } @@ -5239,7 +5240,7 @@ int UIExchangeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: char text[24]; std::sprintf(text, "%s ", this->unknown_00C0->Text()); if (!g_session.IsNumberWithCommas(text)) { - g_windowMgr.Confirm(LookupMessage(602), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CAN_INPUT_NUMBER_ONLY), 0, true, false, 0, "Message", 280, 120, 0); return 0; } @@ -5265,7 +5266,7 @@ int UIExchangeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: return 0; } if (this->unknown_011C) { - const std::string text = FormatOwnedString(LookupMessage(1832), this->unknown_00F0.c_str()); + const std::string text = FormatOwnedString(LookupMessage(MSI_SCREENSHOT_FOR_EXCHANGE_CHARNAME), this->unknown_00F0.c_str()); g_modeMgr.gameMode->SendMsg(MM_SCREENSHOT, reinterpret_cast(text.c_str()), 0, 0, 0); } mode->SendMsg(MM_EXEC_EXCHANGE_ITEM, 0, 0, 0, 0); @@ -5698,44 +5699,44 @@ void UIChatRoomMakeWnd::Paint() { // FUNCTION: fn_12161 void UIChatRoomMakeWnd::OnCreate(int width, int height) { if (g_session.IsTrickDeadActive()) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x295)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANT_MAKE_CHAT_ROOM)), 0xFF, 0, 0, 0); g_windowMgr.CloseWindow(WID_CHATROOMMAKEWND); } this->m_limit = 20; this->m_type = 0; - this->m_typeLabels.insert(this->m_typeLabels.end(), std::string(LookupMessage(0x82))); + this->m_typeLabels.insert(this->m_typeLabels.end(), std::string(LookupMessage(MSI_CHAT_ROOM))); { const std::uint32_t value = 0; this->m_types.push_back(value); } - this->m_limitLabels.insert(this->m_limitLabels.end(), std::string(LookupMessage(0x83)).insert(0, "2 ", 2)); + this->m_limitLabels.insert(this->m_limitLabels.end(), std::string(LookupMessage(MSI_COUNT_UNIT_OF_PEOPLE)).insert(0, "2 ", 2)); { const std::uint32_t value = 2; this->m_limits.push_back(value); } - this->m_limitLabels.insert(this->m_limitLabels.end(), "3 " + std::string(LookupMessage(0x83))); + this->m_limitLabels.insert(this->m_limitLabels.end(), "3 " + std::string(LookupMessage(MSI_COUNT_UNIT_OF_PEOPLE))); { const std::uint32_t value = 3; this->m_limits.push_back(value); } - this->m_limitLabels.insert(this->m_limitLabels.end(), "5 " + std::string(LookupMessage(0x83))); + this->m_limitLabels.insert(this->m_limitLabels.end(), "5 " + std::string(LookupMessage(MSI_COUNT_UNIT_OF_PEOPLE))); { const std::uint32_t value = 5; this->m_limits.push_back(value); } - this->m_limitLabels.insert(this->m_limitLabels.end(), "10 " + std::string(LookupMessage(0x83))); + this->m_limitLabels.insert(this->m_limitLabels.end(), "10 " + std::string(LookupMessage(MSI_COUNT_UNIT_OF_PEOPLE))); { const std::uint32_t value = 10; this->m_limits.push_back(value); } - this->m_limitLabels.insert(this->m_limitLabels.end(), "15 " + std::string(LookupMessage(0x83))); + this->m_limitLabels.insert(this->m_limitLabels.end(), "15 " + std::string(LookupMessage(MSI_COUNT_UNIT_OF_PEOPLE))); { const std::uint32_t value = 15; this->m_limits.push_back(value); } - this->m_limitLabels.insert(this->m_limitLabels.end(), "20 " + std::string(LookupMessage(0x83))); + this->m_limitLabels.insert(this->m_limitLabels.end(), "20 " + std::string(LookupMessage(MSI_COUNT_UNIT_OF_PEOPLE))); { const std::uint32_t value = 20; this->m_limits.push_back(value); @@ -5797,7 +5798,7 @@ void UIChatRoomMakeWnd::OnCreate(int width, int height) { this->AddChild(this->m_passwordEdit); this->m_public = 0; - const char* labels[2] = {LookupMessage(0xC9), LookupMessage(0xC8)}; + const char* labels[2] = {LookupMessage(MSI_ROOM_PUBLIC2), LookupMessage(MSI_ROOM_PRIVATE2)}; const int states[2] = {1, 0}; for (int index = 0, width = 40, x = 44; width < 64; ++index, width += 12, x += 52) { this->m_publicButtons[index] = new UIRadioBtn(); @@ -5833,7 +5834,7 @@ int UIChatRoomMakeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s switch (a) { case ID_OK: { if (g_windowMgr.HasTitleAtActorCell(g_session.m_aid)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(661)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANT_MAKE_CHAT_ROOM)), 0xFF, 0, 0, 0); break; } @@ -6223,7 +6224,7 @@ public: // FUNCTION: fn_12210 void UIAutoMessageWnd::Paint() { this->DrawBorder(0, 0, 0, 0); - this->DrawTextAt(15, 6, LookupMessage(0x3B0), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(15, 6, LookupMessage(MSI_ENTER_AUTO_MSG), 0, 0, 12, 0, 0, 0); } // OFFSET: 0x008FFC40 @@ -6278,10 +6279,10 @@ void UInCashWnd::OnCreate(int width, int height) { this->SendMsg(this, UM_REFRESH, 0, 0, 0, 0); this->AddCloseButton("Alt+X", 0); - const int titleWidth = this->TextWidth(LookupMessage(0x817), 0, 0, 12, 1, 0); + const int titleWidth = this->TextWidth(LookupMessage(MSI_NC_ITEM_SEARCH), 0, 0, 12, 1, 0); this->m_title = new UIStaticText(); this->m_title->SetSize(titleWidth, 12); - this->m_title->SetText(LookupMessage(0x817), 1); + this->m_title->SetText(LookupMessage(MSI_NC_ITEM_SEARCH), 1); this->m_title->Move(20, 26); this->AddChild(this->m_title); @@ -6343,14 +6344,14 @@ void UInCashWnd::OnCreate(int width, int height) { this->m_buttons[index]->SetTooltip(LookupMessage(index + 0x736)); break; case 8: - this->m_buttons[index]->SetTooltip(LookupMessage(0x9D8)); + this->m_buttons[index]->SetTooltip(LookupMessage(MSI_BARGAINSALE_CASHSHOP_REFRESH_MSG)); break; case 10: case 18: - this->m_buttons[index]->SetTooltip(LookupMessage(0x447)); + this->m_buttons[index]->SetTooltip(LookupMessage(MSI_AUCTION_SEARCH)); break; case 11: - this->m_buttons[index]->SetTooltip(LookupMessage(0x734)); + this->m_buttons[index]->SetTooltip(LookupMessage(MSI_NC_FIRSTPAGE)); break; case 12: this->m_buttons[index]->SetTooltip("<="); @@ -6359,19 +6360,19 @@ void UInCashWnd::OnCreate(int width, int height) { this->m_buttons[index]->SetTooltip("=>"); break; case 14: - this->m_buttons[index]->SetTooltip(LookupMessage(0x735)); + this->m_buttons[index]->SetTooltip(LookupMessage(MSI_NC_LASTPAGE)); break; case 15: - this->m_buttons[index]->SetTooltip(LookupMessage(0x732)); + this->m_buttons[index]->SetTooltip(LookupMessage(MSI_NC_BUY)); break; case 16: - this->m_buttons[index]->SetTooltip(LookupMessage(0x733)); + this->m_buttons[index]->SetTooltip(LookupMessage(MSI_NC_BLANK)); break; case 17: - this->m_buttons[index]->SetTooltip(LookupMessage(0x513)); + this->m_buttons[index]->SetTooltip(LookupMessage(MSI_BOOK_CLOSE)); break; case 19: - this->m_buttons[index]->SetTooltip(LookupMessage(0x9D9)); + this->m_buttons[index]->SetTooltip(LookupMessage(MSI_BARGAINSALE_CASHSHOP_CHECK_COUNT_MSG)); break; default: break; @@ -6534,9 +6535,9 @@ int UInCashWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, header.points = points; char text[0x800]; if (points == 0) { - FormatMessageBuffer(text, LookupMessage(3771), total); + FormatMessageBuffer(text, LookupMessage(MSI_BILLING_INFO_URL), total); } else { - FormatMessageBuffer(text, LookupMessage(3772), total - points, points); + FormatMessageBuffer(text, LookupMessage(MSI_CHANGE_MATERIAL_INVSORT), total - points, points); } if (g_windowMgr.Confirm(text, 2, true, true, 0, "Message", 280, 120, 0) != 187) { break; @@ -6594,7 +6595,7 @@ int UInCashWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, } } if (g_session.GetList1788(10) == 0) { - g_windowMgr.Confirm(LookupMessage(1069), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NOTHING_SEARCH_ITEM), 0, true, false, 0, "Message", 280, 120, 0); } this->m_searchEdit->SetText(""); this->SendMsg(this, UM_COMMAND, 398, 0, 0, 0); @@ -6707,13 +6708,13 @@ int UInCashWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, for (ITEM_INFO& entry : this->items) { if (std::atoi(entry.itemId.c_str()) == std::atoi(mode->drag.name.c_str())) { if (entry.quantity <= 0) { - g_windowMgr.Confirm(LookupMessage(2523), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BARGAINSALE_CLOSE_MSG), 0, true, false, 0, "Message", 280, 120, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; } if (mode->drag.quantity + owned > entry.quantity) { ModeDragState saved = mode->drag; - g_windowMgr.Confirm(FormatOwnedString(LookupMessage(2524), entry.quantity).c_str(), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(FormatOwnedString(LookupMessage(MSI_BARGAINSALE_TOOLWND_CALL), entry.quantity).c_str(), 0, true, false, 0, "Message", 280, 120, 0); mode->drag = saved; mode->drag.quantity = entry.quantity - owned; break; @@ -6961,16 +6962,16 @@ void UIEquipWnd::OnMouseHover(int x, int y) { CMode* tooltip = g_modeMgr.gameMode; if (item.quantity < 2) { if (item.identified == 1 && item.unknown_0098 != 0) { - tooltip->ShowTooltip(FormatOwnedString(LookupMessage(0xA28), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, + tooltip->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { tooltip->ShowTooltip(item.DisplayName(0).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } } else if (item.identified == 1 && item.unknown_0098 != 0) { - tooltip->ShowTooltip(FormatOwnedString(LookupMessage(0x9F7), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity).c_str(), tooltipX, + tooltip->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAIL_NEED_EQUIPPED_GUN_GATLING), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { - tooltip->ShowTooltip(FormatOwnedString(LookupMessage(0xB7), item.DisplayName(0).c_str(), item.quantity).c_str(), tooltipX, tooltipY, + tooltip->ShowTooltip(FormatOwnedString(LookupMessage(MSI_EA2), item.DisplayName(0).c_str(), item.quantity).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } } @@ -7051,7 +7052,7 @@ void UIExchangeWnd::OnMouseHover(int x, int y) { CMode* tooltip = g_modeMgr.gameMode; item.unknown_0000[0] = 21; if (item.identified == 1 && item.unknown_0098 != 0) { - tooltip->ShowTooltip(FormatOwnedString(LookupMessage(0xA28), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, + tooltip->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { tooltip->ShowTooltip(item.DisplayName(0).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); @@ -7471,7 +7472,7 @@ void UIPartySettingWnd::OnCreate(int width, int height) { } if (this->m_mode == 70) { - const char* texts[2] = {LookupMessage(287), LookupMessage(288)}; + const char* texts[2] = {LookupMessage(MSI_EXPDIV1), LookupMessage(MSI_EXPDIV2)}; for (int i = 0, y = 42; y < 82; ++i, y += 20) { this->m_expShareButtons[i] = new UIRadioBtn(); this->m_expShareButtons[i]->SetSize(160, g_serviceType == 12 ? 17 : 12); @@ -7493,7 +7494,7 @@ void UIPartySettingWnd::OnCreate(int width, int height) { } { - const char* texts[2] = {LookupMessage(289), LookupMessage(290)}; + const char* texts[2] = {LookupMessage(MSI_ITEMCOLLECT1), LookupMessage(MSI_ITEMCOLLECT2)}; for (int i = 0, offset = 0; offset < 40; ++i, offset += 20) { this->m_itemShareButtons[i] = new UIRadioBtn(); this->m_itemShareButtons[i]->SetSize(160, g_serviceType == 12 ? 17 : 12); @@ -7511,7 +7512,7 @@ void UIPartySettingWnd::OnCreate(int width, int height) { this->m_itemDistributeButton = new UIRadioBtn(); this->m_itemDistributeButton->SetSize(160, g_serviceType == 12 ? 17 : 12); this->m_itemDistributeButton->Move(20, this->m_mode + 102); - this->m_itemDistributeButton->SetText(LookupMessage(739)); + this->m_itemDistributeButton->SetText(LookupMessage(MSI_ITEMDIV1)); this->m_itemDistributeButton->SendMsg(this, UM_SETSTATE, 1, 0, 0, 0); this->m_itemDistributeButton->enabled = g_session.PartyCount() == 0; if (g_session.unknown_5464 != 0) { @@ -7616,7 +7617,7 @@ int UIJoinGuildAcceptWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a std::string text = "("; text += name; text += ")"; - text += LookupMessage(377); + text += LookupMessage(MSI_SUGGEST_JOIN_GUILD); this->viewer->Clear(); this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text.c_str()), 38, 0, 0); break; @@ -7707,7 +7708,7 @@ void UINoticeConfirmWnd::OnCreate(int width, int height) { this->m_viewer->textColor = 0xFF000000u | RGB(red, green, blue); this->m_viewer->Invalidate(); this->AddChild(this->m_viewer); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(0)), 38, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_DO_YOU_AGREE)), 38, 0, 0); } // OFFSET: 0x008E4390 @@ -7871,7 +7872,7 @@ void UIWaitWnd::OnCreate(int width, int height) { this->m_textViewer->textColor = 0xFF000000u | RGB(red, green, blue); this->m_textViewer->Invalidate(); this->AddChild(this->m_textViewer); - this->m_textViewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(121)), 38, 0, 0); + this->m_textViewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_PLEASE_BE_PATIENT)), 38, 0, 0); } namespace { @@ -7936,7 +7937,7 @@ int UICoupleAcceptWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s std::string text = "("; text += reinterpret_cast(b); text += ")"; - text += LookupMessage(737); + text += LookupMessage(MSI_SUGGEST_COUPLE); this->viewer->Clear(); this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text.c_str()), 38, 0, 0); break; @@ -8028,7 +8029,7 @@ int UIJoinFriendAcceptWnd::SendMsg(UIWindow* sender, int message, std::intptr_t this->m_accountId = static_cast(a); this->m_characterId = static_cast(b); char text[128]; - std::sprintf(text, LookupMessage(818), reinterpret_cast(c)); + std::sprintf(text, LookupMessage(MSI_SUGGEST_JOIN_FRIEND), reinterpret_cast(c)); this->viewer->Clear(); this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text), 38, 0, 0); break; @@ -8088,7 +8089,7 @@ int UIMixAcceptWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std: case UM_SET_BABY_MSG: { this->m_kind = static_cast(a); std::string text; - text = LookupMessage(1584); + text = LookupMessage(MSI_MIX_ACCEPT); this->viewer->Clear(); this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text.c_str()), 38, 0, 0); break; @@ -8111,7 +8112,7 @@ int UINotifyItemObtainWnd::SendMsg(UIWindow* sender, int message, std::intptr_t char text[128]; if (a != 0) { char grouped[24]; - std::sprintf(text, LookupMessage(327), FormatGroupedInteger(static_cast(b), grouped, sizeof(grouped))); + std::sprintf(text, LookupMessage(MSI_GET_ZENY), FormatGroupedInteger(static_cast(b), grouped, sizeof(grouped))); this->m_message = text; this->m_itemId = ""; } else { @@ -8120,7 +8121,7 @@ int UINotifyItemObtainWnd::SendMsg(UIWindow* sender, int message, std::intptr_t item.itemId = reinterpret_cast(c); item.identified = this->m_identified; item.unknown_0060 = 0; - std::sprintf(text, LookupMessage(153), item.DisplayName(0).c_str(), static_cast(b)); + std::sprintf(text, LookupMessage(MSI_GET_ITEM), item.DisplayName(0).c_str(), static_cast(b)); this->m_message = text; } @@ -8209,7 +8210,7 @@ int UISkillDescribeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, if (FindShopId(g_session, std::string()) != -1) { const int delay = g_session.GetShopEntry(1, this->m_skillId).first; if (delay != 0) { - const std::string line = FormatOwnedString(LookupMessage(4001), static_cast(delay * 0.1), delay % 10); + const std::string line = FormatOwnedString(LookupMessage(MSI_FAIL_CALLHOMUN_OVER_100LEVEL), static_cast(delay * 0.1), delay % 10); this->m_text->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(line.c_str()), 0, 0, 1); } } @@ -8291,9 +8292,9 @@ int UIStarPlaceAcceptWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a this->m_place = static_cast(a); std::string text; if (this->m_place == 10) { - text = LookupMessage(1263); + text = LookupMessage(MSI_DA_EXP_ACCEPT); } else { - text = LookupMessage(1028); + text = LookupMessage(MSI_STARPLACE_ACCEPT); } this->viewer->Clear(); this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text.c_str()), 38, 0, 0); @@ -8354,7 +8355,7 @@ int UIYourItemWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: break; case UM_SET_BABY_MSG: { std::string text; - text = LookupMessage(1327); + text = LookupMessage(MSI_YOURITEM_EQUIP); this->viewer->Clear(); this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text.c_str()), 38, 0, 0); this->m_index = static_cast(a); @@ -8384,7 +8385,7 @@ void UIPasswordWnd::OnCreate(int, int) { this->unknown_00B8 = reinterpret_cast(title); title->SetSize(this->geometry.width - 30, 15); title->Move(15, 6); - title->SetText(LookupMessage(15), 0); + title->SetText(LookupMessage(MSI_ENTER_PASSWORD), 0); this->AddChild(title); const std::string prefix("유저인터페이스\\"); @@ -8456,7 +8457,7 @@ int UITipOfTheDayWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, st case UM_SETTEXT: { const auto& tip = *reinterpret_cast(a); this->m_textViewer->Clear(); - this->m_textViewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(175)), 38, 0, 0); + this->m_textViewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_DIDYOUKNOW)), 38, 0, 0); for (unsigned i = 0; i < tip.size(); ++i) { this->m_textViewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(tip[i].c_str()), 38, 0, 0); } @@ -8648,7 +8649,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ g_windowMgr.CloseWindow(115); break; } - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 0; this->unknown_00F8 = this->unknown_00FC; this->unknown_00EC = 0; @@ -8670,7 +8671,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ this->FillRegion(111, 79, 98, 14, 0xFFFFFF); break; } - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 1; this->unknown_00F8 = this->unknown_00FC; this->unknown_00EC = 0; @@ -8691,7 +8692,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ this->FillRegion(111, 118, 98, 14, 0xFFFFFF); break; } - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F8 = this->unknown_0100; this->unknown_00F4 = 2; this->unknown_00EC = 0; @@ -8716,7 +8717,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ mode->SendMsg(188, password, g_session.m_storePasswordMode, newPassword, 0); g_windowMgr.CloseWindow(115); } else { - g_windowMgr.Confirm(LookupMessage(1016), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_MISMATCH), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 2; this->unknown_00F8 = this->unknown_0100; this->unknown_00EC = 0; @@ -8728,7 +8729,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ } break; } - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 3; this->unknown_00F8 = this->unknown_0104; this->unknown_00EC = 0; @@ -8756,7 +8757,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_STORE_PASSWORD_NUM1: if (++this->unknown_00EC > 8) { - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -8780,7 +8781,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ break; case ID_STORE_PASSWORD_NUM0: if (++this->unknown_00EC > 8) { - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -8801,7 +8802,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_STORE_PASSWORD_NUM2: if (++this->unknown_00EC > 8) { - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -8822,7 +8823,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_STORE_PASSWORD_NUM3: if (++this->unknown_00EC > 8) { - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -8843,7 +8844,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_STORE_PASSWORD_NUM4: if (++this->unknown_00EC > 8) { - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -8864,7 +8865,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_STORE_PASSWORD_NUM5: if (++this->unknown_00EC > 8) { - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -8885,7 +8886,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_STORE_PASSWORD_NUM6: if (++this->unknown_00EC > 8) { - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -8906,7 +8907,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_STORE_PASSWORD_NUM7: if (++this->unknown_00EC > 8) { - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -8927,7 +8928,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_STORE_PASSWORD_NUM8: if (++this->unknown_00EC > 8) { - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -8948,7 +8949,7 @@ int UIStorePasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_STORE_PASSWORD_NUM9: if (++this->unknown_00EC > 8) { - g_windowMgr.Confirm(LookupMessage(1011), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_8), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -9328,7 +9329,7 @@ void UINotifyItemObtainWnd::Paint() { int highlightColor; this->BuildItemName(&this->m_item, &highlightColor, &breaks, &cursor, &remaining, &highlight, 1, 0); - const int written = sprintf_s(cursor, remaining, LookupMessage(696), this->m_item.quantity); + const int written = sprintf_s(cursor, remaining, LookupMessage(MSI_EA_OBTAIN), this->m_item.quantity); if (written > 0) { remaining -= written; cursor += written; @@ -9383,7 +9384,7 @@ int UIAutoMessageWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, st if (a == ID_OK) { reinterpret_cast(g_session.unknown_56B8[4]) = this->m_edit->Text(); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(942)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_AUTO_MSG_ON)), 0x64FFFF, 0, 0, 0); g_windowMgr.RestoreInput(); g_windowMgr.CloseWindow(WID_AUTOMESSAGEWND); } @@ -9424,7 +9425,7 @@ int UICardItemIllustWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, // OFFSET: 0x008EFFF0 // FUNCTION: fn_12248 void UISecondPasswordInputWnd::Paint() { - const int titleHeight = this->DrawTitleBar(true, LookupMessage(1899), 0); + const int titleHeight = this->DrawTitleBar(true, LookupMessage(MSI_SECOND_PASSWORD), 0); this->DrawPanelBackground(titleHeight, 540, "유저인터페이스\\basic_interface\\2ndpassword_bg.bmp"); this->DrawButtonBar(2, 0, 1); @@ -9440,19 +9441,19 @@ void UISecondPasswordInputWnd::Paint() { textColor = 0xF0F0F0; shadowColor = 0xE6E6E6; } - this->DrawEmboldenedText(414, 76, LookupMessage(1012), textColor, shadowColor, 0, 0, 12); + this->DrawEmboldenedText(414, 76, LookupMessage(MSI_STORE_PASSWORD), textColor, shadowColor, 0, 0, 12); this->FillRegion(414, 89, 100, 16, boxColor); this->FillRegion(415, 90, 98, 14, 0xFFFFFF); if (!g_session.m_passwordInputAlternate && this->unknown_0108 == 0) { - this->DrawEmboldenedText(414, 112, LookupMessage(1013), 0xF0F0F0, 0xE6E6E6, 0, 0, 12); + this->DrawEmboldenedText(414, 112, LookupMessage(MSI_STORE_NEW_PASSWORD), 0xF0F0F0, 0xE6E6E6, 0, 0, 12); this->FillRegion(414, 127, 100, 16, 0xE6E6E6); - this->DrawEmboldenedText(414, 152, LookupMessage(1014), 0xF0F0F0, 0xE6E6E6, 0, 0, 12); + this->DrawEmboldenedText(414, 152, LookupMessage(MSI_STORE_RENEW_PASSWORD), 0xF0F0F0, 0xE6E6E6, 0, 0, 12); this->FillRegion(414, 166, 100, 16, 0xE6E6E6); } else { - this->DrawEmboldenedText(414, 112, LookupMessage(1013), 0xE6E6E6, 0, 0, 0, 12); + this->DrawEmboldenedText(414, 112, LookupMessage(MSI_STORE_NEW_PASSWORD), 0xE6E6E6, 0, 0, 0, 12); this->FillRegion(414, 127, 100, 16, 0xFAE6C8); - this->DrawEmboldenedText(414, 152, LookupMessage(1014), 0xE6E6E6, 0, 0, 0, 12); + this->DrawEmboldenedText(414, 152, LookupMessage(MSI_STORE_RENEW_PASSWORD), 0xE6E6E6, 0, 0, 0, 12); this->FillRegion(414, 166, 100, 16, 0xFAE6C8); if (g_session.m_passwordInputAlternate) { this->FillRegion(415, 128, 98, 14, 0xFFFFFF); @@ -9493,12 +9494,12 @@ void UInCashWnd::Paint() { int length = std::sprintf(text, "%d / %d", this->m_page, this->m_pageCount); this->DrawRightAlignedText(270, this->geometry.height - 55, text, length, 0, 12, 0, 0); - length = std::sprintf(text, LookupMessage(1857), FormatGroupedInteger(this->m_cashBalance, number, sizeof(number))); + length = std::sprintf(text, LookupMessage(MSI_NC_FREECASH), FormatGroupedInteger(this->m_cashBalance, number, sizeof(number))); this->DrawShadowedText(74, this->geometry.height - 36, text, length, 0, 0xFFFFFF, 0, 12, 0); - length = std::sprintf(text, LookupMessage(1858), FormatGroupedInteger(this->m_pointBalance, number, sizeof(number))); + length = std::sprintf(text, LookupMessage(MSI_NC_CASH), FormatGroupedInteger(this->m_pointBalance, number, sizeof(number))); this->DrawShadowedText(74, this->geometry.height - 17, text, length, 0, 0xFFFFFF, 0, 12, 0); - this->DrawTextAt(260, this->geometry.height - 36, LookupMessage(1306), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(260, this->geometry.height - 36, LookupMessage(MSI_USE_FREE_POINT), 0, 0, 12, 0, 0, 0); this->DrawTextAt(427, this->geometry.height - 36, "C", 0, 0, 12, 0, 0, 0); length = std::sprintf(text, "Total : %s", FormatGroupedInteger(this->m_totalPrice, number, sizeof(number))); this->DrawShadowedText(260, this->geometry.height - 17, text, length, 0, 0xFFFFFF, 0, 12, 0); @@ -9527,7 +9528,7 @@ void UIExchangeWnd::OnProcess() { char text[24]; std::sprintf(text, "%s", edit->Text()); if (!g_session.IsNumberWithCommas(text)) { - g_windowMgr.Confirm(LookupMessage(602), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CAN_INPUT_NUMBER_ONLY), 0, true, false, 0, "Message", 280, 120, 0); edit->SetText(this->m_moneyText.c_str()); g_windowMgr.SetFocus(edit); return; @@ -9535,7 +9536,7 @@ void UIExchangeWnd::OnProcess() { std::int64_t money = _atoi64(text); if (money > 1000000000) { - g_windowMgr.Confirm(LookupMessage(2467), 2, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BASIC_EXP_MSG_INDONESIA), 2, true, false, 0, "Message", 280, 120, 0); FormatGroupedInteger(1000000000, text, sizeof(text)); edit->SetText(text); money = 1000000000; @@ -9599,7 +9600,7 @@ void UIItemCollectionWnd::Paint() { this->DrawSkinBox(box, 0, bottom + offset, this->geometry.width, static_cast(card->second.size()) * 15 + 14, true); offset += 8; for (std::list::iterator line = card->second.begin();;) { - if (*line == LookupMessage(3886)) { + if (*line == LookupMessage(MSI_MONSTERINFO_TRIBE_ANIMAL)) { this->DrawCenteredText(0, bottom + offset, line->c_str(), this->geometry.width, 0, 12, 0xFF, 0); break; } @@ -10006,7 +10007,7 @@ void UIEquipWnd::DrawEquipSlots() { // FUNCTION: fn_12318 void UIEquipWnd::RefreshTitleList() { this->m_titleList->Clear(); - this->m_titleList->AddLine(LookupMessage(2686), 0); + this->m_titleList->AddLine(LookupMessage(MSI_GUILD_JOIN_GUILD_NOT_PERMITTED_MAP), 0); for (std::vector::iterator it = g_session.unknown_6160.begin(); it != g_session.unknown_6160.end(); ++it) { const std::string title = GetJobTitleString(*it); this->m_titleList->AddLine(title.c_str(), *it); @@ -10347,9 +10348,9 @@ int UIChooseWarpWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std if (a != 0) { const char* choice = reinterpret_cast(a); if (std::string(choice) == "Random") { - this->m_list->AddLine(LookupMessage(0xD4)); + this->m_list->AddLine(LookupMessage(MSI_RANDOM_POS)); } else if (std::string(choice) == "cancel") { - this->m_list->AddLine(LookupMessage(0xDA)); + this->m_list->AddLine(LookupMessage(MSI_CANCEL)); } else { this->m_list->AddLine(g_session.GetMapDisplayName(g_session.GatName2RswName(choice))); } @@ -10393,7 +10394,7 @@ int UIChooseWarpWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std // FUNCTION: fn_12256 void UITipboxWnd::Paint() { this->ClearSurface(0xFFFF00FF); - this->DrawTitleBar(true, LookupMessage(0xCA6), 0); + this->DrawTitleBar(true, LookupMessage(MSI_AGAIN), 0); auto* background = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\tipbox\\TipboxBG.bmp"))); this->DrawBitmap(0, 17, background, false); @@ -10488,8 +10489,8 @@ void UITipOfTheDayWnd::OnCreate(int width, int height) { this->m_showTipsAtStartup = g_window315Enabled; UICheckBox* checkBox = new UICheckBox(); - checkBox->SetSize(this->TextWidth(LookupMessage(176), 0, 0, 12, 0, 0) + 12, 12); - checkBox->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(176)); + checkBox->SetSize(this->TextWidth(LookupMessage(MSI_SHOWTIPSATSTARTUP), 0, 0, 12, 0, 0) + 12, 12); + checkBox->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_SHOWTIPSATSTARTUP)); checkBox->Move(10, height - 20); checkBox->SetChecked(this->m_showTipsAtStartup); this->AddChild(checkBox); @@ -10499,7 +10500,7 @@ void UITipOfTheDayWnd::OnCreate(int width, int height) { const int index = random % g_tipOfTheDay.Size(); this->m_tipIndex = index; const StringList& tip = g_tipOfTheDay.GetTip(index); - this->m_textViewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(175)), 38, 0, 0); + this->m_textViewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_DIDYOUKNOW)), 38, 0, 0); for (unsigned line = 0; line < tip.size(); ++line) { this->m_textViewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(tip[line].c_str()), 38, 0, 0); } @@ -10563,8 +10564,8 @@ void UITipboxWnd::OnCreate(int width, int) { this->AddChild(searchButton); UICheckBox* checkBox = new UICheckBox(); - checkBox->SetSize(this->TextWidth(LookupMessage(3939), 0, 0, 12, 0, 0) + 12, 14); - checkBox->SetImages("유저인터페이스\\tipbox\\checkBox_check.bmp", "유저인터페이스\\tipbox\\checkBox.bmp", LookupMessage(3939)); + checkBox->SetSize(this->TextWidth(LookupMessage(MSI_ZEROCHATWND_RESIZE), 0, 0, 12, 0, 0) + 12, 14); + checkBox->SetImages("유저인터페이스\\tipbox\\checkBox_check.bmp", "유저인터페이스\\tipbox\\checkBox.bmp", LookupMessage(MSI_ZEROCHATWND_RESIZE)); checkBox->Move(9, 347); checkBox->SetChecked(this->unknown_0100); checkBox->SetId(213); @@ -10575,7 +10576,7 @@ void UITipboxWnd::OnCreate(int width, int) { closeButton->SetBitmap("유저인터페이스\\tipbox\\btn_close_over.bmp", 1, 0); closeButton->SetBitmap("유저인터페이스\\tipbox\\btn_close_press.bmp", 2, 0); closeButton->SetSize(closeButton->BitmapWidth(), closeButton->BitmapHeight()); - closeButton->SetText(LookupMessage(1299)); + closeButton->SetText(LookupMessage(MSI_BOOK_CLOSE)); closeButton->Move(415, 341); closeButton->SetId(201); this->AddChild(closeButton); @@ -10586,7 +10587,7 @@ void UITipboxWnd::OnCreate(int width, int) { search->maximum = 150; search->TextColor(RGB(0, 0, 0), 0xFFFFFFFF); search->SetPlaceholderEnabled(true); - search->SetPlaceholder(LookupMessage(3253)); + search->SetPlaceholder(LookupMessage(MSI_ENTER_YOUR_AUTHENTICATION_NUMBER)); search->SetPlaceholderColor(0xB1B1B1); search->Move(253, 22); search->Background(255, 255, 255); @@ -10648,7 +10649,7 @@ void UITipboxWnd::OnCreate(int width, int) { // OFFSET: 0x008F1430 // FUNCTION: fn_12254 void UIStorePasswordInputWnd::Paint() { - const int titleHeight = this->DrawTitleBar(true, LookupMessage(1017), 0); + const int titleHeight = this->DrawTitleBar(true, LookupMessage(MSI_STORE_PASSWORD_INPUT), 0); this->DrawPanelBackground(titleHeight, 0, ""); this->DrawButtonBar(2, 0, 1); @@ -10721,18 +10722,18 @@ void UIStorePasswordInputWnd::Paint() { shadowColor = 0xE6E6E6; } - this->DrawEmboldenedText(110, 27, LookupMessage(1012), textColor, shadowColor, 0, 0, 12); + this->DrawEmboldenedText(110, 27, LookupMessage(MSI_STORE_PASSWORD), textColor, shadowColor, 0, 0, 12); this->FillRegion(110, 40, 100, 16, boxColor); this->FillRegion(111, 41, 98, 14, 0xFFFFFF); if (!g_session.m_passwordInputAlternate && this->unknown_0108 == 0) { - this->DrawEmboldenedText(110, 63, LookupMessage(1013), 0xF0F0F0, 0xE6E6E6, 0, 0, 12); + this->DrawEmboldenedText(110, 63, LookupMessage(MSI_STORE_NEW_PASSWORD), 0xF0F0F0, 0xE6E6E6, 0, 0, 12); this->FillRegion(110, 78, 100, 16, 0xE6E6E6); - this->DrawEmboldenedText(110, 103, LookupMessage(1014), 0xF0F0F0, 0xE6E6E6, 0, 0, 12); + this->DrawEmboldenedText(110, 103, LookupMessage(MSI_STORE_RENEW_PASSWORD), 0xF0F0F0, 0xE6E6E6, 0, 0, 12); this->FillRegion(110, 117, 100, 16, 0xE6E6E6); } else { - this->DrawEmboldenedText(110, 63, LookupMessage(1013), 0xE6E6E6, 0, 0, 0, 12); + this->DrawEmboldenedText(110, 63, LookupMessage(MSI_STORE_NEW_PASSWORD), 0xE6E6E6, 0, 0, 0, 12); this->FillRegion(110, 78, 100, 16, 0xFAE6C8); - this->DrawEmboldenedText(110, 103, LookupMessage(1014), 0xE6E6E6, 0, 0, 0, 12); + this->DrawEmboldenedText(110, 103, LookupMessage(MSI_STORE_RENEW_PASSWORD), 0xE6E6E6, 0, 0, 0, 12); this->FillRegion(110, 117, 100, 16, 0xFAE6C8); if (g_session.m_passwordInputAlternate) { this->FillRegion(111, 79, 98, 14, 0xFFFFFF); @@ -10796,7 +10797,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr this->DisableButtons(); break; } - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 0; this->unknown_00F8 = this->unknown_00FC; this->unknown_00EC = 0; @@ -10806,7 +10807,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr std::memset(this->unknown_00E2, 0, sizeof(this->unknown_00E2)); break; case ID_CANCEL: - if (g_windowMgr.Confirm(LookupMessage(17), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_TO_QUIT), 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); g_windowMgr.Schedule(this); } @@ -10826,7 +10827,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr this->DisableButtons(); break; } - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 0; this->unknown_00F8 = this->unknown_00FC; this->unknown_00EC = 0; @@ -10850,7 +10851,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr this->FillRegion(415, 128, 98, 14, 0xFFFFFF); break; } - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F8 = this->unknown_00FC; this->unknown_00F4 = 1; this->unknown_00EC = 0; @@ -10873,7 +10874,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr this->unknown_0150[3]->Enable(0); break; } - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 2; this->unknown_00F8 = this->unknown_0100; this->unknown_00EC = 0; @@ -10897,7 +10898,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr GetRagConnection().Send(g_packetLengths.FixedLength(packet.packetType), &packet); this->DisableButtons(); } else { - g_windowMgr.Confirm(LookupMessage(1016), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_MISMATCH), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 2; this->unknown_00F8 = this->unknown_0100; this->unknown_00EC = 0; @@ -10911,7 +10912,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr } break; } - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 3; this->unknown_00F8 = this->unknown_0104; this->unknown_00EC = 0; @@ -10944,7 +10945,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr case ID_STORE_PASSWORD_NUM1: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -10968,7 +10969,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr case ID_STORE_PASSWORD_NUM0: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -10988,7 +10989,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr break; case ID_STORE_PASSWORD_NUM2: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11008,7 +11009,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr break; case ID_STORE_PASSWORD_NUM3: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11028,7 +11029,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr break; case ID_STORE_PASSWORD_NUM4: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11048,7 +11049,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr break; case ID_STORE_PASSWORD_NUM5: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11068,7 +11069,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr break; case ID_STORE_PASSWORD_NUM6: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11088,7 +11089,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr break; case ID_STORE_PASSWORD_NUM7: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11108,7 +11109,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr break; case ID_STORE_PASSWORD_NUM8: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11128,7 +11129,7 @@ int UISecondPasswordInputWnd::SendMsg(UIWindow* sender, int message, std::intptr break; case ID_STORE_PASSWORD_NUM9: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11204,7 +11205,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ this->DisableButtons(); break; } - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 0; this->unknown_00F8 = this->unknown_00FC; this->unknown_00EC = 0; @@ -11214,7 +11215,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ std::memset(this->unknown_00E2, 0, sizeof(this->unknown_00E2)); break; case ID_CANCEL: - if (g_windowMgr.Confirm(LookupMessage(17), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_TO_QUIT), 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); g_windowMgr.Schedule(this); } @@ -11234,7 +11235,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ this->DisableButtons(); break; } - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 0; this->unknown_00F8 = this->unknown_00FC; this->unknown_00EC = 0; @@ -11268,7 +11269,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ this->unknown_0150[3]->Enable(0); break; } - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 2; this->unknown_00F8 = this->unknown_0100; this->unknown_00EC = 0; @@ -11280,7 +11281,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case 3: if (std::strlen(this->unknown_00E2) != static_cast(this->unknown_010C)) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 3; this->unknown_00F8 = this->unknown_0104; this->unknown_00EC = 0; @@ -11300,7 +11301,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ this->DisableButtons(); break; } - g_windowMgr.Confirm(LookupMessage(1016), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_MISMATCH), 0, true, false, 0, "Message", 280, 120, 0); this->unknown_00F4 = 2; this->unknown_00F8 = this->unknown_0100; this->unknown_00EC = 0; @@ -11336,7 +11337,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_STORE_PASSWORD_NUM1: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11360,7 +11361,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_STORE_PASSWORD_NUM0: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11380,7 +11381,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ break; case ID_STORE_PASSWORD_NUM2: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11400,7 +11401,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ break; case ID_STORE_PASSWORD_NUM3: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11420,7 +11421,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ break; case ID_STORE_PASSWORD_NUM4: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11440,7 +11441,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ break; case ID_STORE_PASSWORD_NUM5: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11460,7 +11461,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ break; case ID_STORE_PASSWORD_NUM6: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11480,7 +11481,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ break; case ID_STORE_PASSWORD_NUM7: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11500,7 +11501,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ break; case ID_STORE_PASSWORD_NUM8: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11520,7 +11521,7 @@ int UISecondPasswordEditWnd::SendMsg(UIWindow* sender, int message, std::intptr_ break; case ID_STORE_PASSWORD_NUM9: if (++this->unknown_00EC > this->unknown_010C) { - g_windowMgr.Confirm(LookupMessage(1887), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STORE_PASSWORD_4_6), 0, true, false, 0, "Message", 280, 120, 0); break; } switch (this->unknown_00F4) { @@ -11725,7 +11726,7 @@ int UIFrameWnd::BuildItemName( const auto unknownCreator = [&]() { g_windowMgr.RegisterWindow(this); - const int error = strncpy_s(*cursor, *remaining, LookupMessage(581), _TRUNCATE); + const int error = strncpy_s(*cursor, *remaining, LookupMessage(MSI_NAMELESS_USER), _TRUNCATE); if (error == 0 || error == STRUNCATE) { const std::size_t bytes = *cursor ? strnlen(*cursor, *remaining) : 0; *cursor += bytes; @@ -11948,7 +11949,7 @@ bool UIItemCollectionWnd::WrapText(std::string text, int width, std::list(LookupMessage(0xAAA)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_UNEQUIP_ARROW2)), 0x64FFFF, 0, 0, 0); return 0; } @@ -11994,7 +11995,7 @@ int UIChooseWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::in case UM_SETCHOOSE: if (a != 0) { const char* value = reinterpret_cast(a); - if (std::strstr(value, LookupMessage(0x29A)) == nullptr) { + if (std::strstr(value, LookupMessage(MSI_REF_UNEQUIP)) == nullptr) { std::string text(value); int length = 0; int itemId = 0; @@ -12063,7 +12064,7 @@ int UIChooseWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::in // FUNCTION: fn_12331 int UIChoose3Wnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) { const char* text = reinterpret_cast(a); - if (message != UM_SETCHOOSE || text == nullptr || std::strlen(text) == 0 || std::strcmp(text, LookupMessage(666)) == 0) { + if (message != UM_SETCHOOSE || text == nullptr || std::strlen(text) == 0 || std::strcmp(text, LookupMessage(MSI_REF_UNEQUIP)) == 0) { return this->UIChooseWnd::SendMsg(sender, message, a, b, c, d); } int length = 0; @@ -12220,7 +12221,7 @@ int UITipboxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::in } case 0x205: if (!g_windowMgr.GetHoverWindow()) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x1062)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NAVIGATION_RS_REFAILTARGETROUTE)), 0xFF, 0, 0, 0); } else { const int id = g_itemTagOwner->unknown_0114; switch (g_windowMgr.GetHoverWindow()->geometry.id) { @@ -12364,10 +12365,10 @@ int UIProhibitListWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s g_windowMgr.CloseWindow(WID_PROHIBITLISTWND); } else if (a == 0x10C) { UIWindow* menu = g_windowMgr.EnsureWindow(WID_COMBOBOXWND); - const std::string labels[4] = {LookupMessage(0x250), LookupMessage(0x251), LookupMessage(0x252), LookupMessage(0x253)}; - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x2CF)), 0, 0, 0); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x2D0)), 0, 0, 0); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x2D1)), 0, 0, 0); + const std::string labels[4] = {LookupMessage(MSI_PET_FEEDING), LookupMessage(MSI_PET_PERFORMANCE), LookupMessage(MSI_PET_RETURN_EGG), LookupMessage(MSI_PET_ACC_OFF)}; + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_APPEND_PROHIBIT)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_ERASE_PROHIBIT)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_REDUCE_PROHIBIT)), 0, 0, 0); menu->SendMsg(nullptr, UM_SETCURITEM, 0, 0, 0, 0); menu->Resize(0x82, 0x30); menu->SendMsg(nullptr, UM_SET_CALLER_WID, 0x67, 0, 0, 0); @@ -12429,10 +12430,10 @@ void UIExchangeWnd::Paint() { this->DrawBitmap(0, 0, bitmap, false); bitmap = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\exchange_bg2.bmp"))); this->DrawBitmap(0, 17, bitmap, false); - DrawOutlinedText(*this, 123, this->geometry.height - 20, LookupMessage(0x727), 0, 0xFF, 0xFFFFFF, 0, 12, 1, 0); + DrawOutlinedText(*this, 123, this->geometry.height - 20, LookupMessage(MSI_SCREENSHOT_FOR_EXCHANGE), 0, 0xFF, 0xFFFFFF, 0, 12, 1, 0); char title[128]; - std::sprintf(title, "%s : ", LookupMessage(0xCE)); + std::sprintf(title, "%s : ", LookupMessage(MSI_EXCHANGE)); this->DrawTextAt(13, 4, title, 0, 0, 12, 0xFFFFFF, 0, 0); this->DrawTextAt(12, 3, title, 0, 0, 12, 0, 0, 0); char partner[128]; @@ -12608,7 +12609,7 @@ int UIItemCollectionWnd::SendMsg(UIWindow* sender, int message, std::intptr_t ar continue; } if (option.id == g_itemOptionPlaceholderId) { - std::list lines = {LookupMessage(3886)}; + std::list lines = {LookupMessage(MSI_MONSTERINFO_TRIBE_ANIMAL)}; this->m_cardTexts.insert(std::make_pair(index, lines)); } else { const char* name = nullptr; @@ -12657,21 +12658,21 @@ int UIItemCollectionWnd::SendMsg(UIWindow* sender, int message, std::intptr_t ar char text[260]; if (this->m_item.unknown_0068 != 0) { char date[128]; - std::strftime(date, sizeof(date), LookupMessage(1260), _localtime32(reinterpret_cast(&this->m_item.unknown_0068))); + std::strftime(date, sizeof(date), LookupMessage(MSI_TIME_TYPE2), _localtime32(reinterpret_cast(&this->m_item.unknown_0068))); int color = 32; std::memset(text, 0, sizeof(text)); if (g_inlineCharset) { StringFormat(text, sizeof(text), static_cast(-1), "%s%s", g_serverLanguage->Prefix(true), date); - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(1255), text); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_NOTICE_TO_DELETE_TIME), text); } else { - std::sprintf(text, LookupMessage(1255), date); + std::sprintf(text, LookupMessage(MSI_NOTICE_TO_DELETE_TIME), date); if (g_serviceType == 6) { color = 24; } } if (this->m_item.unknown_0066) { const int hours = static_cast(this->m_item.unknown_0068); - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(3974), hours / 24, hours % 24); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_JOB_IMPERIAL_GUARD), hours / 24, hours % 24); } this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text), color, 0, 0); } @@ -12688,22 +12689,22 @@ int UIItemCollectionWnd::SendMsg(UIWindow* sender, int message, std::intptr_t ar const int* cards = reinterpret_cast(item->unknown_001C); switch (cards[2]) { case 1: - state = FormatOwnedString(LookupMessage(2865), LookupMessage(672)); + state = FormatOwnedString(LookupMessage(MSI_PARTYMASTER), LookupMessage(MSI_VERY_AWKWARD)); break; case 2: - state = FormatOwnedString(LookupMessage(2865), LookupMessage(673)); + state = FormatOwnedString(LookupMessage(MSI_PARTYMASTER), LookupMessage(MSI_AWKWARD)); break; case 3: - state = FormatOwnedString(LookupMessage(2865), LookupMessage(669)); + state = FormatOwnedString(LookupMessage(MSI_PARTYMASTER), LookupMessage(MSI_NORMAL)); break; case 4: - state = FormatOwnedString(LookupMessage(2865), LookupMessage(674)); + state = FormatOwnedString(LookupMessage(MSI_PARTYMASTER), LookupMessage(MSI_FRIENDLY)); break; case 5: - state = FormatOwnedString(LookupMessage(2865), LookupMessage(675)); + state = FormatOwnedString(LookupMessage(MSI_PARTYMASTER), LookupMessage(MSI_VERY_FRIENDLY)); break; default: - state = FormatOwnedString(LookupMessage(2865), LookupMessage(2866)); + state = FormatOwnedString(LookupMessage(MSI_PARTYMASTER), LookupMessage(MSI_MACRO_DETECTOR_TIME_OVER)); break; } if (g_inlineCharset == 1) { @@ -12782,7 +12783,7 @@ int UIItemCollectionWnd::SendMsg(UIWindow* sender, int message, std::intptr_t ar return 0; } this->unknown_023C = new UIBasicButton(); - this->unknown_023C->Configure(77, LookupMessage(2922)); + this->unknown_023C->Configure(77, LookupMessage(MSI_WITHDRAWAL)); this->unknown_023C->Move(9, 117); this->unknown_023C->SetId(354); this->unknown_023C->invalidateParent = 1; diff --git a/Source/UI/Acceptance/UIExchangeAcceptWnd.cpp b/Source/UI/Acceptance/UIExchangeAcceptWnd.cpp index 3c7349049..3395f6e13 100644 --- a/Source/UI/Acceptance/UIExchangeAcceptWnd.cpp +++ b/Source/UI/Acceptance/UIExchangeAcceptWnd.cpp @@ -20,6 +20,7 @@ #include "UI/Window/UINewSelectCharWnd.h" #include "UI/Window/WindowManagerWindows.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -105,7 +106,7 @@ int UIExchangeAcceptWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::string text = "("; text += reinterpret_cast(a); text += ")"; - text += LookupMessage(93); + text += LookupMessage(MSI_SUGGEST_DEAL); this->viewer->Clear(); this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text.c_str()), 138, 0, 0); const std::string code = std::format("C-Code : {} {}{}", ShortcutFilename(static_cast(b)), g_serviceType == 12 ? "Nv." : "Lv.", c); diff --git a/Source/UI/Acceptance/UIJoinPartyAcceptWnd.cpp b/Source/UI/Acceptance/UIJoinPartyAcceptWnd.cpp index b6ee3a714..f67186d16 100644 --- a/Source/UI/Acceptance/UIJoinPartyAcceptWnd.cpp +++ b/Source/UI/Acceptance/UIJoinPartyAcceptWnd.cpp @@ -12,6 +12,7 @@ #include "UI/Window/UINewSelectCharWnd.h" #include "UI/Window/WindowManagerWindows.h" +#include "Resource/MSGSTRINGID.h" #include // OFFSET: 0x008C8240 @@ -47,7 +48,7 @@ int UIJoinPartyAcceptWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a std::string text = "("; text += reinterpret_cast(b); text += ")"; - text += LookupMessage(94); + text += LookupMessage(MSI_SUGGEST_JOIN_PARTY); this->viewer->Clear(); this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text.c_str()), 38, 0, 0); diff --git a/Source/UI/AdventureGuide/UIAdventureGuide.cpp b/Source/UI/AdventureGuide/UIAdventureGuide.cpp index 3d28d404c..f9c31c2cf 100644 --- a/Source/UI/AdventureGuide/UIAdventureGuide.cpp +++ b/Source/UI/AdventureGuide/UIAdventureGuide.cpp @@ -22,6 +22,7 @@ #include "Utility/Text/StringUtil.h" #include "Contents/Items/ItemDescription.h" #include "UI/Window/UIRegisterMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -828,24 +829,24 @@ void CUIQuestInfo::SetStatusLines(bool first, bool second, bool third) { reinterpret_cast(this->unknown_00F4)->Clear(); if (first == true) { reinterpret_cast(this->unknown_00F4)->SetTextColor(0xC86464u); - reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(0xFC2))); + reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(MSI_ENCHANT_IMPOSSIBLE))); } else { reinterpret_cast(this->unknown_00F4)->SetTextColor(0x6464C8u); - reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(0xFC3))); + reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(MSI_GRADE_ENCHANT_POSSIBLE))); } if (second == true) { reinterpret_cast(this->unknown_00F4)->SetTextColor(0xC86464u); - reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(0xFC4))); + reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(MSI_GRADE_ENCHANT_IMPOSSIBLE))); } else { reinterpret_cast(this->unknown_00F4)->SetTextColor(0x6464C8u); - reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(0xFC5))); + reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(MSI_RUNESYSTEM_EQUIP_OUT))); } if (third == true) { reinterpret_cast(this->unknown_00F4)->SetTextColor(0xC86464u); - reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(0xFC6))); + reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(MSI_RUNESYSTEM_EQUIP_NOTPUT))); } else { reinterpret_cast(this->unknown_00F4)->SetTextColor(0x6464C8u); - reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(0xFC7))); + reinterpret_cast(this->unknown_00F4)->AddLine(FormatOwnedString(LookupMessage(MSI_RUNESYSTEM_RUNESET_TITLE))); } } @@ -995,7 +996,7 @@ void CUIListBox::SelectItem(CUIListItem* item) { // OFFSET: 0x009DC950 // FUNCTION: fn_14329 void CUIAdventureGuide::OnInit() { - const char* title = LookupMessage(0xFD5); + const char* title = LookupMessage(MSI_RUNESYSTEM_CLOSE_RODEX); this->titleBar->SetTitle(title); if (g_adventureGuideMgr->m_intros.empty()) { @@ -2008,60 +2009,60 @@ void CUIMonsterInfo::SetMonster(const std::string& title) { this->action = static_cast(ResourceMgr::Instance().Load(spriteName + ".act")); if (element == 1) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8D7), elementLevel)); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_PROPERTY4), elementLevel)); } else if (element == 2) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8D8), elementLevel)); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_PROPERTY5), elementLevel)); } else if (element == 3) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8D9), elementLevel)); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_PROPERTY6), elementLevel)); } else if (element == 4) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8DA), elementLevel)); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_PROPERTY7), elementLevel)); } else if (element == 5) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8DB), elementLevel)); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_PROPERTY8), elementLevel)); } else if (element == 6) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8DC), elementLevel)); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_PROPERTY9), elementLevel)); } else if (element == 7) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8DD), elementLevel)); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_PROPERTY0), elementLevel)); } else if (element == 8) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8DE), elementLevel)); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_SCALE1), elementLevel)); } else if (element == 9) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8DF), elementLevel)); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_SCALE2), elementLevel)); } else { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8E0), elementLevel)); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_SCALE0), elementLevel)); } if (race == 1) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8E4))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_RACE4))); } else if (race == 2) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8E5))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_RACE5))); } else if (race == 3) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8E6))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_RACE6))); } else if (race == 4) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8E7))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_RACE7))); } else if (race == 5) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8E8))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_RACE8))); } else if (race == 6) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8E9))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_RACE9))); } else if (race == 7) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8EA))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_RACE0))); } else if (race == 8) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8EB))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_MOVECLICK))); } else if (race == 9) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8EC))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_NPCMOVE))); } else { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8ED))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_NPCCLICK))); } if (size == 1) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8E1))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_RACE1))); } else if (size == 2) { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8E2))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_RACE2))); } else { - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8E3))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_RACE3))); } if (type == 0x12D) { reinterpret_cast(this->unknown_00EC)->SetTextColor(0x6464FFu); - reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(0x8B6))); + reinterpret_cast(this->unknown_00EC)->AddLine(FormatOwnedString(LookupMessage(MSI_NAVIGATION_TARGET_D_D))); } } diff --git a/Source/UI/Buttons/UIButton.cpp b/Source/UI/Buttons/UIButton.cpp index 77c67828d..fda8d5f06 100644 --- a/Source/UI/Buttons/UIButton.cpp +++ b/Source/UI/Buttons/UIButton.cpp @@ -16,6 +16,7 @@ #include "UI/Buttons/UIButton.h" #include "UI/Buttons/UISpriteButton.h" +#include "Resource/MSGSTRINGID.h" #include // OFFSET: 0x0084EDD0 @@ -207,7 +208,7 @@ void UIButton::OnLBtnUp(int x, int y) { if (g_windowMgr.WindowPolicy(3, parent->geometry.id) != 0) { int id = this->geometry.id; if (id == 185 && g_modeMgr.gameMode && g_modeMgr.gameMode->cursorType == 2) { - const char* text = LookupMessage(17); + const char* text = LookupMessage(MSI_DO_YOU_REALLY_WANT_TO_QUIT); if (g_windowMgr.Confirm(text, 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); } diff --git a/Source/UI/Buttons/UITextButton.cpp b/Source/UI/Buttons/UITextButton.cpp index af7dab614..0dade1684 100644 --- a/Source/UI/Buttons/UITextButton.cpp +++ b/Source/UI/Buttons/UITextButton.cpp @@ -61,6 +61,7 @@ #include #include #include +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x0086EEB0 // FUNCTION: fn_11085 @@ -515,9 +516,9 @@ void UIBasicItemCtrl::OnMouseHover(int, int) { } else if (this->m_item.unknown_0000[1] == 0) { text = this->m_item.DisplayName(0); } else if (this->m_item.unknown_0098 != 0) { - text = FormatOwnedString(LookupMessage(2551), this->m_item.DisplayName(0).c_str(), this->m_item.unknown_0098, this->m_item.quantity); + text = FormatOwnedString(LookupMessage(MSI_FAIL_NEED_EQUIPPED_GUN_GATLING), this->m_item.DisplayName(0).c_str(), this->m_item.unknown_0098, this->m_item.quantity); } else { - text = FormatOwnedString(LookupMessage(183), this->m_item.DisplayName(0).c_str(), this->m_item.quantity); + text = FormatOwnedString(LookupMessage(MSI_EA2), this->m_item.DisplayName(0).c_str(), this->m_item.quantity); } int screenX = 0, screenY = 0; @@ -3605,7 +3606,7 @@ void UISlotBmpButton::Paint() { this->DrawBitmap(this->geometry.width / 2 - 0x2e, 0x1a, balloon, false); std::vector lines; - WrapPlainText(LookupMessage(0xaed), lines, 0x14); + WrapPlainText(LookupMessage(MSI_ERROR_MDENGEON_IS_FULL), lines, 0x14); int y = 0x22; for (const std::string& line : lines) { this->DrawCenteredText(0x21, y, line.c_str(), 0x5c, 0, 0xb, 0xffffff, 0); @@ -3630,8 +3631,8 @@ void UISlotBmpButton::Paint() { Timestamp expiry(info->deleteDate); const std::uint32_t color = expiry.IsBeforeNow() ? 0xff0000 : 0xff; const TIMESTAMP_STRUCT date = expiry.ToSqlTimestamp(); - const std::string period = FormatOwnedString(LookupMessage(0xc20), date.month, date.day); - const std::string time = FormatOwnedString(LookupMessage(0xd15), date.hour, date.minute, date.second); + const std::string period = FormatOwnedString(LookupMessage(MSI_INCOMPLETE), date.month, date.day); + const std::string time = FormatOwnedString(LookupMessage(MSI_PRIVATE_AIRPLANE_FAILED_USE_ITEM), date.hour, date.minute, date.second); const int periodWidth = this->TextWidth(period.c_str(), 0, 0, 0xb, 0, 0); this->DrawTextAt(0x4f - periodWidth / 2, 0x28, period.c_str(), 0, 0, 0xb, color, 0, 0); const int timeWidth = this->TextWidth(time.c_str(), 0, 0, 0xb, 0, 0); diff --git a/Source/UI/Buttons/UITextureButton.cpp b/Source/UI/Buttons/UITextureButton.cpp index 533864e52..dbf8007d0 100644 --- a/Source/UI/Buttons/UITextureButton.cpp +++ b/Source/UI/Buttons/UITextureButton.cpp @@ -10,6 +10,7 @@ #include "UI/Buttons/UITextureButton.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x0085E070 // FUNCTION: fn_10822 void UITextureButton::Paint() { @@ -39,7 +40,7 @@ void UITextureButton::OnLBtnUp(int x, int y) { if (WindowPolicy(g_windowMgr.policy[0].actions, g_replayAnimationScaling != 0, 3, parent->geometry.id) > 0) { int id = this->geometry.id; if (id == 185 && g_modeMgr.gameMode && g_modeMgr.gameMode->cursorType == 2) { - const char* text = LookupMessage(17); + const char* text = LookupMessage(MSI_DO_YOU_REALLY_WANT_TO_QUIT); if (g_windowMgr.Confirm(text, 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); } diff --git a/Source/UI/CashShop/UICashShopWnd.cpp b/Source/UI/CashShop/UICashShopWnd.cpp index 5e814382a..149a08a78 100644 --- a/Source/UI/CashShop/UICashShopWnd.cpp +++ b/Source/UI/CashShop/UICashShopWnd.cpp @@ -33,6 +33,7 @@ #include "Utility/Cipher/XorBytes.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -278,7 +279,7 @@ void UICashShopWnd::OnCreate(int, int) { charge->SetBitmap("유저인터페이스\\cashshop\\btn_charge_press.bmp", 1, 0); charge->SetBitmap("유저인터페이스\\cashshop\\btn_charge_press.bmp", 2, 0); charge->SetSize(charge->BitmapWidth(), charge->BitmapHeight()); - charge->SetText(LookupMessage(0xCE3)); + charge->SetText(LookupMessage(MSI_ITEM_SEARCH)); charge->Move(0x28E, 0x2E); charge->SetId(0x11C); this->AddChild(charge); @@ -288,7 +289,7 @@ void UICashShopWnd::OnCreate(int, int) { this->unknown_00E4->SetBitmap("유저인터페이스\\cashshop\\btn_refresh_press.bmp", 1, 0); this->unknown_00E4->SetBitmap("유저인터페이스\\cashshop\\btn_refresh_press.bmp", 2, 0); this->unknown_00E4->SetSize(this->unknown_00E4->BitmapWidth(), this->unknown_00E4->BitmapHeight()); - this->unknown_00E4->SetText(LookupMessage(0xCEA)); + this->unknown_00E4->SetText(LookupMessage(MSI_STAR_EMPEROR_M)); this->unknown_00E4->Move(0x1C4, 0x204); this->unknown_00E4->SetId(0x19F); this->AddChild(this->unknown_00E4); @@ -297,7 +298,7 @@ void UICashShopWnd::OnCreate(int, int) { this->unknown_00E0->SetSize(0x123, 0xE); this->unknown_00E0->Move(0x5E, 0x206); this->unknown_00E0->preserveInput = 1; - this->unknown_00E0->SetText(LookupMessage(0xCE6)); + this->unknown_00E0->SetText(LookupMessage(MSI_CASHSHOP_CASH_POINT)); this->unknown_00E0->TextColor(0xB1B1B1, 0xFFFFFFFFu); this->AddChild(this->unknown_00E0); @@ -315,7 +316,7 @@ void UICashShopWnd::OnCreate(int, int) { buy->SetBitmap("유저인터페이스\\cashshop\\btn_buy_press.bmp", 1, 0); buy->SetBitmap("유저인터페이스\\cashshop\\btn_buy_press.bmp", 2, 0); buy->SetSize(buy->BitmapWidth(), buy->BitmapHeight()); - buy->SetText(LookupMessage(0xCE4)); + buy->SetText(LookupMessage(MSI_CASHSHOP_FREE_POINT)); buy->Move(0x228, 0x1FC); buy->SetId(0xE0); this->AddChild(buy); @@ -415,7 +416,7 @@ void UICashShopWnd_Item::OnCreate(int, int) { this->m_addButton->SetBitmap("유저인터페이스\\cashshop\\btn_add_press.bmp", 2, 0); this->m_addButton->SetBitmap("유저인터페이스\\cashshop\\btn_add_disable.bmp", 3, 0); this->m_addButton->SetSize(this->m_addButton->BitmapWidth(), this->m_addButton->BitmapHeight()); - this->m_addButton->SetText(LookupMessage(0x6F3)); + this->m_addButton->SetText(LookupMessage(MSI_BUY)); this->m_addButton->Move(0x53, 0x55); this->m_addButton->SetId(0xE0); this->AddChild(this->m_addButton); @@ -439,7 +440,7 @@ void UICashShopWnd::Paint() { ); } - this->DrawTitleBar(false, LookupMessage(0xCD8), 0); + this->DrawTitleBar(false, LookupMessage(MSI_CASHSHOP_TAB_HOT), 0); if (this->m_pageCount == 0) { this->DrawWrappedFormattedText(0xF7, 0x1EE, std::string("0 / 0"), 0x2B, 0, 6, 0, 0xC, 0x6B2921, 0); } else { @@ -447,14 +448,14 @@ void UICashShopWnd::Paint() { } if (!g_session.unknown_5912) { - this->DrawCenteredText(0x21A, 0x1B, LookupMessage(0xCD9), 0xB9, 0, 0xE, 0, 1); - this->DrawCenteredText(0x219, 0x1A, LookupMessage(0xCD9), 0xB9, 0, 0xE, 0xFFFFFF, 1); + this->DrawCenteredText(0x21A, 0x1B, LookupMessage(MSI_CASHSHOP_TAB_LIMITED), 0xB9, 0, 0xE, 0, 1); + this->DrawCenteredText(0x219, 0x1A, LookupMessage(MSI_CASHSHOP_TAB_LIMITED), 0xB9, 0, 0xE, 0xFFFFFF, 1); this->DrawRightAlignedText(0x273, 0x33, IntToString(this->unknown_00E8, 0).c_str(), 0, 0, 0xC, 0xFFFFFF, 1); - this->DrawTextAt(0x226, 0x1B2, LookupMessage(0xCE7), 0, 0, 0xC, 0, 0, 0); + this->DrawTextAt(0x226, 0x1B2, LookupMessage(MSI_CASHSHOP_REFRESH), 0, 0, 0xC, 0, 0, 0); this->DrawRightAlignedText(0x2C4, 0x1B2, FormatOwnedString("%d C", this->unknown_00EC).c_str(), 0, 0, 0xC, 0, 0); - this->DrawTextAt(0x226, 0x1C2, LookupMessage(0xCE8), 0, 0, 0xC, 0, 0, 0); + this->DrawTextAt(0x226, 0x1C2, LookupMessage(MSI_STAR_EMPEROR_F), 0, 0, 0xC, 0, 0, 0); this->DrawRightAlignedText(0x2C4, 0x1C2, "C", 0, 0, 0xC, 0, 0); - this->DrawTextAt(0x226, 0x1D2, LookupMessage(0xCE9), 0, 0, 0xC, 0, 0, 0); + this->DrawTextAt(0x226, 0x1D2, LookupMessage(MSI_SOUL_REAPER_F), 0, 0, 0xC, 0, 0, 0); this->DrawRightAlignedText(0x2C4, 0x1D2, FormatOwnedString("%d C", 0).c_str(), 0, 0, 0xC, 0, 0); } else { { @@ -534,9 +535,9 @@ void UICashShopWnd_Item::Paint() { std::string stock; if (this->m_item.unknown_0014[0] == 0) { - stock = FormatOwnedString(LookupMessage(0xF4B)); + stock = FormatOwnedString(LookupMessage(MSI_CASHSHOP_NON_TRADABLE)); } else { - stock = FormatOwnedString(LookupMessage(0xE4B), this->m_item.quantity); + stock = FormatOwnedString(LookupMessage(MSI_MAP_PROPERTY_DISABLE_CALLED), this->m_item.quantity); } this->DrawCenteredOutlinedText(6, 0x22, stock.c_str(), 0x49, 0, 0xFFFFFF, 0, 0, 0xB, 1); @@ -554,7 +555,7 @@ void UICashShopWnd_Item::Paint() { } if (this->m_item.unknown_0014[0] == 0) { - this->DrawTextAt(0x53, 0x4C, LookupMessage(0xF4E), 0, 0, 0xB, 0xFF, 0, 0); + this->DrawTextAt(0x53, 0x4C, LookupMessage(MSI_ZEROQUEST_QUESTVIEW_ON), 0, 0, 0xB, 0xFF, 0, 0); } else { std::string count; if (static_cast(this->m_item.unknown_0078[3]) < 0) { @@ -562,7 +563,7 @@ void UICashShopWnd_Item::Paint() { } else { count = FormatOwnedString("%d/%d", this->m_item.unknown_0078[3], this->m_item.quantity); } - this->DrawTextAt(0x53, 0x4C, LookupMessage(0xE4A), 0, 0, 0xB, 0x6E4B41, 0, 0); + this->DrawTextAt(0x53, 0x4C, LookupMessage(MSI_ACCOUNT_LIMITED_SALE_ITEM_SOLD_OUT), 0, 0, 0xB, 0x6E4B41, 0, 0); this->DrawCenteredOutlinedText(0x53, 0x5B, count.c_str(), 0x51, 0, 0xFFFFFF, 0xD29374, 0, 0x10, 1); } @@ -575,9 +576,9 @@ void UICashShopWnd_Item::Paint() { _time32(&now); const tm startTime = *_localtime32(&start); const tm endTime = *_localtime32(&end); - std::string startText = FormatOwnedString(LookupMessage(0xE49), startTime.tm_mon + 1, startTime.tm_mday, startTime.tm_hour, startTime.tm_min); + std::string startText = FormatOwnedString(LookupMessage(MSI_ACCOUNT_LIMITED_TOOL_RESULT_FORMAT), startTime.tm_mon + 1, startTime.tm_mday, startTime.tm_hour, startTime.tm_min); std::string endText = - FormatOwnedString(LookupMessage(0xFB9), endTime.tm_year + 1900, endTime.tm_mon + 1, endTime.tm_mday, endTime.tm_hour, endTime.tm_min); + FormatOwnedString(LookupMessage(MSI_GUILD_EXP_TRIBUTE), endTime.tm_year + 1900, endTime.tm_mon + 1, endTime.tm_mday, endTime.tm_hour, endTime.tm_min); const char* text = startText.c_str(); const int center = this->geometry.width / 2; @@ -672,9 +673,9 @@ void UICashShopWnd_Banner::ResetCursor(int, int) { // FUNCTION: fn_09551 void UICashShopWnd::OnProcess() { std::string search(this->unknown_00E0->Text()); - if (search.compare(LookupMessage(3302)) != 0) { + if (search.compare(LookupMessage(MSI_CASHSHOP_CASH_POINT)) != 0) { if (search.size() == 0) { - this->unknown_00E0->SetText(LookupMessage(3302)); + this->unknown_00E0->SetText(LookupMessage(MSI_CASHSHOP_CASH_POINT)); this->unknown_00E0->TextColor(0xB1B1B1, 0xFFFFFFFFu); } else { this->unknown_00E0->TextColor(0, 0xFFFFFFFFu); @@ -869,7 +870,7 @@ int UICashShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument if (product != this->m_items.end()) { const int stock = product->unknown_0078[3]; if (stock <= 0) { - g_windowMgr.Confirm(LookupMessage(0xE50), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_HAVE_ITEMTAG), 0, true, false, 0, "Message", 0x118, 0x78, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; @@ -950,7 +951,7 @@ int UICashShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument if (g_session.unknown_5912) { const int owned = lists.GetList0Size() + g_session.CountItems17F0() + g_session.CountItems2B50(); if (g_session.m_weight > g_session.m_maxWeight * 0.7f || cartItems.front().quantity + owned > g_session.unknown_7FBC + 100) { - g_windowMgr.Confirm(LookupMessage(0xBCE), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_ANOTHER_WORKING), 0, true, false, 0, "Message", 0x118, 0x78, 0); return 0; } @@ -961,20 +962,20 @@ int UICashShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument const int points = atoi(this->unknown_00F4->Text()); const int price = this->unknown_00F0; if (price < points) { - g_windowMgr.Confirm(LookupMessage(0x744), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BUY_CASH_FAIL2), 0, true, false, 0, "Message", 0x118, 0x78, 0); return 0; } const int available = this->unknown_00E8 + points; char text[0x800]; if (points > 0) { - FormatMessageBuffer(text, LookupMessage(0xEBC), price - points, points); + FormatMessageBuffer(text, LookupMessage(MSI_CHANGE_MATERIAL_INVSORT), price - points, points); } else { - FormatMessageBuffer(text, LookupMessage(0xEBB), price); + FormatMessageBuffer(text, LookupMessage(MSI_BILLING_INFO_URL), price); } if (this->unknown_00F0 > available) { - g_windowMgr.Confirm(LookupMessage(0x4E6), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BUY_CASH_FAIL_MONEY), 0, true, false, 0, "Message", 0x118, 0x78, 0); return 0; } @@ -1004,7 +1005,7 @@ int UICashShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument return 0; } case ID_CHARGE: - ShellExecuteA(nullptr, "OPEN", LookupMessage(0xCE5), LookupMessage(0xCE5), nullptr, SW_SHOW); + ShellExecuteA(nullptr, "OPEN", LookupMessage(MSI_CASHSHOP_FREE_POINT_TO_USE), LookupMessage(MSI_CASHSHOP_FREE_POINT_TO_USE), nullptr, SW_SHOW); return 0; case ID_PREV_PAGE: this->m_page = std::max(this->m_page - 1, 0); @@ -1016,7 +1017,7 @@ int UICashShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument return 0; case ID_SEARCH: { std::string query(this->unknown_00E0->Text()); - if (query.size() != 0 && strcmp(query.c_str(), LookupMessage(0xCE6)) != 0) { + if (query.size() != 0 && strcmp(query.c_str(), LookupMessage(MSI_CASHSHOP_CASH_POINT)) != 0) { itemLists.ClearItems1784(10); for (int list = 0; list < 11; ++list) { if (list == 10 || list == 8 || list == 9) { @@ -1050,7 +1051,7 @@ int UICashShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument return 0; } - g_windowMgr.Confirm(LookupMessage(0x42D), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NOTHING_SEARCH_ITEM), 0, true, false, 0, "Message", 0x118, 0x78, 0); } return 0; } @@ -1164,7 +1165,7 @@ int UICashShopWnd_Cart::SendMsg(UIWindow* sender, int message, std::intptr_t arg const ITEM_INFO& item = *reinterpret_cast(argument1); int quantity = argument2; if (quantity == 0) { - g_windowMgr.Confirm(LookupMessage(0xE50), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_HAVE_ITEMTAG), 0, true, false, 0, "Message", 0x118, 0x78, 0); return -1; } @@ -1186,7 +1187,7 @@ int UICashShopWnd_Cart::SendMsg(UIWindow* sender, int message, std::intptr_t arg } if (this->m_cartItems.size() >= 8) { - g_windowMgr.Confirm(FormatOwnedString(LookupMessage(0xCF0), 8).c_str(), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(FormatOwnedString(LookupMessage(MSI_USA_LOGINERRORMSG_NOT_USER), 8).c_str(), 0, true, false, 0, "Message", 0x118, 0x78, 0); return -1; } @@ -1194,7 +1195,7 @@ int UICashShopWnd_Cart::SendMsg(UIWindow* sender, int message, std::intptr_t arg const int limit = entry.unknown_0078[3]; if (limit != 0) { if (quantity > limit) { - g_windowMgr.Confirm(FormatOwnedString(LookupMessage(0x9DC), limit).c_str(), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(FormatOwnedString(LookupMessage(MSI_BARGAINSALE_TOOLWND_CALL), limit).c_str(), 0, true, false, 0, "Message", 0x118, 0x78, 0); } if (quantity > limit) { quantity = limit; @@ -1206,7 +1207,7 @@ int UICashShopWnd_Cart::SendMsg(UIWindow* sender, int message, std::intptr_t arg } else { const int limit = it->unknown_0078[3]; if (limit != 0 && it->quantity + quantity > limit) { - g_windowMgr.Confirm(FormatOwnedString(LookupMessage(0x9DC), limit).c_str(), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(FormatOwnedString(LookupMessage(MSI_BARGAINSALE_TOOLWND_CALL), limit).c_str(), 0, true, false, 0, "Message", 0x118, 0x78, 0); quantity = it->unknown_0078[3] - it->quantity; if (quantity == 0) { return -1; @@ -1215,7 +1216,7 @@ int UICashShopWnd_Cart::SendMsg(UIWindow* sender, int message, std::intptr_t arg const int total = it->quantity + quantity; if (total > 100) { - g_windowMgr.Confirm(FormatOwnedString(LookupMessage(0x6A8), 100).c_str(), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(FormatOwnedString(LookupMessage(MSI_LIMIT_BUY_ITEM2), 100).c_str(), 0, true, false, 0, "Message", 0x118, 0x78, 0); it->quantity = 100; } else { it->quantity = total > 0 ? total : 1; @@ -1315,7 +1316,7 @@ int UICashShopWnd_Item::SendMsg(UIWindow* sender, int message, std::intptr_t arg if (argument2 == 9) { if (static_cast(this->m_item.unknown_0078[3]) > 0) { this->m_addButton->Move(0x53, 0x78); - this->m_addButton->SetText(LookupMessage(0x6F3)); + this->m_addButton->SetText(LookupMessage(MSI_BUY)); this->m_addButton->AddTextStyle(0, 0xC, 0, 0, 1, -1000, -1000); this->m_addButton->AddTextStyle(1, 0xC, 0, 0, 1, -1000, -1000); this->m_addButton->AddTextStyle(2, 0xC, 0, 0, 1, -1000, -1000); @@ -1323,7 +1324,7 @@ int UICashShopWnd_Item::SendMsg(UIWindow* sender, int message, std::intptr_t arg this->m_addButton->Move(0x53, 0x78); this->m_addButton->SetDisabled(1); this->m_addButton->Invalidate(); - this->m_addButton->SetText(LookupMessage(0xE4D)); + this->m_addButton->SetText(LookupMessage(MSI_ACCOUNT_LIMITED_SALE_ITEM_DONT_MOVE_CART)); this->m_addButton->AddTextStyle(0, 0xC, 0x313131, 1, 1, -1000, -1000); this->m_addButton->AddTextStyle(1, 0xC, 0x313131, 1, 1, -1000, -1000); this->m_addButton->AddTextStyle(2, 0xC, 0x313131, 1, 1, -1000, -1000); @@ -1331,7 +1332,7 @@ int UICashShopWnd_Item::SendMsg(UIWindow* sender, int message, std::intptr_t arg } } else { this->m_addButton->Move(0x53, 0x55); - this->m_addButton->SetText(LookupMessage(0x6F3)); + this->m_addButton->SetText(LookupMessage(MSI_BUY)); this->m_addButton->AddTextStyle(0, 0xC, 0, 0, 1, -1000, -1000); this->m_addButton->AddTextStyle(1, 0xC, 0, 0, 1, -1000, -1000); this->m_addButton->AddTextStyle(2, 0xC, 0, 0, 1, -1000, -1000); diff --git a/Source/UI/Chat/UIChatRoomMakeWnd.cpp b/Source/UI/Chat/UIChatRoomMakeWnd.cpp index 485e8490a..9b0492b83 100644 --- a/Source/UI/Chat/UIChatRoomMakeWnd.cpp +++ b/Source/UI/Chat/UIChatRoomMakeWnd.cpp @@ -2,16 +2,17 @@ #include "Contents/MessageTable.h" +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x008C7280 // FUNCTION: fn_11929 UIChatRoomMakeWnd::UIChatRoomMakeWnd() : UIFrameWnd(0) { - this->m_title = LookupMessage(125); + this->m_title = LookupMessage(MSI_MAKING_ROOM); } // OFFSET: 0x008C7120 // FUNCTION: fn_11928 UIChatRoomChangeWnd::UIChatRoomChangeWnd() : UIChatRoomMakeWnd() { - this->m_title = LookupMessage(126); + this->m_title = LookupMessage(MSI_CHANGE_ROOM_SETTING); } // OFFSET: 0x008CA5F0 diff --git a/Source/UI/Chat/UIChatRoomTitle.cpp b/Source/UI/Chat/UIChatRoomTitle.cpp index e8757ef6d..fab440ca2 100644 --- a/Source/UI/Chat/UIChatRoomTitle.cpp +++ b/Source/UI/Chat/UIChatRoomTitle.cpp @@ -13,6 +13,7 @@ #include "UI/Window/UINewSelectCharWnd.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -119,13 +120,13 @@ int UIChatRoomTitle::SendMsg(UIWindow* sender, int message, std::intptr_t a, std std::string status; char text[384]; if (this->roomType == 0) { - status = LookupMessage(89); + status = LookupMessage(MSI_ROOM_PRIVATE); std::sprintf(text, "%s (%d/%d)", this->title.c_str(), this->memberCount, this->memberLimit); } else if (this->roomType == 3) { status.clear(); std::sprintf(text, "%s", this->title.c_str()); } else { - status = LookupMessage(90); + status = LookupMessage(MSI_ROOM_PUBLIC); std::sprintf(text, "%s (%d/%d)", this->title.c_str(), this->memberCount, this->memberLimit); } diff --git a/Source/UI/Chat/UINewChatWnd.cpp b/Source/UI/Chat/UINewChatWnd.cpp index 6ff272bdf..d8ebcaea7 100644 --- a/Source/UI/Chat/UINewChatWnd.cpp +++ b/Source/UI/Chat/UINewChatWnd.cpp @@ -26,6 +26,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -128,7 +129,7 @@ int UINewChatWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i if (this->TextWidth(found->second.name.c_str(), 0, 0, 12, 0, 0) * (count + 1) > this->geometry.width - 0x5A) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x6F0)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_OVER_TABSIZE)), 0xFF, 0, 0, 0); g_windowMgr.Promote(sender); return 0; } @@ -380,11 +381,11 @@ int UINewChatWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i g_windowMgr.CloseWindow(WID_COMBOBOXWND); } UIWindow* menu = g_windowMgr.EnsureWindow(WID_COMBOBOXWND); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x55)), 0, 0, 0); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x56)), 0, 0, 0); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x1B5)), 0, 0, 0); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0x939)), 0, 0, 0); - menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(0xFC0)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_SEND_TO_ALL)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_SEND_TO_PARTY)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_SEND_TO_GUILD)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_CLAN_MANAGE_LAND)), 0, 0, 0); + menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(LookupMessage(MSI_REFINING_IMPOSSIBLE)), 0, 0, 0); menu->SendMsg(nullptr, UM_SETCURITEM, *reinterpret_cast(&g_session.unknown_5490[0x8]), 0, 0, 0); menu->Resize(0x70, 0x30); menu->SendMsg(nullptr, UM_SET_CALLER_WID, 1, 0, 0, 0); @@ -402,7 +403,7 @@ int UINewChatWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i const int count = static_cast(static_cast(this->unknown_00C0)->history.size()); if (count == 0) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xC0)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOWHISPERLIST)), 0xFF, 0, 0, 0); return 0; } @@ -458,7 +459,7 @@ int UINewChatWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i if (rejected) { static_cast(this->m_chatEdit)->SetText(""); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBE2)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CLOSE)), 0xFF, 0, 0, 0); return 0; } @@ -472,7 +473,7 @@ int UINewChatWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i } if (g_serviceType == 1 && !ValidateCharacterName(buffer)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBE)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENGLISHONLY)), 0xFF, 0, 0, 0); return 0; } @@ -492,7 +493,7 @@ int UINewChatWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i if (talkType == 0x37 || talkType == 0x1A || talkType == 0x12) { if (_mbsstr(reinterpret_cast(buffer), reinterpret_cast(s_chatItemLinkOpening.c_str())) != nullptr || _mbsstr(reinterpret_cast(buffer), reinterpret_cast(s_itemLinkClosing.c_str())) != nullptr) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xAFC)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_STYLING_SHOP_OPEN_COUPON)), 0x64FFFF, 0, 0, 0); return 0; } } @@ -510,7 +511,7 @@ int UINewChatWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i int subCount = static_cast(g_session.m_subChatWnds.size()); const int total = noSubCount + subCount; if (total == this->unknown_0110) { - g_windowMgr.Confirm(LookupMessage(0x62A), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_FAILED_ADD_TAB), 0, true, false, 0, "Message", 0x118, 0x78, 0); return 0; } diff --git a/Source/UI/Clan/UIClanWnd.cpp b/Source/UI/Clan/UIClanWnd.cpp index 39f63b7a5..4a50f9ba4 100644 --- a/Source/UI/Clan/UIClanWnd.cpp +++ b/Source/UI/Clan/UIClanWnd.cpp @@ -14,6 +14,7 @@ #include "UI/Text/UIStaticText.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -32,7 +33,7 @@ int UIClanInfoManageWnd::Tab() { // FUNCTION: fn_10629 void UIClanInfoManageWnd::OnCreate(int width, int height) { if (!this->m_title) { - const char* title = LookupMessage(2355); + const char* title = LookupMessage(MSI_CLAN_MARK); this->m_title = new UIStaticText(); this->m_title->SetSize(62, 15); this->m_title->SetTextFitted(title); @@ -56,13 +57,13 @@ void UIClanInfoManageWnd::Paint() { UIClanWnd::Paint(); char text[1024]; std::memset(text, 0, sizeof(text)); - std::sprintf(text, "%s : %s", LookupMessage(2357), g_clanInfo->m_clanName.c_str()); + std::sprintf(text, "%s : %s", LookupMessage(MSI_HOSTILITY_CLAN), g_clanInfo->m_clanName.c_str()); this->DrawTextAt(8, 49, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, "%s : %d", LookupMessage(2356), g_clanInfo->unknown_0034); + std::sprintf(text, "%s : %d", LookupMessage(MSI_ALLY_CLAN), g_clanInfo->unknown_0034); this->DrawTextAt(8, 65, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, "%s : %s", LookupMessage(2362), g_clanInfo->m_masterName.c_str()); + std::sprintf(text, "%s : %s", LookupMessage(MSI_VIEW_CLAN_MSG), g_clanInfo->m_masterName.c_str()); this->DrawTextAt(8, 81, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, "%s : ", LookupMessage(2363)); + std::sprintf(text, "%s : ", LookupMessage(MSI_TWWEB_WARRING)); this->DrawTextAt(8, 97, text, 0, 0, 12, 0, 0, 0); std::sprintf(text, "%s", "유저인터페이스\\basic_interface\\grp_online.bmp"); CBitmapRes* bitmap = static_cast(ResourceMgr::Instance().Load(Resolve(text))); @@ -76,7 +77,7 @@ void UIClanInfoManageWnd::Paint() { map.replace(map.find(".gat"), 4, ".rsw"); } map = g_mapInfoMgr->GetDisplayName(std::string(map.c_str())); - std::sprintf(text, "%s : %s", LookupMessage(2364), map.c_str()); + std::sprintf(text, "%s : %s", LookupMessage(MSI_TWWEB_URL), map.c_str()); this->DrawTextAt(8, 113, text, 0, 0, 12, 0, 0, 0); } @@ -94,7 +95,7 @@ void UIClanInfoManageWnd::Paint() { this->DrawBitmap(50, 145, bitmap, true); } - std::sprintf(text, "%s", LookupMessage(2358)); + std::sprintf(text, "%s", LookupMessage(MSI_SEND_TO_CLAN)); this->DrawTextAt(200, 65, text, 0, 0, 12, 0, 0, 0); unsigned red, green, blue; SkinPaletteChannels(ResourceMgr::Instance(), 6, 2, red, green, blue); @@ -102,9 +103,9 @@ void UIClanInfoManageWnd::Paint() { if (g_clanInfo->m_clanId != 0) { this->DrawBitmap(280, 65, this->m_emblem ? &this->m_emblem->image : nullptr, true); } - std::sprintf(text, "%s", LookupMessage(2359)); + std::sprintf(text, "%s", LookupMessage(MSI_CLAN_MASTER_NAME)); this->DrawTextAt(200, 139, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, "%s", LookupMessage(2360)); + std::sprintf(text, "%s", LookupMessage(MSI_CLAN_NUM_MEMBER)); this->DrawTextAt(200, 213, text, 0, 0, 12, 0, 0, 0); SkinPaletteChannels(ResourceMgr::Instance(), 14, 6, red, green, blue); diff --git a/Source/UI/Dialogs/UIEditctrlWnd.cpp b/Source/UI/Dialogs/UIEditctrlWnd.cpp index 2073bb160..278bce873 100644 --- a/Source/UI/Dialogs/UIEditctrlWnd.cpp +++ b/Source/UI/Dialogs/UIEditctrlWnd.cpp @@ -28,6 +28,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -154,8 +155,8 @@ int UIMiniMapWnd::LoadMemos() { // OFFSET: 0x0099C090 // FUNCTION: fn_13556 void UIEditctrlWnd::OnCreate(int, int) { - this->AddCloseButton(LookupMessage(2741), 0); - this->AddNumberedButton(184, 205, 19, "minimap\\memo_ok", LookupMessage(2754), true); + this->AddCloseButton(LookupMessage(MSI_MINIMAP_MSG_04), 0); + this->AddNumberedButton(184, 205, 19, "minimap\\memo_ok", LookupMessage(MSI_EA8), true); this->edit = new UIEditCtrl(); this->edit->SetSize(200, 18); @@ -164,7 +165,7 @@ void UIEditctrlWnd::OnCreate(int, int) { this->edit->Background(232, 232, 232); this->edit->Border(200, 100, 100); this->edit->flat = 0; - const char* tooltip = LookupMessage(2753); + const char* tooltip = LookupMessage(MSI_EA7); if (tooltip) { this->edit->tooltip = tooltip; } @@ -188,13 +189,13 @@ void UIMiniMapWnd::OnCreate(int width, int height) { this->originY = 531.0f - margin; } - this->unknown_011C = this->AddCheckBox(361, 100, 12, LookupMessage(2742), 20, bottom - 19, 1, LookupMessage(2743)); - this->unknown_0120 = this->AddCheckBox(194, 100, 12, LookupMessage(2744), 120, bottom - 19, 1, LookupMessage(2745)); - this->unknown_0124 = this->AddCheckBox(373, 100, 12, LookupMessage(2746), 220, bottom - 19, 1, LookupMessage(2747)); - this->AddCloseButton(LookupMessage(2741), 0); - this->AddNumberedButton(356, this->geometry.width - 120, bottom - 23, "minimap\\memo_ready", LookupMessage(2748), true); + this->unknown_011C = this->AddCheckBox(361, 100, 12, LookupMessage(MSI_MINIMAP_MSG_05), 20, bottom - 19, 1, LookupMessage(MSI_MINIMAP_MSG_06)); + this->unknown_0120 = this->AddCheckBox(194, 100, 12, LookupMessage(MSI_MINIMAP_MSG_07), 120, bottom - 19, 1, LookupMessage(MSI_MINIMAP_MSG_08)); + this->unknown_0124 = this->AddCheckBox(373, 100, 12, LookupMessage(MSI_MINIMAP_MSG_09), 220, bottom - 19, 1, LookupMessage(MSI_MINIMAP_MSG_10)); + this->AddCloseButton(LookupMessage(MSI_MINIMAP_MSG_04), 0); + this->AddNumberedButton(356, this->geometry.width - 120, bottom - 23, "minimap\\memo_ready", LookupMessage(MSI_MINIMAP_MSG_11), true); this->AddTownMarks(); - this->unknown_012C = this->AddNumberedButton(205, -100, -100, "minimap\\boss", LookupMessage(2749), true); + this->unknown_012C = this->AddNumberedButton(205, -100, -100, "minimap\\boss", LookupMessage(MSI_MINIMAP_MSG_12), true); static_cast(g_modeMgr.GetGameMode())->ResendMinimapMarkers(); for (int index = 0; index < 20; ++index) { this->memoButtons[index] = this->AddNumberedButton(index + 601, -100, -100, "minimap\\memopoint", nullptr, true); @@ -207,7 +208,7 @@ void UIMiniMapWnd::OnCreate(int width, int height) { this->m_playerHead->unknown_00BC = 0; this->m_playerHead->unknown_00C0 = 0; this->m_playerHead->unknown_00C4 = 0; - this->m_playerHead->SetTooltip(LookupMessage(2750)); + this->m_playerHead->SetTooltip(LookupMessage(MSI_MINIMAP_MSG_13)); this->m_playerHead->SetId(200); this->AddChild(this->m_playerHead); } @@ -216,7 +217,7 @@ void UIMiniMapWnd::OnCreate(int width, int height) { // FUNCTION: fn_13558 void UIEditctrlWnd::Paint() { this->ClearSurface(0xFFFFFFFF); - this->DrawTitleBar(true, LookupMessage(2755), 0); + this->DrawTitleBar(true, LookupMessage(MSI_EA9), 0); } // OFFSET: 0x0099C820 @@ -406,7 +407,7 @@ int UIMiniMapWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1 return 0; default: if (argument1 >= 601 && argument1 < 621) { - if (g_windowMgr.Confirm(LookupMessage(2751), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_MINIMAP_MSG_14), 2, true, false, 0, "Message", 280, 120, 0) == 187) { this->memoButtons[argument1 - 601]->SetTooltip(""); this->memoButtons[argument1 - 601]->Move(-100, -100); @@ -510,7 +511,7 @@ int UIMiniMapWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1 button->SetBitmap(name.c_str(), 2, 0); button->SetSize(button->BitmapWidth(), button->BitmapHeight()); button->SetId(id); - button->SetTooltip(LookupMessage(2752)); + button->SetTooltip(LookupMessage(MSI_MINIMAP_MSG_15)); button->Move(static_cast(static_cast(argument3) * this->scale - 6.0f + this->originX), static_cast(this->originY - (static_cast(argument4) * this->scale + 6.0f))); this->AddChild(button); diff --git a/Source/UI/Dialogs/UIPasswordWnd.cpp b/Source/UI/Dialogs/UIPasswordWnd.cpp index f0393dca2..093d7fc21 100644 --- a/Source/UI/Dialogs/UIPasswordWnd.cpp +++ b/Source/UI/Dialogs/UIPasswordWnd.cpp @@ -7,6 +7,7 @@ #include "UI/Buttons/UIButton.h" #include "UI/Text/UIStaticText.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -20,7 +21,7 @@ UIPasswordWnd::UIPasswordWnd() : UIItemDropCntWnd() {} void UISecondPasswordInputWnd::SetInputMode(int value) { this->unknown_011C = value; if (value == 0) { - this->unknown_0164->SetText(LookupMessage(0xa06), 0); + this->unknown_0164->SetText(LookupMessage(MSI_PET_EVOLUTION_NEED_ITEM), 0); } } @@ -115,13 +116,13 @@ void UISecondPasswordInputWnd::CreateKeypad(unsigned int seed) { this->unknown_0164 = new UIStaticText(); this->unknown_0164->SetSize(300, 15); - this->unknown_0164->SetText(LookupMessage(0x771), 0); + this->unknown_0164->SetText(LookupMessage(MSI_SECOND_PASSWORD_INFO_1), 0); this->unknown_0164->Move(200, 30); this->AddChild(this->unknown_0164); UIStaticText* notice = new UIStaticText(); notice->SetSize(320, 15); - notice->SetText(LookupMessage(0x772), 0); + notice->SetText(LookupMessage(MSI_SECOND_PASSWORD_INFO_2), 0); notice->Move(200, 50); this->AddChild(notice); } diff --git a/Source/UI/Edit/UIEditCtrl.cpp b/Source/UI/Edit/UIEditCtrl.cpp index 902faf292..76ac230c0 100644 --- a/Source/UI/Edit/UIEditCtrl.cpp +++ b/Source/UI/Edit/UIEditCtrl.cpp @@ -119,6 +119,7 @@ #include "UI/UIBartermarketWnd.h" #include "UI/Edit/UIEditPaint.inl" +#include "Resource/MSGSTRINGID.h" // GLOBAL: gl_24653 int g_skillTooltipActive; @@ -1010,14 +1011,14 @@ void UIItemStoreWnd::DragAndDrop(int x, int y, std::intptr_t value) { if (g_unknown_01738268) { if (g_unknown_01738270 == 1) { std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(0x9C2)); + std::sprintf(text, LookupMessage(MSI_GUILD_STORAGE_PERMISSON_WARNING_MSG)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); return; } if (!g_unknown_0173826C && !g_unknown_01738270) { std::memset(text, 0, 250); - std::sprintf(text, LookupMessage(0x9C5)); + std::sprintf(text, LookupMessage(MSI_BARGAINSALE_TOOLWND_DB_NUMBER)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); return; } @@ -1241,7 +1242,7 @@ void UIItemWnd::OnRBtnDown(int x, int y) { const int magnifiers = LookupClientItem(g_session.m_inventoryItems, 611, 0).quantity + LookupClientItem(g_session.m_inventoryItems, 12325, 0).quantity; if (magnifiers <= 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2735)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_UISCRIPT_ERROR_GUIDE)), 255, 0, 0, 0); } if (this->unknown_010C == 1 && !item.identified) { @@ -1498,7 +1499,7 @@ int UIMerchantItemMyShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_ } if (a == ID_CLOSE_OFFLINE_STORE && - g_windowMgr.Confirm(LookupMessage(2926), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + g_windowMgr.Confirm(LookupMessage(MSI_LIMIT_USER_MSG), 2, true, false, 0, "Message", 280, 120, 0) == 187) { mode->SendMsg(MM_CLOSE_OFFLINE_STORE, this->unknown_010C, 0, 0, 0); mode->SendMsg(MM_RELEASE_QUEST, 0, 0, 0, 0); if (this->unknown_0100 == 1) { @@ -1527,7 +1528,7 @@ int UIMerchantItemMyShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case UM_SET_BUYING_SHOP_ZENY: { char grouped[80]; char text[80]; - std::sprintf(text, LookupMessage(1735), FormatGroupedInteger(static_cast(a), grouped, 80)); + std::sprintf(text, LookupMessage(MSI_BUYINGSTORE_MYSHOPWND_LIMITZENY), FormatGroupedInteger(static_cast(a), grouped, 80)); this->notice->SetTextAutoWidth(text); this->notice->Move(12, this->geometry.height - 26); this->unknown_00F0 = static_cast(a); @@ -1621,7 +1622,7 @@ int UIItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s if (g_session.GetItem1720QuantityByItemId(drag.name.c_str())) { mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(119)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EQUIPITEM_OLNY_ONE)), 0xFF, 0, 0, 0); return 0; } break; @@ -1652,7 +1653,7 @@ int UIItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s if (owned + item.quantity > 30000) { item.quantity += 30000 - (owned + item.quantity); char text[200]; - std::sprintf(text, LookupMessage(1704), 30000); + std::sprintf(text, LookupMessage(MSI_LIMIT_BUY_ITEM2), 30000); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); } @@ -1700,12 +1701,12 @@ int UIItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s const int total = g_session.GetItem1720Total(); if (g_pendingGid + g_pendingAid < total) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1254)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BUY_CASH_FAIL_MONEY)), 0xFF, 0, 0, 0); break; } if (amount == 0 && g_pendingAid < total) { - if (g_windowMgr.Confirm(LookupMessage(1329), 0, true, false, 0, "Message", 280, 120, 0)) { + if (g_windowMgr.Confirm(LookupMessage(MSI_BUY_TO_FREE_POINT), 0, true, false, 0, "Message", 280, 120, 0)) { break; } } @@ -1713,9 +1714,9 @@ int UIItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s std::string confirm; const int price = g_session.GetItem1720Total(); if (amount > 0) { - confirm = FormatOwnedString(LookupMessage(3772), price - amount, amount); + confirm = FormatOwnedString(LookupMessage(MSI_CHANGE_MATERIAL_INVSORT), price - amount, amount); } else { - confirm = FormatOwnedString(LookupMessage(3771), price); + confirm = FormatOwnedString(LookupMessage(MSI_BILLING_INFO_URL), price); } if (g_windowMgr.Confirm(confirm.c_str(), 2, true, true, 0, "Message", 280, 120, 0) == 187) { @@ -1923,7 +1924,7 @@ int UIItemDropCntWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, st } if (quantity >= 30000) { char text[200]; - std::sprintf(text, LookupMessage(1704), 30000); + std::sprintf(text, LookupMessage(MSI_LIMIT_BUY_ITEM2), 30000); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); } @@ -2209,7 +2210,7 @@ int UIItemDropCntWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, st goto stall; } } - g_windowMgr.Confirm(FormatOwnedString(LookupMessage(1704), 100).c_str(), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(FormatOwnedString(LookupMessage(MSI_LIMIT_BUY_ITEM2), 100).c_str(), 0, true, false, 0, "Message", 280, 120, 0); break; case 20: { const int current = mode->drag.quantity; @@ -2235,7 +2236,7 @@ int UIItemDropCntWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, st } if (quantity >= 30000) { char text[200] = {}; - sprintf_s(text, sizeof(text), LookupMessage(1704), 30000); + sprintf_s(text, sizeof(text), LookupMessage(MSI_LIMIT_BUY_ITEM2), 30000); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); } @@ -2349,7 +2350,7 @@ int UIItemDropCntWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, st break; tooMany: g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(807)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_LIMIT_BUY_ITEM)), 0xFF, 0, 0, 0); invalid: mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); break; @@ -2375,10 +2376,10 @@ void UIMerchantShopMakeWnd::OnCreate(int width, int height) { int count; if (this->mode != 0) { count = g_session.m_buyingStoreSlotCount; - this->unknown_00B4 = LookupMessage(1720); + this->unknown_00B4 = LookupMessage(MSI_BUYINGSTORE_MAKEWND_TITLE); } else { count = g_session.m_vendingSlotCount; - this->unknown_00B4 = LookupMessage(224); + this->unknown_00B4 = LookupMessage(MSI_MERCHANTSHOPMAKER); } this->unknown_00CC = new UIEditCtrl(); @@ -2438,7 +2439,7 @@ void UIMerchantShopMakeWnd::OnCreate(int width, int height) { } if (this->mode != 0) { - const int labelWidth = this->TextWidth(LookupMessage(1723), 0, 0, 12, 0, 0); + const int labelWidth = this->TextWidth(LookupMessage(MSI_BUYINGSTORE_MAKEWND_LIMITZENY), 0, 0, 12, 0, 0); this->unknown_0128 = new UIEditCtrlWheel(); this->unknown_0128->Move(labelWidth + 10, this->geometry.height - 17); this->unknown_0128->SetSize(94, 16); @@ -2473,7 +2474,7 @@ void UIMerchantShopMakeWnd::OnCreate(int width, int height) { UICheckBox* notice = new UICheckBox(); this->notice = notice; notice->SetSize(140, 12); - notice->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(2479)); + notice->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_QUEST_INFO_01)); notice->FitToText(); notice->Move(12, this->geometry.height - 20); notice->SetChecked(g_session.unknown_5C00[1]); @@ -2616,20 +2617,20 @@ void UIMerchantItemMyShopWnd::Paint() { if (this->unknown_0100 == 1) { if (remaining <= 60000) { - this->DrawTextAt(12, this->geometry.height - 42, FormatOwnedString(LookupMessage(2927), days, hours, minutes, seconds).c_str(), 0, + this->DrawTextAt(12, this->geometry.height - 42, FormatOwnedString(LookupMessage(MSI_SELECT_SHOP_POSITION), days, hours, minutes, seconds).c_str(), 0, 0, 11, 0xFF, 1, 0 ); } else { - this->DrawTextAt(12, this->geometry.height - 42, FormatOwnedString(LookupMessage(2927), days, hours, minutes, seconds).c_str(), 0, + this->DrawTextAt(12, this->geometry.height - 42, FormatOwnedString(LookupMessage(MSI_SELECT_SHOP_POSITION), days, hours, minutes, seconds).c_str(), 0, 0, 11, 0, 1, 0 ); } } else if (remaining <= 60000) { - this->DrawTextAt(20, this->geometry.height - 50, FormatOwnedString(LookupMessage(2927), days, hours, minutes, seconds).c_str(), 0, 0, + this->DrawTextAt(20, this->geometry.height - 50, FormatOwnedString(LookupMessage(MSI_SELECT_SHOP_POSITION), days, hours, minutes, seconds).c_str(), 0, 0, 12, 0xFF, 1, 0 ); } else { - this->DrawTextAt(20, this->geometry.height - 50, FormatOwnedString(LookupMessage(2927), days, hours, minutes, seconds).c_str(), 0, 0, + this->DrawTextAt(20, this->geometry.height - 50, FormatOwnedString(LookupMessage(MSI_SELECT_SHOP_POSITION), days, hours, minutes, seconds).c_str(), 0, 0, 12, 0, 1, 0 ); } @@ -2642,7 +2643,7 @@ void UIMerchantItemMyShopWnd::Paint() { void UIMerchantItemPurchaseMSGWnd::OnCreate(int, int) { this->title = new UIStaticText(); this->title->SetSize(100, 15); - this->title->SetTextFitted(LookupMessage(2326)); + this->title->SetTextFitted(LookupMessage(MSI_SHOP_ITEM_BAY_MAG3)); this->title->Move(16, 2); this->title->shadow = 1; this->AddChild(this->title); @@ -2667,7 +2668,7 @@ void UIMerchantItemPurchaseMSGWnd::OnCreate(int, int) { this->firstLine = new UIStaticText(); this->firstLine->SetSize(200, 15); - this->firstLine->SetText(LookupMessage(2327), 0); + this->firstLine->SetText(LookupMessage(MSI_BASIC_EXP_MSG2), 0); this->firstLine->Move(10, 20); this->AddChild(this->firstLine); @@ -2678,7 +2679,7 @@ void UIMerchantItemPurchaseMSGWnd::OnCreate(int, int) { this->thirdLine = new UIStaticText(); this->thirdLine->SetSize(200, 15); - this->thirdLine->SetText(LookupMessage(2329), 0); + this->thirdLine->SetText(LookupMessage(MSI_PERSONAL_INFORMATION_MSG_CHN), 0); this->thirdLine->Move(10, 60); this->AddChild(this->thirdLine); } @@ -2722,7 +2723,7 @@ void UIMerchantItemWnd::Paint() { void UINoticeMessageBox_LockSellItem::Paint() { auto* background = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\inventory\\popup_itemDeal_lock.bmp"))); this->DrawBitmap(0, 0, background, false); - this->DrawCenteredText(0, 5, LookupMessage(2951), this->geometry.width, 0, 12, 0xFFFFFF, 0); + this->DrawCenteredText(0, 5, LookupMessage(MSI_CONNECT_SNS_WHOLE_SCREEN_SHOT), this->geometry.width, 0, 12, 0xFFFFFF, 0); } // OFFSET: 0x00983550 @@ -2781,12 +2782,12 @@ void UISkillListWnd::Paint() { this->FillRegion(72, 17, slotColumns * 32 - 32, slotRows * 32, RGB(red, green, fillBlue)); if (this->skillTab == 0) { - this->DrawTextAt(17, 4, LookupMessage(0x3A9), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(16, 3, LookupMessage(0x3A9), 0, 0, 12, 0, 0, 0); - std::sprintf(text, LookupMessage(0x11C), *reinterpret_cast(g_session.unknown_1664)); + this->DrawTextAt(17, 4, LookupMessage(MSI_HOMUN_SKILLLIST), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(16, 3, LookupMessage(MSI_HOMUN_SKILLLIST), 0, 0, 12, 0, 0, 0); + std::sprintf(text, LookupMessage(MSI_SKILLPOINT), *reinterpret_cast(g_session.unknown_1664)); } else if (this->skillTab == 1) { - this->DrawTextAt(17, 4, LookupMessage(0x4EE), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(16, 3, LookupMessage(0x4EE), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(17, 4, LookupMessage(MSI_MER_SKILLLIST), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(16, 3, LookupMessage(MSI_MER_SKILLLIST), 0, 0, 12, 0, 0, 0); } if (this->skillTab != 1) { @@ -2849,7 +2850,7 @@ void UISkillListWnd::Paint() { this->DrawTextAt(levelX + x, top + 34, text, 0, 0, 12, 0, 0, 0); if (it->unknown_000C == 0) { - std::sprintf(text, LookupMessage(0x11E)); + std::sprintf(text, LookupMessage(MSI_PASSIVE)); } else { int sp = static_cast(it->unknown_0014); if (CSkillInfo::UsesLevel(*g_session.m_hotkeyScript, static_cast(it->id))) { @@ -2953,7 +2954,7 @@ void UIItemWnd::OnLBtnDblClk(int x, int y) { case 1: case 2: if (item.GetItemId() == 12802 && - g_windowMgr.Confirm(LookupMessage(2373), 2, false, false, 0, "Message", 280, 120, 0) == 188) { + g_windowMgr.Confirm(LookupMessage(MSI_COMMAND_SETTING), 2, false, false, 0, "Message", 280, 120, 0) == 188) { break; } mode->SendMsg(MM_USEITEM, static_cast(item.unknown_0000[1]), 0, 0, 0); @@ -2961,7 +2962,7 @@ void UIItemWnd::OnLBtnDblClk(int x, int y) { case 18: if (*reinterpret_cast(&g_session.unknown_16F4[4]) >= 0) { if (g_windowMgr - .Confirm(FormatOwnedString(LookupMessage(1226), item.DisplayName(0).c_str()).c_str(), 2, false, false, 0, "Message", 280, 120, 0) == 187) { + .Confirm(FormatOwnedString(LookupMessage(MSI_CONFIRM_TO_OPEN_CASH_ITEM), item.DisplayName(0).c_str()).c_str(), 2, false, false, 0, "Message", 280, 120, 0) == 187) { mode->SendMsg(MM_USEITEM, static_cast(item.unknown_0000[1]), 0, 0, 0); } } @@ -3110,7 +3111,7 @@ void UIMerchantShopMakeWnd::OnProcess() { char text[24]; std::sprintf(text, "%s ", edit->Text()); if (!g_session.IsNumberWithCommas(text)) { - g_windowMgr.Confirm(LookupMessage(602), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CAN_INPUT_NUMBER_ONLY), 0, true, false, 0, "Message", 280, 120, 0); edit->SetText(this->unknown_0170.c_str()); g_windowMgr.SetFocus(edit); return; @@ -3120,7 +3121,7 @@ void UIMerchantShopMakeWnd::OnProcess() { if (price < 0) { price = 0; } else if (price > 1000000000) { - const int result = g_windowMgr.Confirm(LookupMessage(2467), 2, true, false, 0, "Message", 280, 120, 0); + const int result = g_windowMgr.Confirm(LookupMessage(MSI_BASIC_EXP_MSG_INDONESIA), 2, true, false, 0, "Message", 280, 120, 0); price = 1000000000; if (result == 187) { edit->SetText(_itoa(1000000000, text, 10)); @@ -3512,9 +3513,9 @@ void UIMerchantShopMakeWnd::SendShopRequest() { // FUNCTION: fn_13306 void UIMerchantShopMakeWnd::AddActionButton() { this->unknown_0168 = new UIBasicButton(); - this->unknown_0168->Configure(60, LookupMessage(3637)); + this->unknown_0168->Configure(60, LookupMessage(MSI_GUILD_AGIT_AGIT_MESSAGE)); this->unknown_0168->Move(this->geometry.width - 156, this->geometry.height - 24); - this->unknown_0168->SetTooltip(LookupMessage(3638)); + this->unknown_0168->SetTooltip(LookupMessage(MSI_WARNING_UNDER_AGE_MSG1)); this->unknown_0168->SetId(560); this->AddChild(this->unknown_0168); } @@ -3724,7 +3725,7 @@ void UIMerchantShopMakeWnd::SetSuspended(unsigned char suspend) { this->suspended = 1; this->Show(0); window->Show(0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2930)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_STORE_ASSISTANT_TRADE_ITEM)), 0xFFFF, 0, 0, 0); return; } @@ -3759,7 +3760,7 @@ void UIMerchantItemMyShopWnd::OpenShop() { this->shopOpen = 1; if (!this->actionButton) { this->actionButton = new UIBasicButton(); - this->actionButton->Configure(42, LookupMessage(2925)); + this->actionButton->Configure(42, LookupMessage(MSI_LIMIT_USER)); this->actionButton->Move(this->geometry.width - this->actionButton->geometry.width - 66, this->geometry.height - 24); this->actionButton->SetId(506); this->AddChild(this->actionButton); @@ -3968,7 +3969,7 @@ int UIMerchantShopMakeWnd::CommitPrice(int next) { char text[24]; std::sprintf(text, "%s ", edit->Text()); if (!g_session.IsNumberWithCommas(text)) { - g_windowMgr.Confirm(LookupMessage(602), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CAN_INPUT_NUMBER_ONLY), 0, true, false, 0, "Message", 280, 120, 0); edit->SetText("0"); g_windowMgr.SetFocus(edit); edit->SelectAll(); @@ -3979,7 +3980,7 @@ int UIMerchantShopMakeWnd::CommitPrice(int next) { if (price <= 0x7FFFFFFF && price < 0) { price = 0; } else if (price > 0x7FFFFFFF || price > 1000000000) { - if (g_windowMgr.Confirm(LookupMessage(2467), 2, true, false, 0, "Message", 280, 120, 0) != 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_BASIC_EXP_MSG_INDONESIA), 2, true, false, 0, "Message", 280, 120, 0) != 187) { edit->SetText("0"); g_windowMgr.SetFocus(edit); edit->SelectAll(); @@ -3991,24 +3992,24 @@ int UIMerchantShopMakeWnd::CommitPrice(int next) { this->Invalidate(); } - if (price >= std::atoi(LookupMessage(2476))) { + if (price >= std::atoi(LookupMessage(MSI_WARNING_PRICE7))) { ITEM_INFO item = g_session.GetItem1768At(this->editIndex); char name[128]; int capacity = 128; item.GetIdDisplayName(name, capacity, 0); - std::string message = FormatOwnedString(LookupMessage(2473), name); + std::string message = FormatOwnedString(LookupMessage(MSI_WARNING_PRICE4), name); - const int high = static_cast(price / std::atoi(LookupMessage(2474))); + const int high = static_cast(price / std::atoi(LookupMessage(MSI_WARNING_PRICE5))); if (high > 0) { - message += FormatOwnedString(LookupMessage(2475), high); + message += FormatOwnedString(LookupMessage(MSI_WARNING_PRICE6), high); } - const int low = static_cast(price % std::atoi(LookupMessage(2474))) / std::atoi(LookupMessage(2476)); + const int low = static_cast(price % std::atoi(LookupMessage(MSI_WARNING_PRICE5))) / std::atoi(LookupMessage(MSI_WARNING_PRICE7)); if (low > 0) { - message += FormatOwnedString(LookupMessage(2477), low); + message += FormatOwnedString(LookupMessage(MSI_AMERICA_CASHSHOP_URL), low); } - message += std::string(LookupMessage(2478)); + message += std::string(LookupMessage(MSI_AMERICA_CASHSHOP_URL_STEAM)); if (g_windowMgr.Confirm(message.c_str(), 2, true, false, 0, "Message", 280, 120, 0) != 187) { edit->SetText("0"); g_windowMgr.SetFocus(edit); @@ -4071,7 +4072,7 @@ void UIMerchantShopMakeWnd::PrintBuyList() { std::sprintf(quantity, "%s", FormatGroupedInteger(std::atoi(text), grouped, 32)); } - std::sprintf(line, LookupMessage(1732), name, price, quantity); + std::sprintf(line, LookupMessage(MSI_BUYINGSTORE_MAKEWND_ITEMLIST), name, price, quantity); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(line), 0x5AFFFF, 0, 0, 0); const std::string notice = FormatOwnedString("Commission : 1 EA = %s Zeny", FormatGroupedInteger(commission, line, 256)); @@ -4230,7 +4231,7 @@ void UIMerchantItemShopWnd::OnCreate(int width, int height) { this->notice = new UIStaticText(); this->notice->SetSize(160, 15); char text[80]; - std::sprintf(text, LookupMessage(1735), 0); + std::sprintf(text, LookupMessage(MSI_BUYINGSTORE_MYSHOPWND_LIMITZENY), 0); this->notice->SetTextAutoWidth(text); this->notice->Move(12, this->geometry.height - 21); this->AddChild(this->notice); @@ -4596,7 +4597,7 @@ void UIItemSellWnd2::OnCreate(int width, int height) { UIStaticText* title = new UIStaticText(); title->SetSize(90, 15); - title->SetText(LookupMessage(1569), 0); + title->SetText(LookupMessage(MSI_ITEMS_FOR_CHANGE), 0); title->Move(16, 2); title->shadow = 1; this->AddChild(title); @@ -4648,7 +4649,7 @@ void UIItemSellWnd::OnCreate(int width, int height) { UIStaticText* title = new UIStaticText(); title->SetSize(90, 15); - title->SetText(LookupMessage(168), 0); + title->SetText(LookupMessage(MSI_ITEMS_FOR_SELL), 0); title->Move(16, 2); title->shadow = 1; this->AddChild(title); @@ -4692,7 +4693,7 @@ void UIItemSellWnd::OnCreate(int width, int height) { void UIItemShopWnd2::OnCreate(int width, int height) { this->title = new UIStaticText(); this->title->SetSize(70, 15); - this->title->SetText(LookupMessage(167), 0); + this->title->SetText(LookupMessage(MSI_ITEM_STORE), 0); this->title->Move(16, 2); this->title->shadow = 1; this->AddChild(this->title); @@ -4707,7 +4708,7 @@ void UIItemShopWnd2::OnCreate(int width, int height) { this->checkBox = new UICheckBox(); this->checkBox->SetSize(200, 12); - this->checkBox->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(295)); + this->checkBox->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_NOQUESTION_ITEMCOUNT)); this->checkBox->Move(12, this->geometry.height - 20); this->checkBox->SetChecked(g_windowMgr.unknown_0064); this->AddChild(this->checkBox); @@ -4727,7 +4728,7 @@ void UIItemShopWnd2::OnCreate(int width, int height) { void UIItemShopWnd::OnCreate(int width, int height) { this->title = new UIStaticText(); this->title->SetSize(70, 15); - this->title->SetText(LookupMessage(167), 0); + this->title->SetText(LookupMessage(MSI_ITEM_STORE), 0); this->title->Move(16, 2); this->title->shadow = 1; this->AddChild(this->title); @@ -4742,7 +4743,7 @@ void UIItemShopWnd::OnCreate(int width, int height) { this->checkBox = new UICheckBox(); this->checkBox->SetSize(200, 12); - this->checkBox->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(295)); + this->checkBox->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_NOQUESTION_ITEMCOUNT)); this->checkBox->Move(12, this->geometry.height - 20); this->checkBox->SetChecked(g_windowMgr.unknown_0064); this->AddChild(this->checkBox); @@ -4815,7 +4816,7 @@ void UIItemStoreSubWnd::OnCreate(int width, int height) { void UIMerchantItemWnd::OnCreate(int width, int height) { UIStaticText* title = new UIStaticText(); title->SetSize(90, 15); - title->SetText(LookupMessage(222), 0); + title->SetText(LookupMessage(MSI_MERCHANTITEM), 0); title->Move(16, 2); title->shadow = 1; this->AddChild(title); @@ -5064,7 +5065,7 @@ void UIMerchantItemPurchaseWnd::DragAndDrop(int x, int y, std::intptr_t value) { if (g_session.GetItem1760Quantity(drag->id)) { mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(119)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EQUIPITEM_OLNY_ONE)), 0xFF, 0, 0, 0); return; } @@ -5714,7 +5715,7 @@ int UISkillListWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std: if (this->hovered != -1) { CSkillInfo skill = this->GetSkillByIndex(this->hovered); if (skill.available != 0) { - this->unknown_0138.push_back(MiniPartyInfoEntry(std::string(LookupMessage(0x142)).c_str(), 3)); + this->unknown_0138.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_SEE_INFORMATION_OF_SKILL)).c_str(), 3)); } } if (this->unknown_0138.size()) { @@ -6332,7 +6333,7 @@ int UIItemSellWnd2::SendMsg(UIWindow* sender, int message, std::intptr_t a, std: CMode* mode = g_modeMgr.gameMode; if (a == ID_OK) { if (count > 0) { - const int result = g_windowMgr.Confirm(LookupMessage(1584), 2, true, false, 0, "Message", 280, 120, 0); + const int result = g_windowMgr.Confirm(LookupMessage(MSI_MIX_ACCEPT), 2, true, false, 0, "Message", 280, 120, 0); mode->SendMsg(result == 187 ? 266 : 267, this->unknown_00FC, 0, 0, 0); g_windowMgr.CloseWindow(WID_ITEMSHOPWND2); g_windowMgr.CloseWindow(WID_ITEMSELLWND2); @@ -6510,7 +6511,7 @@ int UIMerchantItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intpt if (this->unknown_0108) { if (static_cast(price * item.quantity) + g_session.m_zeny + pending > 0x7FFFFFFF) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(694)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_OVER_OR_LOW_MONEY)), 255, 0, 0, 0); } else { g_session.AddItem1760(item); g_session.RemoveItem1750(item, 2, 1); @@ -6524,7 +6525,7 @@ int UIMerchantItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intpt this->SendMsg(nullptr, UM_REFRESHITEM, 0, 0, 0, 0); } else { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(55)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INSUFFICIENT_MONEY)), 255, 0, 0, 0); } } @@ -6543,7 +6544,7 @@ int UIMerchantItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intpt } } if (sum > static_cast(g_windowMgr.unknown_0418)->unknown_0108) { - g_windowMgr.Confirm(LookupMessage(1740), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BUYINGSTORE_SELLWND_LACKBUYERZENY), 0, true, false, 0, "Message", 280, 120, 0); return 0; } mode->SendMsg(MM_REQ_TRADE_BUYING_STORE, this->unknown_00F8, this->unknown_0104, 0, 0); @@ -6675,7 +6676,7 @@ int UIMerchantItemShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_t this->unknown_0100 = a; return 0; case UM_SETTITLE: - this->unknown_00F4->SetTextAutoWidth(LookupMessage(186)); + this->unknown_00F4->SetTextAutoWidth(LookupMessage(MSI_SHOPITEMS)); return 0; case UM_DROP: { CGameMode* mode = static_cast(g_modeMgr.GetGameMode()); @@ -6739,7 +6740,7 @@ int UIMerchantItemShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_t this->unknown_0108 = a; char grouped[80]; char text[80]; - std::sprintf(text, LookupMessage(1735), FormatGroupedInteger(static_cast(a), grouped, 80)); + std::sprintf(text, LookupMessage(MSI_BUYINGSTORE_MYSHOPWND_LIMITZENY), FormatGroupedInteger(static_cast(a), grouped, 80)); this->notice->SetTextAutoWidth(text); this->notice->Move(12, this->geometry.height - 21); return 0; @@ -6835,7 +6836,7 @@ void UIMerchantItemMyShopWnd::OnCreate(int width, int height) { this->notice = new UIStaticText(); this->notice->SetSize(160, 15); char text[80]; - std::sprintf(text, LookupMessage(1735), 0); + std::sprintf(text, LookupMessage(MSI_BUYINGSTORE_MYSHOPWND_LIMITZENY), 0); this->notice->SetTextAutoWidth(text); this->notice->Move(12, this->geometry.height - 26); this->AddChild(this->notice); @@ -7243,7 +7244,7 @@ void UIItemPurchaseWnd::OnMouseHover(int x, int y) { if (*reinterpret_cast(&g_session.unknown_59DC[0x198]) == 1) { sprintf(currency, "한코인"); } else { - sprintf(currency, LookupMessage(1307)); + sprintf(currency, LookupMessage(MSI_CASH)); } } else { sprintf(currency, "Point"); @@ -7252,10 +7253,10 @@ void UIItemPurchaseWnd::OnMouseHover(int x, int y) { char price[64]; if (item.unknown_0014[0] != item.unknown_0014[1]) { - text = static_cast(FormatOwnedString("%s %d %s %d -> %s %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588), item.unknown_0014[0], + text = static_cast(FormatOwnedString("%s %d %s %d -> %s %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4), item.unknown_0014[0], FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), currency)); } else { - text = static_cast(FormatOwnedString("%s %d %s %s %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588), + text = static_cast(FormatOwnedString("%s %d %s %s %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), currency)); } @@ -7275,10 +7276,10 @@ void UIItemSellWnd2::OnMouseHover(int x, int y) { std::string text; char price[64]; if (item.unknown_0014[0] != item.unknown_0014[1]) { - text = static_cast(FormatOwnedString("%s %d %s %d -> %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588), item.unknown_0014[0], + text = static_cast(FormatOwnedString("%s %d %s %d -> %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4), item.unknown_0014[0], FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64))); } else { - text = static_cast(FormatOwnedString("%s %d %s %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588), + text = static_cast(FormatOwnedString("%s %d %s %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64))); } @@ -7302,18 +7303,18 @@ void UIItemSellWnd::OnMouseHover(int x, int y) { char price[64]; if (item.unknown_0014[0] != item.unknown_0014[1]) { if (item.identified == 1 && item.unknown_0098 != 0) { - text = static_cast(FormatOwnedString(LookupMessage(2758), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity, LookupMessage(588), + text = static_cast(FormatOwnedString(LookupMessage(MSI_EA12), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity, LookupMessage(MSI_EA4), item.unknown_0014[0], FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), "Zeny")); } else { - text = static_cast(FormatOwnedString("%s %d %s %d -> %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588), item.unknown_0014[0], + text = static_cast(FormatOwnedString("%s %d %s %d -> %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4), item.unknown_0014[0], FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64))); } } else { if (item.identified == 1 && item.unknown_0098 != 0) { - text = static_cast(FormatOwnedString(LookupMessage(2759), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity, LookupMessage(588), + text = static_cast(FormatOwnedString(LookupMessage(MSI_TAIWAN_CASH_LEMITEMIN), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity, LookupMessage(MSI_EA4), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), "Zeny")); } else { - text = static_cast(FormatOwnedString("%s %d %s %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588), + text = static_cast(FormatOwnedString("%s %d %s %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64))); } } @@ -7344,10 +7345,10 @@ void UIItemShopWnd2::OnMouseHover(int x, int y) { } } else { if (item.unknown_0014[0] == item.unknown_0014[1]) { - text = static_cast(FormatOwnedString("%s %d %s %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588), + text = static_cast(FormatOwnedString("%s %d %s %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64))); } else { - text = static_cast(FormatOwnedString("%s %d %s %d -> %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588), item.unknown_0014[0], + text = static_cast(FormatOwnedString("%s %d %s %d -> %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4), item.unknown_0014[0], FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64))); } } @@ -7374,7 +7375,7 @@ void UIItemShopWnd::OnMouseHover(int x, int y) { if (g_session.m_channelCopId == 1) { sprintf(currency, "한코인"); } else { - sprintf(currency, LookupMessage(1307)); + sprintf(currency, LookupMessage(MSI_CASH)); } } else { sprintf(currency, "Point"); @@ -7385,25 +7386,25 @@ void UIItemShopWnd::OnMouseHover(int x, int y) { if (this->unknown_00F8) { if (item.unknown_0014[0] != item.unknown_0014[1]) { if (item.identified == 1 && item.unknown_0098 != 0) { - text = static_cast(FormatOwnedString(LookupMessage(2758), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity, LookupMessage(588), + text = static_cast(FormatOwnedString(LookupMessage(MSI_EA12), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity, LookupMessage(MSI_EA4), item.unknown_0014[0], FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), currency)); } else { - text = static_cast(FormatOwnedString("%s %d %s %d -> %s %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588), item.unknown_0014[0], + text = static_cast(FormatOwnedString("%s %d %s %d -> %s %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4), item.unknown_0014[0], FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), currency)); } } else { if (item.identified == 1 && item.unknown_0098 != 0) { - text = static_cast(FormatOwnedString(LookupMessage(2759), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity, LookupMessage(588), + text = static_cast(FormatOwnedString(LookupMessage(MSI_TAIWAN_CASH_LEMITEMIN), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity, LookupMessage(MSI_EA4), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), currency)); } else { - text = static_cast(FormatOwnedString("%s %d %s %s %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588), + text = static_cast(FormatOwnedString("%s %d %s %s %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), currency)); } } } else { if (item.unknown_0014[0] != item.unknown_0014[1]) { if (item.identified == 1 && item.unknown_0098 != 0) { - text = static_cast(FormatOwnedString(LookupMessage(2760), item.DisplayName(0).c_str(), item.unknown_0098, item.unknown_0014[0], + text = static_cast(FormatOwnedString(LookupMessage(MSI_DRESSROOM_HEARCOLOR), item.DisplayName(0).c_str(), item.unknown_0098, item.unknown_0014[0], FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), currency)); } else { text = static_cast(FormatOwnedString("%s %d -> %s %s", item.DisplayName(0).c_str(), item.unknown_0014[0], @@ -7411,7 +7412,7 @@ void UIItemShopWnd::OnMouseHover(int x, int y) { } } else { if (item.identified == 1 && item.unknown_0098 != 0) { - text = static_cast(FormatOwnedString(LookupMessage(2761), item.DisplayName(0).c_str(), item.unknown_0098, + text = static_cast(FormatOwnedString(LookupMessage(MSI_DRESSROOM_HEARSTYLE), item.DisplayName(0).c_str(), item.unknown_0098, FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), currency)); } else { text = static_cast(FormatOwnedString("%s %s %s", item.DisplayName(0).c_str(), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), @@ -7435,7 +7436,7 @@ void UIItemStoreFindWnd::OnMouseHover(int x, int y) { if (item.identified == 1 && item.unknown_0098 != 0) { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString(LookupMessage(2600), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { g_modeMgr.gameMode->ShowTooltip(item.DisplayName(0).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); @@ -7454,7 +7455,7 @@ void UIItemStoreSubWnd::OnMouseHover(int x, int y) { if (item.identified == 1 && item.unknown_0098 != 0) { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString(LookupMessage(2600), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { g_modeMgr.gameMode->ShowTooltip(item.DisplayName(0).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); @@ -7473,7 +7474,7 @@ void UIItemStoreWnd::OnMouseHover(int x, int y) { if (item.identified == 1 && item.unknown_0098 != 0) { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString(LookupMessage(2600), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { g_modeMgr.gameMode->ShowTooltip(item.DisplayName(0).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); @@ -7492,11 +7493,11 @@ void UIItemWnd::OnMouseHover(int x, int y) { if (item.identified == 1 && item.unknown_0098 != 0) { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString(LookupMessage(2551), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAIL_NEED_EQUIPPED_GUN_GATLING), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString(LookupMessage(183), item.DisplayName(0).c_str(), item.quantity).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString(LookupMessage(MSI_EA2), item.DisplayName(0).c_str(), item.quantity).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } } @@ -7515,13 +7516,13 @@ void UIMerchantItemMyShopWnd::OnMouseHover(int x, int y) { char price[64]; if (this->unknown_0100 == 0) { if (item.identified == 1 && item.unknown_0098 != 0) { - text = static_cast(FormatOwnedString(LookupMessage(2757), item.DisplayName(0).c_str(), item.unknown_0098, + text = static_cast(FormatOwnedString(LookupMessage(MSI_EA11), item.DisplayName(0).c_str(), item.unknown_0098, FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64))); } else { text = static_cast(FormatOwnedString("%s %s Zeny", item.DisplayName(0).c_str(), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64))); } } else { - text = static_cast(FormatOwnedString(LookupMessage(1736), item.DisplayName(0).c_str(), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), + text = static_cast(FormatOwnedString(LookupMessage(MSI_BUYINGSTORE_MYSHOPWND_ITEMINFO), item.DisplayName(0).c_str(), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64), item.quantity)); } @@ -7540,7 +7541,7 @@ void UIMerchantItemPurchaseWnd::OnMouseHover(int x, int y) { char price[64]; g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString("%s %d %s %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588), + ->ShowTooltip(FormatOwnedString("%s %d %s %s Zeny", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4), FormatGroupedInteger(static_cast(item.unknown_0014[1]), price, 64)) .c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); @@ -7558,7 +7559,7 @@ void UIMerchantItemShopWnd::OnMouseHover(int x, int y) { if (item.identified == 1 && item.unknown_0098 != 0) { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString(LookupMessage(2600), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { g_modeMgr.gameMode->ShowTooltip(item.DisplayName(0).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); @@ -7577,7 +7578,7 @@ void UIMerchantItemShopWnd::OnMouseHover(int x, int y) { if (item.identified == 1 && item.unknown_0098 != 0) { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString(LookupMessage(2600), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX - 2, tooltipY + 24, + ->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX - 2, tooltipY + 24, g_session.GetItemNameColor(item), 0, 1); } else { g_modeMgr.gameMode->ShowTooltip(item.DisplayName(0).c_str(), tooltipX - 2, tooltipY + 24, g_session.GetItemNameColor(item), 0, 1); @@ -7595,11 +7596,11 @@ void UIMerchantItemWnd::OnMouseHover(int x, int y) { if (item.identified == 1 && item.unknown_0098 != 0) { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString(LookupMessage(2551), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAIL_NEED_EQUIPPED_GUN_GATLING), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString("%s %d %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588)).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString("%s %d %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4)).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } } @@ -7616,11 +7617,11 @@ void UIMerchantMirrorItemWnd::OnMouseHover(int x, int y) { if (item.identified == 1 && item.unknown_0098 != 0) { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString(LookupMessage(2756), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString(LookupMessage(MSI_EA10), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString("%s %d %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(588)).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString("%s %d %s", item.DisplayName(0).c_str(), item.quantity, LookupMessage(MSI_EA4)).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } } @@ -7902,9 +7903,9 @@ void UIItemStoreWnd::OnCreate(int width, int height) { this->sortCombo->SetSize(62, 18); this->sortCombo->Move(214, this->geometry.height - 52); this->AddChild(this->sortCombo); - this->sortCombo->AddOption(LookupMessage(3276), 0); - this->sortCombo->AddOption(LookupMessage(3274), 0); - this->sortCombo->AddOption(LookupMessage(3275), 0); + this->sortCombo->AddOption(LookupMessage(MSI_HOMUN_SELF_FEEDING), 0); + this->sortCombo->AddOption(LookupMessage(MSI_CHEATDEFENDER_FILE_CHECK_FAIL), 0); + this->sortCombo->AddOption(LookupMessage(MSI_ITEMMOVERESTRICT_WHITELIST), 0); const bool sortModes[3] = {g_session.m_itemDefaultSort, g_session.m_itemAscendingOrder, g_session.m_itemDescendingOrder}; for (int index = 0; index < 3; ++index) { @@ -7950,7 +7951,7 @@ void UIItemWnd::OnCreate(int width, int height) { this->tabs->Configure(0, 17, 10, 1, 0, 1, 0, 0, 0, 0, 0, 0); this->tabs->Move(3, 18); this->AddChild(this->tabs); - const char* labels[4] = {LookupMessage(1465), LookupMessage(2050), LookupMessage(1471), LookupMessage(2051)}; + const char* labels[4] = {LookupMessage(MSI_STORE_TABNAME_0), LookupMessage(MSI_INVENTORY_TABNAME_1), LookupMessage(MSI_STORE_TABNAME_6), LookupMessage(MSI_INVENTORY_TABNAME_3)}; for (int index = 0; index < 4; ++index) { this->tabs->AddTab(labels[index], ""); } @@ -7963,7 +7964,7 @@ void UIItemWnd::OnCreate(int width, int height) { this->lockDropBox->SetBitmaps("유저인터페이스\\inventory\\item_drop_lock_on.bmp", "유저인터페이스\\inventory\\item_drop_lock_off.bmp"); this->lockDropBox->Move(79, height - 16); this->lockDropBox->SetChecked(g_session.m_lockItemDrop); - this->lockDropBox->SetTooltip(LookupMessage(2843)); + this->lockDropBox->SetTooltip(LookupMessage(MSI_RODEX_GENERAL)); this->AddChild(this->lockDropBox); UICheckBox* compare = new (std::nothrow) UICheckBox(); @@ -7973,7 +7974,7 @@ void UIItemWnd::OnCreate(int width, int height) { this->optionBox->SetId(456); this->optionBox->Move(103, height - 17); static_cast(this->optionBox)->SetChecked(g_serviceOptions.Get(264)); - static_cast(this->optionBox)->SetTooltip(LookupMessage(2842)); + static_cast(this->optionBox)->SetTooltip(LookupMessage(MSI_CONNECT_SNS_WND)); this->AddChild(this->optionBox); this->countButton = new (std::nothrow) UIBitmapButton(); @@ -7983,7 +7984,7 @@ void UIItemWnd::OnCreate(int width, int height) { this->countButton->SetSize(this->countButton->BitmapWidth(), this->countButton->BitmapHeight()); this->countButton->Move(23, height - 17); this->countButton->SetId(545); - this->countButton->SetTooltip(LookupMessage(3560)); + this->countButton->SetTooltip(LookupMessage(MSI_INVENTORY_EXTEND_FAILED_ANOTHER_WORK)); this->AddChild(this->countButton); UIBitmapButton* lockDeal = new UIBitmapButton(); @@ -7993,7 +7994,7 @@ void UIItemWnd::OnCreate(int width, int height) { static_cast(this->unknown_0124)->SetBitmap("유저인터페이스\\inventory\\bt_itemDeal_lock_press.bmp", 2, 0); this->unknown_0124->SetSize(static_cast(this->unknown_0124)->BitmapWidth(), static_cast(this->unknown_0124)->BitmapHeight()); this->unknown_0124->Move(124, this->geometry.height - 19); - this->unknown_0124->SetTooltip(LookupMessage(2952)); + this->unknown_0124->SetTooltip(LookupMessage(MSI_CONNECT_SNS_PART_SCREEN_SHOT)); this->unknown_0124->SetId(507); this->AddChild(this->unknown_0124); @@ -8162,7 +8163,7 @@ int UIItemShopWnd2::SendMsg(UIWindow* sender, int message, std::intptr_t a, std: case UM_SETTITLE: this->unknown_00F8 = 1; this->showQuantity = 1; - this->title->SetTextAutoWidth(LookupMessage(1568)); + this->title->SetTextAutoWidth(LookupMessage(MSI_ITEMSYOUCANCHANGE)); this->checkBox->m_disabled = 0; return 0; case UM_RESIZE: @@ -8275,12 +8276,12 @@ int UIItemShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: if (a) { this->unknown_00F8 = 1; this->showQuantity = 1; - this->title->SetTextAutoWidth(LookupMessage(185)); + this->title->SetTextAutoWidth(LookupMessage(MSI_ITEMSYOUCANSELL)); this->checkBox->m_disabled = 0; } else { this->unknown_00F8 = 0; this->showQuantity = 0; - this->title->SetTextAutoWidth(LookupMessage(186)); + this->title->SetTextAutoWidth(LookupMessage(MSI_SHOPITEMS)); this->checkBox->m_disabled = 1; } @@ -9101,7 +9102,7 @@ void UIItemPurchaseWnd::Paint() { if (*reinterpret_cast(&g_session.unknown_59DC[0x198]) == 1) { name = "한코인"; } else { - name = LookupMessage(1307); + name = LookupMessage(MSI_CASH); } } else { name = "Point"; @@ -9125,8 +9126,8 @@ void UIItemPurchaseWnd::Paint() { } if (this->unknown_00FC != 0) { - this->DrawTextAt(12, this->geometry.height - 48, LookupMessage(1306), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(179, this->geometry.height - 48, LookupMessage(1307), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(12, this->geometry.height - 48, LookupMessage(MSI_USE_FREE_POINT), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(179, this->geometry.height - 48, LookupMessage(MSI_CASH), 0, 0, 12, 0, 0, 0); this->FillRegion(109, this->geometry.height - 51, 66, 18, 0x8E8E8E); } } @@ -9372,7 +9373,7 @@ void UIItemShopWnd::Paint() { const int gid = *reinterpret_cast(&g_session.unknown_5913[0x21]); name = this->ClipTextToWidth(g_session.DecodePlayerName(), 100, 0, 12, 0); - length = sprintf(text, LookupMessage(1305), name, gid); + length = sprintf(text, LookupMessage(MSI_POINT_SHOP2), name, gid); this->DrawTextAt(12, this->geometry.height - this->unknown_0104 - 21, text, length, 0, 12, 0, 0, 0); } } @@ -9416,9 +9417,9 @@ void UIItemStoreWnd::Paint() { DrawFilledRoundedBorder(*this, 61, 137, 175, 127, 0xFFFFFF); const auto* poring = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\notice_poring.bmp"))); this->DrawBitmap(116, 151, &poring->image, true); - this->DrawCenteredText(20, 210, LookupMessage(3540), 257, 0, 12, 0, 0); - this->DrawCenteredText(20, 236, LookupMessage(3191), 257, 0, 15, 0xC89482, 1); - this->DrawCenteredText(20, 272, LookupMessage(3603), 257, 0, 12, 0x6464DC, 1); + this->DrawCenteredText(20, 210, LookupMessage(MSI_RODEX_BUTTON_ANSWER), 257, 0, 12, 0, 0); + this->DrawCenteredText(20, 236, LookupMessage(MSI_CLOSE_SETUP), 257, 0, 15, 0xC89482, 1); + this->DrawCenteredText(20, 272, LookupMessage(MSI_USE_WORLDMAP_WITH_PERIOD_MSG2), 257, 0, 12, 0x6464DC, 1); return; } @@ -9604,8 +9605,8 @@ void UIMerchantShopMakeWnd::Paint() { } for (int i = 0, y = 72; i < count; ++i, y += 42) { - this->DrawTextAt(this->geometry.width - 155, y - 15, LookupMessage(1721), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(this->geometry.width - 176, y - 15, LookupMessage(588), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(this->geometry.width - 155, y - 15, LookupMessage(MSI_BUYINGSTORE_MAKEWND_PRICE), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(this->geometry.width - 176, y - 15, LookupMessage(MSI_EA4), 0, 0, 12, 0, 0, 0); DrawItemSlotBackground(*this, 3, y - 18); if (i >= this->unknown_012C) { continue; @@ -9623,8 +9624,8 @@ void UIMerchantShopMakeWnd::Paint() { } const int x = this->geometry.width - 155; - this->DrawTextAt(x, y, LookupMessage(3222), 0, 0, 12, 0, 0, 0); - const int width = this->TextWidth(LookupMessage(3222), 0, 0, 12, 0, 0); + this->DrawTextAt(x, y, LookupMessage(MSI_MAKE_CHAT_ROOM), 0, 0, 12, 0, 0, 0); + const int width = this->TextWidth(LookupMessage(MSI_MAKE_CHAT_ROOM), 0, 0, 12, 0, 0); const double rate = PriceCommission(price) * 0.01; price += static_cast(price * rate); FormatGroupedInteger(price, text, 24); @@ -9636,13 +9637,13 @@ void UIMerchantShopMakeWnd::Paint() { } } - this->DrawTextAt(17, 4, LookupMessage(1720), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(16, 3, LookupMessage(1720), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(2, 25, LookupMessage(282), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(17, 4, LookupMessage(MSI_BUYINGSTORE_MAKEWND_TITLE), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(16, 3, LookupMessage(MSI_BUYINGSTORE_MAKEWND_TITLE), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(2, 25, LookupMessage(MSI_STALL_NAME), 0, 0, 12, 0, 0, 0); - const int labelWidth = this->TextWidth(LookupMessage(1723), 0, 0, 12, 0, 0) + 10; + const int labelWidth = this->TextWidth(LookupMessage(MSI_BUYINGSTORE_MAKEWND_LIMITZENY), 0, 0, 12, 0, 0) + 10; this->unknown_0128->Move(labelWidth, this->geometry.height - barHeight + 5); - this->DrawTextAt(5, this->geometry.height - barHeight + 5, LookupMessage(1723), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(5, this->geometry.height - barHeight + 5, LookupMessage(MSI_BUYINGSTORE_MAKEWND_LIMITZENY), 0, 0, 12, 0, 0, 0); this->DrawTextAt(this->unknown_0128->geometry.width + this->unknown_0128->geometry.x + 5, this->geometry.height - barHeight + 5, "Zeny", 0, 0, 12, 0, 0, 0 ); @@ -9651,7 +9652,7 @@ void UIMerchantShopMakeWnd::Paint() { char text[32] = {}; FormatGroupedInteger(g_session.m_zeny, grouped, 16); sprintf(text, "%s Zeny", grouped); - this->DrawTextAt(5, this->geometry.height - barHeight * 2 + 5, LookupMessage(1722), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(5, this->geometry.height - barHeight * 2 + 5, LookupMessage(MSI_BUYINGSTORE_MAKEWND_MYZENY), 0, 0, 12, 0, 0, 0); this->DrawRightAlignedText(155, this->geometry.height - barHeight * 2 + 5, text, 0, 0, 12, 0, 0); std::uint32_t color; @@ -9664,11 +9665,11 @@ void UIMerchantShopMakeWnd::Paint() { } this->DrawRightAlignedText(this->geometry.width - 20, this->geometry.height - barHeight * 2 + 5, text, 0, 0, 12, color, 0); - message = LookupMessage(3224); + message = LookupMessage(MSI_NOTIFY_JOBEXP_INT64); messageY = this->geometry.height - 72; } else { for (int i = 0, y = 72; i < this->visibleRows; ++i, y += 42) { - this->DrawTextAt(this->geometry.width - 165, y - 15, LookupMessage(369), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(this->geometry.width - 165, y - 15, LookupMessage(MSI_SELLPRICE), 0, 0, 12, 0, 0, 0); DrawItemSlotBackground(*this, 3, y - 18); if (i >= this->unknown_012C) { continue; @@ -9686,8 +9687,8 @@ void UIMerchantShopMakeWnd::Paint() { } const int x = this->geometry.width - 165; - this->DrawTextAt(x, y, LookupMessage(3222), 0, 0, 12, 0, 0, 0); - const int width = this->TextWidth(LookupMessage(3222), 0, 0, 12, 0, 0); + this->DrawTextAt(x, y, LookupMessage(MSI_MAKE_CHAT_ROOM), 0, 0, 12, 0, 0, 0); + const int width = this->TextWidth(LookupMessage(MSI_MAKE_CHAT_ROOM), 0, 0, 12, 0, 0); const double rate = PriceCommission(price) * -0.01; price += static_cast(price * rate); FormatGroupedInteger(price, text, 24); @@ -9699,11 +9700,11 @@ void UIMerchantShopMakeWnd::Paint() { } } - this->DrawTextAt(17, 4, LookupMessage(224), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(16, 3, LookupMessage(224), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(2, 25, LookupMessage(282), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(17, 4, LookupMessage(MSI_MERCHANTSHOPMAKER), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(16, 3, LookupMessage(MSI_MERCHANTSHOPMAKER), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(2, 25, LookupMessage(MSI_STALL_NAME), 0, 0, 12, 0, 0, 0); - message = LookupMessage(3223); + message = LookupMessage(MSI_CANNOT_JOIN_CHARACTER_HAVING_LOW_SKILL); messageY = this->geometry.height - 43; } this->DrawTextAt(5, messageY, message, 0, 0, 12, 0xFF, 0, 0); @@ -10006,7 +10007,7 @@ void UIItemWnd::RefreshSortButton() { button->SetBitmap(std::format("{}.bmp", name).c_str(), 0, 0); button->SetBitmap(std::format("{}_over.bmp", name).c_str(), 1, 0); button->SetBitmap(std::format("{}_press.bmp", name).c_str(), 2, 0); - button->SetTooltip(std::format("{} {}", LookupMessage(3007), g_sortPrivateTab ? "ON" : "OFF").c_str()); + button->SetTooltip(std::format("{} {}", LookupMessage(MSI_BABY_INDEPENDENCE_RODEX_ERASED), g_sortPrivateTab ? "ON" : "OFF").c_str()); this->Invalidate(); } @@ -10182,7 +10183,7 @@ void UIMerchantItemPurchaseMSGWnd::SetPurchase(int value, int amount) { } } - const std::string text = IntToSignedString(total, true, false) + std::string(LookupMessage(2328)); + const std::string text = IntToSignedString(total, true, false) + std::string(LookupMessage(MSI_CARDWIN)); this->secondLine->SetText(text.c_str(), 0); this->Invalidate(); } @@ -10372,7 +10373,7 @@ void UIMerchantItemShopWnd::Paint() { char price[128]; int x; if (this->unknown_010C != 0) { - sprintf(price, LookupMessage(182), it->quantity); + sprintf(price, LookupMessage(MSI_EA), it->quantity); const int quantityX = this->geometry.width - this->TextWidth(" 100,000,000Z", 0, 0, 12, 0, 0) - this->TextWidth(price, 0, 0, 12, 0, 0) - 18; this->DrawTextAt(quantityX, top + 29, price, 0, 0, 12, 0xFF, 0, 0); @@ -10426,11 +10427,11 @@ void UIMerchantItemShopWnd::Paint() { const int seconds = remaining / 1000 % 60; if (remaining <= 60000) { this->DrawTextAt(20, this->geometry.height - 50, - FormatOwnedString(LookupMessage(2927), days, hours, minutes, seconds).c_str(), 0, 0, 12, 0xFF, 1, 0 + FormatOwnedString(LookupMessage(MSI_SELECT_SHOP_POSITION), days, hours, minutes, seconds).c_str(), 0, 0, 12, 0xFF, 1, 0 ); } else { this->DrawTextAt(20, this->geometry.height - 50, - FormatOwnedString(LookupMessage(2927), days, hours, minutes, seconds).c_str(), 0, 0, 12, 0, 1, 0 + FormatOwnedString(LookupMessage(MSI_SELECT_SHOP_POSITION), days, hours, minutes, seconds).c_str(), 0, 0, 12, 0, 1, 0 ); } @@ -10945,7 +10946,7 @@ int UIItemSellWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: // OFFSET: 0x00980F50 // FUNCTION: fn_13338 void UIItemWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(106), 0); + this->DrawTitleBar(true, LookupMessage(MSI_ITEM), 0); if (this->geometry.height == 17) { return; @@ -11155,7 +11156,7 @@ void UIItemPurchaseWnd::OnCreate(int width, int height) { UIStaticText* caption = new UIStaticText(); caption->SetSize(160, 15); - caption->SetText(LookupMessage(166), 0); + caption->SetText(LookupMessage(MSI_ITEMS_FOR_BUY), 0); caption->Move(16, 2); caption->shadow = 1; this->AddChild(caption); @@ -11368,7 +11369,7 @@ int UIMerchantShopMakeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t if (mode->drag.source == 20) { if (g_session.GetList11Size() < this->unknown_012C) { if (!g_session.AddItem1768(item, 1, 1)) { - g_windowMgr.Confirm(LookupMessage(1729), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BUYINGSTORE_MAKEWND_DUPLICATEITEM), 0, true, false, 0, "Message", 280, 120, 0); } else { g_session.RemoveItem1750(item, 1, 1); } @@ -11391,7 +11392,7 @@ int UIMerchantShopMakeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t if (item.quantity + g_session.GetItem1768Quantity(mode->drag.id) > 30000) { item.quantity = 30000 - g_session.GetItem1768Quantity(mode->drag.id); char text[200]; - std::sprintf(text, LookupMessage(1705), 30000); + std::sprintf(text, LookupMessage(MSI_LIMIT_SELL_ITEM), 30000); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); } @@ -11581,11 +11582,11 @@ int UIMerchantShopMakeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t } else if (a == ID_OK) { CMode* mode = g_modeMgr.GetGameMode(); if (g_windowMgr.HasTitleAtActorCell(g_session.m_aid)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2983)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SWAP_EQUIPITEM_EQUIPMENTSET)), 0xFF, 0, 0, 0); break; } if (g_windowMgr.window_027C || g_windowMgr.window_0274) { - g_windowMgr.Confirm(LookupMessage(587), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_OPEN_STORE_WHILE_CHAT), 0, true, false, 0, "Message", 280, 120, 0); if (this->unknown_0188 == 1) { g_modeMgr.GetGameMode()->SendMsg(this->mode == 1 ? MM_CANCEL_BUYING_STORE_MAKE : MM_CANCEL_VENDING_MAKE, 0, 0, 0, 0); } else { @@ -11651,11 +11652,11 @@ int UIMerchantShopMakeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t } } if (this->mode == 0) { - if (freeItem && g_windowMgr.Confirm(LookupMessage(604), 2, true, false, 0, "Message", 280, 120, 0) != 187) { + if (freeItem && g_windowMgr.Confirm(LookupMessage(MSI_YOU_HAVE_FREE_ITEM_ON_SHOP), 2, true, false, 0, "Message", 280, 120, 0) != 187) { break; } if (!g_session.m_skipPriceWarning && highPrice && - g_windowMgr.Confirm(LookupMessage(2467), 2, true, false, 0, "Message", 280, 120, 0) != 187) { + g_windowMgr.Confirm(LookupMessage(MSI_BASIC_EXP_MSG_INDONESIA), 2, true, false, 0, "Message", 280, 120, 0) != 187) { break; } } else { diff --git a/Source/UI/Emotion/UIEmotionWnd.cpp b/Source/UI/Emotion/UIEmotionWnd.cpp index 8a6d94780..731b4fb3f 100644 --- a/Source/UI/Emotion/UIEmotionWnd.cpp +++ b/Source/UI/Emotion/UIEmotionWnd.cpp @@ -23,6 +23,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -100,7 +101,7 @@ void UIEmotionWnd::OnCreate(int, int) { // OFFSET: 0x008A3000 // FUNCTION: fn_11645 void UIEmotionWnd::Paint() { - int titleHeight = this->UIWindow::DrawTitleBar(true, LookupMessage(574), 0); + int titleHeight = this->UIWindow::DrawTitleBar(true, LookupMessage(MSI_SHORTCUT_LIST), 0); this->DrawPanelBackground(titleHeight, 0, ""); this->DrawButtonBar(2, 0, 1); } diff --git a/Source/UI/EntryQueue/UIEntryQueueWnd.cpp b/Source/UI/EntryQueue/UIEntryQueueWnd.cpp index 0ca30fd46..6e897bec0 100644 --- a/Source/UI/EntryQueue/UIEntryQueueWnd.cpp +++ b/Source/UI/EntryQueue/UIEntryQueueWnd.cpp @@ -22,6 +22,7 @@ #include "UI/Text/UITextViewer.h" #include "UI/Window/UIWindowMgr.h" #include "UI/Window/WindowManagerWindows.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -43,7 +44,7 @@ void UIEntryQueueHelpWnd::OnDestroy() { // OFFSET: 0x00BA4270 // FUNCTION: fn_19681 void UIEntryQueueHelpWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(2125), 0); + this->DrawTitleBar(true, LookupMessage(MSI_BATTLEFIELD_WARNINGMSG1), 0); this->DrawPanelBackground(17, 0, ""); } @@ -133,17 +134,17 @@ bool UIEntryQueueRequestWnd::Create() { char message[0x104]; std::memset(message, 0, sizeof(message)); if (g_entryQueueMgr->current) { - sprintf_s(message, sizeof(message), LookupMessage(2126), g_entryQueueMgr->current->displayName); + sprintf_s(message, sizeof(message), LookupMessage(MSI_BATTLEFIELD_WARNINGMSG2), g_entryQueueMgr->current->displayName); } this->m_viewer->Clear(); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(message), 38, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2127)), 38, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BATTLEFIELD_WARNINGMSG3)), 38, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(""), 38, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2128)), 38, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2129)), 38, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2130)), 38, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2131)), 38, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BATTLEFIELD_WARNINGMSG4)), 38, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BATTLEFIELD_WAIT_PLAYER)), 38, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BATTLEFIELD_REQUEST_JOIN)), 38, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BATTLEFIELD_WAITTIME_D)), 38, 0, 0); const std::string path = "유저인터페이스\\"; @@ -180,7 +181,7 @@ void UIEntryQueueRequestWnd::OnDestroy() { // OFFSET: 0x00BA5390 // FUNCTION: fn_19693 void UIEntryQueueRequestWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(2133), 0); + this->DrawTitleBar(true, LookupMessage(MSI_BATTLEFIELD_NAME_S), 0); this->DrawPanelBackground(17, 0, ""); char text[100]; @@ -190,7 +191,7 @@ void UIEntryQueueRequestWnd::Paint() { this->SendMsg(nullptr, UM_COMMAND, 1, 0, 0, 0); } - std::sprintf(text, LookupMessage(2134), remaining); + std::sprintf(text, LookupMessage(MSI_BATTLEFIELD_MEMBER_D), remaining); this->m_countdown->SetText(text, 0); } @@ -217,7 +218,7 @@ int UIEntryQueueRequestWnd::SendMsg(UIWindow* sender, int message, std::intptr_t g_entryQueueMgr->SendAdmissionReply(1); g_windowMgr.CloseWindow(WID_ENTRYQUEUESTANDBYWND); g_windowMgr.CloseWindow(WID_ENTRYQUEUEREQUESTWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2132)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BATTLEFIELD_STATE_JOINWAIT)), 0x64FFFF, 0, 0, 0); break; case 1: g_entryQueueMgr->SendAdmissionReply(2); @@ -290,7 +291,7 @@ void UIEntryQueueStandByWnd::OnDestroy() { // OFFSET: 0x00BA5E60 // FUNCTION: fn_19700 void UIEntryQueueStandByWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(2135), 0); + this->DrawTitleBar(true, LookupMessage(MSI_BATTLEFIELD_MYRANK_D), 0); this->DrawPanelBackground(17, 0, ""); } @@ -323,9 +324,9 @@ void UIEntryQueueStandByWnd::SetInfo(const char* queueName, int waiting, int ran this->m_queueName = queueName; this->m_waiting = waiting; this->m_ranking = ranking; - sprintf_s(this->m_queueText, sizeof(this->m_queueText), LookupMessage(2136), queueName); - sprintf_s(this->m_waitingText, sizeof(this->m_waitingText), LookupMessage(2137), waiting); - sprintf_s(this->m_rankingText, sizeof(this->m_rankingText), LookupMessage(2138), ranking); + sprintf_s(this->m_queueText, sizeof(this->m_queueText), LookupMessage(MSI_BATTLEFIELD_DP_TITLE), queueName); + sprintf_s(this->m_waitingText, sizeof(this->m_waitingText), LookupMessage(MSI_BATTLEFIELD_DP_AIM), waiting); + sprintf_s(this->m_rankingText, sizeof(this->m_rankingText), LookupMessage(MSI_BATTLEFIELD_DP_MEMBER), ranking); if (this->m_viewer) { this->m_viewer->Clear(); @@ -382,8 +383,8 @@ void UIEntryQueueWnd::OnCreate(int width, int height) { g_entryQueueMgr->current = first->second; const char* labels[7] = { - LookupMessage(0x85B), LookupMessage(0x85C), LookupMessage(0x85D), LookupMessage(0x85E), - LookupMessage(0x85F), LookupMessage(0x860), LookupMessage(0x861), + LookupMessage(MSI_BATTLEFIELD_DP_REQUIRED), LookupMessage(MSI_BATTLEFIELD_DP_WIN), LookupMessage(MSI_BATTLEFIELD_DP_DRAW), LookupMessage(MSI_BATTLEFIELD_DP_LOSS), + LookupMessage(MSI_BATTLEFIELD_DOYOU_SINGLE), LookupMessage(MSI_BATTLEFIELD_DOYOU_PALTY), LookupMessage(MSI_BATTLEFIELD_DOYOU_GUILD), }; int index = 0; for (int y = 165; y < 305; ++index, y += 20) { @@ -440,7 +441,7 @@ void UIEntryQueueWnd::OnCreate(int width, int height) { // OFFSET: 0x00BA7250 // FUNCTION: fn_19708 void UIEntryQueueWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(0x603), 0); + this->DrawTitleBar(true, LookupMessage(MSI_BATTLEFIELD_LIST), 0); this->DrawPanelBackground(17, 0, ""); this->DrawButtonBar(2, 0, 1); @@ -453,7 +454,7 @@ void UIEntryQueueWnd::Paint() { } } - this->DrawShadowedText(10, 23, LookupMessage(0x865), static_cast(std::strlen(LookupMessage(0x865))), 0, 0xC0C0C0, 0, 12, 0); + this->DrawShadowedText(10, 23, LookupMessage(MSI_BATTLEFIELD_LEVELUP_D), static_cast(std::strlen(LookupMessage(MSI_BATTLEFIELD_LEVELUP_D))), 0, 0xC0C0C0, 0, 12, 0); } // OFFSET: 0x00BA7440 @@ -475,7 +476,7 @@ int UIEntryQueueWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std } else if (static_cast(g_modeMgr.GetGameMode())->IsActiveSkillEffectId(0x29C)) { error = 0x86C; } else { - if (this->ConfirmApply(LookupMessage(0x862))) { + if (this->ConfirmApply(LookupMessage(MSI_BATTLEFIELD_LIST2))) { g_entryQueueMgr->SendApply(1, info->name); } return 0; @@ -494,7 +495,7 @@ int UIEntryQueueWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std static_cast(g_session.OnlinePartyCount())) { error = 0x86F; } else { - if (this->ConfirmApply(LookupMessage(0x863))) { + if (this->ConfirmApply(LookupMessage(MSI_BATTLEFIELD_D_VS_D))) { g_entryQueueMgr->SendApply(2, info->name); } return 0; @@ -513,7 +514,7 @@ int UIEntryQueueWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std } else if (static_cast(g_entryQueueMgr->current->unknown_020C) < static_cast(guild->unknown_0068)) { error = 0x872; } else { - if (this->ConfirmApply(LookupMessage(0x864))) { + if (this->ConfirmApply(LookupMessage(MSI_BATTLEFIELD_LEVELDOWN_D))) { g_entryQueueMgr->SendApply(4, info->name); } return 0; @@ -575,17 +576,17 @@ void UIEntryQueueWnd::SelectQueue(EntryQueueInfo* info) { strcpy_s(text, sizeof(text), info->displayName); break; case 2: - sprintf_s(text, sizeof(text), LookupMessage(0x866), info->unknown_020C, info->unknown_0210); + sprintf_s(text, sizeof(text), LookupMessage(MSI_BATTLEFIELD_LEVEL_D_D), info->unknown_020C, info->unknown_0210); break; case 3: if (info->unknown_0218 == 1) { - sprintf_s(text, sizeof(text), LookupMessage(0x867), info->unknown_021C); + sprintf_s(text, sizeof(text), LookupMessage(MSI_BATTLEFIELD_LIMITLESS), info->unknown_021C); } else if (info->unknown_0218 == 2) { - sprintf_s(text, sizeof(text), LookupMessage(0x868), info->unknown_021C); + sprintf_s(text, sizeof(text), LookupMessage(MSI_BATTLEFIELD_MSG_NOT_JOINMAP), info->unknown_021C); } else if (info->unknown_0218 == 3) { - sprintf_s(text, sizeof(text), LookupMessage(0x869), info->unknown_021C, info->unknown_0220); + sprintf_s(text, sizeof(text), LookupMessage(MSI_BATTLEFIELD_MSG_WAIT_1MM), info->unknown_021C, info->unknown_0220); } else { - sprintf_s(text, sizeof(text), LookupMessage(0x86A)); + sprintf_s(text, sizeof(text), LookupMessage(MSI_BATTLEFIELD_MSG_PLZ_PALTYJOIN)); } break; case 4: @@ -655,23 +656,23 @@ void UIEntryQueueHelpWnd::OnCreate(int width, int height) { char message[0x104]; std::memset(message, 0, sizeof(message)); - strcpy_s(message, sizeof(message), LookupMessage(2116)); + strcpy_s(message, sizeof(message), LookupMessage(MSI_BATTLEFIELD_HELP4)); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(message), 38, 0, 0); - strcpy_s(message, sizeof(message), LookupMessage(2117)); + strcpy_s(message, sizeof(message), LookupMessage(MSI_BATTLEFIELD_HELP5)); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(message), 38, 0, 0); - strcpy_s(message, sizeof(message), LookupMessage(2118)); + strcpy_s(message, sizeof(message), LookupMessage(MSI_BATTLEFIELD_HELP6)); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(message), 38, 0, 0); - strcpy_s(message, sizeof(message), LookupMessage(2119)); + strcpy_s(message, sizeof(message), LookupMessage(MSI_BATTLEFIELD_HELP7)); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(message), 38, 0, 0); - strcpy_s(message, sizeof(message), LookupMessage(2120)); + strcpy_s(message, sizeof(message), LookupMessage(MSI_BATTLEFIELD_HELP8)); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(message), 38, 0, 0); - strcpy_s(message, sizeof(message), LookupMessage(2121)); + strcpy_s(message, sizeof(message), LookupMessage(MSI_BATTLEFIELD_HELP9)); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(message), 38, 0, 0); - strcpy_s(message, sizeof(message), LookupMessage(2122)); + strcpy_s(message, sizeof(message), LookupMessage(MSI_BATTLEFIELD_HELP10)); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(message), 38, 0, 0); - strcpy_s(message, sizeof(message), LookupMessage(2123)); + strcpy_s(message, sizeof(message), LookupMessage(MSI_BATTLEFIELD_START)); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(message), 38, 0, 0); - strcpy_s(message, sizeof(message), LookupMessage(2124)); + strcpy_s(message, sizeof(message), LookupMessage(MSI_BATTLEFIELD_DOYOU_MOVE)); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(message), 38, 0, 0); const std::string path = "유저인터페이스\\"; diff --git a/Source/UI/Exchange/UIExchangeUI.cpp b/Source/UI/Exchange/UIExchangeUI.cpp index ef543762c..1d448af96 100644 --- a/Source/UI/Exchange/UIExchangeUI.cpp +++ b/Source/UI/Exchange/UIExchangeUI.cpp @@ -24,6 +24,7 @@ #include "Utility/Text/GroupedInteger.h" #include "UI/Window/UIRegisterMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -234,7 +235,7 @@ void CUIExchangeUI::Conclude() { } if (this->logCheckBox->checked) { - std::string text = FormatOwnedString(LookupMessage(0x728), this->partnerName.c_str()); + std::string text = FormatOwnedString(LookupMessage(MSI_SCREENSHOT_FOR_EXCHANGE_CHARNAME), this->partnerName.c_str()); g_modeMgr.gameMode->SendMsg(MM_SCREENSHOT, reinterpret_cast(text.c_str()), 0, 0, 0); } @@ -265,7 +266,7 @@ void CUIExchangeUI::SubmitZeny() { this->lockButton->disabled = 1; this->lockButton->Invalidate(); } else { - g_windowMgr.Confirm(LookupMessage(0x25A), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CAN_INPUT_NUMBER_ONLY), 0, true, false, 0, "Message", 280, 120, 0); } } @@ -346,11 +347,11 @@ void CUIExchangeUI::OnInit() { this->Move((g_renderer->viewport.width - 640) / 2 + 100, g_renderer->viewport.height * 100 / 480); { - const std::string title = std::format("{} : ", LookupMessage(0xCE)); + const std::string title = std::format("{} : ", LookupMessage(MSI_EXCHANGE)); this->titleBar->SetTitle(title); } - this->unknown_010C->SetText(LookupMessage(0x727)); + this->unknown_010C->SetText(LookupMessage(MSI_SCREENSHOT_FOR_EXCHANGE)); for (int count = 10; count != 0; --count) { this->firstList->AddData(ExchangeUI::CItemData(ITEM_INFO(), 0), false); @@ -398,7 +399,7 @@ void CUIExchangeUI::OnProcess() { amount = amount < 0 ? 0 : amount; if (amount > 1000000000) { - g_windowMgr.Confirm(LookupMessage(0x9A3), 2, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BASIC_EXP_MSG_INDONESIA), 2, true, false, 0, "Message", 280, 120, 0); FormatGroupedInteger(1000000000, text, sizeof(text)); this->zenyEdit->SetText(text); this->SetZeny(1000000000); @@ -411,7 +412,7 @@ void CUIExchangeUI::OnProcess() { this->zenyEdit->SetCursor(this->zenyEdit->Length()); } else { - g_windowMgr.Confirm(LookupMessage(0x25A), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CAN_INPUT_NUMBER_ONLY), 0, true, false, 0, "Message", 280, 120, 0); this->zenyEdit->SetText(this->zenyText); } } diff --git a/Source/UI/GameSettings/GameSettingsUI.cpp b/Source/UI/GameSettings/GameSettingsUI.cpp index db245693c..2962814cd 100644 --- a/Source/UI/GameSettings/GameSettingsUI.cpp +++ b/Source/UI/GameSettings/GameSettingsUI.cpp @@ -35,6 +35,7 @@ #include "Utility/Cipher/XorBytes.h" #include "Utility/Text/StringUtil.h" #include "UI/Window/UIRegisterMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -1387,7 +1388,7 @@ void CUIGroup::Apply() { void CUIGroupEmblem::Apply() { g_serviceOptions.Set(0xF3, 0); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xDC8)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ADDSKILL_FAIL_INCLUDE_SKILL_YOU_CANNOT_LEARN)), 0x64FFFF, 0, 0, 0); } // OFFSET: 0x00A40480 @@ -1395,7 +1396,7 @@ void CUIGroupEmblem::Apply() { void CUIGroupLogInOut::Apply() { g_serviceOptions.Set(0xA5, 1); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x414)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_LOGINOUT_ON)), 0x64FFFF, 0, 0, 0); } // OFFSET: 0x00A404F0 @@ -2104,13 +2105,13 @@ void SetComboItemSkinText(GameSettingsUI::CUIComboItem* item, const std::string& // OFFSET: 0x00A41C60 // FUNCTION: fn_15996 void GameSettingsUI::CUIGroupSpriteDetailLevel::OnInit() { - this->m_title->SetText(LookupMessage(0x144)); + this->m_title->SetText(LookupMessage(MSI_SPRITE_RESOLUTION)); } // OFFSET: 0x00A41CA0 // FUNCTION: fn_15997 void GameSettingsUI::CUIGroupTextureDetailLevel::OnInit() { - this->m_title->SetText(LookupMessage(0x145)); + this->m_title->SetText(LookupMessage(MSI_TEXTURE_RESOLUTION)); } // OFFSET: 0x00AA2760 @@ -2259,24 +2260,24 @@ __declspec(noinline) void CUIGameSettingsUI::RefreshOption(int id) { // OFFSET: 0x00A41120 // FUNCTION: fn_15987 void GameSettingsUI::CUIGroupEmblem::OnInit() { - this->m_title->SetText(LookupMessage(0x1032)); - this->m_onText->SetText(LookupMessage(0x1035)); - this->m_offText->SetText(LookupMessage(0x1036)); + this->m_title->SetText(LookupMessage(MSI_GAME_SETTINGS_HIDE)); + this->m_onText->SetText(LookupMessage(MSI_GAME_SETTINGS_PROCESS_PRIORITY)); + this->m_offText->SetText(LookupMessage(MSI_GAME_SETTINGS_PROCESS_PRIORITY_HIGH)); } // OFFSET: 0x00A411C0 // FUNCTION: fn_15988 void GameSettingsUI::CUIGroupFullscreen::OnInit() { - this->m_title->SetText(LookupMessage(0x1057)); - this->m_onText->SetText(LookupMessage(0x1058)); - this->m_offText->SetText(LookupMessage(0x1059)); + this->m_title->SetText(LookupMessage(MSI_MACRO_CHECKER_MAP_NOT_PROPER_MAP)); + this->m_onText->SetText(LookupMessage(MSI_TAREN_TRWSDK_FILTER_SENSITIVEWORDS_ERROR)); + this->m_offText->SetText(LookupMessage(MSI_TAREN_TRWSDK_FILTER_NO_SEND_BECAUSE_SENSITIVEWORDS_ERROR)); } // OFFSET: 0x00A41260 // FUNCTION: fn_15989 void GameSettingsUI::CUIGroupGraphics::OnInit() { - this->m_title->SetText(LookupMessage(0xc6d)); - this->m_modeText->SetText(LookupMessage(0xc6e)); + this->m_title->SetText(LookupMessage(MSI_GRAPHIC_SETTING_MOUSE_SET)); + this->m_modeText->SetText(LookupMessage(MSI_STORE_ASSISTANT_TRADE_FEE)); GetRenderSystemHolder(); this->m_pendingAdapter = SelectedRenderAdapter(); this->m_adapter = this->m_pendingAdapter; @@ -2291,7 +2292,7 @@ void GameSettingsUI::CUIGroupGraphics::OnInit() { // OFFSET: 0x00A41510 // FUNCTION: fn_15990 void GameSettingsUI::CUIGroupGraphicsAPI::OnInit() { - this->m_title->SetText(LookupMessage(0x1001)); + this->m_title->SetText(LookupMessage(MSI_ENCHANT_MARK_2)); const int backend = GetRenderSystemHolder()->Backend(); this->m_pendingBackend = backend; this->m_backend = backend; @@ -2300,32 +2301,32 @@ void GameSettingsUI::CUIGroupGraphicsAPI::OnInit() { // OFFSET: 0x00A41710 // FUNCTION: fn_15992 void GameSettingsUI::CUIGroupProcessPriority::OnInit() { - this->m_title->SetText(LookupMessage(0x1039)); - this->m_highText->SetText(LookupMessage(0x103A)); - const char* highTooltip = LookupMessage(0x103B); + this->m_title->SetText(LookupMessage(MSI_GAME_SETTINGS_PROCESS_PRIORITY_NORMAL_TOOLTIP)); + this->m_highText->SetText(LookupMessage(MSI_GAME_SETTINGS_PROCESS_PRIORITY_IDLE)); + const char* highTooltip = LookupMessage(MSI_GAME_SETTINGS_PROCESS_PRIORITY_IDLE_TOOLTIP); this->m_highText->SetTooltip(highTooltip, std::strlen(highTooltip)); - this->m_normalText->SetText(LookupMessage(0x103C)); - const char* normalTooltip = LookupMessage(0x103D); + this->m_normalText->SetText(LookupMessage(MSI_GAME_SETTINGS_AURA)); + const char* normalTooltip = LookupMessage(MSI_GAME_SETTINGS_SIMPLE_AURA); this->m_normalText->SetTooltip(normalTooltip, std::strlen(normalTooltip)); - this->m_idleText->SetText(LookupMessage(0x103E)); - const char* idleTooltip = LookupMessage(0x103F); + this->m_idleText->SetText(LookupMessage(MSI_GAME_SETTINGS_SIMPLE_AURA_OFF)); + const char* idleTooltip = LookupMessage(MSI_GAME_SETTINGS_SIMPLE_AURA_ON); this->m_idleText->SetTooltip(idleTooltip, std::strlen(idleTooltip)); } // OFFSET: 0x00A41870 // FUNCTION: fn_15993 void GameSettingsUI::CUIGroupRodexSpam::OnInit() { - this->m_title->SetText(LookupMessage(0xC40)); - this->m_onText->SetText(LookupMessage(0x1038)); - this->m_offText->SetText(LookupMessage(0x1037)); + this->m_title->SetText(LookupMessage(MSI_MOVE)); + this->m_onText->SetText(LookupMessage(MSI_GAME_SETTINGS_PROCESS_PRIORITY_NORMAL)); + this->m_offText->SetText(LookupMessage(MSI_GAME_SETTINGS_PROCESS_PRIORITY_HIGH_TOOLTIP)); } // OFFSET: 0x00A41CE0 // FUNCTION: fn_15998 void GameSettingsUI::CUIGroupTrilinear::OnInit() { - this->m_title->SetText(LookupMessage(0x105A)); - this->m_onText->SetText(LookupMessage(0x1033)); - this->m_offText->SetText(LookupMessage(0x1034)); + this->m_title->SetText(LookupMessage(MSI_REFUSE_SDK_AUTH_FAILED)); + this->m_onText->SetText(LookupMessage(MSI_GAME_SETTINGS_RODEX_SPAM_ON)); + this->m_offText->SetText(LookupMessage(MSI_GAME_SETTINGS_RODEX_SPAM_OFF)); } // OFFSET: 0x00A193A0 @@ -2371,19 +2372,19 @@ __declspec(noinline) CUIListBoxEx::CUIL // OFFSET: 0x00A41B60 // FUNCTION: fn_15995 void GameSettingsUI::CUIGroupSound::OnInit() { - this->m_title->SetText(LookupMessage(0x5CD)); - this->m_bgmText->SetText(LookupMessage(0x5D7)); - this->unknown_0090->SetText(LookupMessage(0x1034)); - this->m_effectText->SetText(LookupMessage(0x5D8)); - this->unknown_00A0->SetText(LookupMessage(0x1034)); + this->m_title->SetText(LookupMessage(MSI_SOUND_OPTIONWND)); + this->m_bgmText->SetText(LookupMessage(MSI_BGM)); + this->unknown_0090->SetText(LookupMessage(MSI_GAME_SETTINGS_RODEX_SPAM_OFF)); + this->m_effectText->SetText(LookupMessage(MSI_SOUND)); + this->unknown_00A0->SetText(LookupMessage(MSI_GAME_SETTINGS_RODEX_SPAM_OFF)); } // OFFSET: 0x00A41560 // FUNCTION: fn_15991 void GameSettingsUI::CUIGroupLogInOut::OnInit() { - this->m_title->SetText(LookupMessage(0x107D)); - this->m_onText->SetText(LookupMessage(0x1033)); - this->m_offText->SetText(LookupMessage(0x1034)); + this->m_title->SetText(LookupMessage(MSI_SKILL_DELAY_INFO_CAST_STAT)); + this->m_onText->SetText(LookupMessage(MSI_GAME_SETTINGS_RODEX_SPAM_ON)); + this->m_offText->SetText(LookupMessage(MSI_GAME_SETTINGS_RODEX_SPAM_OFF)); const char* tooltipText = []() { constexpr std::uint8_t bytes[] = {0x8A, 0xF1, 0x02, 0x9E, 0x0A, 0x49, 0x18, 0x76, 0xD1, 0x97, 0x42, 0x95, 0x0A, 0x27}; constexpr EncryptedSource<14> source(bytes); @@ -2434,8 +2435,8 @@ void GameSettingsUI::CUIGroupGraphics::OnModeSelect(CUIComboItem* item, const Di // OFFSET: 0x00A41910 // FUNCTION: fn_15994 void GameSettingsUI::CUIGroupSkin::OnInit() { - this->m_title->SetText(LookupMessage(0x5D9)); - this->m_combo->AddItem(std::string(LookupMessage(0xC12)), false); + this->m_title->SetText(LookupMessage(MSI_SKIN)); + this->m_combo->AddItem(std::string(LookupMessage(MSI_ACHIEVEMENT_COMMAND)), false); for (int index = 0; index < static_cast(g_skinInfo.prefixes.size()); ++index) { this->m_combo->AddItem(std::string(g_skinInfo.Name(index)), false); } @@ -4363,7 +4364,7 @@ void CUIGameSettingsUI::RefreshHotkeyLabels() { // OFFSET: 0x00A3F180 // FUNCTION: fn_15940 void CUIGameSettingsUI::ResetToDefaults() { - if (g_windowMgr.Confirm(LookupMessage(3166), 2, true, false, 0, "Message", 280, 120, 0) == 0xBC) { + if (g_windowMgr.Confirm(LookupMessage(MSI_GRAPHIC_SETTING_FOG_CHECK), 2, true, false, 0, "Message", 280, 120, 0) == 0xBC) { return; } @@ -4957,12 +4958,12 @@ void CUIGameSettingsUI::OnCreate(int width, int height) { // FUNCTION: fn_15986 void CUIGameSettingsUI::OnInit() { this->Move((g_renderer->viewport.width - this->geometry.width) / 2, (g_renderer->viewport.height - this->geometry.height) / 2); - static_cast(this->m_titleBar)->SetTitle(LookupMessage(0x946)); - static_cast(this->m_tab->FindChildById(0))->SetText(LookupMessage(0x102E)); - static_cast(this->m_tab->FindChildById(1))->SetText(LookupMessage(0x102F)); - static_cast(this->m_tab->FindChildById(2))->SetText(LookupMessage(0x1030)); - static_cast(this->m_tab->FindChildById(3))->SetText(LookupMessage(0x1031)); - static_cast(this->m_tab->FindChildById(4))->SetText(LookupMessage(0x107E)); + static_cast(this->m_titleBar)->SetTitle(LookupMessage(MSI_COMMAND_LIST)); + static_cast(this->m_tab->FindChildById(0))->SetText(LookupMessage(MSI_GAME_SETTINGS_EMBLEM_FRAME)); + static_cast(this->m_tab->FindChildById(1))->SetText(LookupMessage(MSI_GAME_SETTINGS_ON)); + static_cast(this->m_tab->FindChildById(2))->SetText(LookupMessage(MSI_GAME_SETTINGS_OFF)); + static_cast(this->m_tab->FindChildById(3))->SetText(LookupMessage(MSI_GAME_SETTINGS_SHOW)); + static_cast(this->m_tab->FindChildById(4))->SetText(LookupMessage(MSI_SKILL_DELAY_INFO_GLOBAL_POST)); for (UIWindow* child : this->m_currentPage->m_children) { static_cast(child)->Refresh(); diff --git a/Source/UI/Guild/UIAgitWnd.cpp b/Source/UI/Guild/UIAgitWnd.cpp index 84c690811..4bd38abb3 100644 --- a/Source/UI/Guild/UIAgitWnd.cpp +++ b/Source/UI/Guild/UIAgitWnd.cpp @@ -18,6 +18,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -31,7 +32,7 @@ UIAgitMessageBox::UIAgitMessageBox() // OFFSET: 0x0095D580 // FUNCTION: fn_13068 void UIAgitMessageBox::Paint() { - this->DrawTitleBar(true, LookupMessage(3640), 0); + this->DrawTitleBar(true, LookupMessage(MSI_USESKILL_FAIL_AP_INSUFFICIENT), 0); this->DrawPanelBackground(17, 0, ""); this->DrawButtonBar(2, 0, 1); } @@ -152,7 +153,7 @@ int UIListBoxAgitMenu::SendMsg(UIWindow* sender, int message, std::intptr_t a, s switch (a) { case 0: { if (g_session.GetSceneUnknown004C() == 1) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3633)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TOOLTIP_OF_OPTIONOFF_BTN)), 0xFF, 0, 0, 0); return 0; } @@ -168,7 +169,7 @@ int UIListBoxAgitMenu::SendMsg(UIWindow* sender, int message, std::intptr_t a, s g_session.m_hotkeyScript->Call("get_agit_costzeny", "db>d", agitId, 1, &costGuildPoint); UIAgitMessageBox* box = new UIAgitMessageBox(); - const char* text = FormatString(LookupMessage(3631), agitName, costZeny, costGuildPoint); + const char* text = FormatString(LookupMessage(MSI_NOT_LEARN_BASIC_SKILL), agitName, costZeny, costGuildPoint); box->InitializeMessageBox(text, 310, 130); int x = g_renderer->viewport.centerX - box->geometry.width / 2; diff --git a/Source/UI/Guild/UIGuildHelperWnd.cpp b/Source/UI/Guild/UIGuildHelperWnd.cpp index 06b5e5019..4bac8309c 100644 --- a/Source/UI/Guild/UIGuildHelperWnd.cpp +++ b/Source/UI/Guild/UIGuildHelperWnd.cpp @@ -18,6 +18,7 @@ #include "Resource/SkinPalette.h" #include "UI/Text/UITextViewer.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -56,10 +57,10 @@ UIGuildBanReasonDescWnd::UIGuildBanReasonDescWnd() { // OFFSET: 0x0095DB20 // FUNCTION: fn_13071 void UIGuildHelperWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(2074), 0); + this->DrawTitleBar(true, LookupMessage(MSI_GUILD_HELPER), 0); this->DrawPanelBackground(17, 0, ""); this->DrawButtonBar(2, 0, 1); - this->DrawTextAt(15, 32, LookupMessage(2075), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(15, 32, LookupMessage(MSI_NO_GUILD_CURRENTLY_PARTICIPATED_IN), 0, 0, 12, 0, 0, 0); } // OFFSET: 0x0095FCB0 @@ -124,7 +125,7 @@ void UICreateGuildWnd::OnLBtnUp(int, int) { // OFFSET: 0x0095F420 // FUNCTION: fn_13078 void UIGuildTipWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(2078), 0); + this->DrawTitleBar(true, LookupMessage(MSI_PARTY_RECRUIT_REFUSE_VOLUNTEER), 0); this->DrawPanelBackground(17, 0, ""); this->DrawButtonBar(2, 0, 1); } @@ -166,10 +167,10 @@ int UICreateGuildWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a1, s this->m_nameEdit->SelectAll(); if (name.empty()) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2080)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SHOW_MAPNAMETITLE)), 0xFF, 0, 0, 0); } else if (_mbsstr(reinterpret_cast(this->m_nameEdit->Text()), reinterpret_cast(s_itemLinkOpening.c_str())) || _mbsstr(reinterpret_cast(this->m_nameEdit->Text()), reinterpret_cast(s_itemLinkClosing.c_str()))) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2812)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_STYLING_SHOP_OPEN_COUPON)), 0xFF, 0, 0, 0); } else if (this->m_mode == 0) { mode->SendMsg(MM_REQ_MAKE_GUILD, reinterpret_cast(name.c_str()), 0, 0, 0); } else { @@ -350,7 +351,7 @@ void UIGuildBanReasonDescWnd::OnCreate(int width, int height) { UIGuildLeaveReasonDescWnd::OnCreate(width, height); if (this->m_reasonText != nullptr) { - this->m_reasonText->SetText(LookupMessage(0x20C), 0); + this->m_reasonText->SetText(LookupMessage(MSI_PELASE_INPUT_WHY_EXPEL), 0); } } @@ -370,7 +371,7 @@ void UIGuildLeaveReasonDescWnd::OnCreate(int, int) { this->m_reasonText = new UIStaticText(); this->m_reasonText->SetSize(this->geometry.width - 30, 15); this->m_reasonText->Move(15, 6); - this->m_reasonText->SetText(LookupMessage(523), 0); + this->m_reasonText->SetText(LookupMessage(MSI_PLEASE_INPUT_WHY_LEAVING), 0); this->AddChild(this->m_reasonText); { diff --git a/Source/UI/Guild/UIGuildWnd.cpp b/Source/UI/Guild/UIGuildWnd.cpp index 818b50b4a..a35b5d831 100644 --- a/Source/UI/Guild/UIGuildWnd.cpp +++ b/Source/UI/Guild/UIGuildWnd.cpp @@ -37,6 +37,7 @@ #include #include "Contents/GuildInfo.h" +#include "Resource/MSGSTRINGID.h" // GLOBAL: gl_24999 int g_guildMemberColumnWidths[6] = {98, 65, 53, 39, 39, 76}; @@ -597,12 +598,12 @@ __declspec(noinline) void UIGuildWnd::CreateTabs() { } const char* names[6]; - names[0] = LookupMessage(340); - names[1] = LookupMessage(341); - names[2] = LookupMessage(342); - names[3] = LookupMessage(343); - names[4] = LookupMessage(344); - names[5] = LookupMessage(345); + names[0] = LookupMessage(MSI_GUILDINFOMANAGE); + names[1] = LookupMessage(MSI_GUILDMEMBERMANAGE); + names[2] = LookupMessage(MSI_GUILDPOSITIONMANAGE); + names[3] = LookupMessage(MSI_GUILDSKILL); + names[4] = LookupMessage(MSI_GUILDBANISHEDMEMBER); + names[5] = LookupMessage(MSI_GUILDNOTICE); const char** name = names; UIStaticText** tab = this->m_tabs; @@ -992,7 +993,7 @@ void UIGuildInfoManageWnd::OnCreate(int, int) { this->m_agitList = new UIListBoxAgit(); this->m_agitList->SetSize(95, 158); - this->m_agitList->Move(this->TextWidth(LookupMessage(333), 0, 0, 12, 0, 0) + 19, 129); + this->m_agitList->Move(this->TextWidth(LookupMessage(MSI_GUILD_MANAGE_LAND), 0, 0, 12, 0, 0) + 19, 129); this->m_agitList->lineHeight = 13; this->m_agitList->SetId(558); this->AddChild(this->m_agitList); @@ -1001,8 +1002,8 @@ void UIGuildInfoManageWnd::OnCreate(int, int) { this->m_agitMenu->SetSize(120, 35); this->m_agitMenu->SetId(559); this->m_agitMenu->Show(0); - this->m_agitMenu->AddLine(LookupMessage(3629)); - this->m_agitMenu->AddLine(LookupMessage(3630)); + this->m_agitMenu->AddLine(LookupMessage(MSI_GUILD_AGIT_SHOW_INVESTMENT_INFO)); + this->m_agitMenu->AddLine(LookupMessage(MSI_GUILD_AGIT_MOVE_FAIL_MAP)); this->AddChild(this->m_agitMenu); this->RefreshAgitList(); } @@ -1119,9 +1120,9 @@ std::string UIGuildWnd::StripNamelessTag(const std::string& name) { void UIGuildNoticeWnd::Paint() { UIGuildWnd::Paint(); char label[64]; - std::sprintf(label, "%s:", LookupMessage(515)); + std::sprintf(label, "%s:", LookupMessage(MSI_TITLE)); this->DrawTextAt(5, 67, label, 0, 0, 12, 0, 0, 0); - this->DrawTextAt(5, 86, LookupMessage(516), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(5, 86, LookupMessage(MSI_CONTENTS), 0, 0, 12, 0, 0, 0); this->DrawRightAlignedText(this->geometry.width - 7, 266, FormatOwnedString("[%d/%d]", this->m_bodyEdit->Length(), 119).c_str(), 0, 0, 12, 0, 0); } @@ -1307,7 +1308,7 @@ void UIGuildSkillWnd::Paint() { std::sprintf(text, g_serviceType == 12 ? "Nv : %d" : "Lv : %d", skill->level); this->DrawTextAt(x + 113, y + 58, text, 0, 0, 12, 0, 0, 0); if (skill->unknown_000C == 0) { - std::sprintf(text, LookupMessage(286)); + std::sprintf(text, LookupMessage(MSI_PASSIVE)); } else { std::sprintf(text, "Sp : %d", skill->unknown_0014); } @@ -1379,12 +1380,12 @@ void UIGuildPositionManageWnd::Paint() { } const char* headers[6]; - headers[0] = LookupMessage(510); - headers[1] = LookupMessage(511); - headers[2] = LookupMessage(512); - headers[3] = LookupMessage(513); - headers[4] = LookupMessage(2499); - headers[5] = LookupMessage(514); + headers[0] = LookupMessage(MSI_GRADE); + headers[1] = LookupMessage(MSI_POSITION_NAME); + headers[2] = LookupMessage(MSI_JOIN_AUTHORITY); + headers[3] = LookupMessage(MSI_PENALTY_AUTORITY); + headers[4] = LookupMessage(MSI_BARGAINSALE_TOOLWND_TITLE); + headers[5] = LookupMessage(MSI_CONTRIBUTION_PERCENT); int x = 0; for (int column = 0; column < 6; ++column) { this->DrawTextAt(x + 8, 49, headers[column], 0, 0, 12, 0, 0, 0); @@ -1480,14 +1481,14 @@ void UIGuildInfoManageWnd::Paint() { UIGuildWnd::Paint(); GuildInfo& guild = g_guildInfo; char text[1024]; - std::sprintf(text, "%s : %s", LookupMessage(328), guild.unknown_0000.c_str()); + std::sprintf(text, "%s : %s", LookupMessage(MSI_GUILDNAME), guild.unknown_0000.c_str()); this->DrawTextAt(8, 49, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, "%s : %d", LookupMessage(329), guild.unknown_0060); + std::sprintf(text, "%s : %d", LookupMessage(MSI_GUILDLEVEL), guild.unknown_0060); this->DrawTextAt(8, 65, text, 0, 0, 12, 0, 0, 0); const std::string master = this->StripNamelessTag(g_guildInfo.unknown_0018); - std::sprintf(text, "%s : %s", LookupMessage(330), master.c_str()); + std::sprintf(text, "%s : %s", LookupMessage(MSI_GUILD_MASTER_NAME), master.c_str()); this->DrawTextAt(8, 81, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, "%s : %d / %d", LookupMessage(331), guild.unknown_0064, guild.unknown_006C); + std::sprintf(text, "%s : %d / %d", LookupMessage(MSI_GUILD_NUM_MEMBER), guild.unknown_0064, guild.unknown_006C); this->DrawTextAt(8, 97, text, 0, 0, 12, 0, 0, 0); const int width = this->TextWidth(text, 0, 0, 12, 0, 0); @@ -1501,22 +1502,22 @@ void UIGuildInfoManageWnd::Paint() { } else { this->DrawBitmap(width + 16, 95, online, true); std::sprintf(text, " %d", guild.unknown_0068); - this->TextWidth(LookupMessage(330), 0, 0, 12, 0, 0); + this->TextWidth(LookupMessage(MSI_GUILD_MASTER_NAME), 0, 0, 12, 0, 0); x = online->image.width + 16 + width; } this->DrawTextAt(x, 97, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, "%s : %d", LookupMessage(332), guild.unknown_0070); + std::sprintf(text, "%s : %d", LookupMessage(MSI_GUILD_AVG_MEMBER_LEVEL), guild.unknown_0070); this->DrawTextAt(8, 113, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, "%s : %s", LookupMessage(333), guild.unknown_0074.c_str()); + std::sprintf(text, "%s : %s", LookupMessage(MSI_GUILD_MANAGE_LAND), guild.unknown_0074.c_str()); this->DrawTextAt(8, 129, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, "%s : %d", LookupMessage(335), guild.unknown_008C); + std::sprintf(text, "%s : %d", LookupMessage(MSI_GUILD_EXP), guild.unknown_008C); this->DrawTextAt(200, 49, text, 0, 0, 12, guild.unknown_0060 >= 50 ? 0xFF : 0, 0, 0); - std::sprintf(text, "%s", LookupMessage(336)); + std::sprintf(text, "%s", LookupMessage(MSI_GUILD_EMBLEM)); this->DrawTextAt(200, 73, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, "%s", LookupMessage(338)); + std::sprintf(text, "%s", LookupMessage(MSI_ALLY_GUILD)); this->DrawTextAt(200, 139, text, 0, 0, 12, 0, 0, 0); - std::sprintf(text, "%s", LookupMessage(339)); + std::sprintf(text, "%s", LookupMessage(MSI_HOSTILITY_GUILD)); this->DrawTextAt(200, 213, text, 0, 0, 12, 0, 0, 0); unsigned red, green, blue; @@ -1629,10 +1630,10 @@ void UIGuildTotalInfoWnd::Paint() { } const char* headers[4]; - headers[0] = LookupMessage(517); - headers[1] = LookupMessage(518); - headers[2] = LookupMessage(519); - headers[3] = LookupMessage(520); + headers[0] = LookupMessage(MSI_GUILD_NAME); + headers[1] = LookupMessage(MSI_GUILD_LEVEL); + headers[2] = LookupMessage(MSI_GUILD_PEOPLE_COUNT); + headers[3] = LookupMessage(MSI_RANKING); int x = 0; for (int column = 0; column < 4; ++column) { this->DrawTextAt(x + 8, 49, headers[column], 0, 0, 12, 0, 0, 0); @@ -1752,7 +1753,7 @@ void UIGuildMemberManageWnd::OnCreate(int, int) { this->m_onlineCheck = new UICheckBox(); this->m_onlineCheck->SetSize(240, 12); - this->m_onlineCheck->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(2864)); + this->m_onlineCheck->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_PARTYNAME)); this->m_onlineCheck->FitToText(); this->m_onlineCheck->Move(12, this->geometry.height - 18); this->m_onlineCheck->SetChecked(g_session.m_guildMemberListSort); @@ -1822,8 +1823,8 @@ void UIGuildBanishedMemberWnd::Paint() { } const char* headers[2]; - headers[0] = LookupMessage(407); - headers[1] = LookupMessage(462); + headers[0] = LookupMessage(MSI_NAME); + headers[1] = LookupMessage(MSI_GUILD_KICK_REASON); int x = 0; for (int column = 0; column < 2; ++column) { this->DrawTextAt(x + 8, 49, headers[column], 0, 0, 12, 0, 0, 0); @@ -1881,7 +1882,7 @@ bool UIGuildMemberManageWnd::DrawMember(GuildInfo::Member& member, int& index, i } const std::string& name = member.name; if (member.name.size() == 0) { - member.name = LookupMessage(581); + member.name = LookupMessage(MSI_NAMELESS_USER); member.name += g_guildNamelessTag; } @@ -1956,11 +1957,11 @@ bool UIGuildMemberManageWnd::DrawMember(GuildInfo::Member& member, int& index, i char lastLogin[128]; const __time32_t* lastLoginTime = reinterpret_cast(member.unknown_0074); if (*lastLoginTime != 0) { - strftime(lastLogin, sizeof(lastLogin), LookupMessage(3011), _localtime32(lastLoginTime)); + strftime(lastLogin, sizeof(lastLogin), LookupMessage(MSI_CANNOT_OPEN_BANKING_DURING_REFINING), _localtime32(lastLoginTime)); } else { lastLogin[0] = '\0'; } - this->DrawTextAt(8, y + 17, FormatOwnedString(LookupMessage(3012), lastLogin).c_str(), 0, 0, 11, 0x404040, 0, 0); + this->DrawTextAt(8, y + 17, FormatOwnedString(LookupMessage(MSI_SWAP_EQUIPITEM_UNREGISTER_FIRST), lastLogin).c_str(), 0, 0, 11, 0x404040, 0, 0); return true; } @@ -2019,7 +2020,7 @@ int UIGuildNoticeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a1, s case ID_SEND_GUILD_NOTICE: { std::string body(this->m_bodyEdit->Text()); if (g_forbiddenWords.Contains(this->m_titleEdit->Text()) == true || g_forbiddenWords.Contains(body.c_str()) == true) { - g_windowMgr.Confirm(LookupMessage(14), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BAD_SENTANGE), 0, true, false, 0, "Message", 280, 120, 0); } else { if (g_guildInfo.unknown_00B4) { g_modeMgr.gameMode->SendMsg(MM_GUILD_NOTICE, g_guildInfo.m_guildId, reinterpret_cast(this->m_titleEdit->Text()), reinterpret_cast(body.c_str()), 0); @@ -2162,7 +2163,7 @@ int UIGuildSkillWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a1, st if (this->m_hoverIndex != -1) { CSkillInfo skill = this->SkillAt(this->m_hoverIndex); if (skill.available != 0) { - const std::string text = LookupMessage(322); + const std::string text = LookupMessage(MSI_SEE_INFORMATION_OF_SKILL); this->m_menuItems.push_back(MiniPartyInfoEntry(text.c_str(), 3)); } } @@ -2438,7 +2439,7 @@ int UIGuildPositionManageWnd::SendMsg(UIWindow* sender, int message, std::intptr if (found) { position.tax = std::atoi(this->unknown_0154[row]->Text()); if (position.tax < 0 || position.tax > 50) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(3460), 50, 0).c_str()), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_INC_ATTACKDAMAGE_ABILITYPOWER), 50, 0).c_str()), 0xFF, 0, 0, 0); if (position.tax < 0) { position.tax = 0; } else if (position.tax > 50) { @@ -2521,12 +2522,12 @@ void UIGuildMemberManageWnd::Paint() { } const char* headers[6]; - headers[0] = LookupMessage(407); - headers[1] = LookupMessage(503); - headers[2] = LookupMessage(504); - headers[3] = LookupMessage(408); - headers[4] = LookupMessage(506); - headers[5] = LookupMessage(507); + headers[0] = LookupMessage(MSI_NAME); + headers[1] = LookupMessage(MSI_POSITION); + headers[2] = LookupMessage(MSI_JOB); + headers[3] = LookupMessage(MSI_LEVEL); + headers[4] = LookupMessage(MSI_CONTRIBUTION); + headers[5] = LookupMessage(MSI_EXP_CONTIRIBUTION); int textX = 10; for (int column = 0; column < 6; ++column) { const char* header = headers[column]; @@ -2674,35 +2675,35 @@ int UIGuildMemberManageWnd::SendMsg(UIWindow* sender, int message, std::intptr_t if (member.characterId == static_cast(g_session.m_gid)) { if (master != 0) { if (member.characterId != master) { - this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(508), 17)); + this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(MSI_LEAVE_GUILD), 17)); } } else if (!(member.name == g_guildInfo.unknown_0018)) { - this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(508), 17)); + this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(MSI_LEAVE_GUILD), 17)); } } else { if (master != 0) { if (master == static_cast(g_session.m_gid)) { - this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(509), 16)); - this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(2923), 59)); + this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(MSI_EXPEL_GUILD), 16)); + this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(MSI_SHOP_WITHDRAWAL), 59)); } else if (g_guildInfo.unknown_00B0 != 0 && member.characterId != master) { - this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(509), 16)); + this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(MSI_EXPEL_GUILD), 16)); } } else if (g_guildInfo.unknown_0018 == g_session.DecodePlayerName()) { - this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(509), 16)); - this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(2923), 59)); + this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(MSI_EXPEL_GUILD), 16)); + this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(MSI_SHOP_WITHDRAWAL), 59)); } else if (g_guildInfo.unknown_00B0 != 0 && !(member.name == g_guildInfo.unknown_0018)) { - this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(509), 16)); + this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(MSI_EXPEL_GUILD), 16)); } if (member.online == 1) { const bool invite = g_session.unknown_5464 != 0 && g_session.PartyByName(member.name.c_str()).valid == 0; if (invite) { - this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(1330), 5)); + this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(MSI_REQ_JOIN_PARTY3), 5)); } - this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(2043), 20)); + this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(MSI_DIRECT_CHAT), 20)); } - this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(2808), 58)); + this->unknown_0150.push_back(MiniPartyInfoEntry(LookupMessage(MSI_USA_PERSONALINFO_DEATH), 58)); } } } @@ -2732,7 +2733,7 @@ int UIGuildMemberManageWnd::SendMsg(UIWindow* sender, int message, std::intptr_t GuildInfo::Member member; if ((this->GetMember(this->m_hoverRow, member) && member.name.find(g_guildNamelessTag, 0) != std::string::npos) || !g_playerNameDictionary->Contains(member.characterId)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3041)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CHR_DELETE_FAIL_CHN_TAREN_PERSONALNUMBER)), 0xFF, 0, 0, 0); return 0; } @@ -2776,7 +2777,7 @@ int UIGuildMemberManageWnd::SendMsg(UIWindow* sender, int message, std::intptr_t if (this->GetMember(this->m_hoverRow, target) == true) { const char* relation; if (g_windowMgr.IsFriend(target.name.c_str()) == true) { - relation = LookupMessage(102); + relation = LookupMessage(MSI_FRIEND); } else { relation = g_session.IsGuildMemberCharacter(static_cast(target.characterId)) == true ? "GuildMember" : nullptr; } @@ -2796,7 +2797,7 @@ int UIGuildMemberManageWnd::SendMsg(UIWindow* sender, int message, std::intptr_t case 59: { GuildInfo::Member target; if (this->GetMember(this->m_hoverRow, target) == true) { - const std::string text = FormatOwnedString(LookupMessage(2924), target.name.c_str(), target.name.c_str()); + const std::string text = FormatOwnedString(LookupMessage(MSI_REMAIN_TIME), target.name.c_str(), target.name.c_str()); if (g_windowMgr.Confirm(text.c_str(), 2, false, false, 0, "Message", 280, 120, 0) != 188) { target.positionId = 0; target.positionName = g_guildInfo.m_positions[target.positionId]; @@ -3035,7 +3036,7 @@ int UIGuildInfoManageWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a g_windowMgr.CloseWindow(WID_MENUWND); } if (g_guildInfo.unknown_00B4 != 0) { - this->unknown_00E0.push_back(MiniPartyInfoEntry(LookupMessage(351), 27)); + this->unknown_00E0.push_back(MiniPartyInfoEntry(LookupMessage(MSI_DELETE), 27)); } if (this->unknown_00E0.size() != 0) { UIWindow* menu = g_windowMgr.EnsureWindow(WID_MENUWND); @@ -3075,7 +3076,7 @@ int UIGuildInfoManageWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a EnumerateFileNames(this->unknown_00D8, directory, "*.gif"); const int count = static_cast(this->unknown_00D8.size()); if (count == 0) { - g_windowMgr.Confirm(LookupMessage(3037), 0, true, false, 0, "Caution", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SWAP_FAIL_SWAP), 0, true, false, 0, "Caution", 280, 120, 0); return 0; } @@ -3093,7 +3094,7 @@ int UIGuildInfoManageWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a return 0; } case 449: - g_windowMgr.Confirm(LookupMessage(2564), 0, false, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PET_EVOLUTION), 0, false, false, 0, "Message", 280, 120, 0); g_windowMgr.EnsureWindow(WID_CREATEGUILDWND_MODE_1); return 0; } @@ -3119,7 +3120,7 @@ int UIGuildInfoManageWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a std::string path = FormatOwnedString("..\\..\\emblem\\%s", name.c_str()); CBitmapRes* bitmap = static_cast(ResourceMgr::Instance().Load(Resolve(path.c_str()))); if (!bitmap) { - g_windowMgr.Confirm(LookupMessage(3587), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RODEX_MESSAGE_DELETE_ALL), 0, true, false, 0, "Message", 280, 120, 0); return 0; } @@ -3127,16 +3128,16 @@ int UIGuildInfoManageWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a CFile file; if (file.Open(FormatOwnedString("..\\emblem\\%s", name.c_str()).c_str(), 0, true, false) == true) { if (g_guildMgr->m_timeout < file.GetSize()) { - g_windowMgr.Confirm(LookupMessage(3587), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RODEX_MESSAGE_DELETE_ALL), 0, true, false, 0, "Message", 280, 120, 0); } else { std::string uploadPath = FormatOwnedString("emblem\\%s", name.c_str()); if (!g_emblemDataMgr->Upload(this->m_guildId, uploadPath)) { - g_windowMgr.Confirm(LookupMessage(3586), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RODEX_BUTTON_DELETE_ALL), 0, true, false, 0, "Message", 280, 120, 0); } } } } else { - g_windowMgr.Confirm(LookupMessage(3587), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RODEX_MESSAGE_DELETE_ALL), 0, true, false, 0, "Message", 280, 120, 0); } } return 0; diff --git a/Source/UI/Guild/UIGuild_Storage_Log.cpp b/Source/UI/Guild/UIGuild_Storage_Log.cpp index 718e218e2..27df94328 100644 --- a/Source/UI/Guild/UIGuild_Storage_Log.cpp +++ b/Source/UI/Guild/UIGuild_Storage_Log.cpp @@ -9,6 +9,7 @@ #include "UI/Text/UIStaticText.h" #include "UI/Window/WindowManagerWindows.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -192,7 +193,7 @@ void UIGuild_Storage_Log::FillRows() { // OFFSET: 0x0094D290 // FUNCTION: fn_12904 void UIGuild_Storage_Log::Paint() { - this->DrawTitleBar(true, LookupMessage(0x9F3), 0); + this->DrawTitleBar(true, LookupMessage(MSI_INCORRECT_GAMESAMBEID), 0); this->DrawPanelBackground(17, 0, ""); this->DrawButtonBar(2, 0, 1); CBitmapRes* out = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\out.bmp"))); @@ -205,12 +206,12 @@ void UIGuild_Storage_Log::Paint() { this->unknown_0158->colors[this->m_category] = 0xC89623; this->unknown_0158->Invalidate(); - this->DrawTextAt(234, 23, LookupMessage(0x9F4), 0, 0, 11, 0xFF, 0, 0); - this->DrawTextAt(6, 47, LookupMessage(0x9EE), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(70, 47, LookupMessage(0x9EA), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(150, 47, LookupMessage(0x9EB), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(200, 47, LookupMessage(0x9EC), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(320, 47, LookupMessage(0x9ED), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(234, 23, LookupMessage(MSI_EA5), 0, 0, 11, 0xFF, 0, 0); + this->DrawTextAt(6, 47, LookupMessage(MSI_GUILD_STORAGE_LOG_IN), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(70, 47, LookupMessage(MSI_GUILD_STORAGE_LOG_TIME), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(150, 47, LookupMessage(MSI_GUILD_STORAGE_ITEM_IN_OUT), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(200, 47, LookupMessage(MSI_GUILD_STORAGE_LOG_FINISH), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(320, 47, LookupMessage(MSI_GUILD_STORAGE_LOG_ALL), 0, 0, 12, 0, 0, 0); this->FillRows(); int y = 60; diff --git a/Source/UI/Item/UIEquipmentPropertiesWnd.cpp b/Source/UI/Item/UIEquipmentPropertiesWnd.cpp index 9e2a2efbd..9b0b6ea43 100644 --- a/Source/UI/Item/UIEquipmentPropertiesWnd.cpp +++ b/Source/UI/Item/UIEquipmentPropertiesWnd.cpp @@ -14,6 +14,7 @@ #include "Utility/Cipher/XorBytes.h" #include "Utility/Text/StringUtil.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -343,7 +344,7 @@ void CUIEquipmentPropertiesWnd::OnCreate(int width, int height) { CUIStaticText* title = new CUIStaticText(); title->SetSize(100, 18); title->Move(18, 0); - title->SetText(LookupMessage(4029)); + title->SetText(LookupMessage(MSI_SEND_TO_ALLY)); title->SetFitText(0); title->SetAlign(0, 6); { diff --git a/Source/UI/Item/UIMerchantItemLogWnd.cpp b/Source/UI/Item/UIMerchantItemLogWnd.cpp index 50d5afa31..6dacccf3a 100644 --- a/Source/UI/Item/UIMerchantItemLogWnd.cpp +++ b/Source/UI/Item/UIMerchantItemLogWnd.cpp @@ -26,6 +26,7 @@ #include "Resource/TextureNames.h" #include "UI/Shop/ItemDrawing.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -171,11 +172,11 @@ void UIMerchantItemLogWnd::OnMouseHover(int x, int y) { if (item.identified == 1 && item.unknown_0098 != 0) { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString(LookupMessage(2551), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAIL_NEED_EQUIPPED_GUN_GATLING), item.DisplayName(0).c_str(), item.unknown_0098, item.quantity).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { g_modeMgr.gameMode - ->ShowTooltip(FormatOwnedString(LookupMessage(183), item.DisplayName(0).c_str(), item.quantity).c_str(), tooltipX, tooltipY, + ->ShowTooltip(FormatOwnedString(LookupMessage(MSI_EA2), item.DisplayName(0).c_str(), item.quantity).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } } @@ -186,7 +187,7 @@ void UIMerchantItemLogWnd::OnMouseHover(int x, int y) { void UIMerchantItemLogWnd::OnProcess() { bool changed = false; for (auto it = this->logs.begin(); it != this->logs.end(); ++it) { - if (it->name.compare(LookupMessage(581)) == 0) { + if (it->name.compare(LookupMessage(MSI_NAMELESS_USER)) == 0) { it->name = LookupPlayerName(it->characterId); changed = true; } diff --git a/Source/UI/Item/UIParaItemShopWnd.cpp b/Source/UI/Item/UIParaItemShopWnd.cpp index dac960f53..d4ab2a26b 100644 --- a/Source/UI/Item/UIParaItemShopWnd.cpp +++ b/Source/UI/Item/UIParaItemShopWnd.cpp @@ -38,6 +38,7 @@ #include "Utility/Text/FormatString.h" #include "Utility/Text/GroupedInteger.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -228,7 +229,7 @@ void UIParaResultWnd::OnCreate(int width, int height) { this->title = new UIStaticText(); this->title->SetSize(70, 15); - this->title->SetText(LookupMessage(2530), 0); + this->title->SetText(LookupMessage(MSI_GUILD_INVITE), 0); this->title->Move(16, 2); this->title->shadow = 1; this->AddChild(this->title); @@ -300,7 +301,7 @@ int UIParaItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_t if (count > 0) { mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(119)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EQUIPITEM_OLNY_ONE)), 255, 0, 0, 0); return 0; } break; @@ -326,7 +327,7 @@ int UIParaItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_t item.quantity += 30000 - combined; char text[200]; std::memset(text, 0, sizeof(text)); - sprintf_s(text, sizeof(text), LookupMessage(1704), 30000); + sprintf_s(text, sizeof(text), LookupMessage(MSI_LIMIT_BUY_ITEM2), 30000); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 255, 0, 0, 0); } @@ -335,7 +336,7 @@ int UIParaItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_t if (available != -1 && available < a) { item.quantity = available; g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2531)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PARA_PURCHASE_ITEM_FAIL)), 255, 0, 0, 0); } if (item.quantity > 0) { @@ -350,10 +351,10 @@ int UIParaItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_t if (!affordable) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(55)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INSUFFICIENT_MONEY)), 255, 0, 0, 0); } else if (weight + g_session.m_weight > g_session.m_maxWeight) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2536)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GUILD_STORAGE_ITEM_COUNT)), 255, 0, 0, 0); } else { if (item.unknown_0074[3] == 1) { g_session.RemoveItem1718(item); @@ -529,12 +530,12 @@ int UIParaItemShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s if (a == 1) { this->unknown_00F8 = 1; this->showQuantity = 1; - this->title->SetTextAutoWidth(LookupMessage(185)); + this->title->SetTextAutoWidth(LookupMessage(MSI_ITEMSYOUCANSELL)); this->checkBox->m_disabled = 0; } else { this->unknown_00F8 = 0; this->showQuantity = 0; - this->title->SetTextAutoWidth(LookupMessage(186)); + this->title->SetTextAutoWidth(LookupMessage(MSI_SHOPITEMS)); this->checkBox->m_disabled = 1; } return 0; @@ -607,7 +608,7 @@ int UIParaResultWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std } case UM_SETTITLE: this->showQuantity = 0; - this->title->SetTextAutoWidth(LookupMessage(2530)); + this->title->SetTextAutoWidth(LookupMessage(MSI_GUILD_INVITE)); this->SendMsg(nullptr, UM_RESIZE, 7, this->geometry.width, a, 0); return 0; case UM_RESIZE: @@ -773,13 +774,13 @@ void UIParaItemShopWnd::Paint() { if (this->unknown_010C == 1) { std::string text; if (g_serviceType == 0 && g_session.m_channelCopId == 1) { - text = static_cast(FormatOwnedString(LookupMessage(1290), this->ClipTextToWidth(g_session.DecodePlayerName(), 100, 0, 12, 0), g_pendingAid)); + text = static_cast(FormatOwnedString(LookupMessage(MSI_POINT_SHOP_NHN), this->ClipTextToWidth(g_session.DecodePlayerName(), 100, 0, 12, 0), g_pendingAid)); } else { - text = static_cast(FormatOwnedString(LookupMessage(1210), this->ClipTextToWidth(g_session.DecodePlayerName(), 100, 0, 12, 0), g_pendingAid)); + text = static_cast(FormatOwnedString(LookupMessage(MSI_POINT_SHOP), this->ClipTextToWidth(g_session.DecodePlayerName(), 100, 0, 12, 0), g_pendingAid)); } this->DrawTextAt(12, this->geometry.height - 21, text.c_str(), text.size(), 0, 12, 0, 0, 0); - text = static_cast(FormatOwnedString(LookupMessage(1305), this->ClipTextToWidth(g_session.DecodePlayerName(), 100, 0, 12, 0), g_pendingGid)); + text = static_cast(FormatOwnedString(LookupMessage(MSI_POINT_SHOP2), this->ClipTextToWidth(g_session.DecodePlayerName(), 100, 0, 12, 0), g_pendingGid)); this->DrawTextAt(12, this->geometry.height - barHeight - 21, text.c_str(), text.size(), 0, 12, 0, 0, 0); } } diff --git a/Source/UI/Items/MergeItemWnd.cpp b/Source/UI/Items/MergeItemWnd.cpp index 922c1900f..8cb0047d9 100644 --- a/Source/UI/Items/MergeItemWnd.cpp +++ b/Source/UI/Items/MergeItemWnd.cpp @@ -25,6 +25,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Math/AffineMatrix.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -133,7 +134,7 @@ void CMergeItemWnd::OnCreate(int, int) { void CMergeItemWnd::Paint() { unsigned red, green, blue; SkinPaletteChannels(ResourceMgr::Instance(), 2, 2, red, green, blue); - this->DrawTitleBar(true, LookupMessage(2169), 0); + this->DrawTitleBar(true, LookupMessage(MSI_MERGE_ITEM_FAILED_NOT_MERGE), 0); this->FillRegion(0, 17, this->geometry.width, this->geometry.height, RGB(red, green, blue)); for (int index = 0; index < this->m_visibleCount; ++index) { @@ -197,7 +198,7 @@ void CMergeItemWnd::OnMouseHover(int x, int y) { ITEM_INFO item = LookupClientItemByIdentity(g_session.m_inventoryItems, id); if (item.unknown_0000[1] != 0) { this->ToScreen(screenX, screenY); - std::string text = FormatOwnedString(LookupMessage(183), item.DisplayName(0).c_str(), item.quantity); + std::string text = FormatOwnedString(LookupMessage(MSI_EA2), item.DisplayName(0).c_str(), item.quantity); g_modeMgr.gameMode->ShowTooltip(text.c_str(), screenX, screenY, g_session.GetItemNameColor(item), 0, 1); } } @@ -395,7 +396,7 @@ bool CMergeItemWnd::RequestMerge() { } if (ids.size() < this->m_minSelection) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2170)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MERGE_ITEM_FAILED_MAX_COUNT)), 0xFF, 0, 0, 0); return false; } diff --git a/Source/UI/Items/UIGameItem.cpp b/Source/UI/Items/UIGameItem.cpp index fd9bae17c..16baf1964 100644 --- a/Source/UI/Items/UIGameItem.cpp +++ b/Source/UI/Items/UIGameItem.cpp @@ -17,6 +17,7 @@ #include "Utility/Text/FormatString.h" #include "Client/Mode/CMode.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -106,7 +107,7 @@ void CUIGameItem::OnMouseHover(int x, int y) { const std::uint32_t color = g_session.GetItemNameColor(this->itemInfo); CMode* tooltip = g_modeMgr.gameMode; if (this->itemInfo.unknown_0098 > 0) { - const std::string text = FormatOwnedString(LookupMessage(0xA28), this->name.c_str(), this->itemInfo.unknown_0098); + const std::string text = FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), this->name.c_str(), this->itemInfo.unknown_0098); tooltip->ShowTooltip(text.c_str(), screenX, screenY, color, 0, 1); } else { tooltip->ShowTooltip(this->name.c_str(), screenX, screenY, color, 0, 1); diff --git a/Source/UI/Items/UIItemRepairWnd.cpp b/Source/UI/Items/UIItemRepairWnd.cpp index ee910a0d9..0099a1fb8 100644 --- a/Source/UI/Items/UIItemRepairWnd.cpp +++ b/Source/UI/Items/UIItemRepairWnd.cpp @@ -22,6 +22,7 @@ #include "UI/Buttons/UIButton.h" #include "UI/Lists/UIListBox.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -46,7 +47,7 @@ struct UIItemRepairRecordHeader { // OFFSET: 0x009A3860 // FUNCTION: fn_13609 void UIItemRepairWnd::Paint() { - const int titleHeight = this->DrawTitleBar(true, LookupMessage(812), 0); + const int titleHeight = this->DrawTitleBar(true, LookupMessage(MSI_REPAIRITEMLIST), 0); this->DrawPanelBackground(titleHeight, 0, ""); this->DrawButtonBar(2, 0, 1); } diff --git a/Source/UI/Items/UIMakeTargetListWnd.cpp b/Source/UI/Items/UIMakeTargetListWnd.cpp index 35f8ba7a3..0919a565b 100644 --- a/Source/UI/Items/UIMakeTargetListWnd.cpp +++ b/Source/UI/Items/UIMakeTargetListWnd.cpp @@ -19,6 +19,7 @@ #include "UI/Lists/UIListBox.h" #include "UI/Window/WindowManagerWindows.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -45,7 +46,7 @@ std::vector UIMakeTargetListWnd::GetReplayData() { // OFFSET: 0x009A38A0 // FUNCTION: fn_13610 void UIMakeTargetListWnd::Paint() { - const int titleHeight = this->DrawTitleBar(true, LookupMessage(425), 0); + const int titleHeight = this->DrawTitleBar(true, LookupMessage(MSI_MAKE_LIST), 0); this->DrawPanelBackground(titleHeight, 0, ""); this->DrawButtonBar(2, 0, 1); } diff --git a/Source/UI/Items/UIMakeTargetProcessWnd.cpp b/Source/UI/Items/UIMakeTargetProcessWnd.cpp index 00ad1986c..ee94928f8 100644 --- a/Source/UI/Items/UIMakeTargetProcessWnd.cpp +++ b/Source/UI/Items/UIMakeTargetProcessWnd.cpp @@ -18,6 +18,7 @@ #include "UI/Window/UIWindowMgr.h" #include "UI/Window/WindowManagerWindows.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -149,9 +150,9 @@ void UIMakeTargetProcessWnd::Paint() { item.unknown_0060 = 0; item.identified = 1; const int nameWidth = this->DrawFittedItemName(16, 2, &item, 0, 0, 12, 0); - this->DrawShadowedText(nameWidth + 16, 2, LookupMessage(426), 0, 0, 0xFFFFFF, 0, 12, 0); + this->DrawShadowedText(nameWidth + 16, 2, LookupMessage(MSI_MAKE_TARGET), 0, 0, 0xFFFFFF, 0, 12, 0); const int requiredWidth = this->DrawFittedItemName(16, 22, &item, 0, 0, 12, 0); - this->DrawShadowedText(requiredWidth + 16, 22, LookupMessage(427), 0, 0, 0xFFFFFF, 0, 12, 0); + this->DrawShadowedText(requiredWidth + 16, 22, LookupMessage(MSI_REQUIRE_FOR_MAKE_TARGET), 0, 0, 0xFFFFFF, 0, 12, 0); const std::vector& lines = FindMetalProcessItems(this->makeType); int y = 42; diff --git a/Source/UI/Items/UISwapEquipmentWnd.cpp b/Source/UI/Items/UISwapEquipmentWnd.cpp index c9e066f86..719780bb8 100644 --- a/Source/UI/Items/UISwapEquipmentWnd.cpp +++ b/Source/UI/Items/UISwapEquipmentWnd.cpp @@ -30,6 +30,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -205,17 +206,17 @@ int UISwapEquipmentWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg return 1; case 0x1FC: if (g_windowMgr.LookupWindow(WID_EXCHANGEUI)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBB9)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SWAP_EQUIPITEM_FAIL_CHAT)), 0xFF, 0, 0, 0); return 1; } if (static_cast(g_modeMgr.GetGameMode())->unknown_0250) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBB7)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SWAP_EQUIPITEM_FAIL_MERCHANTSHOP)), 0xFF, 0, 0, 0); } else if (g_windowMgr.unknown_0304 || g_windowMgr.unknown_0308 || g_windowMgr.unknown_02FC) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBBA)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MDUNGEON_CREATE_FAIL_PARTY_ONLINE)), 0xFF, 0, 0, 0); } else if (static_cast(g_modeMgr.GetGameMode())->scene->player->unknown_0264[3]) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBB8)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SWAP_EQUIPITEM_FAIL_USE_NPC)), 0xFF, 0, 0, 0); } else if (g_windowMgr.unknown_01F0 || g_windowMgr.unknown_01F8) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBBB)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_USESKILL_FAIL_NEED_MORE_ARROW_CNT)), 0xFF, 0, 0, 0); } else { g_modeMgr.GetGameMode()->SendMsg(MM_SWAP_EQUIPMENT, 0, 0, 0, 0); } @@ -296,7 +297,7 @@ void UISwapEquipmentWnd::OnCreate(int width, int height) { this->m_swapButton->SetBitmap("유저인터페이스\\swap_equipment\\btn_change2_press.bmp", 2, 0); this->m_swapButton->SetSize(this->m_swapButton->BitmapWidth(), this->m_swapButton->BitmapHeight()); UISwapBitmapButton* button = this->m_swapButton; - const std::string label = LookupMessage(0xC27); + const std::string label = LookupMessage(MSI_DESC_VIT2); button->label = label; this->m_swapButton->m_textColor = 0x172842; this->m_swapButton->Move(0x51, 0x9B); @@ -304,7 +305,7 @@ void UISwapEquipmentWnd::OnCreate(int width, int height) { this->AddChild(this->m_swapButton); UIBasicButton* close = new (std::nothrow) UIBasicButton(); - close->Configure(0x32, LookupMessage(0xDA)); + close->Configure(0x32, LookupMessage(MSI_CANCEL)); close->Move(0xE0, 0x9B); close->SetId(0xB9); this->AddChild(close); @@ -339,7 +340,7 @@ void UISwapEquipmentWnd::Paint() { this->DrawBitmap(0, 0, bitmap, false); } - this->DrawCenteredText(140, 4, LookupMessage(3110), std::strlen(LookupMessage(3110)), 0, 12, 0x14234B, 0); + this->DrawCenteredText(140, 4, LookupMessage(MSI_DESC_AGI2), std::strlen(LookupMessage(MSI_DESC_AGI2)), 0, 12, 0x14234B, 0); this->DrawEquipmentSlots(); @@ -441,12 +442,12 @@ void UISwapEquipmentWnd::OnMouseHover(int x, int y) { std::string text; if (item.quantity > 1) { if (item.unknown_0098 != 0) { - text = static_cast(FormatOwnedString(LookupMessage(0x9F7), item.DisplayName(0))); + text = static_cast(FormatOwnedString(LookupMessage(MSI_FAIL_NEED_EQUIPPED_GUN_GATLING), item.DisplayName(0))); } else { - text = static_cast(FormatOwnedString(LookupMessage(0xB7), item.DisplayName(0).c_str(), item.quantity)); + text = static_cast(FormatOwnedString(LookupMessage(MSI_EA2), item.DisplayName(0).c_str(), item.quantity)); } } else if (item.unknown_0098 != 0) { - text = static_cast(FormatOwnedString(LookupMessage(0xA28), item.DisplayName(0).c_str(), item.unknown_0098)); + text = static_cast(FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), item.DisplayName(0).c_str(), item.unknown_0098)); } else { text = static_cast(item.DisplayName(0)); } diff --git a/Source/UI/Items/UIWeaponRefineWnd.cpp b/Source/UI/Items/UIWeaponRefineWnd.cpp index a54f5c2ac..796426333 100644 --- a/Source/UI/Items/UIWeaponRefineWnd.cpp +++ b/Source/UI/Items/UIWeaponRefineWnd.cpp @@ -16,6 +16,7 @@ #include "UI/Lists/UIListBox.h" #include "UI/Window/WindowManagerWindows.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -44,7 +45,7 @@ std::vector UIWeaponRefineWnd::GetReplayData() { // OFFSET: 0x009A3CD0 // FUNCTION: fn_13613 void UIWeaponRefineWnd::Paint() { - const int titleHeight = this->DrawTitleBar(true, LookupMessage(910), 0); + const int titleHeight = this->DrawTitleBar(true, LookupMessage(MSI_REFINEITEMLIST), 0); this->DrawPanelBackground(titleHeight, 0, ""); this->DrawButtonBar(2, 0, 1); } diff --git a/Source/UI/Lists/UIChatHisBox.cpp b/Source/UI/Lists/UIChatHisBox.cpp index 4681e6834..ebe65b47e 100644 --- a/Source/UI/Lists/UIChatHisBox.cpp +++ b/Source/UI/Lists/UIChatHisBox.cpp @@ -12,6 +12,7 @@ #include "UI/Buttons/UIItemTagButton.h" #include "UI/Lists/UIChatHisBox.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -34,12 +35,12 @@ std::string UIChatHisBox::ResolvePlayerTags(const char* name) { result = this->lines[line]; const std::string label = row[index]->label; - if (label.find(LookupMessage(581)) != std::string::npos) { - const std::size_t found = result.find(LookupMessage(581)); + if (label.find(LookupMessage(MSI_NAMELESS_USER)) != std::string::npos) { + const std::size_t found = result.find(LookupMessage(MSI_NAMELESS_USER)); const std::string player = LookupPlayerName(row[index]->unknown_01F8); if (std::strcmp(player.c_str(), name) == 0) { - result.replace(found, std::strlen(LookupMessage(581)), name, std::strlen(name)); + result.replace(found, std::strlen(LookupMessage(MSI_NAMELESS_USER)), name, std::strlen(name)); const std::string tail = result.substr(position); std::string opening = "<"; opening += name; diff --git a/Source/UI/Lists/UIComboBoxDefWnd.cpp b/Source/UI/Lists/UIComboBoxDefWnd.cpp index 584c53301..6ec028a00 100644 --- a/Source/UI/Lists/UIComboBoxDefWnd.cpp +++ b/Source/UI/Lists/UIComboBoxDefWnd.cpp @@ -30,6 +30,7 @@ #include "Resource/Sprites/SpriteResource.h" #include "UI/Text/TextWrapping.h" #include "UI/Window/UINewSelectCharWnd.h" +#include "Resource/MSGSTRINGID.h" #include namespace { constexpr char prefix[] = "유저인터페이스\\"; @@ -502,20 +503,20 @@ void UIDescriptRace::DrawRaceDescription() { return; } - this->DrawTextAt(50, 23, LookupMessage(3018), 0, 0, 12, 0x99634C, 1, 0); - this->DrawTextAt(49, 22, LookupMessage(3018), 0, 0, 12, 0xFFFFFF, 1, 0); + this->DrawTextAt(50, 23, LookupMessage(MSI_NEWMAKECHAR_DORAMINFO), 0, 0, 12, 0x99634C, 1, 0); + this->DrawTextAt(49, 22, LookupMessage(MSI_NEWMAKECHAR_DORAMINFO), 0, 0, 12, 0xFFFFFF, 1, 0); std::vector lines; - WrapPlainText(LookupMessage(3021), lines, 40); + WrapPlainText(LookupMessage(MSI_CASH_MARK2), lines, 40); int y = 22; for (unsigned index = 0; index < lines.size(); ++index) { this->DrawTextAt(112, y, lines[index].c_str(), 0, 0, 12, 0, 0, 0); y += 20; } } else if (this->m_race == 0) { - this->DrawTextAt(50, 23, LookupMessage(3016), 0, 0, 12, 0x99634C, 1, 0); - this->DrawTextAt(49, 22, LookupMessage(3016), 0, 0, 12, 0xFFFFFF, 1, 0); + this->DrawTextAt(50, 23, LookupMessage(MSI_NEWMAKECHAR_DORAMJOB), 0, 0, 12, 0x99634C, 1, 0); + this->DrawTextAt(49, 22, LookupMessage(MSI_NEWMAKECHAR_DORAMJOB), 0, 0, 12, 0xFFFFFF, 1, 0); std::vector lines; - WrapPlainText(LookupMessage(3020), lines, 40); + WrapPlainText(LookupMessage(MSI_CASH_MARK1), lines, 40); int y = 22; for (unsigned index = 0; index < lines.size(); ++index) { this->DrawTextAt(112, y, lines[index].c_str(), 0, 0, 12, 0, 0, 0); diff --git a/Source/UI/Lists/UIScrollBar.cpp b/Source/UI/Lists/UIScrollBar.cpp index fbd5fd141..0691412f7 100644 --- a/Source/UI/Lists/UIScrollBar.cpp +++ b/Source/UI/Lists/UIScrollBar.cpp @@ -51,6 +51,7 @@ #include "UI/Edit/UIItemTagCtrl.h" #include "UI/Rodex/UIRodexComposeWnd.h" #include "UI/Text/TextFitting.h" +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x0086DDA0 // FUNCTION: fn_11059 UIListBoxTitle::UIListBoxTitle() { @@ -1138,7 +1139,7 @@ int UITabControl::SendMsg(UIWindow* sender, int message, std::intptr_t argument1 const int width = this->TextWidth(text.c_str(), 0, 0, this->unknown_00E8, 0, 0); if ((this->tabPadding + width) * this->TabCount() >= this->parent->geometry.width - 90) { - g_windowMgr.Confirm(LookupMessage(1577), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_FAILED_CHANGE_TABNAME), 0, true, false, 0, "Message", 280, 120, 0); } else { this->labels[this->unknown_007C] = text; const int previousWidth = this->geometry.width; @@ -1963,7 +1964,7 @@ std::string UIChatHisBox::RenderItemLinks(const char* lineText, std::string& sou this->TextWidth(label.c_str(), 0, 0, 12, 0, 0) + 1, button->geometry.height); - const std::string unknownName = LookupMessage(581); + const std::string unknownName = LookupMessage(MSI_NAMELESS_USER); if (label.find(unknownName) != std::string::npos) { std::uint32_t creator[2]; std::memcpy(creator, item.unknown_001C + 8, sizeof(creator)); diff --git a/Source/UI/Menu/UIMenuIconWnd.cpp b/Source/UI/Menu/UIMenuIconWnd.cpp index 5c90c398e..558d3cb31 100644 --- a/Source/UI/Menu/UIMenuIconWnd.cpp +++ b/Source/UI/Menu/UIMenuIconWnd.cpp @@ -29,6 +29,7 @@ #include #include "Contents/GuildInfo.h" +#include "Resource/MSGSTRINGID.h" #pragma pack(push, 1) struct MenuIconBankingCheckPacket { /* 0000 */ std::int16_t id; @@ -440,11 +441,11 @@ int UIMenuIconWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument break; case 476: if (g_windowMgr.LookupWindow(WID_REFININGWND)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2992)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_AURA_EFFECT_OFF)), 255, 0, 0, 0); } else if (g_windowMgr.LookupWindow(WID_GRADEENCHANTWND)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3715)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BROADCASTING_GRADE_ENCHANT_SUCCESS)), 255, 0, 0, 0); } else if (g_windowMgr.LookupWindow(WID_ENCHANTUI)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3843)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENCHANT_REQUEST)), 255, 0, 0, 0); } else { this->ToggleWindow(263); } @@ -478,8 +479,8 @@ int UIMenuIconWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument this->ToggleWindow(10002); break; case 587: - if (g_windowMgr.Confirm(LookupMessage(4129), 2, true, false, 0, "Message", 280, 120, 0) == 187) { - ShellExecuteA(hWnd, "open", LookupMessage(4128), nullptr, nullptr, SW_SHOWNORMAL); + if (g_windowMgr.Confirm(LookupMessage(MSI_GENDER_CHANGE_FAILED_CAUSE_MONSTER_TRANSFORM), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + ShellExecuteA(hWnd, "open", LookupMessage(MSI_GENDER_CHANGE_FAILED_CAUSE_MARRIED), nullptr, nullptr, SW_SHOWNORMAL); } break; } diff --git a/Source/UI/Party/UIAdvenPartyBoardWnd.cpp b/Source/UI/Party/UIAdvenPartyBoardWnd.cpp index 9ce164ebf..f2480dff9 100644 --- a/Source/UI/Party/UIAdvenPartyBoardWnd.cpp +++ b/Source/UI/Party/UIAdvenPartyBoardWnd.cpp @@ -24,6 +24,7 @@ #include "Render/Renderer.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -91,7 +92,7 @@ void UIAdvenPartyBoardWnd::OnCreate(int, int) { const int positions[][2] = {{160, 23}, {178, 23}, {196, 23}, {214, 23}}; const char* images[] = {"btn_job_def_on", "btn_job_def_off", "btn_job_heal_on", "btn_job_heal_off", "btn_job_atk_on", "btn_job_atk_off", "btn_job_buf_on", "btn_job_buf_off"}; const std::string path = prefix; - const char* tooltips[] = {LookupMessage(3420), LookupMessage(3491), LookupMessage(3444), LookupMessage(3508)}; + const char* tooltips[] = {LookupMessage(MSI_EXPLAIN_CHAT_UNBLOCK), LookupMessage(MSI_CANNOT_FIND_PARTYMASTER), LookupMessage(MSI_QUESTWND_LOWER), LookupMessage(MSI_EXPAND_SIGHT_ON)}; for (int index = 0; index < 4; ++index) { this->jobs[index] = new UIJobSlotButton(); @@ -110,7 +111,7 @@ void UIAdvenPartyBoardWnd::OnCreate(int, int) { memo->maximum = 150; memo->TextColor(0, 0xFFFFFFFFu); memo->SetPlaceholderEnabled(true); - memo->SetPlaceholder(LookupMessage(3419)); + memo->SetPlaceholder(LookupMessage(MSI_EXPLAIN_CHAT_BLOCK)); memo->SetPlaceholderColor(0x646464); memo->Move(238, 24); memo->Background(255, 255, 255); @@ -124,7 +125,7 @@ void UIAdvenPartyBoardWnd::OnCreate(int, int) { search->SetSize(search->BitmapWidth(), search->BitmapHeight()); search->Move(354, 22); search->SetId(365); - search->SetText(LookupMessage(3366)); + search->SetText(LookupMessage(MSI_ADVEN_PURPOSE)); this->AddChild(search); auto* reset = new UIBmpTextButton(); reset->SetBitmap("유저인터페이스\\UIadventurerAgency\\btn_initialize.bmp", 0, 0); @@ -134,7 +135,7 @@ void UIAdvenPartyBoardWnd::OnCreate(int, int) { reset->SetSize(reset->BitmapWidth(), reset->BitmapHeight()); reset->Move(401, 22); reset->SetId(363); - reset->SetText(LookupMessage(3367)); + reset->SetText(LookupMessage(MSI_ADVEN_WARNING_TEXT)); this->AddChild(reset); this->refresh = new UIBitmapButton(); this->refresh->SetBitmap("유저인터페이스\\UIadventurerAgency\\btn_refresh.bmp", 0, 0); @@ -210,13 +211,13 @@ void UIAdvenPartyBoardWnd::OnCreate(int, int) { this->types->SetSize(76, 18); this->types->Move(76, 22); this->AddChild(this->types); - this->types->AddOption(LookupMessage(3377), 0); - this->types->AddOption(LookupMessage(3360), 0); - this->types->AddOption(LookupMessage(3361), 0); - this->types->AddOption(LookupMessage(3362), 0); - this->types->AddOption(LookupMessage(3363), 0); - this->types->AddOption(LookupMessage(3364), 0); - this->types->AddOption(LookupMessage(3365), 0); + this->types->AddOption(LookupMessage(MSI_ACCOUNT), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_MD), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_EDEN_GROUP), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_ETC), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_SEARCH), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_RESET), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_JOIN_PARTY), 0); this->types->Select(0); this->pageText = new UIStaticText(); @@ -231,12 +232,12 @@ void UIAdvenPartyBoardWnd::OnCreate(int, int) { this->m_message0 = 365; auto* close = new UIBasicButton(); - close->Configure(42, LookupMessage(3045)); + close->Configure(42, LookupMessage(MSI_ZENY_LOTTO_BUY_10)); close->Move(this->geometry.width - close->geometry.width - 10, 317); close->SetId(201); this->AddChild(close); this->stop = new UIBasicButton(); - this->stop->Configure((this->TextWidth(LookupMessage(3375), 0, 0, 12, 0, 0) + 10), LookupMessage(3375)); + this->stop->Configure((this->TextWidth(LookupMessage(MSI_REQUEST_PARTY), 0, 0, 12, 0, 0) + 10), LookupMessage(MSI_REQUEST_PARTY)); this->stop->Move(close->geometry.x - this->stop->geometry.width - 5, 317); this->stop->SetId(410); this->AddChild(this->stop); @@ -283,7 +284,7 @@ void UIAdvenPartyBoardWnd::Registration(bool value) { DisableButton(this->stop, 1); } } else { - this->recruit->SetTooltip(LookupMessage(2047)); + this->recruit->SetTooltip(LookupMessage(MSI_PARTY_RECRUIT_ERROR)); this->ownParty->Enable(0); DisableButton(this->ownParty, 1); this->recruit->Enable(1); @@ -590,7 +591,7 @@ int UIAdvenPartyBoardWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a void UIAdvenPartyBoardWnd::Paint() { this->ClearSurface(0xFFFF00FF); this->DrawBitmap(0, 0, static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\UIadventurerAgency\\bg_agencyList.bmp"))), false); - this->DrawTitleBar(true, LookupMessage(3504), 0); + this->DrawTitleBar(true, LookupMessage(MSI_ADVENTURER_AGENCY_RECRUIT_STOP_FAILED), 0); this->DrawButtonBar(2, 0, 1); this->DrawTextAt(36, 25, "~", 0, 0, 12, 0, 0, 0); } diff --git a/Source/UI/Party/UIApplyForPartyWnd.cpp b/Source/UI/Party/UIApplyForPartyWnd.cpp index fd56d8e09..d6a6fb69d 100644 --- a/Source/UI/Party/UIApplyForPartyWnd.cpp +++ b/Source/UI/Party/UIApplyForPartyWnd.cpp @@ -24,6 +24,7 @@ #include "Client/Mode/CMode.h" #include "Client/Mode/ModeMgr.h" +#include "Resource/MSGSTRINGID.h" #include // OFFSET: 0x007BAD00 @@ -49,25 +50,25 @@ void UIApplyForPartyWnd::StoreInfo() { // FUNCTION: fn_09299 void UIApplyForPartyWnd::OnCreate(int, int) { UIBasicButton* button = new UIBasicButton(); - button->Configure(this->TextWidth(LookupMessage(3374), 0, 0, 12, 0, 0) + 10, LookupMessage(3374)); + button->Configure(this->TextWidth(LookupMessage(MSI_ALL_AREA), 0, 0, 12, 0, 0) + 10, LookupMessage(MSI_ALL_AREA)); button->Move(51, 165); button->SetId(381); this->AddChild(button); button = new UIBasicButton(); - button->Configure(this->TextWidth(LookupMessage(3373), 0, 0, 12, 0, 0) + 10, LookupMessage(3373)); + button->Configure(this->TextWidth(LookupMessage(MSI_ADVEN_REWRITE), 0, 0, 12, 0, 0) + 10, LookupMessage(MSI_ADVEN_REWRITE)); button->Move(108, 165); button->SetId(271); this->AddChild(button); button = new UIBasicButton(); - button->Configure(this->TextWidth(LookupMessage(3045), 0, 0, 12, 0, 0) + 10, LookupMessage(3045)); + button->Configure(this->TextWidth(LookupMessage(MSI_ZENY_LOTTO_BUY_10), 0, 0, 12, 0, 0) + 10, LookupMessage(MSI_ZENY_LOTTO_BUY_10)); button->Move(173, 165); button->SetId(201); this->AddChild(button); std::vector lines; - WrapPlainText(LookupMessage(3370), lines, 40); + WrapPlainText(LookupMessage(MSI_ASK_JOIN), lines, 40); for (unsigned index = 0; index < lines.size(); ++index) { auto* label = new UIStaticText(); @@ -94,18 +95,18 @@ void UIApplyForPartyWnd::SetInfo(CAdvenPartyInfo value) { void UIApplyForPartyWnd::Paint() { this->ClearSurface(0xFFFF00FF); this->DrawBitmap(0, 0, static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\UIadventurerAgency\\bg_agency_register.bmp"))), false); - this->DrawTitleBar(true, LookupMessage(3368), 0); + this->DrawTitleBar(true, LookupMessage(MSI_ADVEN_REGISTER), 0); const auto text = [&](int x, int y, const char* value) { this->DrawTextAt(x, y, value, 0, 0, 12, 0, 0, 0); }; - text(10, 25, LookupMessage(3415)); + text(10, 25, LookupMessage(MSI_ADVENTURER_AGENCY_REGIST_SUCCESSED)); const std::string fitted = FitText(*this->geometry.surface, this->info.characterName, 119); text(60, 25, fitted.c_str()); - text(10, 49, LookupMessage(408)); + text(10, 49, LookupMessage(MSI_LEVEL)); char levels[10] = {}; _snprintf_s(levels, sizeof(levels), _TRUNCATE, "%d~%d", this->info.minimumLevel, this->info.maximumLevel); text(60, 49, levels); - text(10, 73, LookupMessage(3369)); + text(10, 73, LookupMessage(MSI_INCLUDE_BAD_WORD)); text(60, 73, UIPartyInfoWnd::TypeName(this->info.type)); - text(10, 97, LookupMessage(504)); + text(10, 97, LookupMessage(MSI_JOB)); const auto job = [&](int x, bool selected, const char* selectedImage, const char* unselectedImage) { this->DrawBitmap(x, 95, static_cast(ResourceMgr::Instance().Load(Resolve(selected == 1 ? selectedImage : unselectedImage))), false); }; @@ -113,7 +114,7 @@ void UIApplyForPartyWnd::Paint() { job(78, this->info.healer, "유저인터페이스\\UIadventurerAgency\\btn_job_heal_on.bmp", "유저인터페이스\\UIadventurerAgency\\btn_job_heal_off.bmp"); job(96, this->info.dealer, "유저인터페이스\\UIadventurerAgency\\btn_job_atk_on.bmp", "유저인터페이스\\UIadventurerAgency\\btn_job_atk_off.bmp"); job(114, this->info.assist, "유저인터페이스\\UIadventurerAgency\\btn_job_buf_on.bmp", "유저인터페이스\\UIadventurerAgency\\btn_job_buf_off.bmp"); - text(10, 121, LookupMessage(3359)); + text(10, 121, LookupMessage(MSI_ADVEN_DUNJUN)); text(60, 121, this->info.memo.c_str()); } @@ -130,16 +131,16 @@ void UIApplyForPartyWnd::OnMouseHover(int x, int y) { if (mouseX > 60 && mouseX < 76) { left = 60; - label = LookupMessage(3420); + label = LookupMessage(MSI_EXPLAIN_CHAT_UNBLOCK); } else if (mouseX > 78 && mouseX < 94) { left = 78; - label = LookupMessage(3491); + label = LookupMessage(MSI_CANNOT_FIND_PARTYMASTER); } else if (mouseX > 96 && mouseX < 112) { left = 96; - label = LookupMessage(3444); + label = LookupMessage(MSI_QUESTWND_LOWER); } else if (mouseX > 114 && mouseX < 130) { left = 114; - label = LookupMessage(3508); + label = LookupMessage(MSI_EXPAND_SIGHT_ON); } if (!label.empty()) { @@ -167,7 +168,7 @@ int UIApplyForPartyWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, const char* relationship = nullptr; if (g_windowMgr.IsFriend(name.c_str())) { - relationship = LookupMessage(102); + relationship = LookupMessage(MSI_FRIEND); } const char* group = g_session.IsGuildMemberAccount(this->info.accountId) ? "GuildMember" : relationship; diff --git a/Source/UI/Party/UIMiniPartyWnd.cpp b/Source/UI/Party/UIMiniPartyWnd.cpp index a56306d3f..89b594633 100644 --- a/Source/UI/Party/UIMiniPartyWnd.cpp +++ b/Source/UI/Party/UIMiniPartyWnd.cpp @@ -25,6 +25,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Client/Mode/CMode.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -206,17 +207,17 @@ int UIMiniPartyInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg g_windowMgr.CloseWindow(WID_MENUWND); } if (this->m_owner->GetMember().valid) { - this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(2808)).c_str(), 58)); + this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_USA_PERSONALINFO_DEATH)).c_str(), 58)); if (this->m_owner->GetMember().name == g_session.DecodePlayerName()) { - this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(96)).c_str(), 9)); + this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_LEAVE_PARTY)).c_str(), 9)); } else { - this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(360)).c_str(), 7)); + this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_OPEN_1ON1_WINDOW)).c_str(), 7)); if (g_session.unknown_5464) { - this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(97)).c_str(), 0)); - this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(1532)).c_str(), 43)); + this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_EXPEL)).c_str(), 0)); + this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_YIELD_PARTYMASTER)).c_str(), 43)); } } - this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(3102)).c_str(), 61)); + this->m_entries.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_ACHIEVEMENT_NEXT_GRADE)).c_str(), 61)); } if (this->m_entries.size()) { UIWindow* menu = g_windowMgr.EnsureWindow(WID_MENUWND); @@ -249,7 +250,7 @@ int UIMiniPartyInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg return 0; } if (this->m_entries.empty()) { - g_windowMgr.Confirm(LookupMessage(3236), 0, false, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MENUICON_TIPBOX), 0, false, false, 0, "Message", 280, 120, 0); return 0; } switch (this->m_entries[argument1].value) { @@ -281,13 +282,13 @@ int UIMiniPartyInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg case 43: if (this->m_owner->m_cell != -1) { if (this->m_owner->GetMember().valid && this->m_owner->GetMember().offline == 0) { - if (g_windowMgr.Confirm(LookupMessage(1533), 2, false, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_YIELD_PARTYMASTER), 2, false, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(MM_GROUP_CHANGE_MASTER, this->m_owner->GetMember().accountId, 0, 0, 0); return 0; } } else { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1534)), 255, 3, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_YIELD_PARTYMASTER)), 255, 3, 0, 0); return 0; } } @@ -319,7 +320,7 @@ int UIMiniPartyInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg if (this->m_owner->GetMember().valid && !(this->m_owner->GetMember().name == g_session.DecodePlayerName())) { const char* group; if (g_windowMgr.IsFriend(this->m_owner->GetMember().name.c_str())) { - group = LookupMessage(102); + group = LookupMessage(MSI_FRIEND); } else { group = g_session.IsGuildMemberCharacter(this->m_owner->GetMember().characterId) ? "GuildMember" : nullptr; } @@ -333,7 +334,7 @@ int UIMiniPartyInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg break; case ID_FRIEND_INFO: if (!g_session.m_lockMouse && this->m_owner->GetMember().valid) { - g_windowMgr.Confirm(LookupMessage(191), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NOTSUPPORTEDYET), 0, true, false, 0, "Message", 280, 120, 0); return 0; } break; @@ -359,7 +360,7 @@ int UIMiniPartyInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg case ID_DELETE_FRIEND: if (!g_session.m_lockMouse && this->m_owner->GetMember().valid) { if (!(this->m_owner->GetMember().name == g_session.DecodePlayerName())) { - if (g_windowMgr.Confirm(LookupMessage(363), 2, false, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_EXPEL), 2, false, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(MM_REQ_EXPEL_GROUP_MEMBER, reinterpret_cast(this->m_owner->GetMember().name.c_str()), 0, 0, 0); return 0; } @@ -369,7 +370,7 @@ int UIMiniPartyInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg case ID_LEAVE: if (!g_session.m_lockMouse) { if (this->m_owner->GetMember().valid && this->m_owner->GetMember().name == g_session.DecodePlayerName()) { - if (g_windowMgr.Confirm(LookupMessage(357), 2, false, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_LEAVE), 2, false, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(MM_REQ_LEAVE_GROUP, 0, 0, 0, 0); return 0; } @@ -418,7 +419,7 @@ void UIMiniPartyWnd::OnLBtnUp(int x, int y) { this->m_cell = cell; g_session.SetRecord0734Value(this->m_member.accountId, cell); } else { - g_windowMgr.Confirm(LookupMessage(3145), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_HOTKEY_SETTING), 0, true, false, 0, "Message", 280, 120, 0); } } } diff --git a/Source/UI/Party/UIPartyInfoWnd.cpp b/Source/UI/Party/UIPartyInfoWnd.cpp index 0ac5e9aa4..e753894bd 100644 --- a/Source/UI/Party/UIPartyInfoWnd.cpp +++ b/Source/UI/Party/UIPartyInfoWnd.cpp @@ -11,6 +11,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x007BAE20 // FUNCTION: fn_09277 UIPartyInfoWnd::UIPartyInfoWnd() @@ -31,19 +32,19 @@ CAdvenPartyInfo* UIPartyInfoWnd::Info() { const char* UIPartyInfoWnd::TypeName(int value) { switch (value) { case 0: - return LookupMessage(3377); + return LookupMessage(MSI_ACCOUNT); case 1: - return LookupMessage(3360); + return LookupMessage(MSI_ADVEN_MD); case 2: - return LookupMessage(3361); + return LookupMessage(MSI_ADVEN_EDEN_GROUP); case 3: - return LookupMessage(3362); + return LookupMessage(MSI_ADVEN_ETC); case 4: - return LookupMessage(3363); + return LookupMessage(MSI_ADVEN_SEARCH); case 5: - return LookupMessage(3364); + return LookupMessage(MSI_ADVEN_RESET); case 6: - return LookupMessage(3365); + return LookupMessage(MSI_ADVEN_JOIN_PARTY); default: return ""; } @@ -140,7 +141,7 @@ void UIPartyInfoWnd::OnRBtnUp(int, int) { } const std::string name = this->info.characterName; - const char* relationship = g_windowMgr.IsFriend(name.c_str()) ? LookupMessage(102) : nullptr; + const char* relationship = g_windowMgr.IsFriend(name.c_str()) ? LookupMessage(MSI_FRIEND) : nullptr; if (g_session.IsGuildMemberAccount(this->info.accountId)) { relationship = "GuildMember"; diff --git a/Source/UI/Party/UIRegisterPartyWnd.cpp b/Source/UI/Party/UIRegisterPartyWnd.cpp index 5b34e526a..33dd4f61e 100644 --- a/Source/UI/Party/UIRegisterPartyWnd.cpp +++ b/Source/UI/Party/UIRegisterPartyWnd.cpp @@ -23,6 +23,7 @@ #include "UI/Text/UIStaticText.h" #include "Render/Renderer.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -61,7 +62,7 @@ void UIRegisterPartyWnd::OnCreate(int, int) { auto* title = new UIStaticText(); title->SetSize(40, 15); title->Move(10, 23); - title->SetText(LookupMessage(3415), 0); + title->SetText(LookupMessage(MSI_ADVENTURER_AGENCY_REGIST_SUCCESSED), 0); title->SetColor(0, 0, 0); this->AddChild(title); @@ -75,7 +76,7 @@ void UIRegisterPartyWnd::OnCreate(int, int) { auto* levelLabel = new UIStaticText(); levelLabel->SetSize(40, 15); levelLabel->Move(10, 49); - levelLabel->SetText(LookupMessage(408), 0); + levelLabel->SetText(LookupMessage(MSI_LEVEL), 0); levelLabel->SetColor(0, 0, 0); this->AddChild(levelLabel); const int level = g_session.m_level; @@ -104,13 +105,13 @@ void UIRegisterPartyWnd::OnCreate(int, int) { auto* typeLabel = new UIStaticText(); typeLabel->SetSize(this->geometry.width, 15); typeLabel->Move(10, 73); - typeLabel->SetText(LookupMessage(3369), 0); + typeLabel->SetText(LookupMessage(MSI_INCLUDE_BAD_WORD), 0); typeLabel->SetColor(0, 0, 0); this->AddChild(typeLabel); auto* roleLabel = new UIStaticText(); roleLabel->SetSize(this->geometry.width, 15); roleLabel->Move(10, 97); - roleLabel->SetText(LookupMessage(504), 0); + roleLabel->SetText(LookupMessage(MSI_JOB), 0); roleLabel->SetColor(0, 0, 0); roleLabel->shadow = 1; this->AddChild(roleLabel); @@ -119,7 +120,7 @@ void UIRegisterPartyWnd::OnCreate(int, int) { const char* images[] = {"btn_job_def_on", "btn_job_def_off", "btn_job_heal_on", "btn_job_heal_off", "btn_job_atk_on", "btn_job_atk_off", "btn_job_buf_on", "btn_job_buf_off"}; const std::string path = "유저인터페이스\\UIadventurerAgency\\"; - const char* tooltips[] = {LookupMessage(3420), LookupMessage(3491), LookupMessage(3444), LookupMessage(3508)}; + const char* tooltips[] = {LookupMessage(MSI_EXPLAIN_CHAT_UNBLOCK), LookupMessage(MSI_CANNOT_FIND_PARTYMASTER), LookupMessage(MSI_QUESTWND_LOWER), LookupMessage(MSI_EXPAND_SIGHT_ON)}; for (int index = 0; index < 4; ++index) { this->jobs[index] = new UIJobSlotButton(); @@ -135,7 +136,7 @@ void UIRegisterPartyWnd::OnCreate(int, int) { auto* memoLabel = new UIStaticText(); memoLabel->SetSize(this->geometry.width - 32, 15); memoLabel->Move(10, 121); - memoLabel->SetText(LookupMessage(3359), 0); + memoLabel->SetText(LookupMessage(MSI_ADVEN_DUNJUN), 0); memoLabel->SetColor(0, 0, 0); this->AddChild(memoLabel); this->memo = new UIEditCtrl(); @@ -148,14 +149,14 @@ void UIRegisterPartyWnd::OnCreate(int, int) { if (g_adventurerAgencyMgr->registered == true) { this->change = new UIBasicButton(); - this->change->Configure(this->TextWidth(LookupMessage(3376), 0, 0, 12, 0, 0) + 10, LookupMessage(3376)); + this->change->Configure(this->TextWidth(LookupMessage(MSI_LOGIN), 0, 0, 12, 0, 0) + 10, LookupMessage(MSI_LOGIN)); this->change->Move(108, 165); this->change->SetId(564); this->m_message0 = 564; this->AddChild(this->change); } else { this->recruit = new UIBasicButton(); - this->recruit->Configure(this->TextWidth(LookupMessage(3371), 0, 0, 12, 0, 0) + 10, LookupMessage(3371)); + this->recruit->Configure(this->TextWidth(LookupMessage(MSI_CHAT_WITH_PARTYMASTER), 0, 0, 12, 0, 0) + 10, LookupMessage(MSI_CHAT_WITH_PARTYMASTER)); this->recruit->Move(108, 165); this->recruit->SetId(565); this->m_message0 = 565; @@ -163,7 +164,7 @@ void UIRegisterPartyWnd::OnCreate(int, int) { } std::vector lines; - WrapPlainText(LookupMessage(3370), lines, 40); + WrapPlainText(LookupMessage(MSI_ASK_JOIN), lines, 40); int y = 136; for (const auto& line : lines) { @@ -191,14 +192,14 @@ void UIRegisterPartyWnd::OnCreate(int, int) { this->types->SetSize(63, 18); this->types->Move(60, 70); this->AddChild(this->types); - this->types->AddOption(LookupMessage(3377), 0); + this->types->AddOption(LookupMessage(MSI_ACCOUNT), 0); - this->types->AddOption(LookupMessage(3360), 0); - this->types->AddOption(LookupMessage(3361), 0); - this->types->AddOption(LookupMessage(3362), 0); - this->types->AddOption(LookupMessage(3363), 0); - this->types->AddOption(LookupMessage(3364), 0); - this->types->AddOption(LookupMessage(3365), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_MD), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_EDEN_GROUP), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_ETC), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_SEARCH), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_RESET), 0); + this->types->AddOption(LookupMessage(MSI_ADVEN_JOIN_PARTY), 0); this->types->Select(0); this->AddBigCloseButton("", 0); @@ -250,7 +251,7 @@ void UIRegisterPartyWnd::Paint() { this->ClearSurface(0xFFFF00FF); this->DrawBitmap(0, 0, static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\UIadventurerAgency\\bg_agency_register.bmp"))), false); this->DrawTextAt(86, 50, "~", 0, 0, 12, 0, 0, 0); - this->DrawTitleBar(true, LookupMessage(3356), 0); + this->DrawTitleBar(true, LookupMessage(MSI_ADVEN_MEMO), 0); } // OFFSET: 0x007C1410 @@ -281,7 +282,7 @@ int UIRegisterPartyWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, if (g_session.unknown_5464 != 0) { if (g_forbiddenWords.Contains(this->memo->Text()) == true) { char text[256] = {}; - StringFormat(text, sizeof(text), _TRUNCATE, LookupMessage(3372)); + StringFormat(text, sizeof(text), _TRUNCATE, LookupMessage(MSI_STOP_RECRUITING_PARTY)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); return 0; } @@ -289,7 +290,7 @@ int UIRegisterPartyWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, this->NormalizeLevels(); if (std::atoi(this->minimum->Text()) > std::atoi(this->maximum->Text())) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3516)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PLEASE_REOPEN_LISTWND_AFTER_A_WHILE)), 0xFF, 0, 0, 0); return 0; } @@ -306,7 +307,7 @@ int UIRegisterPartyWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, g_adventurerAgencyMgr->RequestRegistration(info); } else { char text[256] = {}; - StringFormat(text, sizeof(text), _TRUNCATE, LookupMessage(3506)); + StringFormat(text, sizeof(text), _TRUNCATE, LookupMessage(MSI_EXPAND_SIGHT_OPTIONWND)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 0, 0, 0); } break; diff --git a/Source/UI/Party/UIRequestJoinPartyWnd.cpp b/Source/UI/Party/UIRequestJoinPartyWnd.cpp index e7bda4285..01190b64b 100644 --- a/Source/UI/Party/UIRequestJoinPartyWnd.cpp +++ b/Source/UI/Party/UIRequestJoinPartyWnd.cpp @@ -20,6 +20,7 @@ #include "UI/Text/UITextViewer.h" #include "UI/Window/UINewSelectCharWnd.h" +#include "Resource/MSGSTRINGID.h" #include // OFFSET: 0x007BB030 @@ -51,7 +52,7 @@ void UIRequestJoinPartyWnd::OnCreate(int, int) { this->AddChild(this->levelText); const int ids[] = {541, 542}; const int positions[][2] = {{122, 136}, {169, 136}}; - const std::string labels[] = {LookupMessage(3489), LookupMessage(3490)}; + const std::string labels[] = {LookupMessage(MSI_CANNOT_FIND_REQUEST_USER), LookupMessage(MSI_STORE_ASSISTANT_TRADE_FORCED_REMOVAL)}; for (int index = 0; index < 2; ++index) { auto* button = new UIBasicButton(); @@ -76,7 +77,7 @@ void UIRequestJoinPartyWnd::OnCreate(int, int) { this->block->SetId(213); this->AddChild(this->block); std::vector unused; - WrapPlainText(LookupMessage(3518), unused, 30); + WrapPlainText(LookupMessage(MSI_EXPAND_OBJALPHA), unused, 30); this->blockText = new UITextViewer(); this->blockText->Configure(31, 81, 182, 47, 0); @@ -84,7 +85,7 @@ void UIRequestJoinPartyWnd::OnCreate(int, int) { this->blockText->Invalidate(); this->AddChild(this->blockText); this->blockText->lineHeight = 15; - this->blockText->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(3518)), 30, 0, 0); + this->blockText->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_EXPAND_OBJALPHA)), 30, 0, 0); this->AddBigCloseButton("", 0); } @@ -92,7 +93,7 @@ void UIRequestJoinPartyWnd::OnCreate(int, int) { // FUNCTION: fn_09306 void UIRequestJoinPartyWnd::Paint() { this->DrawBitmap(0, 0, static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\UIadventurerAgency\\bg_agency_admit.bmp"))), false); - this->DrawTitleBar(true, LookupMessage(3505), 0); + this->DrawTitleBar(true, LookupMessage(MSI_ADVEN_ASSIST), 0); } // OFFSET: 0x007C1770 @@ -143,7 +144,7 @@ int UIRequestJoinPartyWnd::SendMsg(UIWindow* sender, int message, std::intptr_t this->levelText->Move(25 - width / 2, 56); this->details->Clear(); char messageText[1024] = {}; - _snprintf_s(messageText, sizeof(messageText), _TRUNCATE, LookupMessage(3378), request.name); + _snprintf_s(messageText, sizeof(messageText), _TRUNCATE, LookupMessage(MSI_EXIT), request.name); this->details->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(messageText), 0, 0, 1); this->details->Move(43, this->details->lines.size() == 3 ? 20 : 30); this->InvalidateChildren(); diff --git a/Source/UI/ProbabilityTable/UIProbabilityTable.cpp b/Source/UI/ProbabilityTable/UIProbabilityTable.cpp index 4bb7cd9f2..1b80e59e0 100644 --- a/Source/UI/ProbabilityTable/UIProbabilityTable.cpp +++ b/Source/UI/ProbabilityTable/UIProbabilityTable.cpp @@ -15,6 +15,7 @@ #include "Utility/Text/StringUtil.h" #include "UI/Window/UIRegisterMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -508,7 +509,7 @@ void CUIProbabilityTable::Search() { } if (found == list->data.end()) { - g_windowMgr.Confirm(LookupMessage(0x1012), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_REFINING_BLACKSMITH_BLESSING_MSG3), 0, true, false, 0, "Message", 280, 120, 0); } else { HighlightKeyword(found->name, keyword, g_probabilityHighlightBegin, g_probabilityHighlightEnd); @@ -537,9 +538,9 @@ void CUIProbabilityTable::OnInit() { this->Move(g_renderer->viewport.centerX, (g_renderer->viewport.height - this->geometry.height) / 2); } - this->m_titleBar->SetTitle(LookupMessage(0x1017)); - this->m_nameHeader->SetText(LookupMessage(0x1018)); - this->m_probabilityHeader->SetText(LookupMessage(0x1019)); + this->m_titleBar->SetTitle(LookupMessage(MSI_REFINING_PROBABILITY_URL)); + this->m_nameHeader->SetText(LookupMessage(MSI_GRADE_ENCHANT_PROBABILITY_URL)); + this->m_probabilityHeader->SetText(LookupMessage(MSI_SELLINGSLOT_SUCCESS)); } // OFFSET: 0x00A4E030 diff --git a/Source/UI/Quest/UIOngoingQuestInfo.cpp b/Source/UI/Quest/UIOngoingQuestInfo.cpp index 8b7614297..750ee352f 100644 --- a/Source/UI/Quest/UIOngoingQuestInfo.cpp +++ b/Source/UI/Quest/UIOngoingQuestInfo.cpp @@ -19,6 +19,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -302,7 +303,7 @@ void CUIRewards::OnBindItem(CUIRewardItem* item, const CRewardItemData& data) { item->gameItem->SetItem(info); item->nameText->SetText(info.DisplayName(0)); - item->countText->SetText(FormatOwnedString(LookupMessage(0xB6), data.count)); + item->countText->SetText(FormatOwnedString(LookupMessage(MSI_EA), data.count)); } } @@ -310,7 +311,7 @@ void CUIRewards::OnBindItem(CUIRewardItem* item, const CRewardItemData& data) { // OFFSET: 0x00A558B0 // FUNCTION: fn_16308 void CUIOngoingQuestInfo::OnInit() { - const char* title = LookupMessage(0xD48); + const char* title = LookupMessage(MSI_RENEW_QUEST_DETAIL_REWARD); this->titleBar->SetTitle(title); UIWindow* window = g_windowMgr.LookupWindow(WID_RENEWQUESTUI); if (window) { @@ -328,9 +329,9 @@ void CUIScrollWindow::OnInit() { this->firstContents->EnableClip(); this->secondContents->EnableClip(); this->rewards->EnableClip(); - this->firstContents->title->SetText(LookupMessage(0xD49)); - this->secondContents->title->SetText(LookupMessage(0xD4A)); - this->rewards->title->SetText(LookupMessage(0xD4B)); + this->firstContents->title->SetText(LookupMessage(MSI_RENEW_QUEST_DETAIL_EXP)); + this->secondContents->title->SetText(LookupMessage(MSI_RENEW_QUEST_DETAIL_JEXP)); + this->rewards->title->SetText(LookupMessage(MSI_RENEW_QUEST_DETAIL_ITEM)); } } @@ -340,9 +341,9 @@ namespace OngoingQuestInfo { // OFFSET: 0x00A55950 // FUNCTION: fn_16310 void CUIRewards::OnInit() { - this->firstLabel->SetText(LookupMessage(0xD4C)); - this->secondLabel->SetText(LookupMessage(0xD4D)); - this->thirdLabel->SetText(LookupMessage(0xD4E)); + this->firstLabel->SetText(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP1_ITEM)); + this->secondLabel->SetText(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP2_ITEM)); + this->thirdLabel->SetText(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP3_ITEM)); this->rewardList->unknown_00C4 = 1; this->rewardList->Invalidate(); this->npcSprite = new UINpcSprWnd(); diff --git a/Source/UI/Quest/UIQuestDisplay.cpp b/Source/UI/Quest/UIQuestDisplay.cpp index 40a27fa61..4b91e98fe 100644 --- a/Source/UI/Quest/UIQuestDisplay.cpp +++ b/Source/UI/Quest/UIQuestDisplay.cpp @@ -18,6 +18,7 @@ #include "UI/Text/UITextViewer.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -131,7 +132,7 @@ void UIQuestDisplay::Paint() { if (goal > 0) { const short count = info.m_huntUnknown00E0[index]; if (count == goal) { - hunt = static_cast(FormatOwnedString("%s ( %s )", hunt.c_str(), LookupMessage(0x7EE))); + hunt = static_cast(FormatOwnedString("%s ( %s )", hunt.c_str(), LookupMessage(MSI_COMPLETE_HUNTING_QUEST))); } else { hunt = static_cast(FormatOwnedString("%s ( %d / %d )", hunt.c_str(), count, goal)); } @@ -251,8 +252,8 @@ int UIQuestDisplay::SendMsg(UIWindow* sender, int message, std::intptr_t argumen this->Show(0); } if (this->m_selectedIndex != -1) { - this->m_menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(1622)).c_str(), 49)); - this->m_menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(351)).c_str(), 48)); + this->m_menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_VIEW_QUEST_INFO_MSG)).c_str(), 49)); + this->m_menuItems.push_back(MiniPartyInfoEntry(std::string(LookupMessage(MSI_DELETE)).c_str(), 48)); } if (this->m_menuItems.size() != 0) { UIWindow* menu = g_windowMgr.EnsureWindow(WID_MENUWND); diff --git a/Source/UI/Quest/UIRecommendedQuestInfo.cpp b/Source/UI/Quest/UIRecommendedQuestInfo.cpp index 69fb8abae..e4e079a62 100644 --- a/Source/UI/Quest/UIRecommendedQuestInfo.cpp +++ b/Source/UI/Quest/UIRecommendedQuestInfo.cpp @@ -9,6 +9,7 @@ #include "UI/Window/UIRegisterMgr.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -115,7 +116,7 @@ void CUIRecommendedQuestInfo::OnClose() { // OFFSET: 0x00A58BE0 // FUNCTION: fn_16349 void CUIRecommendedQuestInfo::OnInit() { - const char* title = LookupMessage(0xD48); + const char* title = LookupMessage(MSI_RENEW_QUEST_DETAIL_REWARD); this->titleBar->SetTitle(title); UIWindow* window = g_windowMgr.LookupWindow(WID_RENEWQUESTUI); if (window) { diff --git a/Source/UI/Quest/UIRenewQuestUI.cpp b/Source/UI/Quest/UIRenewQuestUI.cpp index 5529adf51..c3079f333 100644 --- a/Source/UI/Quest/UIRenewQuestUI.cpp +++ b/Source/UI/Quest/UIRenewQuestUI.cpp @@ -21,6 +21,7 @@ #include "Utility/Cipher/XorBytes.h" #include "UI/Window/UIRegisterMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -902,7 +903,7 @@ void RenewQuestUI::CUIQuestItem::OnSimpleView(bool simpleView) { // FUNCTION: fn_16622 void RenewQuestUI::CUIQuestItem::OnInit() { CUIButton* button = this->unknown_00F4; - std::string tooltip = LookupMessage(3409); + std::string tooltip = LookupMessage(MSI_PASSWORD); button->tooltip = tooltip; } @@ -1172,7 +1173,7 @@ void RenewQuestUI::CUIQuestList::BindItem(CUIQuestItem* item, const unsigned lon item->unknown_00F8->Show(1); item->unknown_00F8->checked = info.m_active; item->unknown_00F8->Invalidate(); - std::string tooltip = LookupMessage(3408); + std::string tooltip = LookupMessage(MSI_SAVE_ID); item->unknown_00F8->tooltip = tooltip; } else { auto found = g_renewQuestMgr->m_ongoingQuests.find(questId); @@ -1191,7 +1192,7 @@ void RenewQuestUI::CUIQuestList::BindItem(CUIQuestItem* item, const unsigned lon item->unknown_00F8->Show(this->type != 8); item->unknown_00F8->checked = info.m_active; item->unknown_00F8->Invalidate(); - std::string tooltip = LookupMessage(3407); + std::string tooltip = LookupMessage(MSI_OTP_INPUT_TIME); item->unknown_00F8->tooltip = tooltip; } } @@ -2240,8 +2241,8 @@ void CUIRenewQuestUI::OnInit() { g_windowMgr.RecordWindowPacket(0x2718); g_windowMgr.CloseWindow(WID_NOTIFYQUESTWND); - this->titleBar->SetTitle(LookupMessage(0xD48)); - this->filterLabel->SetText(LookupMessage(0x7E3)); + this->titleBar->SetTitle(LookupMessage(MSI_RENEW_QUEST_DETAIL_REWARD)); + this->filterLabel->SetText(LookupMessage(MSI_QUEST_DISPLAY_ONOFF)); bool visible = false; if (UIWindow* window = g_windowMgr.LookupWindow(WID_QUESTDISPLAY)) { diff --git a/Source/UI/Quest/UIRenewQuestWnd.cpp b/Source/UI/Quest/UIRenewQuestWnd.cpp index ec153d7db..17f82fc95 100644 --- a/Source/UI/Quest/UIRenewQuestWnd.cpp +++ b/Source/UI/Quest/UIRenewQuestWnd.cpp @@ -37,6 +37,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -233,7 +234,7 @@ void UIOngoingQuestScrollWnd::RefreshHuntTexts() { if (goal > 0) { const short count = quest.m_huntUnknown00E0[index]; if (count == goal) { - const std::string formatted = FormatOwnedString("%s ( %s )", text.c_str(), LookupMessage(2030)); + const std::string formatted = FormatOwnedString("%s ( %s )", text.c_str(), LookupMessage(MSI_COMPLETE_HUNTING_QUEST)); text = formatted; } else { const std::string formatted = FormatOwnedString("%s ( %d / %d )", text.c_str(), count, goal); @@ -286,9 +287,9 @@ void UIOngoingQuestScrollWnd::SetQuest(unsigned int questId) { UIStaticText* label = new UIStaticText(); context.SetFont(0, 12, 1, 0); - SIZE size = context.Measure(LookupMessage(3401), static_cast(std::strlen(LookupMessage(3401)))); + SIZE size = context.Measure(LookupMessage(MSI_RENEW_QUEST_DETAIL_EXP), static_cast(std::strlen(LookupMessage(MSI_RENEW_QUEST_DETAIL_EXP)))); label->SetSize(size.cx + 4, 12); - label->SetText(LookupMessage(3401), 0); + label->SetText(LookupMessage(MSI_RENEW_QUEST_DETAIL_EXP), 0); label->Move(24, 9); this->AddScrollChild(label); @@ -324,9 +325,9 @@ void UIOngoingQuestScrollWnd::SetQuest(unsigned int questId) { this->AddScrollChild(bitmap); label = new UIStaticText(); - size = context.Measure(LookupMessage(3402), static_cast(std::strlen(LookupMessage(3402)))); + size = context.Measure(LookupMessage(MSI_RENEW_QUEST_DETAIL_JEXP), static_cast(std::strlen(LookupMessage(MSI_RENEW_QUEST_DETAIL_JEXP)))); label->SetSize(size.cx + 4, 12); - label->SetText(LookupMessage(3402), 0); + label->SetText(LookupMessage(MSI_RENEW_QUEST_DETAIL_JEXP), 0); label->Move(24, y); this->AddScrollChild(label); y += 22; @@ -365,17 +366,17 @@ void UIOngoingQuestScrollWnd::SetQuest(unsigned int questId) { this->AddScrollChild(bitmap); label = new UIStaticText(); - size = context.Measure(LookupMessage(3403), static_cast(std::strlen(LookupMessage(3403)))); + size = context.Measure(LookupMessage(MSI_RENEW_QUEST_DETAIL_ITEM), static_cast(std::strlen(LookupMessage(MSI_RENEW_QUEST_DETAIL_ITEM)))); label->SetSize(size.cx + 4, 12); - label->SetText(LookupMessage(3403), 0); + label->SetText(LookupMessage(MSI_RENEW_QUEST_DETAIL_ITEM), 0); label->Move(24, y); this->AddScrollChild(label); y += 22; label = new UIStaticText(); - size = context.Measure(LookupMessage(3404), static_cast(std::strlen(LookupMessage(3404)))); + size = context.Measure(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP1_ITEM), static_cast(std::strlen(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP1_ITEM)))); label->SetSize(size.cx + 4, 12); - label->SetText(LookupMessage(3404), 0); + label->SetText(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP1_ITEM), 0); label->Move(32, y); this->AddScrollChild(label); @@ -389,9 +390,9 @@ void UIOngoingQuestScrollWnd::SetQuest(unsigned int questId) { y += 20; label = new UIStaticText(); - size = context.Measure(LookupMessage(3405), static_cast(std::strlen(LookupMessage(3405)))); + size = context.Measure(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP2_ITEM), static_cast(std::strlen(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP2_ITEM)))); label->SetSize(size.cx + 4, 12); - label->SetText(LookupMessage(3405), 0); + label->SetText(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP2_ITEM), 0); label->Move(32, y); this->AddScrollChild(label); @@ -405,9 +406,9 @@ void UIOngoingQuestScrollWnd::SetQuest(unsigned int questId) { y += 20; label = new UIStaticText(); - size = context.Measure(LookupMessage(3406), static_cast(std::strlen(LookupMessage(3406)))); + size = context.Measure(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP3_ITEM), static_cast(std::strlen(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP3_ITEM)))); label->SetSize(size.cx + 4, 12); - label->SetText(LookupMessage(3406), 0); + label->SetText(LookupMessage(MSI_RENEW_QUEST_CHECK_TOOTIP3_ITEM), 0); label->Move(32, y); this->AddScrollChild(label); @@ -437,7 +438,7 @@ void UIOngoingQuestScrollWnd::SetQuest(unsigned int questId) { this->AddScrollChild(name); UIStaticText* count = new UIStaticText(); - const std::string countText = FormatOwnedString(LookupMessage(182), quest.m_rewards[index].second); + const std::string countText = FormatOwnedString(LookupMessage(MSI_EA), quest.m_rewards[index].second); size = context.Measure(countText.c_str(), static_cast(countText.size())); count->SetSize(size.cx + 4, 12); count->SetText(countText.c_str(), 0); @@ -621,7 +622,7 @@ void UIRenewDetailQuestInfoWnd::Paint() { this->DrawTextAt(12, 393, this->m_timeText.c_str(), 0, 0, 12, 0x161BD2, 0, 0); } - this->DrawTextAt(16, 2, LookupMessage(0xD48), 0, 0, 13, 0, 0, 0); + this->DrawTextAt(16, 2, LookupMessage(MSI_RENEW_QUEST_DETAIL_REWARD), 0, 0, 13, 0, 0, 0); } // OFFSET: 0x007FBAD0 @@ -684,7 +685,7 @@ void UIRenewDetailQuestInfoWnd::SetQuest(unsigned int questId, bool recommended) this->m_ongoingWnd->SetQuest(this->m_questId); if (quest.m_year > 1970) { const std::string timeText = - FormatOwnedString("%s [%02d/%02d/%02d %02d:%02d]", LookupMessage(2195), quest.m_year, quest.m_month, quest.m_day, quest.m_hour, quest.m_minute); + FormatOwnedString("%s [%02d/%02d/%02d %02d:%02d]", LookupMessage(MSI_NAVIGATION_ROUTEINFO), quest.m_year, quest.m_month, quest.m_day, quest.m_hour, quest.m_minute); this->m_timeText = timeText; } } @@ -724,7 +725,7 @@ void UIRenewQuestWnd::OnCreate(int, int) { if (!g_windowMgr.window_0428) { g_windowMgr.EnsureWindow(WID_QUESTDISPLAY); } - this->m_optionCheckBox = this->AddStyledCheckBox(213, 10, 12, LookupMessage(2019), 38, 447, g_windowMgr.window_0428->geometry.visible != 0, nullptr, 12, 0x212121, "유저인터페이스\\renew_questui\\checkbox_on.bmp", + this->m_optionCheckBox = this->AddStyledCheckBox(213, 10, 12, LookupMessage(MSI_QUEST_DISPLAY_ONOFF), 38, 447, g_windowMgr.window_0428->geometry.visible != 0, nullptr, 12, 0x212121, "유저인터페이스\\renew_questui\\checkbox_on.bmp", "유저인터페이스\\renew_questui\\checkbox_off.bmp" ); @@ -749,7 +750,7 @@ void UIRenewQuestWnd::OnCreate(int, int) { ); this->m_rows.checkBoxes[index] = check; check->m_message = 0; - this->m_rows.checkBoxes[index]->SetTooltip(LookupMessage(3409)); + this->m_rows.checkBoxes[index]->SetTooltip(LookupMessage(MSI_PASSWORD)); this->m_rows.checkBoxes[index]->SetHidden(true); UICheckBox* lock = this->AddStyledCheckBox(389 + index, 20, 17, nullptr, 344, y, true, nullptr, 0, 0, "유저인터페이스\\renew_questui\\bt_lock_open.bmp", @@ -795,7 +796,7 @@ void UIRenewQuestScrollBar::Paint() { void UIRenewQuestWnd::Paint() { this->ClearSurface(0xFFFF00FF); this->DrawPanelBackground(0, 0, FormatOwnedString("유저인터페이스\\renew_questui\\bg_quest%d.bmp", this->m_tab + 1).c_str()); - this->DrawTextAt(45, 2, LookupMessage(3400), 0, 0, 13, 0, 0, 0); + this->DrawTextAt(45, 2, LookupMessage(MSI_RENEW_QUEST_DETAIL_REWARD), 0, 0, 13, 0, 0, 0); for (int index = 0; index < 9; ++index) { const int y = index * 46; @@ -899,7 +900,7 @@ void UIRenewQuestWnd::RefreshRows() { const RenewQuestRecommendedInfo& quest = g_renewQuestMgr->GetRecommendedQuest(ids[index]); this->m_rows.lockBoxes[i]->geometry.unknown_0030 = quest.m_state; this->m_rows.lockBoxes[i]->Invalidate(); - this->m_rows.lockBoxes[i]->SetTooltip(LookupMessage(3408)); + this->m_rows.lockBoxes[i]->SetTooltip(LookupMessage(MSI_SAVE_ID)); this->m_rows.lockBoxes[i]->SetHidden(false); this->m_rows.checkBoxes[i]->SetHidden(true); std::string bitmap = quest.m_icon.empty() ? std::string("유저인터페이스\\renew_questui\\ico_nq.bmp") : "유저인터페이스\\renew_questui\\" + quest.m_icon; @@ -919,7 +920,7 @@ void UIRenewQuestWnd::RefreshRows() { } else { this->m_rows.lockBoxes[i]->geometry.unknown_0030 = quest.m_state; this->m_rows.lockBoxes[i]->Invalidate(); - this->m_rows.lockBoxes[i]->SetTooltip(LookupMessage(3407)); + this->m_rows.lockBoxes[i]->SetTooltip(LookupMessage(MSI_OTP_INPUT_TIME)); this->m_rows.lockBoxes[i]->SetHidden(false); this->m_rows.checkBoxes[i]->geometry.unknown_0030 = quest.m_simpleView; this->m_rows.checkBoxes[i]->Invalidate(); diff --git a/Source/UI/Rodex/UIRodexComposeWnd.cpp b/Source/UI/Rodex/UIRodexComposeWnd.cpp index 88f339783..ffdcac24c 100644 --- a/Source/UI/Rodex/UIRodexComposeWnd.cpp +++ b/Source/UI/Rodex/UIRodexComposeWnd.cpp @@ -39,6 +39,7 @@ #include "Contents/MapSkyMgr.h" #include "Resource/SkinPalette.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -208,7 +209,7 @@ void UIRodexComposeWnd::OnMouseHover(int x, int y) { if (item.identified == 1 && item.unknown_0098 != 0) { std::uint32_t color = g_session.GetItemNameColor(item); tooltip->ShowTooltip( - FormatOwnedString(LookupMessage(2600), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, color, 0, 1 + FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, color, 0, 1 ); } else { std::uint32_t color = g_session.GetItemNameColor(item); @@ -320,7 +321,7 @@ int UIRodexComposeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argu } else if (argument1 == ID_CHECK) { if (this->unknown_00B4->Length() != 0 && this->unknown_00B4->Length() < 24) { if (g_navigationLinkParser->HasLink(this->unknown_00B4->Text())) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xAFC)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_STYLING_SHOP_OPEN_COUPON)), 0x64FFFF, 0, 0, 0); return 0; } @@ -338,45 +339,45 @@ int UIRodexComposeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argu } if (this->unknown_00B4->Length() >= 24) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA27)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_WND_OVERFULL)), 0x64FFFF, 0, 0, 0); } if (g_navigationLinkParser->HasLink(this->unknown_00B4->Text())) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xAFC)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_STYLING_SHOP_OPEN_COUPON)), 0x64FFFF, 0, 0, 0); } else { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA23)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_SEND_MAIL_ITEM)), 0x64FFFF, 0, 0, 0); } } else if (argument1 == ID_SEND) { if (this->unknown_00B4->Length() == 0 && this->unknown_00B8->Length() == 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA23)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_SEND_MAIL_ITEM)), 0x64FFFF, 0, 0, 0); return 0; } if (this->unknown_00D0->Length() < 4 || this->unknown_00D0->Length() >= 51) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA24)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAIELD_SEND_MAIL_TO)), 0x64FFFF, 0, 0, 0); return 0; } if (this->m_contents->Length() >= 1001) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA44)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_DYNAMICNPC_FAIL_DUPLICATENAME)), 0x64FFFF, 0, 0, 0); return 0; } const std::int64_t zeny = this->GetZeny(); if (zeny > 0) { if (zeny > g_session.m_zeny) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA35)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TAIWAN_PERSONALINFO_EXPMSG)), 0x64FFFF, 0, 0, 0); return 0; } if (zeny + this->unknown_00F8 > g_session.m_zeny) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA53)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ACHIEVEMENT_SYSTEM)), 0x64FFFF, 0, 0, 0); return 0; } } if (this->unknown_00F8 > 0 && this->unknown_00F8 > g_session.m_zeny) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA53)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ACHIEVEMENT_SYSTEM)), 0x64FFFF, 0, 0, 0); return 0; } if (this->unknown_00C8->GetText().length() <= 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA33)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SEND_MAIL_COMMISSION)), 0x64FFFF, 0, 0, 0); return 0; } @@ -384,7 +385,7 @@ int UIRodexComposeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argu if (g_navigationLinkParser->HasLink(this->m_contents->Text())) { this->m_contents->SetText(""); body.clear(); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBE2)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CLOSE)), 0xFF, 0, 0, 0); return 0; } @@ -465,7 +466,7 @@ void UIRodexComposeWnd::Paint() { const auto* weightBg = &static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\bg_weight.bmp")))->image; this->DrawBitmap(199, 305, weightBg, true); - const char* weightMsg = LookupMessage(3035); + const char* weightMsg = LookupMessage(MSI_TWITTER_TAG); this->DrawTextAt(245, 316, weightMsg, 0, 0, 11, 0x737373, 0, 0); std::string weightStr = FormatOwnedString("%d", static_cast(g_session.unknown_6140)); @@ -587,12 +588,12 @@ void UIRodexComposeWnd::OnCreate(int, int) { this->unknown_00BC->SetSize(this->unknown_00BC->BitmapWidth(), this->unknown_00BC->BitmapHeight()); { const int textX = static_cast( - static_cast(this->unknown_00BC->geometry.width - this->TextWidth(LookupMessage(0xDD9), 0, 0, 12, 0, 0)) * + static_cast(this->unknown_00BC->geometry.width - this->TextWidth(LookupMessage(MSI_RODEX_TAB_RETURN), 0, 0, 12, 0, 0)) * g_depthAverageHalf ); UIBmpTextButton* button = this->unknown_00BC; const int textY = static_cast( - static_cast(button->geometry.height - this->TextHeight(LookupMessage(0xDD9), 0, 0, 12, 0, 0)) * + static_cast(button->geometry.height - this->TextHeight(LookupMessage(MSI_RODEX_TAB_RETURN), 0, 0, 12, 0, 0)) * g_depthAverageHalf ); button->AddTextStyle(0, 12, 0x313131, 0, 0, textX, textY); @@ -600,7 +601,7 @@ void UIRodexComposeWnd::OnCreate(int, int) { this->unknown_00BC->AddTextStyle(2, 12, 0x313131, 0, 1, textX, textY); this->unknown_00BC->AddTextStyle(3, 12, 0xC2C2C2, 0, 0, textX, textY); } - this->unknown_00BC->SetText(LookupMessage(0xDD9)); + this->unknown_00BC->SetText(LookupMessage(MSI_RODEX_TAB_RETURN)); this->unknown_00BC->Move(0xA2, 0x1A); this->unknown_00BC->SetId(0xD5); this->AddChild(this->unknown_00BC); @@ -659,7 +660,7 @@ void UIRodexComposeWnd::OnCreate(int, int) { this->AddChild(this->m_zeny); this->unknown_00D8 = new UIBasicButton(); - this->unknown_00D8->Configure(0x46, LookupMessage(0xDD8)); + this->unknown_00D8->Configure(0x46, LookupMessage(MSI_RODEX_TAB_DEFAULT)); this->unknown_00D8->Move(0xE2, 0x178); this->unknown_00D8->SetId(0x159); this->AddChild(this->unknown_00D8); diff --git a/Source/UI/Rodex/UIRodexInboxWnd.cpp b/Source/UI/Rodex/UIRodexInboxWnd.cpp index 4e7479a0d..c143b9d6d 100644 --- a/Source/UI/Rodex/UIRodexInboxWnd.cpp +++ b/Source/UI/Rodex/UIRodexInboxWnd.cpp @@ -25,6 +25,7 @@ #include "Contents/MapSkyMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -148,14 +149,14 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { this->unknown_0138->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_listtab_empty_press.bmp", 2); { UIBmpRadioBtn* tab = this->unknown_0138; - const std::string label = LookupMessage(0xDDC); + const std::string label = LookupMessage(MSI_FAILED_HOMUN_AUTO_FEEDING_BY_ITEMACTION); tab->m_label = label; tab->Invalidate(); } { - const int textX = static_cast(static_cast(this->unknown_0138->geometry.width - this->TextWidth(LookupMessage(0xDDC), 0, 0, 12, 0, 0)) * g_depthAverageHalf); + const int textX = static_cast(static_cast(this->unknown_0138->geometry.width - this->TextWidth(LookupMessage(MSI_FAILED_HOMUN_AUTO_FEEDING_BY_ITEMACTION), 0, 0, 12, 0, 0)) * g_depthAverageHalf); UIBmpRadioBtn* tab = this->unknown_0138; - const int textY = static_cast(static_cast(tab->geometry.height - this->TextHeight(LookupMessage(0xDDC), 0, 0, 12, 0, 0) - 3) * g_depthAverageHalf); + const int textY = static_cast(static_cast(tab->geometry.height - this->TextHeight(LookupMessage(MSI_FAILED_HOMUN_AUTO_FEEDING_BY_ITEMACTION), 0, 0, 12, 0, 0) - 3) * g_depthAverageHalf); tab->AddText(0, 12, 0xCCB5AD, true, false, textX, textY); this->unknown_0138->AddText(1, 12, 0x9C3E1F, true, false, textX, textY); this->unknown_0138->AddText(2, 12, 0x9C3E1F, true, false, textX, textY); @@ -170,14 +171,14 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { this->unknown_0134->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_listtab_empty_press.bmp", 2); { UIBmpRadioBtn* tab = this->unknown_0134; - const std::string label = LookupMessage(0xDDA); + const std::string label = LookupMessage(MSI_RODEX_TAB_SEARCH); tab->m_label = label; tab->Invalidate(); } { - const int textX = static_cast(static_cast(this->unknown_0134->geometry.width - this->TextWidth(LookupMessage(0xDDA), 0, 0, 12, 0, 0)) * g_depthAverageHalf); + const int textX = static_cast(static_cast(this->unknown_0134->geometry.width - this->TextWidth(LookupMessage(MSI_RODEX_TAB_SEARCH), 0, 0, 12, 0, 0)) * g_depthAverageHalf); UIBmpRadioBtn* tab = this->unknown_0134; - const int textY = static_cast(static_cast(tab->geometry.height - this->TextHeight(LookupMessage(0xDDA), 0, 0, 12, 0, 0) - 3) * g_depthAverageHalf); + const int textY = static_cast(static_cast(tab->geometry.height - this->TextHeight(LookupMessage(MSI_RODEX_TAB_SEARCH), 0, 0, 12, 0, 0) - 3) * g_depthAverageHalf); tab->AddText(0, 12, 0xCCB5AD, true, false, textX, textY); this->unknown_0134->AddText(1, 12, 0x9C3E1F, true, false, textX, textY); this->unknown_0134->AddText(2, 12, 0x9C3E1F, true, false, textX, textY); @@ -192,14 +193,14 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { this->unknown_0130->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_listtab_empty_press.bmp", 2); { UIBmpRadioBtn* tab = this->unknown_0130; - const std::string label = LookupMessage(0xDDB); + const std::string label = LookupMessage(MSI_FAILED_PET_AUTO_FEEDING_BY_ITEMACTION); tab->m_label = label; tab->Invalidate(); } { - const int textX = static_cast(static_cast(this->unknown_0130->geometry.width - this->TextWidth(LookupMessage(0xDDB), 0, 0, 12, 0, 0)) * g_depthAverageHalf); + const int textX = static_cast(static_cast(this->unknown_0130->geometry.width - this->TextWidth(LookupMessage(MSI_FAILED_PET_AUTO_FEEDING_BY_ITEMACTION), 0, 0, 12, 0, 0)) * g_depthAverageHalf); UIBmpRadioBtn* tab = this->unknown_0130; - const int textY = static_cast(static_cast(tab->geometry.height - this->TextHeight(LookupMessage(0xDDB), 0, 0, 12, 0, 0) - 3) * g_depthAverageHalf); + const int textY = static_cast(static_cast(tab->geometry.height - this->TextHeight(LookupMessage(MSI_FAILED_PET_AUTO_FEEDING_BY_ITEMACTION), 0, 0, 12, 0, 0) - 3) * g_depthAverageHalf); tab->AddText(0, 12, 0xCCB5AD, true, false, textX, textY); this->unknown_0130->AddText(1, 12, 0x9C3E1F, true, false, textX, textY); this->unknown_0130->AddText(2, 12, 0x9C3E1F, true, false, textX, textY); @@ -224,7 +225,7 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { this->unknown_013C->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_refresh_out.bmp", 0, 0); this->unknown_013C->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_refresh_over.bmp", 1, 0); this->unknown_013C->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_refresh_press.bmp", 2, 0); - this->unknown_013C->SetTooltip(LookupMessage(0xB21)); + this->unknown_013C->SetTooltip(LookupMessage(MSI_RODEX_DELETE_TIME_DAY)); this->unknown_013C->SetSize(this->unknown_013C->BitmapWidth(), this->unknown_013C->BitmapHeight()); this->unknown_013C->Move(0xEF, 0x14); this->unknown_013C->SetId(0x19F); @@ -234,7 +235,7 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { this->unknown_0140->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_write_out.bmp", 0, 0); this->unknown_0140->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_write_over.bmp", 1, 0); this->unknown_0140->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_write_press.bmp", 2, 0); - this->unknown_0140->SetTooltip(LookupMessage(0x402)); + this->unknown_0140->SetTooltip(LookupMessage(MSI_MAIL_WRITE)); this->unknown_0140->SetSize(this->unknown_0140->BitmapWidth(), this->unknown_0140->BitmapHeight()); this->unknown_0140->Move(0x10C, 0x12); this->unknown_0140->SetId(0x131); @@ -255,7 +256,7 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { this->unknown_015C[row]->m_hoverColor = 0x51417E; this->unknown_015C[row]->Move(0x45, y); this->unknown_015C[row]->SetId(0x143); - this->unknown_015C[row]->SetTooltip(LookupMessage(0xA8E)); + this->unknown_015C[row]->SetTooltip(LookupMessage(MSI_TAIWAN_CASH_MSG_2)); this->unknown_015C[row]->Enable(0); this->AddChild(this->unknown_015C[row]); @@ -264,7 +265,7 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { this->unknown_0144[row]->m_hoverColor = 0x51417E; this->unknown_0144[row]->Move(0x47, y + 0x10); this->unknown_0144[row]->SetId(0x142); - this->unknown_0144[row]->SetTooltip(LookupMessage(0xA8D)); + this->unknown_0144[row]->SetTooltip(LookupMessage(MSI_TAIWAN_CASH_MSG_1)); this->unknown_0144[row]->Enable(0); this->AddChild(this->unknown_0144[row]); @@ -274,7 +275,7 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { this->unknown_01A8[row]->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_return_press.bmp", 2, 0); this->unknown_01A8[row]->SetSize(this->unknown_01A8[row]->BitmapWidth(), this->unknown_01A8[row]->BitmapHeight()); this->unknown_01A8[row]->Move(0xBA, y + 0x1D); - this->unknown_01A8[row]->SetTooltip(LookupMessage(0xB20)); + this->unknown_01A8[row]->SetTooltip(LookupMessage(MSI_RODEX_DELETE_TIME_HOUR)); this->unknown_01A8[row]->SetId(0x136); this->unknown_01A8[row]->Enable(0); this->AddChild(this->unknown_01A8[row]); @@ -282,14 +283,14 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { UIBasicButton* button = new UIBasicButton(); this->unknown_018C = button; - button->Configure(0x46, LookupMessage(0xE05)); + button->Configure(0x46, LookupMessage(MSI_RODEX_BUTTON_RECEIVE_ALL)); this->unknown_018C->SetId(0x222); this->unknown_018C->Move(4, 0x178); this->AddChild(this->unknown_018C); button = new UIBasicButton(); this->unknown_0190 = button; - button->Configure(0x46, LookupMessage(0xE08)); + button->Configure(0x46, LookupMessage(MSI_HOTKEYWND_SKILLBAR2)); this->unknown_0190->Move(0x54, 0x188); this->unknown_0190->SetId(0x224); this->AddChild(this->unknown_0190); @@ -298,7 +299,7 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { this->unknown_0194->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_prev_out.bmp", 0, 0); this->unknown_0194->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_prev_over.bmp", 1, 0); this->unknown_0194->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_prev_press.bmp", 2, 0); - this->unknown_0194->SetTooltip(LookupMessage(0x511)); + this->unknown_0194->SetTooltip(LookupMessage(MSI_BOOK_PREV)); this->unknown_0194->SetSize(this->unknown_0194->BitmapWidth(), this->unknown_0194->BitmapHeight()); this->unknown_0194->Move(0xF6, 0x176); this->unknown_0194->SetId(0x13C); @@ -308,7 +309,7 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { this->unknown_0198->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_next_out.bmp", 0, 0); this->unknown_0198->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_next_over.bmp", 1, 0); this->unknown_0198->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_next_press.bmp", 2, 0); - this->unknown_0198->SetTooltip(LookupMessage(0x512)); + this->unknown_0198->SetTooltip(LookupMessage(MSI_BOOK_NEXT)); this->unknown_0198->SetSize(this->unknown_0198->BitmapWidth(), this->unknown_0198->BitmapHeight()); this->unknown_0198->Move(0x10E, 0x176); this->unknown_0198->SetId(0x13D); @@ -358,14 +359,14 @@ void UIRodexInboxWnd::OnCreate(int width, int height) { this->unknown_01D0->SetBitmap("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\btn_listtab_empty_press.bmp", 2); { UIBmpRadioBtn* tab = this->unknown_01D0; - const std::string label = LookupMessage(0xDDD); + const std::string label = LookupMessage(MSI_MSI_INVENTORY_TABNAME_4); tab->m_label = label; tab->Invalidate(); } { - const int textX = static_cast(static_cast(this->unknown_01D0->geometry.width - this->TextWidth(LookupMessage(0xDDD), 0, 0, 12, 0, 0)) * g_depthAverageHalf); + const int textX = static_cast(static_cast(this->unknown_01D0->geometry.width - this->TextWidth(LookupMessage(MSI_MSI_INVENTORY_TABNAME_4), 0, 0, 12, 0, 0)) * g_depthAverageHalf); UIBmpRadioBtn* tab = this->unknown_01D0; - const int textY = static_cast(static_cast(tab->geometry.height - this->TextHeight(LookupMessage(0xDDD), 0, 0, 12, 0, 0) - 3) * g_depthAverageHalf); + const int textY = static_cast(static_cast(tab->geometry.height - this->TextHeight(LookupMessage(MSI_MSI_INVENTORY_TABNAME_4), 0, 0, 12, 0, 0) - 3) * g_depthAverageHalf); tab->AddText(0, 12, 0xCCB5AD, true, false, textX, textY); this->unknown_01D0->AddText(1, 12, 0x9C3E1F, true, false, textX, textY); this->unknown_01D0->AddText(2, 12, 0x9C3E1F, true, false, textX, textY); @@ -402,8 +403,8 @@ void UIRodexInboxWnd::Paint() { if (!g_rodexMailStore->unknown_001C) { this->DrawBitmap(0x1F, 0x9A, static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\img_notice.bmp"))), true); - this->DrawWrappedFormattedText(0x1F, 0xE5, std::string(LookupMessage(0xC76)), 0xF8, 3, 6, 0, 12, 0, 0); - this->DrawCenteredText(0x1F, 0x10E, LookupMessage(0xC77), 0xF8, 0, 0x12, 0xC89482, 1); + this->DrawWrappedFormattedText(0x1F, 0xE5, std::string(LookupMessage(MSI_RODEX_SENDER)), 0xF8, 3, 6, 0, 12, 0, 0); + this->DrawCenteredText(0x1F, 0x10E, LookupMessage(MSI_CLOSE_SETUP), 0xF8, 0, 0x12, 0xC89482, 1); return; } @@ -498,7 +499,7 @@ void UIRodexInboxWnd::Paint() { } this->DrawRightAlignedText(0x111, 0x2E, FormatOwnedString("%d", g_rodexMailStore->unknown_0014).c_str(), 0, 0, 11, 0xC89482, 1); - this->DrawTextAt(0x111, 0x2E, LookupMessage(0xBDA), 0, 0, 11, 0xC89482, 1, 0); + this->DrawTextAt(0x111, 0x2E, LookupMessage(MSI_EMBLEM_CHANGE), 0, 0, 11, 0xC89482, 1, 0); } // OFFSET: 0x00808FD0 @@ -588,7 +589,7 @@ void UIRodexInboxWnd::SetMailRow(int row, std::int64_t mailId, std::string name, this->unknown_015C[row]->m_color = 0xC8C8C8; button = this->unknown_015C[row]; { - const std::string label = LookupMessage(0xB5B); + const std::string label = LookupMessage(MSI_THAI_PERSONALINFO_DROP); button->label = label; } this->unknown_015C[row]->ResizeToTextClipped(0x8C, this->unknown_015C[row]->geometry.height); @@ -612,18 +613,18 @@ void UIRodexInboxWnd::DrawExpireTime(int row, __time32_t sendTime, __time32_t ex std::string text; if (remaining / 86400 > 0) { - const std::string formatted = FormatOwnedString(LookupMessage(0xB24), remaining / 86400); + const std::string formatted = FormatOwnedString(LookupMessage(MSI_MINIMAP_TIP_POS_ON), remaining / 86400); text = formatted; } else if (remaining / 3600 > 0) { - const std::string formatted = FormatOwnedString(LookupMessage(0xB23), remaining / 3600); + const std::string formatted = FormatOwnedString(LookupMessage(MSI_RODEX_DELETE_SELECT_MAIL), remaining / 3600); text = formatted; } else { - const std::string formatted = FormatOwnedString(LookupMessage(0xB22), remaining / 60); + const std::string formatted = FormatOwnedString(LookupMessage(MSI_RODEX_RETURNED), remaining / 60); text = formatted; } if (returned == 1) { - this->DrawCenteredText(0x104, row * 0x2C + 0x7D, LookupMessage(0xB25), 0, 0, 11, 0x666673, 0); + this->DrawCenteredText(0x104, row * 0x2C + 0x7D, LookupMessage(MSI_MINIMAP_TIP_ZOOM_IN), 0, 0, 11, 0x666673, 0); this->DrawCenteredText(0x104, row * 0x2C + 0x8A, text.c_str(), 0, 0, 11, 0x666673, 0); } else { this->DrawCenteredText(0x104, row * 0x2C + 0x82, text.c_str(), 0, 0, 11, 0xA0AE9, 1); @@ -765,9 +766,9 @@ void UIRodexInboxWnd::InitializeMailActions() { this->checks[i]->m_message = 0; } - this->unknown_018C->SetText(LookupMessage(0xE05)); + this->unknown_018C->SetText(LookupMessage(MSI_RODEX_BUTTON_RECEIVE_ALL)); this->unknown_018C->SetId(0x222); - this->unknown_0190->SetText(LookupMessage(0xE08)); + this->unknown_0190->SetText(LookupMessage(MSI_HOTKEYWND_SKILLBAR2)); this->unknown_0190->SetId(0x224); this->Invalidate(); } @@ -866,7 +867,7 @@ void UIRodexInboxWnd::RequestAllMailActions() { g_windowMgr.CloseWindow(WID_RODEXCONTENTSWND); } if (skipped > 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA34)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILE_MAIL_RECIEVER_INFO)), 0x64FFFF, 0, 0, 0); } } @@ -991,7 +992,7 @@ int UIRodexInboxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume } if (selected.size() != 0) { - if (g_windowMgr.Confirm(LookupMessage(0xB26), 2, false, false, 0, "Message", 280, 120, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_MINIMAP_TIP_ZOOM_OUT), 2, false, false, 0, "Message", 280, 120, 0) == 0xBB) { for (int i = 0; i < 6; ++i) { this->checks[i]->SetChecked(0); this->checks[i]->m_message = 0; @@ -1002,7 +1003,7 @@ int UIRodexInboxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume success &= RequestRodexMailAction(entry->first, entry->second); } if (!success) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA34)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILE_MAIL_RECIEVER_INFO)), 0x64FFFF, 0, 0, 0); } } } @@ -1019,7 +1020,7 @@ int UIRodexInboxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume } if (selected.size() != 0) { - if (g_windowMgr.Confirm(LookupMessage(0xB26), 2, false, false, 0, "Message", 280, 120, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_MINIMAP_TIP_ZOOM_OUT), 2, false, false, 0, "Message", 280, 120, 0) == 0xBB) { for (int i = 0; i < 6; ++i) { this->checks[i]->SetChecked(0); this->checks[i]->m_message = 0; @@ -1030,7 +1031,7 @@ int UIRodexInboxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume success &= RequestRodexMailAction(g_rodexMailStore->unknown_0010, *id); } if (!success) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA34)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILE_MAIL_RECIEVER_INFO)), 0x64FFFF, 0, 0, 0); } } } @@ -1056,14 +1057,14 @@ int UIRodexInboxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume } if (checked != 0) { - this->unknown_018C->SetText(LookupMessage(0xE04)); + this->unknown_018C->SetText(LookupMessage(MSI_RODEX_BUTTON_RECEIVE_SELECTED)); this->unknown_018C->SetId(0xD3); - this->unknown_0190->SetText(LookupMessage(0xE07)); + this->unknown_0190->SetText(LookupMessage(MSI_RODEX_MESSAGE_RECEIVE_ALL)); this->unknown_0190->SetId(0x223); } else { - this->unknown_018C->SetText(LookupMessage(0xE05)); + this->unknown_018C->SetText(LookupMessage(MSI_RODEX_BUTTON_RECEIVE_ALL)); this->unknown_018C->SetId(0x222); - this->unknown_0190->SetText(LookupMessage(0xE08)); + this->unknown_0190->SetText(LookupMessage(MSI_HOTKEYWND_SKILLBAR2)); this->unknown_0190->SetId(0x224); } break; @@ -1084,22 +1085,22 @@ int UIRodexInboxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume case 0x222: { std::string type; if (this->unknown_01D4 == 1) { - type = LookupMessage(0xDDD); + type = LookupMessage(MSI_MSI_INVENTORY_TABNAME_4); } else { switch (g_rodexMailStore->unknown_0010) { case MAIL_INBOX_NORMAL: - type = LookupMessage(0xDDB); + type = LookupMessage(MSI_FAILED_PET_AUTO_FEEDING_BY_ITEMACTION); break; case MAIL_INBOX_ACCOUNT: - type = LookupMessage(0xDDA); + type = LookupMessage(MSI_RODEX_TAB_SEARCH); break; case MAIL_INBOX_RETURNED: - type = LookupMessage(0xDDC); + type = LookupMessage(MSI_FAILED_HOMUN_AUTO_FEEDING_BY_ITEMACTION); break; } } - const std::string text = FormatOwnedString(LookupMessage(0xE06), type.c_str()); + const std::string text = FormatOwnedString(LookupMessage(MSI_RODEX_MESSAGE_RECEIVE_SELECTED), type.c_str()); if (g_windowMgr.Confirm(text.c_str(), 2, false, false, 0, "Message", 280, 120, 0) == 0xBB) { this->RequestAllMailActions(); } @@ -1109,22 +1110,22 @@ int UIRodexInboxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume case 0x224: { std::string type; if (this->unknown_01D4 == 1) { - type = LookupMessage(0xDDD); + type = LookupMessage(MSI_MSI_INVENTORY_TABNAME_4); } else { switch (g_rodexMailStore->unknown_0010) { case MAIL_INBOX_NORMAL: - type = LookupMessage(0xDDB); + type = LookupMessage(MSI_FAILED_PET_AUTO_FEEDING_BY_ITEMACTION); break; case MAIL_INBOX_ACCOUNT: - type = LookupMessage(0xDDA); + type = LookupMessage(MSI_RODEX_TAB_SEARCH); break; case MAIL_INBOX_RETURNED: - type = LookupMessage(0xDDC); + type = LookupMessage(MSI_FAILED_HOMUN_AUTO_FEEDING_BY_ITEMACTION); break; } } - const std::string text = FormatOwnedString(LookupMessage(0xE0A), type.c_str()); + const std::string text = FormatOwnedString(LookupMessage(MSI_HOTKEYGUIDEWND_LEFT), type.c_str()); if (g_windowMgr.Confirm(text.c_str(), 2, false, false, 0, "Message", 280, 120, 0) == 0xBB) { if (this->unknown_01D4 == 1) { for (std::vector::iterator entry = this->searchResults.begin(); entry != this->searchResults.end(); ++entry) { @@ -1163,7 +1164,7 @@ int UIRodexInboxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume } if (selected.size() != 0 && - g_windowMgr.Confirm(LookupMessage(0xE09), 2, false, false, 0, "Message", 280, 120, 0) == 0xBB) { + g_windowMgr.Confirm(LookupMessage(MSI_CHANGE_SKILLBER), 2, false, false, 0, "Message", 280, 120, 0) == 0xBB) { for (std::vector::iterator entry = selected.begin(); entry != selected.end(); ++entry) { RequestRodexMailAttachments(entry->first, entry->second); } @@ -1185,7 +1186,7 @@ int UIRodexInboxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume } if (selected.size() != 0 && - g_windowMgr.Confirm(LookupMessage(0xE09), 2, false, false, 0, "Message", 280, 120, 0) == 0xBB) { + g_windowMgr.Confirm(LookupMessage(MSI_CHANGE_SKILLBER), 2, false, false, 0, "Message", 280, 120, 0) == 0xBB) { for (std::vector::iterator id = selected.begin(); id != selected.end(); ++id) { RequestRodexMailAttachments(g_rodexMailStore->unknown_0010, *id); } @@ -1218,8 +1219,8 @@ int UIRodexInboxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume } else if (argument1 == 0x143) { std::map::iterator mail = g_rodexMailStore->m_mails0.find(argument2); if (mail != g_rodexMailStore->m_mails0.end() && mail->second.unknown_0194 == 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xF1B)), 0xFF, 0, 0, 0); - if (g_windowMgr.Confirm(LookupMessage(0xF1B), 2, false, false, 0, "Message", 280, 120, 0) == 0xBC) { + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GRADE_ENCHANT_SUCCESS_REFINING_LEVEL_DISAPPEAR)), 0xFF, 0, 0, 0); + if (g_windowMgr.Confirm(LookupMessage(MSI_GRADE_ENCHANT_SUCCESS_REFINING_LEVEL_DISAPPEAR), 2, false, false, 0, "Message", 280, 120, 0) == 0xBC) { break; } } diff --git a/Source/UI/RuneSystem/UIRuneSystemWnd.cpp b/Source/UI/RuneSystem/UIRuneSystemWnd.cpp index 084444975..51fb238ef 100644 --- a/Source/UI/RuneSystem/UIRuneSystemWnd.cpp +++ b/Source/UI/RuneSystem/UIRuneSystemWnd.cpp @@ -11,6 +11,7 @@ #include "Utility/Text/FormatString.h" #include "Client/Mode/CMode.h" +#include "Resource/MSGSTRINGID.h" // GLOBAL: gl_24886 extern const int g_runeSetSlotX[6] = {87, 201, 19, 269, 87, 201}; // GLOBAL: gl_24887 @@ -303,10 +304,10 @@ void UIRuneSetReWard::OnLBtnUp(int x, int y) { } if (this->m_state == 3) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4200)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_STORE_PASSWORD_ONOFF_MSG)), 0xFF, 0, 0, 0); } if (this->m_state == 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4201)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CASHSHOP_PASSWORD_ONOFF_MSG)), 0xFF, 0, 0, 0); } if (this == g_windowMgr.Capture()) { @@ -712,7 +713,7 @@ void UIRuneSet_Info::RefreshDescription() { } const bool reached = activeCount >= count; - this->m_infoList->AddLine(FormatOwnedString(LookupMessage(4049), count).c_str(), reached ? 0xFF7B00 : 0xB0A29A, true); + this->m_infoList->AddLine(FormatOwnedString(LookupMessage(MSI_RUNESYSTEM_EQUIP_PUTERR), count).c_str(), reached ? 0xFF7B00 : 0xB0A29A, true); this->m_infoList->AddLine(std::string(), 0, false); for (int index = 0; index < lineCount; ++index) { this->m_infoList->AddLine(lines[index].c_str(), reached ? 0 : 0xB0A29A, false); @@ -1018,7 +1019,7 @@ void UIRuneSystemWnd::Paint() { 0, this->geometry.height - 36, &static_cast(ResourceMgr::Instance().Load(Resolve(FormatOwnedString("유저인터페이스\\runesystem\\bg_left_down.bmp").c_str())))->image, false ); - this->DrawTitleBar(true, LookupMessage(4050), 0); + this->DrawTitleBar(true, LookupMessage(MSI_ADVENTURE_GUIDE), 0); } // OFFSET: 0x0081E3F0 @@ -1121,7 +1122,7 @@ void UIEquipRuneSetWnd::Paint() { } titleX += 2; - const std::string title = FormatOwnedString(LookupMessage(4042), runeSet->GetName()); + const std::string title = FormatOwnedString(LookupMessage(MSI_RUNESYSTEM_RUNE_FAILDESC), runeSet->GetName()); this->DrawTextAt(titleX, 12, title.c_str(), 0, 0, 13, 0xFCDEE6, 1, 0); this->DrawTextAt(titleX, 11, title.c_str(), 0, 0, 13, 0x864D43, 1, 0); const std::string tag = FormatOwnedString("유저인터페이스\\runesystem\\tag\\bt_tag_%d_equip.bmp", runeSet->GetTagId()); @@ -1166,7 +1167,7 @@ void UIRuneList::Paint() { const std::string background = FormatOwnedString("유저인터페이스\\runesystem\\list_rune_item_%d_%d.bmp", active, index == this->m_selected); this->DrawBitmap(0, y, &static_cast(ResourceMgr::Instance().Load(Resolve(background.c_str())))->image, true); this->DrawRuneIcon(18, y + 6, rune->GetResName(), active); - const std::string name = FormatOwnedString(LookupMessage(4043), rune->GetName()); + const std::string name = FormatOwnedString(LookupMessage(MSI_RUNESYSTEM_RUNE_UPGRADEMAXDESC), rune->GetName()); this->DrawTextAt(62, y + 9, name.c_str(), 0, 0, 12, 0, 0, 0); } this->DrawScrollBar(true); @@ -1198,7 +1199,7 @@ void UIRuneSetList::Paint() { } } - const std::string title = FormatOwnedString(LookupMessage(4042), runeSet->GetName()); + const std::string title = FormatOwnedString(LookupMessage(MSI_RUNESYSTEM_RUNE_FAILDESC), runeSet->GetName()); const int titleWidth = this->TextWidth(title.c_str(), title.size(), 0, 12, 0, 0); std::string grade; int gradeWidth = 0; @@ -1596,7 +1597,7 @@ int UIRuneSet_Info::SendMsg(UIWindow* sender, int message, std::intptr_t argumen UIRuneSystemTab* tab = this->m_tab; tab->geometry.unknown_0030 = 0; tab->Invalidate(); - g_windowMgr.Confirm(LookupMessage(4047), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_TITLE), 0, true, false, 0, "Message", 280, 120, 0); } this->Refresh(); break; @@ -1623,21 +1624,21 @@ int UIRuneSet_Info::SendMsg(UIWindow* sender, int message, std::intptr_t argumen case 0x253: case 0x254: if (!this->m_runeSet->IsRewardStep(argument1 - 0x24E)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4199)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_REWARD_TITLE)), 0xFF, 0, 0, 0); } else { g_runeSystemMgr->SendRequest(0xC16, this->m_runeSet, argument1 - 0x24D); } break; case 0x23C: if (!this->m_runeSet) { - g_windowMgr.Confirm(LookupMessage(4048), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_EQUIP_NOT), 0, true, false, 0, "Message", 280, 120, 0); } else if (!this->parent || this->parent->SendMsg(this, 0x6A, 100, 0, 0, 0) != 0) { g_runeSystemMgr->SendRequest(0xBD0, this->m_runeSet, -1); } break; case 0x1FD: if (!this->m_runeSet) { - g_windowMgr.Confirm(LookupMessage(4048), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_EQUIP_NOT), 0, true, false, 0, "Message", 280, 120, 0); } else if (!this->parent || this->parent->SendMsg(this, 0x6A, 100, 0, 0, 0) != 0) { g_runeSystemMgr->SendRequest(0xBD2, this->m_runeSet, -1); } @@ -1742,7 +1743,7 @@ int UIRune_Decom::SendMsg(UIWindow* sender, int message, std::intptr_t argument1 if (static_cast(g_session.m_weight) > static_cast(g_session.m_maxWeight) * 0.7f || g_session.GetList0Size() + g_session.CountItems17F0() + g_session.CountItems2B50() + 8 >= g_session.unknown_7FBC + 100) { - g_windowMgr.Confirm(LookupMessage(4064), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MACRO_USER_REPORT), 0, true, false, 0, "Message", 280, 120, 0); } else { ITEM_INFO item = LookupClientItem(g_session.m_inventoryItems, this->m_itemId, 0); RuneDecomRequestPacket packet; @@ -1780,7 +1781,7 @@ void UIRune_Decom::OnCreate(int, int) { this->m_radioButtons[index] = new UIRuneSystem_Decom_RadioBtn(); this->m_radioButtons[index]->SetSize(0x68, 0x0E); this->m_radioButtons[index]->Move(x, 0x153); - const std::string text = FormatOwnedString(LookupMessage(4074), g_runeSystemMgr->GetDecomItem(index)); + const std::string text = FormatOwnedString(LookupMessage(MSI_RUNESYSTEM_NOT_EXIST), g_runeSystemMgr->GetDecomItem(index)); this->m_radioButtons[index]->SetText(text.c_str()); this->m_radioButtons[index]->SendMsg(this, UM_SETSTATE, index, 0, 0, 0); this->m_radioButtons[index]->SetBitmaps("유저인터페이스\\runesystem\\btn_radio_on.bmp", "유저인터페이스\\runesystem\\btn_radio_off.bmp"); @@ -1859,7 +1860,7 @@ void UIRuneSystemWnd::OnCreate(int, int) { this->m_runeDecom->SetSize(0x273, 0x20A); this->m_runeDecom->Move(0x11B, 0x11); - this->AddCloseButton(LookupMessage(3045), 0); + this->AddCloseButton(LookupMessage(MSI_ZENY_LOTTO_BUY_10), 0); this->SelectTab(); g_session.CollectCardItems(); } @@ -1917,7 +1918,7 @@ void UIRuneSet_Info::OnCreate(int, int) { this->m_gradeText = new UIStaticText(); this->AddChild(this->m_gradeText); this->m_gradeText->SetSize(0x89, 0x7F); - const std::string gradeTitle = LookupMessage(4044); + const std::string gradeTitle = LookupMessage(MSI_RUNESYSTEM_RUNE_UNACTIVEDESC); this->m_gradeText->SetText(gradeTitle.c_str(), 1); this->m_gradeText->SetColor(0xFF, 0xFF, 0xFF); const int titleWidth = this->TextWidth(gradeTitle.c_str(), 0, 0, 12, 0, 0); @@ -2072,8 +2073,8 @@ void UIRuneSet_Info::Paint() { const std::string collection = std::format("유저인터페이스\\collection\\{}.bmp", resource); this->DrawBitmap(0x188, 0xE1, static_cast(ResourceMgr::Instance().Load(Resolve(collection.c_str()))), true); if (this->m_runeSet->m_reward.values[0] != 0) { - this->DrawTextAt(0x1BC, 0x30, LookupMessage(4203), 0, 0, 13, 0xFFF0E1, 1, 0); - this->DrawTextAt(0x1BC, 0x31, LookupMessage(4203), 0, 0, 13, 0x864D43, 1, 0); + this->DrawTextAt(0x1BC, 0x30, LookupMessage(MSI_REMOVE_HEAD_COLOR), 0, 0, 13, 0xFFF0E1, 1, 0); + this->DrawTextAt(0x1BC, 0x31, LookupMessage(MSI_REMOVE_HEAD_COLOR), 0, 0, 13, 0x864D43, 1, 0); } } } else { @@ -2081,16 +2082,16 @@ void UIRuneSet_Info::Paint() { 0x179, 0, static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\runesystem\\bg_runeset_upgrade.bmp"))), true ); if (this->m_runeSet->m_grade < 15) { - path = FormatOwnedString(LookupMessage(4045), static_cast(static_cast(g_runeSystemMgr->GetGradeFailValue(this->m_runeSet)) * 0.001f)); + path = FormatOwnedString(LookupMessage(MSI_RUNESYSTEM_RUNE_RUNE_NULL), static_cast(static_cast(g_runeSystemMgr->GetGradeFailValue(this->m_runeSet)) * 0.001f)); } else { - path = LookupMessage(4046); + path = LookupMessage(MSI_RUNESYSTEM_RUNESET_DESC); } const int width = this->TextWidth(path.c_str(), path.size(), 0, 12, 0, 0); this->DrawTextAt(0x1F5 - static_cast(static_cast(width) * 0.5f), 0x103, path.c_str(), 0, 0, 12, 0, 0, 0 ); } - const std::string title = FormatOwnedString(LookupMessage(4042), this->m_runeSet->GetName()); + const std::string title = FormatOwnedString(LookupMessage(MSI_RUNESYSTEM_RUNE_FAILDESC), this->m_runeSet->GetName()); const int titleWidth = this->TextWidth(title.c_str(), title.size(), 0, 13, 1, 0); int x = static_cast(186.0f - static_cast(titleWidth) * 0.5f); if (this->m_runeSet->m_grade) { @@ -2355,9 +2356,9 @@ int UIRuneSystemWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume this->Invalidate(); } else if (argument1 == 0xC3) { if (g_runeSystemMgr->GetCurRuneSet()) { - g_windowMgr.Confirm(LookupMessage(4052), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_DURING_CANNOT_OPEN_BANKING), 0, true, false, 0, "Message", 280, 120, 0); } else if (!argument2) { - g_windowMgr.Confirm(LookupMessage(4041), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_RUNE_UPGRADEPER), 0, true, false, 0, "Message", 280, 120, 0); } else { RuneData* rune = reinterpret_cast(argument2); RuneSetEquipPacket packet; @@ -2369,8 +2370,8 @@ int UIRuneSystemWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume } else if (argument1 == 0x158) { RuneSetData* runeSet = g_runeSystemMgr->GetCurRuneSet(); if (!runeSet) { - g_windowMgr.Confirm(LookupMessage(4051), 0, true, false, 0, "Message", 280, 120, 0); - } else if (g_windowMgr.Confirm(LookupMessage(4040), 2, true, false, 0, "Message", 280, 120, 0) != 0xBC) { + g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_DURING_CANNOT_OPEN_RODEX), 0, true, false, 0, "Message", 280, 120, 0); + } else if (g_windowMgr.Confirm(LookupMessage(MSI_RUNESYSTEM_RUNE_TITLE), 2, true, false, 0, "Message", 280, 120, 0) != 0xBC) { RuneSetEquipPacket packet; packet.id = 0x0BD6; packet.tagId = static_cast(runeSet->GetTagId()); diff --git a/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp b/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp index 512962467..83e05067a 100644 --- a/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp +++ b/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp @@ -17,6 +17,7 @@ #include "Utility/Cipher/XorBytes.h" #include "Utility/Text/FormatString.h" #include "UI/Window/UIRegisterMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -620,7 +621,7 @@ void CUISelectPackageItemBox::OnOk() { } while (count > 0); } const int result = g_windowMgr - .Confirm(FormatOwnedString(LookupMessage(3975), it->name.c_str()).c_str(), 2, true, false, 0, "Message", 280, 120, 0); + .Confirm(FormatOwnedString(LookupMessage(MSI_JOB_ABYSS_CHASER), it->name.c_str()).c_str(), 2, true, false, 0, "Message", 280, 120, 0); if (result == 187) { g_modeMgr.GetGameMode()->SendMsg(MM_USE_PACKAGEITEM, this->sourceIndex, this->packageId, index, 0); } @@ -1320,8 +1321,8 @@ void CUISelectPackageItemBox::OnInit() { auto* const ok = this->okButton; ok->disabled = 1; ok->Invalidate(); - this->okButton->SetText(LookupMessage(3384)); - this->cancelButton->SetText(LookupMessage(3045)); + this->okButton->SetText(LookupMessage(MSI_PRIVATE_AIRPLANE_WARNNING_SELECT_NPC)); + this->cancelButton->SetText(LookupMessage(MSI_ZENY_LOTTO_BUY_10)); } // OFFSET: 0x00A705F0 diff --git a/Source/UI/Shortcuts/ShortcutControls.cpp b/Source/UI/Shortcuts/ShortcutControls.cpp index 72cf265be..7a4b1f037 100644 --- a/Source/UI/Shortcuts/ShortcutControls.cpp +++ b/Source/UI/Shortcuts/ShortcutControls.cpp @@ -5,6 +5,7 @@ #include "UI/Buttons/UIBitmapButton.h" #include "UI/Buttons/UICheckBox.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -27,7 +28,7 @@ void UIShortCutWnd::OnCreate(int, int) { this->m_bank->SetId(549); this->m_bank->Move(3, 4); this->m_bank->SetChecked(g_session.GetOption(10)); - this->m_bank->SetTooltip(LookupMessage(3596)); + this->m_bank->SetTooltip(LookupMessage(MSI_HOTKEYGUIDEWND_RIGHT)); this->AddChild(this->m_bank); this->m_decrease = new UIBitmapButton(); diff --git a/Source/UI/Shortcuts/ShortcutCooldowns.cpp b/Source/UI/Shortcuts/ShortcutCooldowns.cpp index 0c01849d0..4a87bed31 100644 --- a/Source/UI/Shortcuts/ShortcutCooldowns.cpp +++ b/Source/UI/Shortcuts/ShortcutCooldowns.cpp @@ -55,6 +55,7 @@ #include "Contents/MessageTable.h" #include "Utility/Text/GroupedInteger.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -797,14 +798,14 @@ void UISerachStoreInfoWnd::Paint() { this->m_edits[3]->Invalidate(); this->DrawPanelBackground(0, 0, ""); - this->DrawTitleBar(true, LookupMessage(0x6F4), 0); + this->DrawTitleBar(true, LookupMessage(MSI_SEARCH_STOREINFO), 0); DrawOutlinedText(*this, 5, 20, "Type", 0, 0x7F3CFF, 0xFFFFFF, 0, 11, 1, 0); DrawOutlinedText(*this, 98, 20, "Item", 0, 0x7F3CFF, 0xFFFFFF, 0, 11, 1, 0); DrawOutlinedText(*this, 185, 20, "Card", 0, 0x7F3CFF, 0xFFFFFF, 0, 11, 1, 0); DrawOutlinedText(*this, 273, 20, "Zeny", 0, 0x7F3CFF, 0xFFFFFF, 0, 11, 1, 0); this->DrawTextAt(353, 38, "~", 0, 0, 12, 0, 0, 0); - const std::string count = FormatOwnedString(LookupMessage(0x70A), g_session.unknown_5BE0); + const std::string count = FormatOwnedString(LookupMessage(MSI_SSI_REST_OF_NUMBER_OF_SEARCHES), g_session.unknown_5BE0); this->DrawRightAlignedText(this->geometry.width - 60, 60, count.c_str(), 0, 0, 12, 0, 0); this->FillRegion(5, 80, this->geometry.width - 10, 20, 0xDFFFFE); @@ -813,17 +814,17 @@ void UISerachStoreInfoWnd::Paint() { DrawRectangleBorder(*this, 330, 80, 30, 21, 0xC0C0C0); this->FillRegion(5, 100, this->geometry.width - 10, 1, 0xC0C0C0); - this->DrawTextAt((110 - this->TextWidth(LookupMessage(0x6F5), 0, 0, 12, 0, 0)) / 2 + 50, 85, - LookupMessage(0x6F5), 0, 0, 12, 0, 0, 0 + this->DrawTextAt((110 - this->TextWidth(LookupMessage(MSI_STORE_NAME), 0, 0, 12, 0, 0)) / 2 + 50, 85, + LookupMessage(MSI_STORE_NAME), 0, 0, 12, 0, 0, 0 ); - this->DrawTextAt((170 - this->TextWidth(LookupMessage(0x424), 0, 0, 12, 0, 0)) / 2 + 160, 85, - LookupMessage(0x424), 0, 0, 12, 0, 0, 0 + this->DrawTextAt((170 - this->TextWidth(LookupMessage(MSI_ITEM2), 0, 0, 12, 0, 0)) / 2 + 160, 85, + LookupMessage(MSI_ITEM2), 0, 0, 12, 0, 0, 0 ); - this->DrawTextAt((30 - this->TextWidth(LookupMessage(0x6F6), 0, 0, 12, 0, 0)) / 2 + 330, 85, - LookupMessage(0x6F6), 0, 0, 12, 0, 0, 0 + this->DrawTextAt((30 - this->TextWidth(LookupMessage(MSI_SEARCH_ITEM_COUNT), 0, 0, 12, 0, 0)) / 2 + 330, 85, + LookupMessage(MSI_SEARCH_ITEM_COUNT), 0, 0, 12, 0, 0, 0 ); - this->DrawTextAt((75 - this->TextWidth(LookupMessage(0x6F7), 0, 0, 12, 0, 0)) / 2 + 360, 85, - LookupMessage(0x6F7), 0, 0, 12, 0, 0, 0 + this->DrawTextAt((75 - this->TextWidth(LookupMessage(MSI_SEARCH_ITEM_PRICE), 0, 0, 12, 0, 0)) / 2 + 360, 85, + LookupMessage(MSI_SEARCH_ITEM_PRICE), 0, 0, 12, 0, 0, 0 ); if (this->unknown_00F0.size() != 0) { diff --git a/Source/UI/Shortcuts/ShortcutTooltip.cpp b/Source/UI/Shortcuts/ShortcutTooltip.cpp index 6a8bb1271..0b19cdff1 100644 --- a/Source/UI/Shortcuts/ShortcutTooltip.cpp +++ b/Source/UI/Shortcuts/ShortcutTooltip.cpp @@ -8,6 +8,7 @@ #include "Client/Mode/ModeMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x00932050 // FUNCTION: fn_12711 void UIShortCutWnd::OnMouseHover(int x, int y) { @@ -43,7 +44,7 @@ void UIShortCutWnd::OnMouseHover(int x, int y) { return; } - const std::string text = FormatOwnedString(LookupMessage(183), item.DisplayName(0).c_str(), item.quantity); + const std::string text = FormatOwnedString(LookupMessage(MSI_EA2), item.DisplayName(0).c_str(), item.quantity); window.ToScreen(tooltipX, tooltipY); if (g_modeMgr.gameMode) { @@ -95,7 +96,7 @@ void UIShortCutWnd::OnMouseHover(int x, int y) { if (item.quantity == 0) { text = shortcut; } else { - text = FormatOwnedString(LookupMessage(184), shortcut.c_str(), item.DisplayName(0).c_str(), item.quantity); + text = FormatOwnedString(LookupMessage(MSI_EA3), shortcut.c_str(), item.DisplayName(0).c_str(), item.quantity); } } diff --git a/Source/UI/Shortcuts/UIQuickSlotWnd.cpp b/Source/UI/Shortcuts/UIQuickSlotWnd.cpp index f0401681e..34f338e34 100644 --- a/Source/UI/Shortcuts/UIQuickSlotWnd.cpp +++ b/Source/UI/Shortcuts/UIQuickSlotWnd.cpp @@ -27,6 +27,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -111,7 +112,7 @@ void UIQuickSlotWnd::OnMouseHover(int x, int y) { } } else { ITEM_INFO item = LookupClientItem(g_session.m_inventoryItems, static_cast(id), 1); - text = static_cast(FormatOwnedString(LookupMessage(183), item.DisplayName(0).c_str(), item.quantity)); + text = static_cast(FormatOwnedString(LookupMessage(MSI_EA2), item.DisplayName(0).c_str(), item.quantity)); } if (!text.empty()) { @@ -280,7 +281,7 @@ int UIQuickSlotWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argumen break; case UM_UPPUSH: if (*reinterpret_cast(&g_session.unknown_16F4[4]) >= 0) { - const std::string text = FormatOwnedString(LookupMessage(0x4CA), item.DisplayName(0).c_str()); + const std::string text = FormatOwnedString(LookupMessage(MSI_CONFIRM_TO_OPEN_CASH_ITEM), item.DisplayName(0).c_str()); if (g_windowMgr.Confirm(text.c_str(), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { mode->SendMsg(MM_USEITEM, item.unknown_0000[1], 0, 0, 0); } diff --git a/Source/UI/Shortcuts/UIShortCutWnd.cpp b/Source/UI/Shortcuts/UIShortCutWnd.cpp index fc2b28e54..ef75766f4 100644 --- a/Source/UI/Shortcuts/UIShortCutWnd.cpp +++ b/Source/UI/Shortcuts/UIShortCutWnd.cpp @@ -68,6 +68,7 @@ #include #include #include +#include "Resource/MSGSTRINGID.h" namespace { #pragma pack(push, 1) @@ -360,7 +361,7 @@ __forceinline void UseShortcutSlot(const NormalItemSlot& slot) { case TYPE_HEAL: case TYPE_SCHANGE: case TYPE_SPECIAL: - if (item.GetItemId() != 12802 || g_windowMgr.Confirm(LookupMessage(2373), 2, false, false, 0, "Message", 280, 120, 0) != 188) { + if (item.GetItemId() != 12802 || g_windowMgr.Confirm(LookupMessage(MSI_COMMAND_SETTING), 2, false, false, 0, "Message", 280, 120, 0) != 188) { mode->SendMsg(MM_USEITEM, item.unknown_0000[1], 0, 0, 0); } @@ -369,7 +370,7 @@ __forceinline void UseShortcutSlot(const NormalItemSlot& slot) { case TYPE_CASH_POINT_ITEM: if (*reinterpret_cast(&g_session.unknown_16F4[4]) >= 0) { const int result = - g_windowMgr.Confirm(FormatOwnedString(LookupMessage(1226), item.DisplayName(0).c_str()).c_str(), 2, false, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(FormatOwnedString(LookupMessage(MSI_CONFIRM_TO_OPEN_CASH_ITEM), item.DisplayName(0).c_str()).c_str(), 2, false, false, 0, "Message", 280, 120, 0); if (result == 187) { mode->SendMsg(MM_USEITEM, item.unknown_0000[1], 0, 0, 0); } @@ -759,7 +760,7 @@ void UIMemorialDunWnd::OnCreate(int, int) { } this->m_partyButton = new (std::nothrow) UIBasicButton(); - this->m_partyButton->Configure(125, LookupMessage(3270)); + this->m_partyButton->Configure(125, LookupMessage(MSI_PARTY_NOT_LEAVE_PARTY_UNTIL_YIELD_PARTYMASTER)); this->m_partyButton->Move(-100, -100); this->m_partyButton->SetId(211); this->AddChild(this->m_partyButton); @@ -779,7 +780,7 @@ void UIMemorialDunWnd::ResetDungeonInfo() { // OFFSET: 0x0092C6B0 // FUNCTION: fn_12665 void UIMemorialDunWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(0x538), 0); + this->DrawTitleBar(true, LookupMessage(MSI_MEMORIAL_DUN), 0); if (this->geometry.height == 17) { return; } @@ -807,13 +808,13 @@ void UIMemorialDunWnd::Paint() { } if (g_session.unknown_5948 == 0) { - sprintf(text, LookupMessage(0x53E), g_session.unknown_5968); + sprintf(text, LookupMessage(MSI_MEMORIAL_DUN_PRIORITY), g_session.unknown_5968); const int width = this->ColoredTextWidth(text, 0, 0, 12, 0); DrawColoredText(*this, (this->geometry.width - width) / 2, (this->geometry.height - 17) / 2, text, 0, color, 0, 12, false); } else if (g_session.unknown_5948 == 1) { if (g_session.unknown_5970) { - strftime(timeText, 128, LookupMessage(0x4EC), _localtime32(reinterpret_cast(&g_session.unknown_5970))); - sprintf(text, LookupMessage(0x53F), timeText); + strftime(timeText, 128, LookupMessage(MSI_TIME_TYPE2), _localtime32(reinterpret_cast(&g_session.unknown_5970))); + sprintf(text, LookupMessage(MSI_MEMORIAL_DUN_NOTIFY), timeText); std::vector lines; this->WrapPixelText(text, lines, this->geometry.width - 20); if (lines.size() > 1) { @@ -829,22 +830,22 @@ void UIMemorialDunWnd::Paint() { } } else if (g_session.unknown_5948 == 2) { if (g_session.unknown_596C) { - this->DrawTextAt(10, 55, LookupMessage(0x540), 0, 0, 12, 0, 0, 0); - strftime(timeText, 128, LookupMessage(0x4EC), _localtime32(reinterpret_cast(&g_session.unknown_596C))); + this->DrawTextAt(10, 55, LookupMessage(MSI_MEMORIAL_DUN_NOTIFY2), 0, 0, 12, 0, 0, 0); + strftime(timeText, 128, LookupMessage(MSI_TIME_TYPE2), _localtime32(reinterpret_cast(&g_session.unknown_596C))); sprintf(text, "^ff0000%s^ffffff", timeText); const int width = this->ColoredTextWidth(text, 0, 0, 12, 0); DrawColoredText(*this, (this->geometry.width - width) / 2, 75, text, 0, color, 0, 12, false); } } else if (g_session.unknown_5948 == 3) { std::vector lines; - this->WrapPixelText(LookupMessage(0x53C), lines, this->geometry.width - 20); + this->WrapPixelText(LookupMessage(MSI_MEMORIAL_DUN_OUT1), lines, this->geometry.width - 20); int y = 55; for (unsigned int index = 0; index < lines.size(); ++index) { DrawColoredText(*this, 5, y, lines[index].c_str(), 0, color, 0, 12, false); y += 15; } - this->WrapPixelText(LookupMessage(0x53D), lines, this->geometry.width - 20); + this->WrapPixelText(LookupMessage(MSI_MEMORIAL_DUN_OUT2), lines, this->geometry.width - 20); y = 70; for (unsigned int index = 0; index < lines.size(); ++index) { DrawColoredText(*this, 10, y, lines[index].c_str(), 0, color, 0, 12, false); @@ -1202,7 +1203,7 @@ int UISubChatHisWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume } const int measured = this->TextWidth(local.c_str(), 0, 0, 12, 0, 0); if (measured + 10 >= this->geometry.width - 0x32) { - g_windowMgr.Confirm(LookupMessage(0x629), 0, true, false, 0, "Message", 0x118, 0x78, 0); + g_windowMgr.Confirm(LookupMessage(MSI_FAILED_CHANGE_TABNAME), 0, true, false, 0, "Message", 0x118, 0x78, 0); } this->m_edit->Move(-100, -100); this->m_edit->SetText(""); @@ -1487,7 +1488,7 @@ void UINewChatWnd::OnCreate(int width, int height) { }; const int buttonIds[3] = {0xE1, 0xD4, 0xEE}; const int buttonPositions[3][2] = {{0x61, base + 3}, {0x24A, base + 7}, {0x23C, base + 7}}; - const char* const tooltips[3] = {LookupMessage(0xC73), LookupMessage(0xC75), LookupMessage(0xC74)}; + const char* const tooltips[3] = {LookupMessage(MSI_RODEX_DOWNLOADING), LookupMessage(MSI_RODEX_TITLE), LookupMessage(MSI_RODEX_NOW_LOADING)}; for (int index = 0; index < 3; ++index) { UIBitmapButton* button = new UIBitmapButton(); this->m_inputButtons[index] = button; diff --git a/Source/UI/SkillDelayInfo/UISkillDelayInfo.cpp b/Source/UI/SkillDelayInfo/UISkillDelayInfo.cpp index 0c013b0b3..ad6757eaf 100644 --- a/Source/UI/SkillDelayInfo/UISkillDelayInfo.cpp +++ b/Source/UI/SkillDelayInfo/UISkillDelayInfo.cpp @@ -19,6 +19,7 @@ #include #include #include +#include "Resource/MSGSTRINGID.h" template <> void CUIListBoxEx::Paint(); @@ -512,7 +513,7 @@ void CUITime::OnInit() { // OFFSET: 0x00A78A10 // FUNCTION: fn_16890 void CUITime::SetTime(int milliseconds) { - const std::string text = FormatDecimal(static_cast(milliseconds) / 1000.0f, 3, true) + LookupMessage(1808); + const std::string text = FormatDecimal(static_cast(milliseconds) / 1000.0f, 3, true) + LookupMessage(MSI_SECOND); this->text->SetText(text.c_str(), text.size()); } } diff --git a/Source/UI/StylingShop/UIStylingShopWnd.cpp b/Source/UI/StylingShop/UIStylingShopWnd.cpp index 83937dd0c..de1781f38 100644 --- a/Source/UI/StylingShop/UIStylingShopWnd.cpp +++ b/Source/UI/StylingShop/UIStylingShopWnd.cpp @@ -20,6 +20,7 @@ #include "UI/Window/UIWindowMgr.h" #include #include +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x00829B50 // FUNCTION: fn_10341 @@ -158,7 +159,7 @@ void UIStylingShopButton::OnLBtnUp(int, int) { if (g_windowMgr.WindowPolicy(3, parent->geometry.id) != 0) { int id = this->geometry.id; if (id == 185 && g_modeMgr.gameMode && g_modeMgr.gameMode->cursorType == 2) { - const char* text = LookupMessage(17); + const char* text = LookupMessage(MSI_DO_YOU_REALLY_WANT_TO_QUIT); if (g_windowMgr.Confirm(text, 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); } @@ -294,7 +295,7 @@ int UIBasicStylingWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argu this->m_display->unknown_0094 = i + 1; this->m_display->Invalidate(); } else { - g_windowMgr.Confirm(LookupMessage(2834), 0, false, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STYLING_SHOP_BASICSTYLE), 0, false, false, 0, "Message", 280, 120, 0); } } else { this->m_paletteButtons[i]->SetState(0); @@ -386,7 +387,7 @@ int UIMyStyleWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1 } else { switch (argument1) { case ID_CLOSE: - if (g_windowMgr.Confirm(LookupMessage(2816), 2, false, false, 0, "Message", 280, 120, 0) != 188) { + if (g_windowMgr.Confirm(LookupMessage(MSI_STYLING_SHOP_REGISTER_BOOKMARK), 2, false, false, 0, "Message", 280, 120, 0) != 188) { for (int i = 0; i < 2; ++i) { if (sender == this->unknown_0094[i]) { this->RemoveChild(this->m_slots[i], 1); @@ -693,7 +694,7 @@ void UIStylingShopWnd::SetBuyEnabled(bool enabled) { void UIStylingShopWnd::Paint() { this->RefreshFavoriteButton(); this->ClearSurface(0xFFFFFFFF); - this->DrawTitleBar(true, LookupMessage(2813), 0); + this->DrawTitleBar(true, LookupMessage(MSI_STYLING_SHOP_DELETE_CHAR), 0); CBitmapRes* background = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\styleshop\\bg_styling.bmp"))); if (background) { this->DrawBitmap(0, 0, background, false); @@ -1128,9 +1129,9 @@ int UIDisplayCharacter::SendMsg(UIWindow* sender, int message, std::intptr_t arg case ID_BOOKMARK: if (this->m_favoriteButton->m_argument == 0) { if (shop->AddToMyStyle() == true) { - g_windowMgr.Confirm(LookupMessage(2819), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PRIVATE_AIRPLANE_FAIL_LOCALIZING), 0, true, false, 0, "Message", 280, 120, 0); } else { - this->m_favoriteButton->SetTooltip(LookupMessage(2817)); + this->m_favoriteButton->SetTooltip(LookupMessage(MSI_STYLING_SHOP_SUGGEST_TO_GO_TO_BANK)); } } break; @@ -1463,7 +1464,7 @@ int UIStylingShopWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argum break; case ID_BUY: if (this->m_buyButton->Argument() == 0 && - g_windowMgr.Confirm(LookupMessage(2818), 2, false, false, 0, "Message", 280, 120, 0) != 188) { + g_windowMgr.Confirm(LookupMessage(MSI_ASK_MOVE_BY_PRIVATE_AIRPLANE), 2, false, false, 0, "Message", 280, 120, 0) != 188) { for (std::map::iterator it = this->m_tabs.begin(); it != this->m_tabs.end(); ++it) { UIStylingshopTabParentWnd* tab = it->second; if (tab->geometry.visible == 0) { @@ -1571,27 +1572,27 @@ void UIStylingShopWnd::OnCreate(int, int) { UIBasicStylingWnd* basic = new (std::nothrow) UIBasicStylingWnd(); this->AddTab("유저인터페이스\\styleshop\\tab_hair_off.bmp", "유저인터페이스\\styleshop\\tab_hair_off.bmp", "유저인터페이스\\styleshop\\tab_hair_on.bmp", 200, basic, - LookupMessage(2837)); + LookupMessage(MSI_SKILL_FAIL_MHP_TOO_FEW)); basic->Show(1); static_cast(this->m_tabs.begin()->first)->SetState(2); UIAccessoryCusWnd* accessory = new (std::nothrow) UIAccessoryCusWnd(); this->AddTab("유저인터페이스\\styleshop\\tab_accessories_off.bmp", "유저인터페이스\\styleshop\\tab_accessories_off_over.bmp", - "유저인터페이스\\styleshop\\tab_accessories_on.bmp", 497, accessory, LookupMessage(2831)); + "유저인터페이스\\styleshop\\tab_accessories_on.bmp", 497, accessory, LookupMessage(MSI_STYLING_SHOP_IS_NOT_COLORING_HEAD)); if (g_session.IsTreeGroupThree(g_session.GetDisplayJob()) != true && g_session.IsTreeGroupTwo(g_session.GetDisplayJob()) != 1) { UICostumeChangeWnd* costume = new UICostumeChangeWnd(); this->AddTab("유저인터페이스\\styleshop\\tab_2ndcostume_off.bmp", "유저인터페이스\\styleshop\\tab_2ndcostume_off.bmp", "유저인터페이스\\styleshop\\tab_2ndcostume_off.bmp", 583, - costume, LookupMessage(2832)); + costume, LookupMessage(MSI_STYLING_SHOP_OPENING_COMMENT)); } else { UICostumeChangeWnd* costume = new UICostumeChangeWnd(); this->AddTab("유저인터페이스\\styleshop\\tab_2ndcostume_off.bmp", "유저인터페이스\\styleshop\\tab_2ndcostume_on_over.bmp", "유저인터페이스\\styleshop\\tab_2ndcostume_on.bmp", 583, - costume, LookupMessage(2832)); + costume, LookupMessage(MSI_STYLING_SHOP_OPENING_COMMENT)); } UIMyStyleWnd* myStyle = new (std::nothrow) UIMyStyleWnd(); this->AddTab("유저인터페이스\\styleshop\\tab_favorite_off.bmp", "유저인터페이스\\styleshop\\tab_favorite_off_over.bmp", "유저인터페이스\\styleshop\\tab_favorite_on.bmp", 496, - myStyle, LookupMessage(2833)); + myStyle, LookupMessage(MSI_STYLING_SHOP_SUCCESS)); this->m_preview = new UIDisplayCharacter(); this->m_preview->SetSize(120, 120); @@ -1608,7 +1609,7 @@ void UIStylingShopWnd::OnCreate(int, int) { this->AddChild(this->m_buyButton); char zeny[256] = {}; - std::string text(LookupMessage(2773)); + std::string text(LookupMessage(MSI_BANK_6)); text += " "; text += FormatGroupedInteger(g_session.m_zeny, zeny, 256); text += "\tz"; @@ -1729,14 +1730,14 @@ void UIShowInfoWnd::DrawPayments() { } else if (itemId) { this->DrawPaymentItem(*it, zeny, itemId, payable, row); if (!payable) { - this->m_checks[row]->SetTooltip(LookupMessage(2814)); + this->m_checks[row]->SetTooltip(LookupMessage(MSI_STYLING_SHOP_FAIL_TO_ADD_CHAR_TO_LIKE)); if (costumeItemId) { const int noZeny = 0; const int noItem = 0; const bool costumePayable = this->CheckPayment(row, noZeny, noItem, costumeItemId); if (costumePayable == true) { this->DrawPaymentItem(*it, zeny, itemId, true, row); - this->m_checks[row]->SetTooltip(LookupMessage(2815)); + this->m_checks[row]->SetTooltip(LookupMessage(MSI_STYLING_SHOP_ADJUST_NEW_CHAR_STYLE)); ITEM_DESC description = FindItemDescription(costumeItemId); this->DrawTextAt(x, y, description.identifiedName, 0, 0, this->unknown_00A8, color, 0, 0); } else { @@ -1759,7 +1760,7 @@ void UIShowInfoWnd::DrawPayments() { std::memset(text, 0, sizeof(text)); if (*it == 1) { icon = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\styleshop\\icon_color_off.bmp"))); - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(3912)); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_CASHSHOP_FREE)); } else if (*it == 7) { icon = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\styleshop\\icon_zeny.bmp"))); StringFormat(text, sizeof(text), static_cast(-1), "%d\tZeny", zeny); @@ -1787,7 +1788,7 @@ void UIShowInfoWnd::DrawPayments() { if (this->unknown_00A0 == 1) { std::vector lines; - this->WrapPixelText(LookupMessage(2835), lines, this->geometry.width - 20); + this->WrapPixelText(LookupMessage(MSI_UPGRADESKILLERROR_MORE_BASE_LEVEL), lines, this->geometry.width - 20); for (unsigned int i = 0; i < lines.size(); ++i) { this->DrawTextAt(20, positions[i][1], lines[i].c_str(), 0, 0, 11, 0, 0, 0); } @@ -2377,7 +2378,7 @@ void UI2ndCostumeWnd::OnCreate(int, int) { UIStaticText* hideText = new (std::nothrow) UIStaticText(); hideText->SetSize(100, 12); hideText->Move(this->m_hideCheckBox->geometry.x + this->m_hideCheckBox->geometry.width + 5, 235); - hideText->SetText(LookupMessage(2837), 0); + hideText->SetText(LookupMessage(MSI_SKILL_FAIL_MHP_TOO_FEW), 0); hideText->SetFont(0, 11, 0, 0); this->AddChild(hideText); @@ -2391,7 +2392,7 @@ void UI2ndCostumeWnd::OnCreate(int, int) { UIStaticText* showText = new (std::nothrow) UIStaticText(); showText->SetSize(100, 12); showText->Move(this->m_showCheckBox->geometry.x + this->m_showCheckBox->geometry.width + 5, 260); - showText->SetText(LookupMessage(2832), 0); + showText->SetText(LookupMessage(MSI_STYLING_SHOP_OPENING_COMMENT), 0); showText->SetFont(0, 11, 0, 0); this->AddChild(showText); diff --git a/Source/UI/Text/NavigationLink.cpp b/Source/UI/Text/NavigationLink.cpp index cca5c1bf8..621bc32dc 100644 --- a/Source/UI/Text/NavigationLink.cpp +++ b/Source/UI/Text/NavigationLink.cpp @@ -54,6 +54,7 @@ #include "Utility/Text/TextEscapes.h" #include "Utility/Text/TextTokens.h" +#include "Resource/MSGSTRINGID.h" namespace LineCutter { class UIText : public UIWindow { public: @@ -1740,7 +1741,7 @@ bool NavigationLinkParser::HasUnownedItemLink(std::string text) { continue; } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xE8D)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_IQ_FIRM_FAITH_ON)), 0xFF, 0, 0, 0); return true; } } diff --git a/Source/UI/Text/UIAchWnd.cpp b/Source/UI/Text/UIAchWnd.cpp index c3aac7dfc..71d3b182b 100644 --- a/Source/UI/Text/UIAchWnd.cpp +++ b/Source/UI/Text/UIAchWnd.cpp @@ -21,6 +21,7 @@ #include "UI/Window/WindowBorder.h" #include "Utility/Text/FormatString.h" #include "Client/Mode/ModeMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -219,29 +220,29 @@ void UIAchievementWnd::CreateTab() { this->tab->Move(0, 63); this->AddChild(this->tab); - this->tab->SetLabel(LookupMessage(2656), 0, -1); - this->tab->SetLabel(LookupMessage(2657), 1, -1); - this->tab->SetLabel(LookupMessage(2658), 1, 0); - this->tab->SetLabel(LookupMessage(2659), 1, 1); - this->tab->SetLabel(LookupMessage(2660), 1, 2); - this->tab->SetLabel(LookupMessage(2661), 2, -1); - this->tab->SetLabel(LookupMessage(2662), 2, 0); - this->tab->SetLabel(LookupMessage(2663), 2, 1); - this->tab->SetLabel(LookupMessage(2664), 2, 2); - this->tab->SetLabel(LookupMessage(2665), 2, 3); - this->tab->SetLabel(LookupMessage(2666), 2, 4); - this->tab->SetLabel(LookupMessage(2667), 2, 5); - this->tab->SetLabel(LookupMessage(2668), 3, -1); - this->tab->SetLabel(LookupMessage(2669), 3, 0); - this->tab->SetLabel(LookupMessage(2670), 3, 1); - this->tab->SetLabel(LookupMessage(2671), 4, -1); - this->tab->SetLabel(LookupMessage(2672), 4, 0); - this->tab->SetLabel(LookupMessage(2673), 4, 1); - this->tab->SetLabel(LookupMessage(2674), 5, -1); - this->tab->SetLabel(LookupMessage(2675), 5, 0); - this->tab->SetLabel(LookupMessage(2676), 5, 1); - this->tab->SetLabel(LookupMessage(2677), 5, 2); - this->tab->SetLabel(LookupMessage(2678), 6, -1); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_GENERAL_ACTION), 0, -1); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_GENERAL_REST), 1, -1); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_ADVENTURE), 1, 0); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_ADVENTURE_RUNEMIDGARTS), 1, 1); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_ADVENTURE_SCHWARZWALD), 1, 2); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_ADVENTURE_ARUNAFELTZ), 2, -1); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_ADVENTURE_ANOTHERWORLD), 2, 0); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_ADVENTURE_LOCALIZING), 2, 1); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_ADVENTURE_DUNGEON), 2, 2); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_BATTLE), 2, 3); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_BATTLE_PVP), 2, 4); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_BATTLE_TRAINING), 2, 5); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_QUEST), 3, -1); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_QUEST_EPISODE), 3, 0); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_QUEST_GENERAL), 3, 1); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_MEMORIAL), 4, -1); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_MEMORIAL_MIDGARD), 4, 0); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_MEMORIAL_ANOTHERWORLD), 4, 1); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_MEMORIAL_REST), 5, -1); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_ACHIEVEMENT), 5, 0); + this->tab->SetLabel(LookupMessage(MSI_ACHIEVEMENT_TAB_TOTAL), 5, 1); + this->tab->SetLabel(LookupMessage(MSI_FAIL_ADD_ACHIEVEMENT_TRACING), 5, 2); + this->tab->SetLabel(LookupMessage(MSI_NOTICE_COMPLETE_ACHIEVEMENT), 6, -1); } // OFFSET: 0x007B52E0 @@ -254,7 +255,7 @@ void UIAchUpperWnd::OnCreate(int, int) { gauge->value = 0; gauge->maximum = 100; this->unknown_00A4->Move(47, 24); - this->unknown_00A4->text = LookupMessage(3105); + this->unknown_00A4->text = LookupMessage(MSI_ZENY_LOTTO_ACHIEVE); this->AddChild(this->unknown_00A4); gauge = new (std::nothrow) UICustomGageBar(); @@ -495,7 +496,7 @@ void UIAchTV::Paint() { // FUNCTION: fn_09219 void UIAchSummaryWnd::Paint() { this->DrawBitmap(0, 0, AchievementBitmap("유저인터페이스\\achievement_re\\bg_summary.bmp"), false); - this->DrawTextAt(82, 27, LookupMessage(2679), 0, 0, 12, 0xA55239, 1, 0); + this->DrawTextAt(82, 27, LookupMessage(MSI_OTPUSER_ONLY), 0, 0, 12, 0xA55239, 1, 0); this->DrawRightAlignedText(600, 28, FormatOwnedString("%d/%d", this->gauges[0]->value, this->gauges[0]->maximum).c_str(), 0, 0, 11, 0x635AA5, 0); const int categories[6] = {2657, 2661, 2668, 2671, 2674, 2678}; @@ -507,7 +508,7 @@ void UIAchSummaryWnd::Paint() { this->DrawRightAlignedText(column * 304 + 296, row + 108, FormatOwnedString("%d/%d", gauge->value, gauge->maximum).c_str(), 0, 0, 11, 0x635AA5, 0); } - this->DrawTextAt(9, 292, LookupMessage(2651), 0, 0, 12, 0x9C6B5A, 1, 0); + this->DrawTextAt(9, 292, LookupMessage(MSI_CASH_GEDARE_FAIL_MONEY), 0, 0, 12, 0x9C6B5A, 1, 0); int x = 260; for (auto it = this->recent.rbegin(); it != this->recent.rend(); ++it) { @@ -546,7 +547,7 @@ void UIAchTab::Paint() { void UIAchUpperWnd::Paint() { int visible; - if (this->title == LookupMessage(2679)) { + if (this->title == LookupMessage(MSI_OTPUSER_ONLY)) { this->DrawBitmap(0, 0, AchievementBitmap("유저인터페이스\\achievement_re\\bg_upper.bmp"), false); this->DrawRightAlignedText(130, 13, FormatOwnedString("%d/%d", this->unknown_0094, this->unknown_0098).c_str(), 0, 0, 11, 0, 0); this->DrawCenteredText(353, 6, FormatOwnedString("%d", g_session.unknown_614C).c_str(), 46, 0, 12, 0x582708, 1); @@ -559,8 +560,8 @@ void UIAchUpperWnd::Paint() { } else { this->DrawBitmap(0, 0, AchievementBitmap("유저인터페이스\\achievement_re\\bg_upper.bmp"), false); this->DrawBitmap(575, 3, AchievementBitmap("유저인터페이스\\achievement_re\\upper_trophy.bmp"), true); - this->DrawTextAt(169, 11, LookupMessage(3106), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(169, 26, LookupMessage(3107), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(169, 11, LookupMessage(MSI_ZENY_LOTTO_ACHIEVE_FAIL), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(169, 26, LookupMessage(MSI_SWAP_EQUIPITEM), 0, 0, 12, 0, 0, 0); this->DrawTextAt(614, 15, this->title.c_str(), 0, 0, 11, 0x582708, 0, 0); this->DrawRightAlignedText(130, 13, FormatOwnedString("%d/%d", this->unknown_0094, this->unknown_0098).c_str(), 0, 0, 11, 0, 0); this->DrawRightAlignedText(737, 15, FormatOwnedString("(%d/%d)", this->unknown_009C, this->unknown_00A0).c_str(), 0, 0, 11, 0x582708, 0); @@ -622,7 +623,7 @@ void UIAchViewWnd::Paint() { // FUNCTION: fn_09224 void UIAchievementWnd::Paint() { this->ClearSurface(0xFFFFFFFF); - this->DrawTitleBar(true, LookupMessage(2646), 0); + this->DrawTitleBar(true, LookupMessage(MSI_ACHIEVEMENT_SCORE_REQUIRED_TO_REWARD), 0); } // OFFSET: 0x007B7680 @@ -1017,7 +1018,7 @@ void UIAchievementWnd::SelectTab(int group, int sub) { this->tab->unknown_0080 = sub; this->tab->Invalidate(); - this->upper->SetTitle(group == 0 ? LookupMessage(2679) : this->tab->Label(this->group, this->sub)); + this->upper->SetTitle(group == 0 ? LookupMessage(MSI_OTPUSER_ONLY) : this->tab->Label(this->group, this->sub)); this->upper->Invalidate(); if (g_achievementMgr->GetGroupAchievements(this->achievements, this->group, this->sub) == 1) { diff --git a/Source/UI/UIBartermarketWnd.cpp b/Source/UI/UIBartermarketWnd.cpp index b98f76b0e..fc49ab9e3 100644 --- a/Source/UI/UIBartermarketWnd.cpp +++ b/Source/UI/UIBartermarketWnd.cpp @@ -24,6 +24,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -495,7 +496,7 @@ int UIExpandedBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std: CGameMode* mode = static_cast(g_modeMgr.GetGameMode()); std::pair found = g_expandedBarterMarketItemMgr->FindItem(mode->drag.unknown_03B0); if (!found.first) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3554)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_OUT_OF_STOCK)), 255, 0, 0, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; } @@ -522,7 +523,7 @@ int UIExpandedBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std: if (missing) { mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3665)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MONSTER_MONSTERINFO)), 255, 0, 0, 0); return 0; } } @@ -531,14 +532,14 @@ int UIExpandedBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std: if (g_expandedBarterMarketItemMgr->HasEntryByName(mode->drag.name) == true) { mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(119)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EQUIPITEM_OLNY_ONE)), 255, 0, 0, 0); return 0; } } else if (g_session.IsShadowItemType(mode->drag.type) == true) { if (g_expandedBarterMarketItemMgr->HasEntryByName(mode->drag.name) == true) { mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3569)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SAVE_HOTKEY_TO_SERVER)), 255, 0, 0, 0); return 0; } } @@ -546,7 +547,7 @@ int UIExpandedBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std: if (mode->drag.quantity + g_expandedBarterMarketItemMgr->GetValueById(mode->drag.unknown_03B0) > 30000) { char buffer[200]; std::memset(buffer, 0, sizeof(buffer)); - StringFormat(buffer, sizeof(buffer), static_cast(-1), LookupMessage(3692), 30000); + StringFormat(buffer, sizeof(buffer), static_cast(-1), LookupMessage(MSI_GLOBALRODEX_MESSAGE_RECEIVE_ALL), 30000); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(buffer), 255, 0, 0, 0); return 0; @@ -554,7 +555,7 @@ int UIExpandedBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std: const int factor = static_cast(g_expandedBarterMarketItemMgr->GetItemFactorById(mode->drag.unknown_03B0)); if (factor < 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3554)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_OUT_OF_STOCK)), 255, 0, 0, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; } @@ -563,14 +564,14 @@ int UIExpandedBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std: const int available = g_session.m_maxWeight - g_session.m_weight; const float remaining = static_cast(available) - g_expandedBarterMarketItemMgr->GetWeightedTotal(); if (static_cast(remaining) / factor < mode->drag.quantity) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(56)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_OVER_WEIGHT)), 255, 0, 0, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; } } if (static_cast<__int64>(mode->drag.quantity * found.second.field_8) + g_expandedBarterMarketItemMgr->total > g_session.m_zeny) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(55)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INSUFFICIENT_MONEY)), 255, 0, 0, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; } @@ -927,7 +928,7 @@ void UIExpandedBartermarketWnd::OnLBtnDown(int x, int y) { if (found.first == true) { if (found.second.value == 0) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3557)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_INVENTORY_EXTEND_OF_BODYITEM)), 255, 0, 0, 0); } else if (CGameMode* mode = static_cast(g_modeMgr.GetGameMode())) { mode->drag.BeginBarterEntry(31, found.second, 1, -1); } @@ -971,7 +972,7 @@ void UIBarterItemPurchaseWnd::OnMouseHover(int x, int y) { std::string text; BarterMarketItem item = found.second; ITEM_DESC description = FindItemDescription(item.field_2c); - text = static_cast(FormatOwnedString(LookupMessage(3553), description.identifiedName, item.field_28 * item.value)); + text = static_cast(FormatOwnedString(LookupMessage(MSI_NO_ITEM_FOR_EXCHANGE), description.identifiedName, item.field_28 * item.value)); CMode* tooltip = g_modeMgr.gameMode; ITEM_INFO info = item.ToItemInfo(); if (tooltip) { @@ -990,7 +991,7 @@ void UIBartermarketWnd::OnMouseHover(int x, int y) { this->ToScreen(tooltipX, tooltipY); std::string text; ITEM_DESC description = FindItemDescription(found.second.field_2c); - text = static_cast(FormatOwnedString(LookupMessage(3553), description.identifiedName, found.second.field_28)); + text = static_cast(FormatOwnedString(LookupMessage(MSI_NO_ITEM_FOR_EXCHANGE), description.identifiedName, found.second.field_28)); CMode* tooltip = g_modeMgr.gameMode; ITEM_INFO info = found.second.ToItemInfo(); if (tooltip) { @@ -1019,7 +1020,7 @@ void UIExpandedBarterItemPurchaseWnd::OnMouseHover(int x, int y) { text += buffer; text += " "; } - text += FormatOwnedString(LookupMessage(3553), name, chunk->amount * found.second.value); + text += FormatOwnedString(LookupMessage(MSI_NO_ITEM_FOR_EXCHANGE), name, chunk->amount * found.second.value); if (index != static_cast(found.second.chunks.size())) { text += "\n"; } @@ -1052,7 +1053,7 @@ void UIExpandedBartermarketWnd::OnMouseHover(int x, int y) { text += buffer; text += " "; } - text += FormatOwnedString(LookupMessage(3553), name, chunk->amount); + text += FormatOwnedString(LookupMessage(MSI_NO_ITEM_FOR_EXCHANGE), name, chunk->amount); if (index != static_cast(found.second.chunks.size())) { text += "\n"; } @@ -1081,9 +1082,9 @@ void UIPurchaseButton::OnMouseHover(int x, int y) { break; } if (it == totals.end()) { - text += FormatOwnedString(LookupMessage(3553), description.identifiedName, amount); + text += FormatOwnedString(LookupMessage(MSI_NO_ITEM_FOR_EXCHANGE), description.identifiedName, amount); } else { - std::string line = FormatOwnedString(LookupMessage(3553), description.identifiedName, amount); + std::string line = FormatOwnedString(LookupMessage(MSI_NO_ITEM_FOR_EXCHANGE), description.identifiedName, amount); text += line + '\n'; } } @@ -1107,7 +1108,7 @@ std::string UIExpandedBarterPurchaseButton::FormatChunkText(int refine, std::str } char line[1024]; std::memset(line, 0, sizeof(line)); - StringFormat(line, sizeof(line), static_cast(-1), LookupMessage(3553), name.c_str(), amount); + StringFormat(line, sizeof(line), static_cast(-1), LookupMessage(MSI_NO_ITEM_FOR_EXCHANGE), name.c_str(), amount); text += std::string(line); return text; } @@ -1131,7 +1132,7 @@ void UIExpandedBarterPurchaseButton::OnMouseHover(int x, int y) { } } if (g_expandedBarterMarketItemMgr->total > 0) { - std::string total = FormatOwnedString(LookupMessage(3699), g_expandedBarterMarketItemMgr->total); + std::string total = FormatOwnedString(LookupMessage(MSI_ITEM_GRADE_ENCHANT_SUCCEESS), g_expandedBarterMarketItemMgr->total); text += "\n" + total; } if (!text.empty()) { @@ -1173,7 +1174,7 @@ bool UIBarterItemPurchaseWnd::Purchase() { if (count > g_session.unknown_7FBC + 100) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3568)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SOUL_REAPER)), 255, 0, 0, 0); this->SendMsg(nullptr, UM_COMMAND, ID_CANCEL, 0, 0, 0); return false; } @@ -1182,7 +1183,7 @@ bool UIBarterItemPurchaseWnd::Purchase() { for (std::map::iterator it = required->begin(); it != required->end(); ++it) { if (this->GetInventoryItemCount(it->first) < it->second) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3556)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PVP)), 255, 0, 0, 0); this->SendMsg(nullptr, UM_COMMAND, ID_CANCEL, 0, 0, 0); return false; } @@ -1191,7 +1192,7 @@ bool UIBarterItemPurchaseWnd::Purchase() { for (std::map::iterator it = totals.begin(); it != totals.end(); ++it) { if (it->second + this->GetInventoryItemCount(std::atoi(it->first.c_str())) > 30000) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - const std::string text = FormatOwnedString(LookupMessage(3567), 30000); + const std::string text = FormatOwnedString(LookupMessage(MSI_STAR_EMPEROR), 30000); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 255, 0, 0, 0); this->SendMsg(nullptr, UM_COMMAND, ID_CANCEL, 0, 0, 0); return false; @@ -1270,7 +1271,7 @@ int UIBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_ std::pair found = g_barterMarketItemMgr->FindItem(mode->drag.unknown_03B0); if (found.first == false) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3554)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_OUT_OF_STOCK)), 255, 0, 0, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; } @@ -1278,7 +1279,7 @@ int UIBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_ found.second.value = mode->drag.quantity; if (g_session.HasItemId(found.second.field_2c)) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3665)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_MONSTER_MONSTERINFO)), 255, 0, 0, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; } @@ -1302,7 +1303,7 @@ int UIBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_ if (mode->drag.quantity + g_barterMarketItemMgr->GetAllItemValueByName(mode->drag.name) > 30000) { char buffer[200] = {}; - StringFormat(buffer, 200, static_cast(-1), LookupMessage(1704), 30000); + StringFormat(buffer, 200, static_cast(-1), LookupMessage(MSI_LIMIT_BUY_ITEM2), 30000); g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(buffer), 255, 0, 0, 0); return 0; @@ -1310,7 +1311,7 @@ int UIBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_ const int amountById = g_barterMarketItemMgr->GetAmountById(mode->drag.unknown_03B0); if (amountById < 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3554)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_OUT_OF_STOCK)), 255, 0, 0, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; } @@ -1319,7 +1320,7 @@ int UIBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_ const int available = g_session.m_maxWeight - g_session.m_weight; const float remaining = static_cast(available) - g_barterMarketItemMgr->GetTotalAmount(); if (static_cast(remaining) / amountById < mode->drag.quantity) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(56)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_OVER_WEIGHT)), 255, 0, 0, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; } @@ -1476,7 +1477,7 @@ int UIBartermarketWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s std::pair found = g_barterMarketItemMgr->FindAllItem(mode->drag.unknown_03B0); if (found.first == false) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3554)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_OUT_OF_STOCK)), 255, 0, 0, 0); mode->SendMsg(MM_CANCEL_DRAG, 0, 0, 0, 0); return 0; } @@ -1586,14 +1587,14 @@ bool UIExpandedBarterItemPurchaseWnd::Purchase() { if (count > g_session.unknown_7FBC + 100) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3568)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_SOUL_REAPER)), 255, 0, 0, 0); this->SendMsg(nullptr, UM_COMMAND, ID_CANCEL, 0, 0, 0); return false; } if (!g_expandedBarterMarketItemMgr->HasRequiredItems()) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3556)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PVP)), 255, 0, 0, 0); this->SendMsg(nullptr, UM_COMMAND, ID_CANCEL, 0, 0, 0); return false; } @@ -1612,7 +1613,7 @@ bool UIExpandedBarterItemPurchaseWnd::Purchase() { if (it->second + owned > 30000) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - const std::string text = FormatOwnedString(LookupMessage(3691), 30000); + const std::string text = FormatOwnedString(LookupMessage(MSI_GLOBALRODEX_MESSAGE_DELETE_ALL_ON_ADMIN), 30000); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), 255, 0, 0, 0); this->SendMsg(nullptr, UM_COMMAND, ID_CANCEL, 0, 0, 0); return false; @@ -1645,7 +1646,7 @@ void UIExpandedBartermarketWnd::OnCreate(int width, int height) { // OFFSET: 0x008426E0 // FUNCTION: fn_10554 void UIBarterItemPurchaseWnd::Paint() { - this->DrawTitleBar(false, LookupMessage(0xE69), 0); + this->DrawTitleBar(false, LookupMessage(MSI_EXCHANGE_ITEM_CNT), 0); if (this->geometry.height == 17) { return; } @@ -1724,7 +1725,7 @@ void UIBarterItemPurchaseWnd::Paint() { // OFFSET: 0x00842BF0 // FUNCTION: fn_10555 void UIBartermarketWnd::Paint() { - this->DrawTitleBar(false, LookupMessage(0xBA), 0); + this->DrawTitleBar(false, LookupMessage(MSI_SHOPITEMS), 0); if (this->geometry.height == 17) { return; } @@ -1804,7 +1805,7 @@ void UIBartermarketWnd::Paint() { // OFFSET: 0x008473F0 // FUNCTION: fn_10585 void UIExpandedBarterItemPurchaseWnd::Paint() { - this->DrawTitleBar(false, LookupMessage(0xE69), 0); + this->DrawTitleBar(false, LookupMessage(MSI_EXCHANGE_ITEM_CNT), 0); const int borderHeight = this->geometry.height - 46; const int borderTiles = borderHeight / 8 + (borderHeight % 8 != 0); @@ -1890,7 +1891,7 @@ void UIExpandedBarterItemPurchaseWnd::Paint() { // OFFSET: 0x00847AA0 // FUNCTION: fn_10586 void UIExpandedBartermarketWnd::Paint() { - this->DrawTitleBar(false, LookupMessage(0xBA), 0); + this->DrawTitleBar(false, LookupMessage(MSI_SHOPITEMS), 0); const int borderHeight = this->geometry.height - 46; const int borderTiles = borderHeight / 8 + (borderHeight % 8 != 0); diff --git a/Source/UI/UICaptchaPreviewWnd.cpp b/Source/UI/UICaptchaPreviewWnd.cpp index d9849b883..dd46e47bf 100644 --- a/Source/UI/UICaptchaPreviewWnd.cpp +++ b/Source/UI/UICaptchaPreviewWnd.cpp @@ -11,6 +11,7 @@ #include "Network/Packets/PacketLengths.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -120,9 +121,9 @@ void UIMacroDetectorWnd::Paint() { this->FillRegion(0, 16, this->geometry.width, this->geometry.height - 36, 0xFFFFFFFF); DrawRectangleBorder(*this, 0, 16, this->geometry.width, this->geometry.height - 36, 0xC6C6C6); - this->DrawTextAt(25, 28, LookupMessage(2883), 0, 0, 12, 0, 1, 0); - this->DrawTextAt(25, 45, LookupMessage(2884), 0, 0, 12, 0, 1, 0); - this->DrawTextAt(25, 62, LookupMessage(2885), 0, 0, 12, 0, 1, 0); + this->DrawTextAt(25, 28, LookupMessage(MSI_MACRO_DETECTOR_REMAIN_COUNT), 0, 0, 12, 0, 1, 0); + this->DrawTextAt(25, 45, LookupMessage(MSI_MACRO_REPORTER_SELECT_MODE_CHAR), 0, 0, 12, 0, 1, 0); + this->DrawTextAt(25, 62, LookupMessage(MSI_MACRO_REPORTER_SELECT_MODE_CELL), 0, 0, 12, 0, 1, 0); this->DrawTextAt(25, 82, this->message.c_str(), 0, 0, 12, 0x2323FF, 1, 0); @@ -141,7 +142,7 @@ void UIMacroDetectorWnd::Paint() { this->DrawRightAlignedText(280, 138, str.c_str(), 0, 0, 13, 0xFF2323, 1); } { - std::string str = FormatOwnedString(LookupMessage(2886), this->unknown_00D0); + std::string str = FormatOwnedString(LookupMessage(MSI_MACRO_REPORTER_TOOLTIP_CHAR), this->unknown_00D0); this->DrawTextAt(60, 138, str.c_str(), 0, 0, 13, 0x2323FF, 1, 0); } } diff --git a/Source/UI/UICaptchaRegisterWnd.cpp b/Source/UI/UICaptchaRegisterWnd.cpp index 53236ab36..32db6b956 100644 --- a/Source/UI/UICaptchaRegisterWnd.cpp +++ b/Source/UI/UICaptchaRegisterWnd.cpp @@ -21,6 +21,7 @@ #include "UI/Window/WindowManagerWindows.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -156,14 +157,14 @@ int UICaptchaRegisterWnd::SendMsg( switch (a1) { case ID_SEND: if (this->m_editCtrl->Length() < 4) { - g_windowMgr.Confirm(LookupMessage(2872), 0, 1, 0, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MACRO_DETECTOR_WRONG_ANSWER_REMAIN_CNT), 0, 1, 0, 0, "Message", 280, 120, 0); } else if (this->m_selectedFile.empty()) { - g_windowMgr.Confirm(LookupMessage(2874), 0, 1, 0, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_MACRO_SEND_MACRO), 0, 1, 0, 0, "Message", 280, 120, 0); } else if (this->m_decompressedSize == 0) { g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast("compress data size error"), 0xFF, 0, 0, 0); } else { const int result = - g_windowMgr.Confirm(FormatOwnedString(LookupMessage(2873), this->m_editCtrl->Text()).c_str(), 2, 0, 0, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(FormatOwnedString(LookupMessage(MSI_MACRO_REPORTER), this->m_editCtrl->Text()).c_str(), 2, 0, 0, 0, "Message", 280, 120, 0); if (result != 188) { this->registerButton->SetDisabled(1); this->registerButton->Invalidate(); diff --git a/Source/UI/UIChangeMaterialWnd.cpp b/Source/UI/UIChangeMaterialWnd.cpp index 2616faa97..c054b911d 100644 --- a/Source/UI/UIChangeMaterialWnd.cpp +++ b/Source/UI/UIChangeMaterialWnd.cpp @@ -31,6 +31,7 @@ #include "Utility/Text/FormatString.h" #include "Client/Mode/ModeMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -183,9 +184,9 @@ void UIChangeMaterialWnd_List::OnMouseMove(int x, int y) { // FUNCTION: fn_03887 void UIChangeMaterialWnd::OnProcess() { const std::string text = this->unknown_00B8->Text(); - if (text.compare(LookupMessage(0xec0)) != 0) { + if (text.compare(LookupMessage(MSI_BO_RESEARCHREPORT_OFF)) != 0) { if (text.empty()) { - this->unknown_00B8->SetText(LookupMessage(0xec0)); + this->unknown_00B8->SetText(LookupMessage(MSI_BO_RESEARCHREPORT_OFF)); this->unknown_00B8->TextColor(0xb1u, 0xb1u, 0xb1u, 0xffffffffu); } else { this->unknown_00B8->TextColor(0, 0, 0, 0xffffffffu); @@ -422,7 +423,7 @@ int UIChangeMaterialWnd::SendMsg( const MaterialResult& first = entry->results.front(); const MaterialResult& last = entry->results.back(); const std::string name = ItemDisplayName(first.id); - const std::string text = FormatOwnedString(LookupMessage(0xe8b), name.c_str(), first.quantity, last.quantity); + const std::string text = FormatOwnedString(LookupMessage(MSI_IQ_POWERFUL_FAITH_ON), name.c_str(), first.quantity, last.quantity); this->m_resultText = text; } @@ -478,7 +479,7 @@ int UIChangeMaterialWnd_List::SendMsg( case UM_COMMAND: if (argument1 == 0x141 && argument2 != 0) { std::string filter(reinterpret_cast(argument2)); - if (filter.compare(LookupMessage(0xec0)) == 0) { + if (filter.compare(LookupMessage(MSI_BO_RESEARCHREPORT_OFF)) == 0) { filter = ""; } this->ApplyFilter(filter); @@ -540,7 +541,7 @@ void UIChangeMaterialWnd::Paint() { DrawItemWithQuantity(*this, ResourceMgr::Instance(), this->m_resultX, this->m_resultY, this->m_resultItem, 1, 0); - const std::string amount = FormatOwnedString(LookupMessage(0xE8C), this->m_resultAmount / 10); + const std::string amount = FormatOwnedString(LookupMessage(MSI_IQ_POWERFUL_FAITH_OFF), this->m_resultAmount / 10); const int width = this->TextWidth(amount.c_str(), 0, 0x1D, 0x17, 1, 0); DrawOutlinedText(*this, 0x4F + (0xC8 - width) / 2, 0x64, amount.c_str(), 0, 0x5082DC, 0x643C00, 0x1D, 0x17, 1, 0); @@ -597,11 +598,11 @@ void UIChangeMaterialWnd_List::Paint() { if (entry->state == 1) { DrawItemWithQuantity(*this, ResourceMgr::Instance(), 0, y, item, 1, 0); this->DrawTextAt(30, y + 6, name.c_str(), 0, 0, 12, 0, 0, 0); - this->DrawRightAlignedText(163, y + 6, FormatOwnedString(LookupMessage(182), item.quantity).c_str(), 0, 0, 12, 0, 0); + this->DrawRightAlignedText(163, y + 6, FormatOwnedString(LookupMessage(MSI_EA), item.quantity).c_str(), 0, 0, 12, 0, 0); } else { DrawItemWithQuantityAuxiliary(*this, 1, 0, y, item, 1, 0); this->DrawTextAt(30, y + 6, name.c_str(), 0, 0, 12, 0xAAAAAA, 0, 0); - this->DrawRightAlignedText(163, y + 6, FormatOwnedString(LookupMessage(182), item.quantity).c_str(), 0, 0, 12, 0xAAAAAA, 0); + this->DrawRightAlignedText(163, y + 6, FormatOwnedString(LookupMessage(MSI_EA), item.quantity).c_str(), 0, 0, 12, 0xAAAAAA, 0); } } } @@ -667,7 +668,7 @@ void UIChangeMaterialWnd_List::OnMouseHover(int x, int y) { int screenY = y; this->ToScreen(screenX, screenY); - const std::string text = FormatOwnedString(LookupMessage(0xB7), ItemDisplayName(entry->results.front().id).c_str(), entry->results.front().quantity); + const std::string text = FormatOwnedString(LookupMessage(MSI_EA2), ItemDisplayName(entry->results.front().id).c_str(), entry->results.front().quantity); CMode* const mode = g_modeMgr.gameMode; mode->ShowTooltip(text.c_str(), screenX + 5, screenY - 5, -1, 0, 1); } @@ -702,7 +703,7 @@ void UIChangeMaterialWnd::OnCreate(int width, int height) { this->unknown_00B8->Move(313, 262); this->unknown_00B8->maximum = 20; this->unknown_00B8->preserveInput = 1; - this->unknown_00B8->SetText(LookupMessage(3776)); + this->unknown_00B8->SetText(LookupMessage(MSI_BO_RESEARCHREPORT_OFF)); this->unknown_00B8->TextColor(0xB1u, 0xB1u, 0xB1u, 0xFFFFFFFFu); this->unknown_00B8->Background(255, 236, 207); this->unknown_00B8->topPadding = -1; @@ -714,7 +715,7 @@ void UIChangeMaterialWnd::OnCreate(int width, int height) { search->SetBitmap("유저인터페이스\\ChangeMaterial\\btn_search_press.bmp", 2, 0); search->SetBitmap("유저인터페이스\\ChangeMaterial\\btn_search_disable.bmp", 3, 0); search->SetSize(search->BitmapWidth(), search->BitmapHeight()); - SetButtonText(search, LookupMessage(3777)); + SetButtonText(search, LookupMessage(MSI_BO_BIONIC_PHARMACY_OK)); search->Move(432, 259); search->SetId(321); this->AddChild(search); @@ -732,7 +733,7 @@ void UIChangeMaterialWnd::OnCreate(int width, int height) { this->m_sortBox = new UIChangeMaterialWnd_CheckBox(); this->m_sortBox->SetSize(74, 14); this->m_sortBox->SetBitmaps("유저인터페이스\\ChangeMaterial\\btn_sort_up.bmp", "유저인터페이스\\ChangeMaterial\\btn_sort_down.bmp"); - this->m_sortBox->SetLabels(LookupMessage(3722), LookupMessage(3775)); + this->m_sortBox->SetLabels(LookupMessage(MSI_MSG_IS_ILLEGAL_TAG_MSG), LookupMessage(MSI_BO_RESEARCHREPORT_ON)); this->m_sortBox->Move(316, 24); this->m_sortBox->SetId(364); this->m_sortBox->SetChecked(1); @@ -749,7 +750,7 @@ void UIChangeMaterialWnd::OnCreate(int width, int height) { this->AddChild(this->m_button); UIBasicButton* cancel = new UIBasicButton(); - cancel->Configure(42, LookupMessage(3045)); + cancel->Configure(42, LookupMessage(MSI_ZENY_LOTTO_BUY_10)); const int cancelY = height - cancel->geometry.height - 12; cancel->Move(width - cancel->geometry.width - 55, cancelY); cancel->SetId(201); diff --git a/Source/UI/UICheckAttendanceWnd.cpp b/Source/UI/UICheckAttendanceWnd.cpp index c688aedce..7c65ed094 100644 --- a/Source/UI/UICheckAttendanceWnd.cpp +++ b/Source/UI/UICheckAttendanceWnd.cpp @@ -30,6 +30,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -133,7 +134,7 @@ void UICheckAttendanceWnd::OnCreate(int, int) { this->m_notice->SetBitmap("유저인터페이스\\check_attendance\\bt_ok_normal.bmp", 1, 0); this->m_notice->SetBitmap("유저인터페이스\\check_attendance\\bt_ok_press.bmp", 2, 0); this->m_notice->SetSize(this->m_notice->BitmapWidth(), this->m_notice->BitmapHeight()); - this->m_notice->SetText(LookupMessage(3045)); + this->m_notice->SetText(LookupMessage(MSI_ZENY_LOTTO_BUY_10)); this->m_notice->AddTextStyle(0, 14, 0x313131, 1, 1, -1000, -1000); this->m_notice->AddTextStyle(1, 14, 0x313131, 1, 1, -1000, -1000); this->m_notice->AddTextStyle(2, 14, 0x313131, 1, 1, -1000, -1000); @@ -155,28 +156,28 @@ void UICheckAttendanceWnd::Paint() { : "유저인터페이스\\check_attendance\\attendance_bg.bmp"; this->DrawBitmap(0, 0, static_cast(ResourceMgr::Instance().Load(Resolve(backgroundName))), false); - this->DrawCenteredText(0, 41, FormatOwnedString(LookupMessage(3465), g_session.m_serverName.c_str()).c_str(), this->geometry.width, 0, 13, 0x203F66, 1); + this->DrawCenteredText(0, 41, FormatOwnedString(LookupMessage(MSI_CHECK_ATTENDANCE_CHECK_BEFORE), g_session.m_serverName.c_str()).c_str(), this->geometry.width, 0, 13, 0x203F66, 1); const int start = g_checkAttendanceMgr->m_config0; const int end = g_checkAttendanceMgr->m_config1; this->DrawCenteredText( - 0, 70, FormatOwnedString(LookupMessage(3466), start % 10000 / 100, start % 100, end % 10000 / 100, end % 100).c_str(), this->geometry.width, 0, 12, + 0, 70, FormatOwnedString(LookupMessage(MSI_CHECK_ATTENDANCE_CHECK_AFTER), start % 10000 / 100, start % 100, end % 10000 / 100, end % 100).c_str(), this->geometry.width, 0, 12, 0x3950A4, 1 ); const int bannerHeight = this->BannerHeight(); - this->DrawCenteredText(345, bannerHeight + 289, LookupMessage(3470), 109, 0, 14, 0x595939, 1); + this->DrawCenteredText(345, bannerHeight + 289, LookupMessage(MSI_CHECK_ATTENDANCE), 109, 0, 14, 0x595939, 1); if (this->m_daysLeft > 0) { this->DrawCenteredText(368, bannerHeight + 309, IntToString(this->m_daysLeft, 0).c_str(), 54, 0, 22, 0xFFFFFF, 1); } - this->DrawCenteredText(425, bannerHeight + 318, LookupMessage(3471), 0, 0, 12, 0x595939, 1); + this->DrawCenteredText(425, bannerHeight + 318, LookupMessage(MSI_CHECK_ATTENDANCE_NOT_EVENT), 0, 0, 12, 0x595939, 1); { std::string message; if (this->m_blinking == 1) { - message = FormatOwnedString(LookupMessage(3468), this->m_checkedDays + 1); + message = FormatOwnedString(LookupMessage(MSI_DATE_DAY), this->m_checkedDays + 1); } else { - message = FormatOwnedString(LookupMessage(3469), this->m_checkedDays); + message = FormatOwnedString(LookupMessage(MSI_CHECK_ATTENDANCE_FAIL_RESTART), this->m_checkedDays); } if (!message.empty()) { @@ -215,7 +216,7 @@ void UICheckAttendanceWnd::Paint() { const int x = (day - 1) % 5 * 62; const int y = (day - 1) / 5 * 64; DrawItemWithQuantity(*this, ResourceMgr::Instance(), x + 43, y + 109 + bannerHeight, item, 1, 0); - this->DrawCenteredText(x + 26, y + 140 + bannerHeight, FormatOwnedString(LookupMessage(3467), day).c_str(), 58, 0, 12, 0xA44F3B, 1); + this->DrawCenteredText(x + 26, y + 140 + bannerHeight, FormatOwnedString(LookupMessage(MSI_CHECK_ATTENDANCE_DDAY), day).c_str(), 58, 0, 12, 0xA44F3B, 1); } } diff --git a/Source/UI/UIGradeEnchantWnd.cpp b/Source/UI/UIGradeEnchantWnd.cpp index b4561e760..d49df18c5 100644 --- a/Source/UI/UIGradeEnchantWnd.cpp +++ b/Source/UI/UIGradeEnchantWnd.cpp @@ -26,6 +26,7 @@ #include "UI/Window/WindowManagerWindows.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -162,7 +163,7 @@ void UIGradeEnchantWnd::OnCreate(int, int) { } auto* title = new UIBasicButton(); - title->Configure(0x2A, LookupMessage(0x513)); + title->Configure(0x2A, LookupMessage(MSI_BOOK_CLOSE)); title->Move(0x159, 299); title->SetId(0xB9); this->AddChild(title); @@ -211,7 +212,7 @@ void UIGradeEnchantWnd::OnCreate(int, int) { help->SetBitmap("유저인터페이스\\basic_interface\\btn_help_disabled.bmp", 3, 0); help->SetSize(help->BitmapWidth(), help->BitmapHeight()); help->Move(0x8C, 100); - help->SetTooltip(LookupMessage(0x1013)); + help->SetTooltip(LookupMessage(MSI_PROBABILITY_TITLE)); help->SetId(0x1FE); this->AddChild(help); } @@ -231,9 +232,9 @@ void UIGradeEnchantWnd::Paint() { this->DrawBitmap(152, 62, static_cast(ResourceMgr::Instance().Load(Resolve(FormatOwnedString("유저인터페이스\\grade_enchant\\caution.bmp").c_str()))), true); this->DrawBitmap(152, 78, static_cast(ResourceMgr::Instance().Load(Resolve(FormatOwnedString("유저인터페이스\\grade_enchant\\caution.bmp").c_str()))), true); - this->DrawAlignedText(166, 46, LookupMessage(3870), 228, 0, 0x00A0ADC, 0, 0, 11, 1, 0); - this->DrawAlignedText(166, 62, LookupMessage(3871), 228, 0, 0x5AEB00, 0, 0, 11, 1, 0); - this->DrawAlignedText(166, 78, LookupMessage(3872), 228, 0, 0x5AEB00, 0, 0, 11, 1, 0); + this->DrawAlignedText(166, 46, LookupMessage(MSI_HOTKEY_RESET), 228, 0, 0x00A0ADC, 0, 0, 11, 1, 0); + this->DrawAlignedText(166, 62, LookupMessage(MSI_HOTKEY_OLD_VER), 228, 0, 0x5AEB00, 0, 0, 11, 1, 0); + this->DrawAlignedText(166, 78, LookupMessage(MSI_EXP_BAR_BASE_LV), 228, 0, 0x5AEB00, 0, 0, 11, 1, 0); } if (this->state == 1 || this->state == 2) { @@ -258,7 +259,7 @@ void UIGradeEnchantWnd::Paint() { itemInfo.SetItemId(material.itemId); itemInfo.GetIdDisplayName(description, capacity, 0); DrawItemIcon(*this, ResourceMgr::Instance(), 170, y - 9, itemInfo, 0); - std::string text = FormatOwnedString(LookupMessage(3553), description, material.amount); + std::string text = FormatOwnedString(LookupMessage(MSI_NO_ITEM_FOR_EXCHANGE), description, material.amount); this->DrawAlignedText(203, y, text, 180, 0, 0, 0, 0, 11, 0, 0); y += 40; } @@ -268,7 +269,7 @@ void UIGradeEnchantWnd::Paint() { itemInfo.SetItemId(this->info.unknown_0000); itemInfo.GetIdDisplayName(description, capacity, 0); DrawItemIcon(*this, ResourceMgr::Instance(), 195, 228, itemInfo, 0); - std::string text = FormatOwnedString(LookupMessage(3553), description, this->unknown_0114); + std::string text = FormatOwnedString(LookupMessage(MSI_NO_ITEM_FOR_EXCHANGE), description, this->unknown_0114); this->DrawAlignedText(228, 237, text, 160, 0, 0xFFFFFF, 0, 0, 11, 1, 1); } @@ -365,7 +366,7 @@ void UIGradeEnchantWnd::OnLBtnUp(int x, int y) { if (this->selectedMaterial != row) { if (this->unknown_0114 > 0) { - g_windowMgr.Confirm(LookupMessage(3831), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_ENCHANT_TAB_PERFECT), 0, true, false, 0, "Message", 280, 120, 0); } this->selectedMaterial = row; @@ -394,7 +395,7 @@ void UIGradeEnchant_BtnEnhancedUp::OnMouseHover(int x, int y) { return; } - this->m_tooltip = FormatOwnedString(LookupMessage(3976), this->tooltipValue); + this->m_tooltip = FormatOwnedString(LookupMessage(MSI_JOB_WINDHAWK), this->tooltipValue); int screenX = 0; int screenY = -20; @@ -431,19 +432,19 @@ void UIGradeEnchantWnd::OnProcess() { if (this->state == 2 && now >= this->unknown_00E0 + 3000) { switch (this->result) { case ENCHANTGRADE_UPGRADE_SUCCESS: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3702)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_GRADE_ENCHANT_FAIL_BREAK)), 0xFFFF00, 0, 0, 0); break; case ENCHANTGRADE_UPGRADE_FAILED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3703)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_GRADE_ENCHANT_FAIL_PROTECT)), 0xFFFF00, 0, 0, 0); break; case ENCHANTGRADE_UPGRADE_DOWNGRADE: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3704)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GRADE_ENCHANT_SOURCE_NOT_SELECT)), 0xFFFF00, 0, 0, 0); break; case ENCHANTGRADE_UPGRADE_BREAK: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3705)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GRADE_ENCHANT_SOURCE_ENOUGH)), 0xFFFF00, 0, 0, 0); break; case ENCHANTGRADE_UPGRADE_PROTECTED: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3706)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_GRADE_ENCHANT_MONEY_ENOUGH)), 0xFFFF00, 0, 0, 0); break; } this->ResetItem(); @@ -518,7 +519,7 @@ int UIGradeEnchantWnd::SendMsg( const int quantity = LookupClientItem(g_session.m_inventoryItems, this->materials[this->selectedMaterial].itemId, 0).quantity; if (quantity >= this->materials[this->selectedMaterial].amount && g_session.m_zeny >= this->SelectedMaterialZeny()) { if (this->unknown_0110 != 0 || this->unknown_0114 != 0 || - g_windowMgr.Confirm(LookupMessage(3823), 2, true, false, 0, "Message", 280, 120, 0) != 188) { + g_windowMgr.Confirm(LookupMessage(MSI_MERCHANTSHOP_TOTA_LOVER_ZENY_ERR), 2, true, false, 0, "Message", 280, 120, 0) != 188) { this->unknown_0220 = 1; GradeEnchantRequestPacket packet; @@ -553,7 +554,7 @@ int UIGradeEnchantWnd::SendMsg( } break; case 510: - ShellExecuteA(hWnd, "open", LookupMessage(4124), nullptr, nullptr, SW_SHOWNORMAL); + ShellExecuteA(hWnd, "open", LookupMessage(MSI_ETC_PROBABILITY_URL), nullptr, nullptr, SW_SHOWNORMAL); break; } break; diff --git a/Source/UI/UIHotkeyGuideWnd.cpp b/Source/UI/UIHotkeyGuideWnd.cpp index 5d070da34..0e9d010d1 100644 --- a/Source/UI/UIHotkeyGuideWnd.cpp +++ b/Source/UI/UIHotkeyGuideWnd.cpp @@ -18,6 +18,7 @@ #include "UI/Window/WindowManagerWindows.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x009663D0 // FUNCTION: fn_13154 UIHotkeyGuideWnd::UIHotkeyGuideWnd() @@ -77,7 +78,7 @@ void UIHotkeyGuideWnd::OnCreate(int, int) { this->m_labels[18] = HotkeyGuideLabel("Alt", HotkeyGuideKey(118, 249, 6, 49, 0, 36), HotkeyGuideKey()); this->m_labels[19] = HotkeyGuideLabel("Pause", HotkeyGuideKey(702, 46, 6, 36, 0, 36), HotkeyGuideKey()); this->m_labels[20] = HotkeyGuideLabel("Caps", HotkeyGuideKey(21, 171, 0, 75, 15, 36), HotkeyGuideKey()); - this->m_labels[25] = HotkeyGuideLabel(LookupMessage(3147), HotkeyGuideKey(547, 249, 6, 56, 0, 36), HotkeyGuideKey()); + this->m_labels[25] = HotkeyGuideLabel(LookupMessage(MSI_NOT_FOUND_REPLAY_FILE), HotkeyGuideKey(547, 249, 6, 56, 0, 36), HotkeyGuideKey()); this->m_labels[27] = HotkeyGuideLabel("Esc", HotkeyGuideKey(21, 46, 6, 36, 0, 36), HotkeyGuideKey()); this->m_labels[32] = HotkeyGuideLabel("Space", HotkeyGuideKey(170, 249, 6, 246, 0, 36), HotkeyGuideKey()); this->m_labels[33] = HotkeyGuideLabel("PgUp", HotkeyGuideKey(702, 93, 6, 36, 0, 36), HotkeyGuideKey()); @@ -196,7 +197,7 @@ void UIHotkeyGuideWnd::OnCreate(int, int) { settings->SetBitmap("유저인터페이스\\hotkey_guide\\bt_keysettings_over.bmp", 1, 0); settings->SetBitmap("유저인터페이스\\hotkey_guide\\bt_keysettings_press.bmp", 2, 0); settings->SetSize(settings->BitmapWidth(), settings->BitmapHeight()); - settings->SetText(LookupMessage(3148)); + settings->SetText(LookupMessage(MSI_STORE_TABNAME_7)); settings->Move(763, 462); settings->SetId(342); this->AddChild(settings); @@ -207,7 +208,7 @@ void UIHotkeyGuideWnd::OnCreate(int, int) { void UIHotkeyGuideWnd::Paint() { auto* background = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\hotkey_guide\\bg_shortcuts.bmp"))); this->DrawBitmap(0, 0, background, false); - this->DrawTitleBar(false, LookupMessage(3128), 0); + this->DrawTitleBar(false, LookupMessage(MSI_IMAGE_CAPTURE), 0); for (auto key = this->m_keys.begin(); key != this->m_keys.end(); ++key) { HotkeyGuideLabel& label = this->m_labels[*key]; @@ -246,12 +247,12 @@ void UIHotkeyGuideWnd::Paint() { ++index; } - this->DrawCenteredText(4, 32, FormatOwnedString("%s / %s", LookupMessage(3129), LookupMessage(3045)).c_str(), 75, 0, 12, 0x2B2625, 0); - this->DrawCenteredText(207, 34, LookupMessage(3130), 159, 0, 11, 0x5B2C24, 0); - this->DrawCenteredText(604, 32, LookupMessage(3131), 75, 0, 12, 0x2B2625, 0); - this->DrawCenteredText(791, 313, FormatOwnedString("%s / %s", LookupMessage(3132), LookupMessage(3133)).c_str(), 102, 0, 12, 0x2B2625, 0); - this->DrawCenteredText(770, 346, LookupMessage(3139), 55, 0, 12, 0x2B2625, 0); - this->DrawCenteredText(859, 346, LookupMessage(3140), 55, 0, 12, 0x2B2625, 0); + this->DrawCenteredText(4, 32, FormatOwnedString("%s / %s", LookupMessage(MSI_ZOOM_IN), LookupMessage(MSI_ZENY_LOTTO_BUY_10)).c_str(), 75, 0, 12, 0x2B2625, 0); + this->DrawCenteredText(207, 34, LookupMessage(MSI_ZOOM_OUT), 159, 0, 11, 0x5B2C24, 0); + this->DrawCenteredText(604, 32, LookupMessage(MSI_GUILD), 75, 0, 12, 0x2B2625, 0); + this->DrawCenteredText(791, 313, FormatOwnedString("%s / %s", LookupMessage(MSI_BANK), LookupMessage(MSI_MAIL)).c_str(), 102, 0, 12, 0x2B2625, 0); + this->DrawCenteredText(770, 346, LookupMessage(MSI_STOP_VIDEO), 55, 0, 12, 0x2B2625, 0); + this->DrawCenteredText(859, 346, LookupMessage(MSI_ITEM_IS_SWAP_EQUIPED), 55, 0, 12, 0x2B2625, 0); } // OFFSET: 0x0096C140 diff --git a/Source/UI/UIItemReformWnd.cpp b/Source/UI/UIItemReformWnd.cpp index 78a25014d..7b9ec339e 100644 --- a/Source/UI/UIItemReformWnd.cpp +++ b/Source/UI/UIItemReformWnd.cpp @@ -28,6 +28,7 @@ #include "UI/Window/WindowManagerWindows.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -94,13 +95,13 @@ void UIItemReformWnd::OnCreate(int width, int height) { this->AddCloseButton("", 0); UIBasicButton* cancel = new UIBasicButton(); - cancel->Configure(60, LookupMessage(218)); + cancel->Configure(60, LookupMessage(MSI_CANCEL)); cancel->Move(300, 236); cancel->SetId(201); this->AddChild(cancel); this->reformButton = new UIBasicButton(); - this->reformButton->Configure(60, LookupMessage(3847)); + this->reformButton->Configure(60, LookupMessage(MSI_ITEM_REFORM_WARNNING_CARD_MAYBE_LOST)); this->reformButton->Move(365, 236); this->reformButton->SetId(184); this->reformButton->SetDisabled(1); @@ -178,7 +179,7 @@ void UIItemReformWnd::Paint() { // FUNCTION: fn_04111 void UIItemReformWnd_DetailBtn::Paint() { this->ClearSurface(0xFFFF00FF); - std::string text = LookupMessage(3854); + std::string text = LookupMessage(MSI_ENCHANT_SUCCESS); const unsigned int textWidth = this->TextWidth(text.c_str(), 0, 0, 12, 0, 0); this->DrawCenteredText(0, 0, text.c_str(), this->geometry.width, 0, 12, 0, 0); this->FillRegion((this->geometry.width - textWidth) * 0.5, 12, textWidth, 1, 0); @@ -413,7 +414,7 @@ void UIItemReformWnd::SelectItem(ITEM_INFO* item) { } } if (insufficient) { - this->warning = LookupMessage(3848); + this->warning = LookupMessage(MSI_ITEM_REFORM_WARNNING_ENCHANT_MAYBE_LOST); } else { this->reformButton->SetDisabled(0); this->reformButton->Invalidate(); @@ -422,7 +423,7 @@ void UIItemReformWnd::SelectItem(ITEM_INFO* item) { this->information = info->informationString; if (this->information.size() != 0) { this->detailButton->Enable(1); - this->warning = LookupMessage(3855); + this->warning = LookupMessage(MSI_ENCHANT_FAILED); } this->baseIcon->item = this->selectedItem; @@ -448,7 +449,7 @@ int UIItemReformWnd::SendMsg( case UM_REFRESHITEM: this->reformItem.SetItemId(argument1); if (this->list->SendMsg(this, UM_REFRESHITEM, argument1, 0, 0, 0) == -1) { - this->warning = LookupMessage(3856); + this->warning = LookupMessage(MSI_CANNOT_FIND_ENCHANT_ID); } this->Invalidate(); break; diff --git a/Source/UI/UILapineBoxWnd.cpp b/Source/UI/UILapineBoxWnd.cpp index f355d3688..6cd104bc1 100644 --- a/Source/UI/UILapineBoxWnd.cpp +++ b/Source/UI/UILapineBoxWnd.cpp @@ -19,6 +19,7 @@ #include "UI/Window/WindowManagerWindows.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -263,26 +264,26 @@ bool UILapineBox_IngredientListWnd::CanUseIngredient(std::uint32_t identity) { const int required = material->quantity; if (required > item.quantity) { - this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(FormatOwnedString(LookupMessage(0xB52), required).c_str()), 0, 0, 0); + this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_INPUT_FREE_MESSAGE), required).c_str()), 0, 0, 0); return false; } if (this->minRefine > item.unknown_0060) { - this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(0xB53)), 0, 0, 0); + this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(MSI_CAPTCHA_INPUT_ANSWER)), 0, 0, 0); return false; } if (this->maxRefine < item.unknown_0060) { - this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(0xE3C)), 0, 0, 0); + this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(MSI_ITEM_COUNT_INFINITY)), 0, 0, 0); return false; } if (this->minRefine != 0 && this->minRefine < item.unknown_0060) { - this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(0xE3D)), 0, 0, 0); + this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(MSI_ITEMSHOP_CURRENCY)), 0, 0, 0); } if (Equipment(item) && !item.IsApprenticeItem() && !item.HasSpecialCard()) { const int* cards = reinterpret_cast(item.unknown_001C); for (int index = 0; index < ItemSlotsCount(item); ++index) { if (index < 4 && cards[index] > 0) { - this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(0xE3E)), 0, 0, 0); + this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(MSI_PURCHASEWND_TOTAL)), 0, 0, 0); return true; } } @@ -473,12 +474,12 @@ int UILapineBox_IngredientListWnd::SendMsg(UIWindow* sender, int message, std::i const int need = found->quantity; if (selected->item.quantity < need) { - this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(FormatOwnedString(LookupMessage(0xB52), need).c_str()), 0, 0, 0); + this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_INPUT_FREE_MESSAGE), need).c_str()), 0, 0, 0); return -1; } if (selected->item.unknown_0060 < found->unknown_0060) { - this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(0xB53)), 0, 0, 0); + this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(MSI_CAPTCHA_INPUT_ANSWER)), 0, 0, 0); return -1; } @@ -592,7 +593,7 @@ void UIIngredientInfoWnd::SetIngredientItem(std::uint32_t id) { if (this->item.identified == 1) { const int count = this->item.unknown_0098; if (count != 0) { - sprintf_s(name, sizeof(name), LookupMessage(2600), name, count); + sprintf_s(name, sizeof(name), LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), name, count); } } diff --git a/Source/UI/UILapineScrollBar.cpp b/Source/UI/UILapineScrollBar.cpp index 0dfbedfab..b2bb019ca 100644 --- a/Source/UI/UILapineScrollBar.cpp +++ b/Source/UI/UILapineScrollBar.cpp @@ -21,6 +21,7 @@ #include "UI/Shop/ItemDrawing.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -248,7 +249,7 @@ void UILapineBoxWnd::Paint() { this->DrawTitleBar(false, this->title.c_str(), 0); } - this->DrawCenteredText(33, 47, LookupMessage(2896), 160, 0, 11, 0xCD7A51, 0); + this->DrawCenteredText(33, 47, LookupMessage(MSI_LAPINE_FAIL_NOT_ENOUGH_REFINING_LEVEL), 160, 0, 11, 0xCD7A51, 0); this->DrawCenteredText(33, 63, this->description.c_str(), 160, 0, 11, 0x844A42, 0); const std::string count = FormatOwnedString("%d", static_cast(this->items.size())); @@ -292,7 +293,7 @@ int UILapineBoxWnd::AddIngredient(std::uint32_t id, int quantity) { int highlightColor; this->BuildItemName(&item, &highlightColor, &breaks, &cursor, &remaining, &highlight, 1, 0); if (item.identified == 1 && item.unknown_0098 != 0) { - sprintf_s(name, sizeof(name), LookupMessage(2600), name, item.unknown_0098); + sprintf_s(name, sizeof(name), LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), name, item.unknown_0098); } item.SetName(name); } diff --git a/Source/UI/UILapineUpgradeBoxWnd.cpp b/Source/UI/UILapineUpgradeBoxWnd.cpp index 9d3585e35..61a80e84f 100644 --- a/Source/UI/UILapineUpgradeBoxWnd.cpp +++ b/Source/UI/UILapineUpgradeBoxWnd.cpp @@ -26,6 +26,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -156,7 +157,7 @@ void UILapineUpgradeBoxWnd::Paint() { this->DrawTitleBar(false, this->title.c_str(), 0); } - this->DrawCenteredText(35, 47, LookupMessage(2896), 156, 0, 11, 0xCD7A51, 0); + this->DrawCenteredText(35, 47, LookupMessage(MSI_LAPINE_FAIL_NOT_ENOUGH_REFINING_LEVEL), 156, 0, 11, 0xCD7A51, 0); this->DrawCenteredText(35, 63, this->description.c_str(), 156, 0, 11, 0x844A42, 0); if (this->item.unknown_0000[1] != 0) { @@ -545,7 +546,7 @@ __declspec(noinline) void UILapineUpgradeBox_IngredientInfoWnd::SetItem(std::uin this->BuildItemName(&this->item, &highlightColor, &breaks, &cursor, &remaining, &highlight, 1, 0); if (this->item.identified == 1 && this->item.unknown_0098 != 0) { - sprintf_s(name, sizeof(name), LookupMessage(0xA28), name, this->item.unknown_0098); + sprintf_s(name, sizeof(name), LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), name, this->item.unknown_0098); } this->item.SetName(name); @@ -581,7 +582,7 @@ bool UILapineUpgradeBox_IngredientListWnd::CanUseIngredient(std::uint32_t identi } if (this->minRefine != 0 && this->minRefine < item.unknown_0060) { - this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(0xE3D)), 0, 0, 0); + this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(MSI_ITEMSHOP_CURRENCY)), 0, 0, 0); } if (Equipment(item) && !item.IsApprenticeItem() && !item.HasSpecialCard()) { @@ -589,7 +590,7 @@ bool UILapineUpgradeBox_IngredientListWnd::CanUseIngredient(std::uint32_t identi std::uint32_t card = 0; std::memcpy(&card, item.unknown_001C + offset, sizeof(card)); if (card != 0) { - this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(0xE3E)), 0, 0, 0); + this->parent->SendMsg(this, UM_RECEIVE_MSG, reinterpret_cast(LookupMessage(MSI_PURCHASEWND_TOTAL)), 0, 0, 0); break; } } @@ -654,7 +655,7 @@ int UILapineUpgradeBoxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t this->BuildItemName(&owned, &highlightColor, &breaks, &cursor, &remaining, &highlight, 1, 0); if (owned.identified == 1 && owned.unknown_0098 != 0) { - sprintf_s(name, sizeof(name), LookupMessage(2600), name, owned.unknown_0098); + sprintf_s(name, sizeof(name), LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), name, owned.unknown_0098); } owned.SetName(name); diff --git a/Source/UI/UIMacroBlackListCheckWnd.cpp b/Source/UI/UIMacroBlackListCheckWnd.cpp index c4703385d..bf8ed01fb 100644 --- a/Source/UI/UIMacroBlackListCheckWnd.cpp +++ b/Source/UI/UIMacroBlackListCheckWnd.cpp @@ -9,6 +9,7 @@ #include "Render/Text/TextContext.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -105,13 +106,13 @@ void UIMacroBlackListCheckWnd::OnCreate(int width, int height) { // OFFSET: 0x007EC1E0 // FUNCTION: fn_09795 void UIMacroBlackListCheckWnd::Paint() { - const int titleHeight = this->UIWindow::DrawTitleBar(true, LookupMessage(0x92F), this->geometry.width + 1); + const int titleHeight = this->UIWindow::DrawTitleBar(true, LookupMessage(MSI_MENU_UAEURLWND), this->geometry.width + 1); this->DrawPanelBackground(titleHeight, 0x21C, "유저인터페이스\\basic_interface\\blacklist_check_bg.bmp"); this->DrawButtonBar(2, this->geometry.width + 1, 1); - this->DrawAlignedText(7, 0x24, FormatOwnedString(LookupMessage(0xFB4)).c_str(), 0x20E, 6, 0, 0, 0, 0xC, 1, 0); - this->DrawAlignedText(7, 0x159, FormatOwnedString(LookupMessage(0xFB5), this->unknown_00E4).c_str(), 0x20E, 6, 0x3939FF, 0, 0, 0xC, 1, 0); - this->DrawAlignedText(0x4F, 0xF6, FormatOwnedString(LookupMessage(0xFB6), this->unknown_00E4).c_str(), 0xA2, 6, 0, 0, 0, 0xC, 0, 0); + this->DrawAlignedText(7, 0x24, FormatOwnedString(LookupMessage(MSI_WEDDING_RING_ITEM_NAME_FORMAT)).c_str(), 0x20E, 6, 0, 0, 0, 0xC, 1, 0); + this->DrawAlignedText(7, 0x159, FormatOwnedString(LookupMessage(MSI_ACCOUNT_LIMITED_TOOL_RESULT_NEWFORMAT), this->unknown_00E4).c_str(), 0x20E, 6, 0x3939FF, 0, 0, 0xC, 1, 0); + this->DrawAlignedText(0x4F, 0xF6, FormatOwnedString(LookupMessage(MSI_ACCOUNT_LIMITED_SALE_ITEM_NEXT_NEWDATE), this->unknown_00E4).c_str(), 0xA2, 6, 0, 0, 0, 0xC, 0, 0); std::string stars; for (int i = 0; i < this->inputLength; ++i) { @@ -138,11 +139,11 @@ void UIMacroBlackListCheckWnd::Paint() { const unsigned remainingMin = remainingSec / 60u; if (remainingSec < 60u) { this->DrawAlignedText( - 0x4F, 0xA4, FormatOwnedString(LookupMessage(0xFB3), 0, static_cast(remainingMin), static_cast(remainingSec)).c_str(), 0xA2, 6, 0xFF, 0, 0, + 0x4F, 0xA4, FormatOwnedString(LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_ANSWER_INPUT), 0, static_cast(remainingMin), static_cast(remainingSec)).c_str(), 0xA2, 6, 0xFF, 0, 0, 0xD, 1, 0 ); } else { - this->DrawAlignedText(0x4F, 0xA4, FormatOwnedString(LookupMessage(0xFB3), 0, 0, 0).c_str(), 0xA2, 6, 0xFF, 0, 0, 0xD, 1, 0); + this->DrawAlignedText(0x4F, 0xA4, FormatOwnedString(LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_ANSWER_INPUT), 0, 0, 0).c_str(), 0xA2, 6, 0xFF, 0, 0, 0xD, 1, 0); } } diff --git a/Source/UI/UIMacroDetectorWnd.cpp b/Source/UI/UIMacroDetectorWnd.cpp index 58a928382..4c7bbb06b 100644 --- a/Source/UI/UIMacroDetectorWnd.cpp +++ b/Source/UI/UIMacroDetectorWnd.cpp @@ -11,6 +11,7 @@ #include "UI/Window/WindowManagerWindows.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -65,7 +66,7 @@ void UIMacroDetectorWnd::ClearImageData() { void UIMacroDetectorWnd::SetCountdown(unsigned char count, std::uint32_t duration) { DWORD now = timeGetTime(); if (this->unknown_0110 > 0) { - std::string text = FormatOwnedString(LookupMessage(2875), count); + std::string text = FormatOwnedString(LookupMessage(MSI_MACRO_REGISTER_DATA), count); this->message = text; } diff --git a/Source/UI/UIMacroUserInfoWnd.cpp b/Source/UI/UIMacroUserInfoWnd.cpp index f9c4904a8..949557c35 100644 --- a/Source/UI/UIMacroUserInfoWnd.cpp +++ b/Source/UI/UIMacroUserInfoWnd.cpp @@ -32,6 +32,7 @@ #include "UI/Window/WindowBorder.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -344,12 +345,12 @@ bool UIMacroReporterWnd::ValidateNames(unsigned char notify) { name += ".rsw"; const char* displayName = g_session.GetMapDisplayName(name.c_str()); - const std::string unknownMap = LookupMessage(187); + const std::string unknownMap = LookupMessage(MSI_NOWHERE); if (unknownMap == displayName) { if (notify == 1) { g_windowMgr.SendNotice( 1, - reinterpret_cast(FormatOwnedString("%d번 %s", i + 1, LookupMessage(4010)).c_str()), + reinterpret_cast(FormatOwnedString("%d번 %s", i + 1, LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_RESULT_SUCCESS)).c_str()), 0xFF, 0, 0, @@ -375,7 +376,7 @@ bool UIMacroReporterWnd::ValidateTarget(unsigned char notify) { std::string text = this->m_target; if (text.empty() || text.size() - 4 > 4) { if (notify == 1) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s", LookupMessage(4011)).c_str()), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s", LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_RESULT_FAIL_COOLTIME)).c_str()), 0xFF, 0, 0, 0); } return false; } @@ -388,7 +389,7 @@ bool UIMacroReporterWnd::ValidateTarget(unsigned char notify) { if (value == 0 && text.compare(digits) != 0) { if (notify == 1) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s", LookupMessage(4011)).c_str()), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s", LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_RESULT_FAIL_COOLTIME)).c_str()), 0xFF, 0, 0, 0); } return false; } @@ -403,7 +404,7 @@ bool UIMacroReporterWnd::ValidateTarget(unsigned char notify) { if (text.compare(number) != 0) { if (notify == 1) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s", LookupMessage(4011)).c_str()), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatOwnedString("%s", LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_RESULT_FAIL_COOLTIME)).c_str()), 0xFF, 0, 0, 0); } return false; } @@ -482,8 +483,8 @@ void UIMacroReporterWnd::OnCreate(int, int) { static_cast(this->m_reportButton)->SetId(345); this->AddChild(this->m_reportButton); - std::string labels[4] = {LookupMessage(2887), LookupMessage(2888), LookupMessage(4006), LookupMessage(4007)}; - std::string tooltips[4] = {LookupMessage(2889), LookupMessage(2890), LookupMessage(4008), LookupMessage(4009)}; + std::string labels[4] = {LookupMessage(MSI_MACRO_REPORTER_TOOLTIP_CELL), LookupMessage(MSI_MACRO_REPORTER_TOOLTIP_RANGE), LookupMessage(MSI_MACRO_REPORTER_TOOLTIP_QUIZ), LookupMessage(MSI_MACRO_REPORTER_UNKNWON_MAP)}; + std::string tooltips[4] = {LookupMessage(MSI_TAIWANSS_PERSONALINFO_EXPMSG), LookupMessage(MSI_TAIWANSS_PERSONALINFO_DROPMSG), LookupMessage(MSI_MACRO_REPORTER_WRONG_NUMBER), LookupMessage(MSI_MACRO_REPORTER_TOOLTIP_MAP_QUIZ_INPUT)}; int index = 0; for (; index < 2; ++index) { @@ -524,7 +525,7 @@ void UIMacroReporterWnd::OnCreate(int, int) { static_cast(this->m_fields[row])->invalidatesParent = 1; static_cast(this->m_fields[row])->disabled = 1; static_cast(this->m_fields[row])->Invalidate(); - if (const char* tooltip = LookupMessage(4012)) { + if (const char* tooltip = LookupMessage(MSI_MACRO_BLACKLIST_USER_CHCEK_RESULT_FAIL_MAPNAME)) { static_cast(this->m_fields[row])->tooltip = tooltip; } this->AddChild(this->m_fields[row]); @@ -542,7 +543,7 @@ void UIMacroReporterWnd::OnCreate(int, int) { static_cast(this->m_edit)->preserveInput = 1; static_cast(this->m_edit)->invalidatesParent = 1; static_cast(this->m_edit)->SetText(IntToString(this->unknown_00F4, 0).c_str()); - if (const char* tooltip = LookupMessage(2891)) { + if (const char* tooltip = LookupMessage(MSI_TAIWANSS_PERSONALINFO_DEATHMSG)) { static_cast(this->m_edit)->tooltip = tooltip; } this->AddChild(this->m_edit); @@ -688,7 +689,7 @@ int UIMacroReporterWnd::SendMsg( } } const int result = g_windowMgr - .Confirm(FormatOwnedString(LookupMessage(2876), accounts.size()).c_str(), 2, false, false, 0, "Message", 280, 120, 0); + .Confirm(FormatOwnedString(LookupMessage(MSI_MACRO_ALREADY_DETECTING), accounts.size()).c_str(), 2, false, false, 0, "Message", 280, 120, 0); if (result != 188) { for (auto it = accounts.begin(); it != accounts.end(); ++it) { PACKET_CZ_MACRO_REPORT_ACCOUNT packet; diff --git a/Source/UI/UIPreviewEquipWnd.cpp b/Source/UI/UIPreviewEquipWnd.cpp index 137e814b0..7d6369da7 100644 --- a/Source/UI/UIPreviewEquipWnd.cpp +++ b/Source/UI/UIPreviewEquipWnd.cpp @@ -21,6 +21,7 @@ #include "Utility/Math/AffineMatrix.h" #include "Utility/Math/Vector3d.h" +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x007F2F90 // FUNCTION: fn_09879 UIPreviewEquipWnd::UIPreviewEquipWnd() @@ -83,20 +84,20 @@ void UIPreviewEquipWnd::OnCreate(int width, int height) { UIStaticText* shadow = new UIStaticText(); shadow->SetSize( - this->TextWidth(LookupMessage(0xB90), 0, 0, 12, 0, 0), - this->TextHeight(LookupMessage(0xB90), 0, 0, 12, 0, 0) + this->TextWidth(LookupMessage(MSI_IMPOSSIBLE_CHANGE_GUILD_MASTER_IN_SIEGE_TIME), 0, 0, 12, 0, 0), + this->TextHeight(LookupMessage(MSI_IMPOSSIBLE_CHANGE_GUILD_MASTER_IN_SIEGE_TIME), 0, 0, 12, 0, 0) ); - shadow->SetText(LookupMessage(0xB90), 0); + shadow->SetText(LookupMessage(MSI_IMPOSSIBLE_CHANGE_GUILD_MASTER_IN_SIEGE_TIME), 0); shadow->SetColor(255, 255, 255); shadow->Move(19, 4); this->AddChild(shadow); UIStaticText* title = new UIStaticText(); title->SetSize( - this->TextWidth(LookupMessage(0xB90), 0, 0, 12, 0, 0), - this->TextHeight(LookupMessage(0xB90), 0, 0, 12, 0, 0) + this->TextWidth(LookupMessage(MSI_IMPOSSIBLE_CHANGE_GUILD_MASTER_IN_SIEGE_TIME), 0, 0, 12, 0, 0), + this->TextHeight(LookupMessage(MSI_IMPOSSIBLE_CHANGE_GUILD_MASTER_IN_SIEGE_TIME), 0, 0, 12, 0, 0) ); - title->SetText(LookupMessage(0xB90), 0); + title->SetText(LookupMessage(MSI_IMPOSSIBLE_CHANGE_GUILD_MASTER_IN_SIEGE_TIME), 0); title->Move(18, 3); this->AddChild(title); @@ -126,7 +127,7 @@ void UIPreviewEquipWnd::OnCreate(int width, int height) { this->AddChild(this->m_rightButton); this->unknown_00C4 = new UIBasicButton(); - this->unknown_00C4->Configure(80, LookupMessage(0xB9F)); + this->unknown_00C4->Configure(80, LookupMessage(MSI_BLOCK_CALL_PERMIT)); this->unknown_00C4->Move(static_cast((this->geometry.width - this->unknown_00C4->geometry.width) * 0.5), this->geometry.height - 30); this->unknown_00C4->SetId(0x16B); this->unknown_00C4->invalidateParent = 1; diff --git a/Source/UI/UIRefiningWnd.cpp b/Source/UI/UIRefiningWnd.cpp index 06c50960f..82222dc50 100644 --- a/Source/UI/UIRefiningWnd.cpp +++ b/Source/UI/UIRefiningWnd.cpp @@ -27,6 +27,7 @@ #include "UI/Window/WindowManagerWindows.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -85,7 +86,7 @@ void UIRefiningWnd::OnCreate(int width, int height) { this->AddCloseButton("", 0); UIBasicButton* basic = new UIBasicButton(); - basic->Configure(56, LookupMessage(218)); + basic->Configure(56, LookupMessage(MSI_CANCEL)); basic->Move(204, 322); basic->SetId(185); this->AddChild(basic); @@ -129,7 +130,7 @@ void UIRefiningWnd::OnCreate(int width, int height) { help->SetBitmap("유저인터페이스\\basic_interface\\btn_help_disabled.bmp", 3, 0); help->SetSize(help->BitmapWidth(), help->BitmapHeight()); help->Move(230, 20); - help->SetTooltip(LookupMessage(4115)); + help->SetTooltip(LookupMessage(MSI_PROBABILITY_TITLE)); help->SetId(510); this->AddChild(help); } @@ -245,7 +246,7 @@ __declspec(safebuffers) void UIRefiningWnd::ApplyResult() { } if (g_session.m_zeny < static_cast(this->SelectedMaterialValue())) { - this->notice->SetNotice(LookupMessage(3244), 5000, 1); + this->notice->SetNotice(LookupMessage(MSI_NPC_ALL_STAT_DOWN), 5000, 1); this->againButton->SetDisabled(1); } else { this->againButton->cost = this->SelectedMaterialValue(); @@ -256,15 +257,15 @@ __declspec(safebuffers) void UIRefiningWnd::ApplyResult() { if (this->catalystEnabled == 1) { if (this->nextCatalystCount == 0) { this->catalystEnabled = 0; - this->notice->SetNotice(LookupMessage(3242), 5000, 1); + this->notice->SetNotice(LookupMessage(MSI_REFINING_AGAIN_FAILED_LACK_OF_BLACKSMITHBLESSING), 5000, 1); this->againButton->SetDisabled(1); this->againButton->Invalidate(); } else { - this->notice->SetNotice(LookupMessage(2967), 0, 0); + this->notice->SetNotice(LookupMessage(MSI_CANNOT_REFINE_ITEM), 0, 0); const int owned = LookupClientItem(g_session.m_inventoryItems, this->catalystItemId, 0).quantity; if (this->catalystCount > owned) { this->catalystEnabled = 0; - this->notice->SetNotice(LookupMessage(3245), 5000, 1); + this->notice->SetNotice(LookupMessage(MSI_NPC_ALL_STAT_DOWN_RESET), 5000, 1); this->againButton->SetDisabled(1); this->againButton->Invalidate(); } @@ -275,7 +276,7 @@ __declspec(safebuffers) void UIRefiningWnd::ApplyResult() { if (count == 0) { this->materials.clear(); this->selectedMaterial = -1; - this->notice->SetNotice(LookupMessage(2970), 5000, 1); + this->notice->SetNotice(LookupMessage(MSI_RETURN), 5000, 1); this->againButton->SetDisabled(1); this->againButton->Invalidate(); } else { @@ -309,7 +310,7 @@ __declspec(safebuffers) void UIRefiningWnd::ApplyResult() { if (!same) { this->selectedMaterial = -1; - this->notice->SetNotice(LookupMessage(3242), 5000, 1); + this->notice->SetNotice(LookupMessage(MSI_REFINING_AGAIN_FAILED_LACK_OF_BLACKSMITHBLESSING), 5000, 1); this->againButton->SetDisabled(1); this->againButton->Invalidate(); } else if (this->selectedMaterial >= 0 && static_cast(this->selectedMaterial) < this->materials.size()) { @@ -326,7 +327,7 @@ __declspec(safebuffers) void UIRefiningWnd::ApplyResult() { const ITEM_INFO owned = LookupClientItem(g_session.m_inventoryItems, itemId, 0); if (owned.quantity == 0) { - this->notice->SetNotice(LookupMessage(3243), 5000, 1); + this->notice->SetNotice(LookupMessage(MSI_REFINING_FAIL_BROKEN_ITEM), 5000, 1); this->againButton->SetDisabled(1); this->againButton->Invalidate(); } @@ -342,21 +343,21 @@ __declspec(safebuffers) void UIRefiningWnd::ApplyResult() { void UIRefining_BtnAgain::Paint() { UIBitmapButton::Paint(); if (this->m_disabled == 1) { - int width = this->TextWidth(LookupMessage(3241), 0, 0, 12, 1, 0); + int width = this->TextWidth(LookupMessage(MSI_REFINING_AGAIN_FAILED_LACK_OF_MONEY), 0, 0, 12, 1, 0); std::uint32_t color = this->success == 1 ? 0xE1C1F : (this->m_disabled == 1 ? 0x6F4333 : 0x3E1B12); this->DrawTextAt(static_cast(static_cast(this->geometry.width - width) * 0.5f), - (this->geometry.unknown_0030 == 2) + 14, LookupMessage(3241), 0, 0, 12, color, 1, 0 + (this->geometry.unknown_0030 == 2) + 14, LookupMessage(MSI_REFINING_AGAIN_FAILED_LACK_OF_MONEY), 0, 0, 12, color, 1, 0 ); return; } - int width = this->TextWidth(LookupMessage(3241), 0, 0, 12, 1, 0); + int width = this->TextWidth(LookupMessage(MSI_REFINING_AGAIN_FAILED_LACK_OF_MONEY), 0, 0, 12, 1, 0); std::uint32_t color = this->success == 1 ? 0xE1C1F : (this->m_disabled == 1 ? 0x6F4333 : 0x3E1B12); this->DrawTextAt(static_cast(static_cast(this->geometry.width - width) * 0.5f), - (this->geometry.unknown_0030 == 2) + 9, LookupMessage(3241), 0, 0, 12, color, 1, 0 + (this->geometry.unknown_0030 == 2) + 9, LookupMessage(MSI_REFINING_AGAIN_FAILED_LACK_OF_MONEY), 0, 0, 12, color, 1, 0 ); - std::string count = FormatOwnedString(LookupMessage(3285), this->unknown_0125); + std::string count = FormatOwnedString(LookupMessage(MSI_CASHSHOP_SALE_LIST), this->unknown_0125); width = this->TextWidth(count.c_str(), 0, 0, 11, 0, 0); this->DrawTextAt(static_cast(static_cast(this->geometry.width - width) * 0.5f), (this->geometry.unknown_0030 == 2) + 22, count.c_str(), 0, 0, 11, 0, 0, 0 @@ -372,10 +373,10 @@ void UIRefining_BtnAgain::Paint() { // FUNCTION: fn_09910 void UIRefining_BtnRefining::Paint() { UIBitmapButton::Paint(); - int width = this->TextWidth(LookupMessage(2966), 0, 0, 13, 1, 0); + int width = this->TextWidth(LookupMessage(MSI_NOTENOUGH_BLACKSMITH_BLESSING), 0, 0, 13, 1, 0); std::uint32_t color = this->m_disabled == 1 ? 0x94644A : 0x3E1B12; this->DrawTextAt(static_cast(static_cast(this->geometry.width - width) * 0.5f), - (this->geometry.unknown_0030 == 2) + 11, LookupMessage(2966), 0, 0, 12, color, 1, 0 + (this->geometry.unknown_0030 == 2) + 11, LookupMessage(MSI_NOTENOUGH_BLACKSMITH_BLESSING), 0, 0, 12, color, 1, 0 ); if (this->m_disabled == 0) { @@ -389,10 +390,10 @@ void UIRefining_BtnRefining::Paint() { // FUNCTION: fn_09911 void UIRefining_BtnReturn::Paint() { UIBitmapButton::Paint(); - int width = this->TextWidth(LookupMessage(2973), 0, 0, 12, 1, 0); + int width = this->TextWidth(LookupMessage(MSI_MANUFACTURED_MARRIAGERING_ITEM), 0, 0, 12, 1, 0); std::uint32_t color = this->highlighted == 1 ? 0xE1C1F : 0x3E1B12; this->DrawTextAt(static_cast(static_cast(this->geometry.width - width) * 0.5f), - (this->geometry.unknown_0030 == 2) + 14, LookupMessage(2973), 0, 0, 12, color, 1, 0 + (this->geometry.unknown_0030 == 2) + 14, LookupMessage(MSI_MANUFACTURED_MARRIAGERING_ITEM), 0, 0, 12, color, 1, 0 ); } @@ -512,13 +513,13 @@ void UIRefiningWnd::OnLBtnUp(int x, int y) { const int owned = LookupClientItem(g_session.m_inventoryItems, this->catalystItemId, 0).quantity; if (owned < this->catalystCount) { - this->notice->SetNotice(LookupMessage(2969), 3000, 1); + this->notice->SetNotice(LookupMessage(MSI_REFINING_FAIL), 3000, 1); } else if (this->catalystEnabled == 1) { this->catalystEnabled = 0; this->notice->SetNotice("", 0, 0); } else { this->catalystEnabled = 1; - this->notice->SetNotice(LookupMessage(2967), 0, 0); + this->notice->SetNotice(LookupMessage(MSI_CANNOT_REFINE_ITEM), 0, 0); } } @@ -784,14 +785,14 @@ int UIRefiningWnd::SendMsg( case UM_COMMAND: switch (argument1) { case 510: - ShellExecuteA(hWnd, "open", LookupMessage(4123), nullptr, nullptr, SW_SHOWNORMAL); + ShellExecuteA(hWnd, "open", LookupMessage(MSI_SELLINGSLOT_ERROR_MAXSLOT), nullptr, nullptr, SW_SHOWNORMAL); break; case ID_OK: if (this->unknown_01F0 != 1) { const std::uint32_t index = this->item.unknown_0000[1]; if (index != 0) { if (g_session.m_zeny < static_cast(this->SelectedMaterialValue())) { - this->notice->SetNotice(LookupMessage(2968), 3000, 1); + this->notice->SetNotice(LookupMessage(MSI_REFINING_SUCCESS), 3000, 1); } else { this->unknown_01F0 = 1; RefiningRequestPacket packet; @@ -843,7 +844,7 @@ int UIRefiningWnd::SendMsg( packet.index = static_cast(argument1); GetRagConnection().Send(reinterpret_cast(GetRagConnection()).FixedLength(packet.id), &packet); } else { - this->notice->SetNotice(LookupMessage(2970), 3000, 1); + this->notice->SetNotice(LookupMessage(MSI_RETURN), 3000, 1); } } } @@ -860,7 +861,7 @@ void UIRefiningWnd::ApplyItem(int id, int count, RefiningMaterial* materials, in case 0: case 1: { if (id == -1 || count == 0) { - this->notice->SetNotice(LookupMessage(0xB9A), 3000, 1); + this->notice->SetNotice(LookupMessage(MSI_RETURN), 3000, 1); return; } @@ -879,7 +880,7 @@ void UIRefiningWnd::ApplyItem(int id, int count, RefiningMaterial* materials, in char* cursor = text; this->BuildItemName(&this->item, &highlightColor, &breaks, &cursor, &remaining, &highlight, 1, 0); if (this->item.identified == 1 && this->item.unknown_0098 != 0) { - sprintf_s(text, sizeof(text), LookupMessage(0xA28), text, this->item.unknown_0098); + sprintf_s(text, sizeof(text), LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), text, this->item.unknown_0098); } this->item.SetName(text); @@ -931,7 +932,7 @@ void UIRefiningWnd::ApplyItem(int id, int count, RefiningMaterial* materials, in char* name = text; this->BuildItemName(&this->nextItem, &highlightColor, &breaks, &name, &remaining, &cursor, 1, 0); if (this->nextItem.identified == 1 && this->nextItem.unknown_0098 != 0) { - sprintf_s(text, sizeof(text), LookupMessage(0xA28), text, this->nextItem.unknown_0098); + sprintf_s(text, sizeof(text), LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), text, this->nextItem.unknown_0098); } this->nextItem.SetName(text); @@ -1003,14 +1004,14 @@ void UIRefiningWnd::SetState(int state, int result) { } break; case 3: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(498)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_REFINING_SUCCEESS)), 0xFFFF00, 0, 0, 0); break; case 5: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(1537)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_REFINING_DOWNGRADE)), 0xFFFF00, 0, 0, 0); break; case 4: case 6: - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(499)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_REFINING_FAIL)), 0xFFFF00, 0, 0, 0); break; } @@ -1134,7 +1135,7 @@ __declspec(safebuffers) void UIRefiningWnd::Paint() { this->DrawCenteredText(0, 249, this->item.unknown_0044.c_str(), 264, 0, 12, 0x462117, 1); break; case 4: - this->DrawCenteredText(0, 249, LookupMessage(3246), 264, 0, 12, 0x462117, 1); + this->DrawCenteredText(0, 249, LookupMessage(MSI_OTP_MUST_8_CHAR), 264, 0, 12, 0x462117, 1); break; } @@ -1151,7 +1152,7 @@ __declspec(safebuffers) void UIRefiningWnd::Paint() { static_cast(this->selectedMaterial) < this->materials.size()) { rate = this->materials[this->selectedMaterial].unknown_0004; } - const std::string label = FormatOwnedString("%s %d%%", LookupMessage(2974), rate); + const std::string label = FormatOwnedString("%s %d%%", LookupMessage(MSI_CHANGE_HOMUN_NAME), rate); const int labelWidth = this->TextWidth(label.c_str(), 0, 0, 12, 1, 0); rate = 0; @@ -1163,26 +1164,26 @@ __declspec(safebuffers) void UIRefiningWnd::Paint() { const int percentWidth = this->TextWidth(percent.c_str(), 0, 0, 12, 1, 0); const int x = static_cast((this->geometry.width - labelWidth) * 0.5); - this->DrawTextAt(x, 31, LookupMessage(2974), 0, 0, 12, 0x422B1F, 1, 0); + this->DrawTextAt(x, 31, LookupMessage(MSI_CHANGE_HOMUN_NAME), 0, 0, 12, 0x422B1F, 1, 0); this->DrawTextAt(x - percentWidth + labelWidth, 31, percent.c_str(), 0, 0, 12, 0xDE612A, 1, 0); break; } case 3: { - const int width = this->TextWidth(LookupMessage(2971), 0, 0, 12, 1, 0); - this->DrawTextAt(static_cast((this->geometry.width - width) * 0.5), 31, LookupMessage(2971), 0, 0, 12, 0x422B1F, 1, 0 + const int width = this->TextWidth(LookupMessage(MSI_SUCCESS), 0, 0, 12, 1, 0); + this->DrawTextAt(static_cast((this->geometry.width - width) * 0.5), 31, LookupMessage(MSI_SUCCESS), 0, 0, 12, 0x422B1F, 1, 0 ); break; } case 4: case 5: case 6: { - const int width = this->TextWidth(LookupMessage(2972), 0, 0, 12, 1, 0); - this->DrawTextAt(static_cast((this->geometry.width - width) * 0.5), 31, LookupMessage(2972), 0, 0, 12, 0x422B1F, 1, 0 + const int width = this->TextWidth(LookupMessage(MSI_RESET), 0, 0, 12, 1, 0); + this->DrawTextAt(static_cast((this->geometry.width - width) * 0.5), 31, LookupMessage(MSI_RESET), 0, 0, 12, 0x422B1F, 1, 0 ); break; } } this->DrawButtonBar(2, 0, 1); - this->DrawTitleBar(false, LookupMessage(2966), 0); + this->DrawTitleBar(false, LookupMessage(MSI_NOTENOUGH_BLACKSMITH_BLESSING), 0); } diff --git a/Source/UI/UIReputeWnd.cpp b/Source/UI/UIReputeWnd.cpp index 114bb9202..b30bc5de3 100644 --- a/Source/UI/UIReputeWnd.cpp +++ b/Source/UI/UIReputeWnd.cpp @@ -18,6 +18,7 @@ #include "Utility/JsonCppLoader.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -78,7 +79,7 @@ void UIReputeWnd::OnCreate(int width, int height) { search->SetBitmap("유저인터페이스\\Reputation\\btn_search_over.bmp", 1, 0); search->SetBitmap("유저인터페이스\\Reputation\\btn_search_press.bmp", 2, 0); search->SetSize(search->BitmapWidth(), search->BitmapHeight()); - search->SetLabel(LookupMessage(3777)); + search->SetLabel(LookupMessage(MSI_BO_BIONIC_PHARMACY_OK)); search->Move(336, 25); search->SetId(321); this->AddChild(search); @@ -91,7 +92,7 @@ void UIReputeWnd::OnCreate(int width, int height) { this->m_prevButton->SetSize(this->m_prevButton->BitmapWidth(), this->m_prevButton->BitmapHeight()); this->m_prevButton->Move(567, 402); this->m_prevButton->Enable(0); - this->m_prevButton->SetTooltip(LookupMessage(1053)); + this->m_prevButton->SetTooltip(LookupMessage(MSI_PREV_PAGE)); this->m_prevButton->SetId(316); this->AddChild(this->m_prevButton); @@ -102,17 +103,17 @@ void UIReputeWnd::OnCreate(int width, int height) { this->m_nextButton->SetSize(this->m_nextButton->BitmapWidth(), this->m_nextButton->BitmapHeight()); this->m_nextButton->Move(623, 402); this->m_nextButton->Enable(0); - this->m_nextButton->SetTooltip(LookupMessage(1054)); + this->m_nextButton->SetTooltip(LookupMessage(MSI_NEXT_PAGE)); this->m_nextButton->SetId(317); this->AddChild(this->m_nextButton); UIBasicButton* close = new UIBasicButton(); - close->Configure(42, LookupMessage(3045)); + close->Configure(42, LookupMessage(MSI_ZENY_LOTTO_BUY_10)); close->Move(589, 425); close->SetId(201); this->AddChild(close); - this->m_groupCombo->AddOption(LookupMessage(3829), 0); + this->m_groupCombo->AddOption(LookupMessage(MSI_ENCHANT), 0); const std::vector groups = Singleton::GetInstance()->GetGroupNames(); for (auto it = groups.begin(); it != groups.end(); ++it) { this->m_groupCombo->AddOption(*it, 0); @@ -127,7 +128,7 @@ void UIReputeWnd::OnCreate(int width, int height) { // FUNCTION: fn_04314 void UIReputeWnd::Paint() { this->ClearSurface(0xFFFFFFFF); - const int titleHeight = this->DrawTitleBar(false, LookupMessage(3827), 0); + const int titleHeight = this->DrawTitleBar(false, LookupMessage(MSI_REPUTE_NOW_LOADING), 0); const int barHeight = this->DrawButtonBar(2, 0, 1); DrawRectangleBorder(*this, 0, titleHeight - 1, this->geometry.width, this->geometry.height - barHeight - titleHeight + 2, 0xC6C6C6); DrawRectangleBorder(*this, 0, titleHeight, this->geometry.width, 1, 0); @@ -139,7 +140,7 @@ void UIReputeWnd::Paint() { CBitmapRes* bitmap = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\notice_poring.bmp"))); this->DrawBitmap(288, 182, bitmap, true); - this->DrawCenteredText(225, 260, LookupMessage(3830), 190, 0, 15, 0xC89482, 1); + this->DrawCenteredText(225, 260, LookupMessage(MSI_ENCHANT_TAB_GENERAL), 190, 0, 15, 0xC89482, 1); return; } @@ -176,7 +177,7 @@ void UIReputeWnd::Paint() { const std::uint64_t remain = value % 1000; this->FillRegion(left + 12, top + 100, static_cast(static_cast(remain) / 1000.0f * 299.0f), 6, 0xFF); - this->DrawRightAlignedText(left + 311, top + 114, FormatOwnedString(LookupMessage(3828), remain).c_str(), 0, 0, 12, 0, 1); + this->DrawRightAlignedText(left + 311, top + 114, FormatOwnedString(LookupMessage(MSI_GRADE_ENCHANT_ADDITIONAL_SOURCE_RESET), remain).c_str(), 0, 0, 12, 0, 1); } else { for (std::uint64_t k = 0; k < info->unknown_0018 / 1000; ++k) { bitmap = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\Reputation\\light_empty.bmp"))); @@ -190,7 +191,7 @@ void UIReputeWnd::Paint() { const std::uint64_t remain = info->point % 1000; this->FillRegion(left + 12, top + 100, static_cast(static_cast(remain) / 1000.0f * 299.0f), 6, 0xCD9279); - this->DrawRightAlignedText(left + 311, top + 114, FormatOwnedString(LookupMessage(3828), remain).c_str(), 0, 0, 12, 0, 1); + this->DrawRightAlignedText(left + 311, top + 114, FormatOwnedString(LookupMessage(MSI_GRADE_ENCHANT_ADDITIONAL_SOURCE_RESET), remain).c_str(), 0, 0, 12, 0, 1); } } @@ -271,7 +272,7 @@ int UIReputeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::in case UM_TAB: if (a) { int index; - if (std::string(reinterpret_cast(a)) == LookupMessage(3829)) { + if (std::string(reinterpret_cast(a)) == LookupMessage(MSI_ENCHANT)) { index = 0; } else { index = this->m_groupCombo->list->FindLine(std::string(reinterpret_cast(a))); @@ -311,7 +312,7 @@ int UIReputeWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::in // FUNCTION: fn_04316 void UIReputeWnd::FilterByGroup(const std::string& group) { this->m_reputes.clear(); - if (group == LookupMessage(3829)) { + if (group == LookupMessage(MSI_ENCHANT)) { this->m_reputes = Singleton::GetInstance()->GetAllReputes(); this->m_groupSelected = false; return; diff --git a/Source/UI/UIRoundBoxTooltipWnd.cpp b/Source/UI/UIRoundBoxTooltipWnd.cpp index 4b26e16b1..4e1ee7e34 100644 --- a/Source/UI/UIRoundBoxTooltipWnd.cpp +++ b/Source/UI/UIRoundBoxTooltipWnd.cpp @@ -15,6 +15,7 @@ #include "UI/Window/WindowManagerWindows.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -112,8 +113,8 @@ int UIRoundBoxTooltipWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a const ItemMoveInfo info = FindItemMoveInfo(static_cast(argument1)); if (info.drop) { - text += LookupMessage(0xAE4); - longest = LookupMessage(0xAE4); + text += LookupMessage(MSI_ITEMMOVEINFO_MAIL); + longest = LookupMessage(MSI_ITEMMOVEINFO_MAIL); ++lines; } @@ -121,9 +122,9 @@ int UIRoundBoxTooltipWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a if (!text.empty()) { text += "\n"; } - text += LookupMessage(0xAE5); - if (std::strlen(LookupMessage(0xAE5)) > std::strlen(longest.c_str())) { - longest = LookupMessage(0xAE5); + text += LookupMessage(MSI_ITEMMOVEINFO_EXCHANGEWND); + if (std::strlen(LookupMessage(MSI_ITEMMOVEINFO_EXCHANGEWND)) > std::strlen(longest.c_str())) { + longest = LookupMessage(MSI_ITEMMOVEINFO_EXCHANGEWND); } ++lines; } @@ -132,9 +133,9 @@ int UIRoundBoxTooltipWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a if (!text.empty()) { text += "\n"; } - text += LookupMessage(0xAE6); - if (std::strlen(LookupMessage(0xAE6)) > std::strlen(longest.c_str())) { - longest = LookupMessage(0xAE6); + text += LookupMessage(MSI_ITEMMOVEINFO_AUCTION); + if (std::strlen(LookupMessage(MSI_ITEMMOVEINFO_AUCTION)) > std::strlen(longest.c_str())) { + longest = LookupMessage(MSI_ITEMMOVEINFO_AUCTION); } ++lines; } @@ -143,9 +144,9 @@ int UIRoundBoxTooltipWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a if (!text.empty()) { text += "\n"; } - text += LookupMessage(0xAE7); - if (std::strlen(LookupMessage(0xAE7)) > std::strlen(longest.c_str())) { - longest = LookupMessage(0xAE7); + text += LookupMessage(MSI_ITEMMOVEINFO_STOREOFGUILD); + if (std::strlen(LookupMessage(MSI_ITEMMOVEINFO_STOREOFGUILD)) > std::strlen(longest.c_str())) { + longest = LookupMessage(MSI_ITEMMOVEINFO_STOREOFGUILD); } ++lines; } @@ -154,9 +155,9 @@ int UIRoundBoxTooltipWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a if (!text.empty()) { text += "\n"; } - text += LookupMessage(0xAE8); - if (std::strlen(LookupMessage(0xAE8)) > std::strlen(longest.c_str())) { - longest = LookupMessage(0xAE8); + text += LookupMessage(MSI_ITEMMOVEINFO_TONPC); + if (std::strlen(LookupMessage(MSI_ITEMMOVEINFO_TONPC)) > std::strlen(longest.c_str())) { + longest = LookupMessage(MSI_ITEMMOVEINFO_TONPC); } ++lines; } @@ -165,9 +166,9 @@ int UIRoundBoxTooltipWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a if (!text.empty()) { text += "\n"; } - text += LookupMessage(0xAEA); - if (std::strlen(LookupMessage(0xAEA)) > std::strlen(longest.c_str())) { - longest = LookupMessage(0xAEA); + text += LookupMessage(MSI_CREATE_CHARACTER); + if (std::strlen(LookupMessage(MSI_CREATE_CHARACTER)) > std::strlen(longest.c_str())) { + longest = LookupMessage(MSI_CREATE_CHARACTER); } ++lines; } @@ -176,9 +177,9 @@ int UIRoundBoxTooltipWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a if (!text.empty()) { text += "\n"; } - text += LookupMessage(0xAEB); - if (std::strlen(LookupMessage(0xAEB)) > std::strlen(longest.c_str())) { - longest = LookupMessage(0xAEB); + text += LookupMessage(MSI_UNEQUIP_ARROW3); + if (std::strlen(LookupMessage(MSI_UNEQUIP_ARROW3)) > std::strlen(longest.c_str())) { + longest = LookupMessage(MSI_UNEQUIP_ARROW3); } ++lines; } diff --git a/Source/UI/Window/UIAccountLimitedToolWnd.cpp b/Source/UI/Window/UIAccountLimitedToolWnd.cpp index 1f26b662b..899cbd7d6 100644 --- a/Source/UI/Window/UIAccountLimitedToolWnd.cpp +++ b/Source/UI/Window/UIAccountLimitedToolWnd.cpp @@ -14,6 +14,7 @@ #include "UI/Text/UITextViewer.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -152,26 +153,26 @@ void UIAccountLimitedToolWnd::OnCreate(int, int) { // OFFSET: 0x0094CF50 // FUNCTION: fn_12901 void UIAccountLimitedToolWnd::Paint() { - this->DrawTitleBar(false, LookupMessage(3650), 0); + this->DrawTitleBar(false, LookupMessage(MSI_ACCOUNT_LIMITED_TOOL_SELL_COUNT), 0); this->DrawPanelBackground(17, 0, ""); - this->DrawTextAt(5, 28, LookupMessage(3651), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(5, 50, LookupMessage(3652), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(5, 28, LookupMessage(MSI_ACCOUNT_LIMITED_TOOL_SELL_STARTTIME), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(5, 50, LookupMessage(MSI_ACCOUNT_LIMITED_TOOL_SELL_ENDTIME), 0, 0, 12, 0, 0, 0); this->FillRegion(3, 70, this->geometry.width - 6, 2, 0x99938A); - this->DrawTextAt(5, 80, LookupMessage(3653), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(5, 102, LookupMessage(3654), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(5, 80, LookupMessage(MSI_ACCOUNT_LIMITED_SALE_ITEM), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(5, 102, LookupMessage(MSI_ACCOUNT_LIMITED_SALE_ITEM_START_DATE), 0, 0, 12, 0, 0, 0); this->DrawTextAt(117, 102, "/", 0, 0, 12, 0, 0, 0); this->DrawTextAt(152, 102, "/", 0, 0, 12, 0, 0, 0); this->DrawTextAt(187, 102, "(YY/MM/DD)", 0, 0, 12, 0, 0, 0); this->DrawTextAt(296, 102, ":", 0, 0, 12, 0, 0, 0); this->DrawTextAt(335, 102, "(HH:MM)", 0, 0, 12, 0, 0, 0); - this->DrawTextAt(5, 124, LookupMessage(3655), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(5, 124, LookupMessage(MSI_ACCOUNT_LIMITED_SALE_ITEM_NUM), 0, 0, 12, 0, 0, 0); this->DrawTextAt(117, 124, "/", 0, 0, 12, 0, 0, 0); this->DrawTextAt(152, 124, "/", 0, 0, 12, 0, 0, 0); this->DrawTextAt(187, 124, "(YY/MM/DD)", 0, 0, 12, 0, 0, 0); this->DrawTextAt(296, 124, ":", 0, 0, 12, 0, 0, 0); this->DrawTextAt(335, 124, "(HH:MM)", 0, 0, 12, 0, 0, 0); this->FillRegion(3, 144, this->geometry.width - 6, 2, 0x99938A); - this->DrawTextAt(5, 154, LookupMessage(3916), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(5, 154, LookupMessage(MSI_ZEROQUEST_QUESTVIEWWND_ON), 0, 0, 12, 0, 0, 0); this->DrawTextAt(172, 154, "(DD)", 0, 0, 12, 0, 0, 0); this->DrawTextAt(278, 154, ":", 0, 0, 12, 0, 0, 0); this->DrawTextAt(322, 154, "(HH:MM)", 0, 0, 12, 0, 0, 0); @@ -186,7 +187,7 @@ int UIAccountLimitedToolWnd::SendMsg(UIWindow* sender, int message, std::intptr_ switch (argument1) { case 2: if (argument2 == 1) { - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2518)), 60, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BARGAINSALE_CASHSHOP_REFRESH_BTN_TOOLTIP)), 60, 0, 0); UITextViewer* viewer = this->m_viewer; if (viewer->verticalOverflow != 0) { const int lineCount = viewer->LineCount(); @@ -194,7 +195,7 @@ int UIAccountLimitedToolWnd::SendMsg(UIWindow* sender, int message, std::intptr_ } } else { this->m_viewer->SendMsg( - nullptr, 29, reinterpret_cast(FormatOwnedString(LookupMessage(2519), this->m_edits[0]->Text()).c_str()), 60, 0, 0 + nullptr, 29, reinterpret_cast(FormatOwnedString(LookupMessage(MSI_BARGAINSALE_CASHSHOP_TIMER), this->m_edits[0]->Text()).c_str()), 60, 0, 0 ); UITextViewer* viewer = this->m_viewer; if (viewer->verticalOverflow != 0) { @@ -222,7 +223,7 @@ int UIAccountLimitedToolWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case 1: switch (argument2) { case 3: { - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2516)), 60, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BARGAINSALE_TOOLWND_DELETE_SUCCESS_MSG)), 60, 0, 0); UITextViewer* viewer = this->m_viewer; if (viewer->verticalOverflow != 0) { const int lineCount = viewer->LineCount(); @@ -237,7 +238,7 @@ int UIAccountLimitedToolWnd::SendMsg(UIWindow* sender, int message, std::intptr_ break; } case 1: { - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2516)), 60, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BARGAINSALE_TOOLWND_DELETE_SUCCESS_MSG)), 60, 0, 0); UITextViewer* viewer = this->m_viewer; if (viewer->verticalOverflow != 0) { const int lineCount = viewer->LineCount(); @@ -253,12 +254,12 @@ int UIAccountLimitedToolWnd::SendMsg(UIWindow* sender, int message, std::intptr_ } case 0: { const std::string text = FormatOwnedString( - LookupMessage(4024), this->m_edits[0]->Text(), std::atoi(this->m_edits[1]->Text()), std::atoi(this->m_edits[3]->Text()), + LookupMessage(MSI_RETRY_AFTER_PROCESS), this->m_edits[0]->Text(), std::atoi(this->m_edits[1]->Text()), std::atoi(this->m_edits[3]->Text()), std::atoi(this->m_edits[4]->Text()), std::atoi(this->m_edits[5]->Text()), std::atoi(this->m_edits[6]->Text()), std::atoi(this->m_edits[7]->Text()), std::atoi(this->m_edits[8]->Text()), std::atoi(this->m_edits[9]->Text()), std::atoi(this->m_edits[10]->Text()), std::atoi(this->m_edits[11]->Text()) ); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text.c_str()), 60, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2515)), 60, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BARGAINSALE_TOOLWND_DELETE_FAILED_MSG)), 60, 0, 0); UITextViewer* viewer = this->m_viewer; if (viewer->verticalOverflow != 0) { const int lineCount = viewer->LineCount(); @@ -310,7 +311,7 @@ int UIAccountLimitedToolWnd::SendMsg(UIWindow* sender, int message, std::intptr_ case ID_SEARCH: { const std::string name = this->m_edits[0]->Text(); if (name.empty()) { - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2512)), 60, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BARGAINSALE_TOOLWND_APPLY_SUCCESS_MSG)), 60, 0, 0); UITextViewer* viewer = this->m_viewer; if (viewer->verticalOverflow != 0) { const int lineCount = viewer->LineCount(); @@ -328,7 +329,7 @@ int UIAccountLimitedToolWnd::SendMsg(UIWindow* sender, int message, std::intptr_ } case 561: { if (std::atoi(this->m_edits[1]->Text()) < 1) { - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2508)), 60, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BARGAINSALE_TOOLWND_INPUT_PERIODTIME_MSG)), 60, 0, 0); UITextViewer* viewer = this->m_viewer; if (viewer->verticalOverflow != 0) { const int lineCount = viewer->LineCount(); @@ -341,7 +342,7 @@ int UIAccountLimitedToolWnd::SendMsg(UIWindow* sender, int message, std::intptr_ const AccountLimitedRange ranges[5] = {{23, 999}, {1, 12}, {1, 31}, {0, 23}, {0, 59}}; for (int i = 2; i < 12; ++i) { if (this->m_edits[i]->Length() == 0) { - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2509)), 60, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BARGAINSALE_TOOLWND_INPUT_ITEMDBNAME_MSG)), 60, 0, 0); UITextViewer* viewer = this->m_viewer; if (viewer->verticalOverflow != 0) { const int lineCount = viewer->LineCount(); @@ -352,7 +353,7 @@ int UIAccountLimitedToolWnd::SendMsg(UIWindow* sender, int message, std::intptr_ const AccountLimitedRange& range = ranges[i % 5 - 2]; if (std::atoi(this->m_edits[i]->Text()) < range.minimum || std::atoi(this->m_edits[i]->Text()) > range.maximum) { - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2510)), 60, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_BARGAINSALE_TOOLWND_ITEMID_CHECK_FAILED_MSG)), 60, 0, 0); UITextViewer* rangeViewer = this->m_viewer; if (rangeViewer->verticalOverflow != 0) { const int lineCount = rangeViewer->LineCount(); @@ -365,7 +366,7 @@ int UIAccountLimitedToolWnd::SendMsg(UIWindow* sender, int message, std::intptr_ } if (std::atoi(this->m_edits[12]->Text()) > 14) { - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(3917)), 60, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_ZEROQUEST_QUESTVIEWWND_OFF)), 60, 0, 0); this->m_edits[12]->SelectAll(); return 0; } diff --git a/Source/UI/Window/UIBasicInfoWnd.cpp b/Source/UI/Window/UIBasicInfoWnd.cpp index 1febfcfa6..5d240aabf 100644 --- a/Source/UI/Window/UIBasicInfoWnd.cpp +++ b/Source/UI/Window/UIBasicInfoWnd.cpp @@ -26,6 +26,7 @@ #include "Utility/Text/FormatString.h" #include "Utility/Text/GroupedInteger.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -280,7 +281,7 @@ int UIBasicInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argumen if (!g_windowMgr.unknown_02FC && !g_windowMgr.unknown_0304) { g_windowMgr.EnsureWindow(WID_CHATROOMMAKEWND); } else { - g_windowMgr.Confirm(LookupMessage(587), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANT_OPEN_STORE_WHILE_CHAT), 0, true, false, 0, "Message", 280, 120, 0); } } break; @@ -373,8 +374,8 @@ void UIBasicInfoWnd::DrawExpanded() { ); this->DrawBitmap(0, 0, &background->image, false); - this->DrawTextAt(18, 3, LookupMessage(238), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(17, 2, LookupMessage(238), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(18, 3, LookupMessage(MSI_BASICINFOWND), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(17, 2, LookupMessage(MSI_BASICINFOWND), 0, 0, 12, 0, 0, 0); const bool compact = g_serviceType == 0 || g_serviceType == 14; const int family = compact ? 0 : 1; @@ -382,9 +383,9 @@ void UIBasicInfoWnd::DrawExpanded() { const int job = g_session.GetDisplayJob(); this->DrawTextAt(9, 36, g_session.GetJobName(job, -1), 0, family, fontHeight, 0, 0, 0 ); - this->DrawTextAt(9, 51, LookupMessage(3068), 0, 1, 14, 0, 0, 0); - this->DrawTextAt(9, 65, LookupMessage(3069), 0, 1, 14, 0, 0, 0); - this->DrawTextAt(9, 80, LookupMessage(3628), 0, 1, 14, 0, 0, 0); + this->DrawTextAt(9, 51, LookupMessage(MSI_BASICINFO_JOBLEVEL), 0, 1, 14, 0, 0, 0); + this->DrawTextAt(9, 65, LookupMessage(MSI_BASICINFO_EXP), 0, 1, 14, 0, 0, 0); + this->DrawTextAt(9, 80, LookupMessage(MSI_GUILD_AGIT_ARE_YOU_MOVE_AGIT), 0, 1, 14, 0, 0, 0); if (g_session.unknown_556C > 0) { const std::int64_t percent = static_cast(g_session.unknown_5568) * 100 / g_session.unknown_556C; @@ -406,11 +407,11 @@ void UIBasicInfoWnd::DrawExpanded() { this->DrawTextAt(173, 80, text.c_str(), 0, 1, 14, 0, 0, 0); } - std::string baseLevel = FormatOwnedString(LookupMessage(1995), g_session.m_level); + std::string baseLevel = FormatOwnedString(LookupMessage(MSI__BASIC_MSG_BASE), g_session.m_level); this->DrawTextAt(17, this->layoutOffset + 71, baseLevel.c_str(), 0, 1, 14, 0, 0, 0 ); - std::string jobLevel = FormatOwnedString(LookupMessage(1996), g_session.m_jobLevel); + std::string jobLevel = FormatOwnedString(LookupMessage(MSI__BASIC_MSG_JOB), g_session.m_jobLevel); if (g_serviceType == 12) { jobLevel = FormatOwnedString("Classe. %d", g_session.m_jobLevel); } @@ -420,7 +421,7 @@ void UIBasicInfoWnd::DrawExpanded() { char zenyBuffer[64]; std::memset(zenyBuffer, 0, sizeof(zenyBuffer)); FormatGroupedInteger(g_session.m_zeny, zenyBuffer, 64); - std::string zenyText = FormatOwnedString(LookupMessage(1997), zenyBuffer); + std::string zenyText = FormatOwnedString(LookupMessage(MSI_BASIC_MSG_ZENY), zenyBuffer); zenyText = " | " + zenyText; this->DrawRightAlignedText(this->geometry.width - 5, this->layoutOffset + 103, zenyText.c_str(), 0, 1, 14, 0, 0); const int zenyWidth = this->TextWidth(zenyText.c_str(), 0, 1, 14, 0, 0 @@ -429,7 +430,7 @@ void UIBasicInfoWnd::DrawExpanded() { std::string weightText; weightText = g_serviceType == 12 ? FormatOwnedString("Peso : %3d / %3d", g_session.m_weight, g_session.m_maxWeight) - : FormatOwnedString(LookupMessage(1992), g_session.m_weight, g_session.m_maxWeight); + : FormatOwnedString(LookupMessage(MSI_WEIGHT), g_session.m_weight, g_session.m_maxWeight); const int denominator = g_session.m_maxWeight < 1 ? 1 : g_session.m_maxWeight; const std::uint32_t weightColor = 100 * g_session.m_weight / denominator >= g_unknown173A5BC ? 255 : 0; @@ -477,7 +478,7 @@ void UIBasicInfoWnd::DrawCollapsed() { } std::string title = FormatOwnedString( - "%s %d / %s / %s %d", LookupMessage(3070), g_session.m_level, g_session.GetJobName(g_session.GetDisplayJob(), -1), LookupMessage(3627), + "%s %d / %s / %s %d", LookupMessage(MSI_ALL_ON), g_session.m_level, g_session.GetJobName(g_session.GetDisplayJob(), -1), LookupMessage(MSI_GUILD_AGIT_INVESTMENT_INFO), g_session.m_jobLevel ); this->DrawTextAt(8, 20, title.c_str(), 0, family, fontHeight, 0, 0, 0); @@ -486,7 +487,7 @@ void UIBasicInfoWnd::DrawCollapsed() { if (g_session.unknown_556C > 0) { hpColor = 0.25f > static_cast(g_session.unknown_5568) / static_cast(g_session.unknown_556C) ? 255 : 0; } - std::string hpText = FormatOwnedString("%s %d / %d", LookupMessage(3068), g_session.unknown_5568, g_session.unknown_556C); + std::string hpText = FormatOwnedString("%s %d / %d", LookupMessage(MSI_BASICINFO_JOBLEVEL), g_session.unknown_5568, g_session.unknown_556C); this->DrawTextAt(8, 36, hpText.c_str(), 0, family, fontHeight, hpColor, 0, 0); std::int64_t current = BaseExpCurrent(); @@ -506,7 +507,7 @@ void UIBasicInfoWnd::DrawCollapsed() { ) * 0.1; } - std::string expText = FormatOwnedString("| %s %.1lf%%", LookupMessage(3072), percent); + std::string expText = FormatOwnedString("| %s %.1lf%%", LookupMessage(MSI_SIMPLECASH_P), percent); this->DrawTextAt(136, 36, expText.c_str(), 0, family, fontHeight, 0, 0, 0); const int sp = *reinterpret_cast(&g_session.unknown_5570[0]); @@ -515,10 +516,10 @@ void UIBasicInfoWnd::DrawCollapsed() { if (spMax > 0) { spColor = 0.25f > static_cast(sp) / static_cast(spMax) ? 255 : 0; } - std::string spText = FormatOwnedString("%s %d / %d", LookupMessage(3069), sp, spMax); + std::string spText = FormatOwnedString("%s %d / %d", LookupMessage(MSI_BASICINFO_EXP), sp, spMax); this->DrawTextAt(8, 52, spText.c_str(), 0, family, fontHeight, spColor, 0, 0); - std::string apText = FormatOwnedString("| %s %d / %d", LookupMessage(3628), g_session.GetTraitStat(232), g_session.GetTraitStat(233)); + std::string apText = FormatOwnedString("| %s %d / %d", LookupMessage(MSI_GUILD_AGIT_ARE_YOU_MOVE_AGIT), g_session.GetTraitStat(232), g_session.GetTraitStat(233)); this->DrawTextAt(136, 52, apText.c_str(), 0, family, fontHeight, 0, 0, 0); } @@ -724,8 +725,8 @@ void UIBasicInfoWnd::Paint() { this->DrawTextAt(18, 3, "Basic Info", 0, 0, 12, 0xFFFFFF, 0, 0); this->DrawTextAt(17, 2, "Basic Info", 0, 0, 12, 0, 0, 0); } else { - this->DrawTextAt(18, 3, LookupMessage(238), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(17, 2, LookupMessage(238), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(18, 3, LookupMessage(MSI_BASICINFOWND), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(17, 2, LookupMessage(MSI_BASICINFOWND), 0, 0, 12, 0, 0, 0); } this->DrawTextAt(17, 51, "HP", 0, 1, 14, 0, 0, 0); diff --git a/Source/UI/Window/UIBattleMsgOptionWnd.cpp b/Source/UI/Window/UIBattleMsgOptionWnd.cpp index 8a5ed2708..6efd3b15e 100644 --- a/Source/UI/Window/UIBattleMsgOptionWnd.cpp +++ b/Source/UI/Window/UIBattleMsgOptionWnd.cpp @@ -14,6 +14,7 @@ #include "UI/Lists/UIScrollBar.h" #include "UI/Window/WindowManagerWindows.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -36,38 +37,38 @@ void UIBattleMsgOptionWnd::OnWheel(int delta) { // FUNCTION: fn_12510 UIBattleMsgOptionWnd::UIBattleMsgOptionWnd() : UIFrameWnd(0) { this->unknown_00B8 = -1; - this->messages.push_back(LookupMessage(0x50B)); + this->messages.push_back(LookupMessage(MSI_ST_CHAT)); this->unknown_0108 = -1; this->unknown_0110 = 1; this->unknown_010C = 0; - this->messages.push_back(LookupMessage(0x4FD)); - this->messages.push_back(LookupMessage(0x4FE)); - this->messages.push_back(LookupMessage(0x4FF)); - this->messages.push_back(LookupMessage(0x500)); - this->messages.push_back(LookupMessage(0xFBF)); - this->messages.push_back(LookupMessage(0x501)); - this->messages.push_back(LookupMessage(0x502)); - this->messages.push_back(LookupMessage(0x503)); - this->messages.push_back(LookupMessage(0x504)); - this->messages.push_back(LookupMessage(0x505)); - this->messages.push_back(LookupMessage(0x506)); - this->messages.push_back(LookupMessage(0x507)); - this->messages.push_back(LookupMessage(0x508)); - this->messages.push_back(LookupMessage(0x533)); - this->messages.push_back(LookupMessage(0x60D)); - this->messages.push_back(LookupMessage(0x652)); - this->messages.push_back(LookupMessage(0x653)); - this->messages.push_back(LookupMessage(0x654)); - this->messages.push_back(LookupMessage(0x656)); - this->messages.push_back(LookupMessage(0x657)); - this->messages.push_back(LookupMessage(0x93D)); - this->messages.push_back(LookupMessage(0xBA4)); - this->messages.push_back(LookupMessage(0xFBC)); - this->messages.push_back(LookupMessage(0xFBE)); + this->messages.push_back(LookupMessage(MSI_VIEW_CHAT_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_WHISPER_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_PARTY_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_GUILD_MSG)); + this->messages.push_back(LookupMessage(MSI_REFINING_POSSIBLE)); + this->messages.push_back(LookupMessage(MSI_VIEW_GET_ITEM_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_EQUIP_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_CHANGE_STATUS_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_GET_ITEM_PARTY_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_CHANGE_STATUS_PARTY_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_FAIL_SKILL_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_PARTY_SETUP_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_DAMAGED_EQUIP_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_SIEGE_INFO_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_SEEK_PARTY)); + this->messages.push_back(LookupMessage(MSI_VIEW_COMBAT_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_PARTY_COMBAT_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_GETTING_EXP_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_QUEST_INFO_MSG)); + this->messages.push_back(LookupMessage(MSI_VIEW_BATTLEFIELD_INFO_MSG)); + this->messages.push_back(LookupMessage(MSI_STR_MAKECHARACTER)); + this->messages.push_back(LookupMessage(MSI_RESULT_FAILED_ASSISTANT_POS)); + this->messages.push_back(LookupMessage(MSI_ALLY_CHAT_MSG)); + this->messages.push_back(LookupMessage(MSI_PAY_CONFIRM_BY_NYANGVINE_FRUIT)); - this->text = LookupMessage(0x509); + this->text = LookupMessage(MSI_BATTLE_CHAT_WND_OPTION); } // OFFSET: 0x0091EC40 @@ -96,7 +97,7 @@ int UIBattleMsgOptionWnd::RowAt(int x, int y) { int row = 0; int index = 0; for (std::vector::iterator it = this->messages.begin(); it != this->messages.end(); ++it, ++index) { - if (std::strcmp(LookupMessage(0x60D), *it) != 0 && index >= this->unknown_00C4) { + if (std::strcmp(LookupMessage(MSI_VIEW_SEEK_PARTY), *it) != 0 && index >= this->unknown_00C4) { if (row == (y - 17) / 20 + column) { return index; } @@ -214,7 +215,7 @@ void UIBattleMsgOptionWnd::Paint() { int row = 1; int y = 22; for (std::vector::iterator it = this->messages.begin(); it != this->messages.end(); ++it, ++index) { - if (std::strcmp(LookupMessage(0x60D), *it) == 0 || index < this->unknown_00C4) { + if (std::strcmp(LookupMessage(MSI_VIEW_SEEK_PARTY), *it) == 0 || index < this->unknown_00C4) { continue; } @@ -271,7 +272,7 @@ int UIBattleMsgOptionWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a this->m_allCheckBox->geometry.unknown_0030 = this->unknown_010C; this->m_allCheckBox->Invalidate(); this->text = info.name; - this->text += LookupMessage(0x6F1); + this->text += LookupMessage(MSI_SET_CHATINFO); this->Invalidate(); } this->UpdateScrollBar(); diff --git a/Source/UI/Window/UIChangeNameWnd.cpp b/Source/UI/Window/UIChangeNameWnd.cpp index 7c43b404d..a7641284e 100644 --- a/Source/UI/Window/UIChangeNameWnd.cpp +++ b/Source/UI/Window/UIChangeNameWnd.cpp @@ -20,6 +20,7 @@ #include "Network/Connection/Connection.h" #include "Network/Packets/PacketLengths.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -102,26 +103,26 @@ int UIChangeNameWnd::SendMsg(UIWindow*, int message, std::intptr_t a, std::intpt switch (a) { case ID_OK: { if (g_navigationLinkParser->HasLink(this->m_edit->Text()) == true) { - g_windowMgr.Confirm(LookupMessage(2812), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STYLING_SHOP_OPEN_COUPON), 0, true, false, 0, "Message", 280, 120, 0); this->m_edit->SetText(""); return 0; } std::string name(this->m_edit->Text()); if (name.find('\n', 0) != std::string::npos) { - g_windowMgr.Confirm(LookupMessage(3334), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_TOKENAGENCY_SERVER_CONNECTION_FAILED), 0, true, false, 0, "Message", 280, 120, 0); this->m_edit->SetText(""); return 0; } if (g_serviceType == 1 && !ValidateCharacterName(this->m_edit->Text())) { - g_windowMgr.Confirm(LookupMessage(2018), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CHARACTERNAME_ERROR), 0, true, false, 0, "Message", 280, 120, 0); this->m_edit->SetText(""); return 0; } if (this->m_edit->Length() < 4) { - g_windowMgr.Confirm(LookupMessage(21), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_ENTER_NAME_MORE_THAN_4_CHAR), 0, true, false, 0, "Message", 280, 120, 0); return 0; } @@ -129,16 +130,16 @@ int UIChangeNameWnd::SendMsg(UIWindow*, int message, std::intptr_t a, std::intpt const bool blank = g_session.IsBlankString(this->m_edit->Text()); if (!allowed || blank) { if (!allowed) { - g_windowMgr.Confirm(LookupMessage(20), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BAD_NAME), 0, true, false, 0, "Message", 280, 120, 0); } if (blank) { - g_windowMgr.Confirm(LookupMessage(199), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NO_SPACE_IN_NAME), 0, true, false, 0, "Message", 280, 120, 0); } return 0; } if (this->m_edit->Length() >= 24 || !this->IsNameWithinLimit(this->m_edit->Text(), 24)) { - g_windowMgr.Confirm(LookupMessage(531), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NAMELENGTH_TOO_LONG), 0, true, false, 0, "Message", 280, 120, 0); this->m_edit->SetText(""); return 0; } @@ -162,7 +163,7 @@ int UIChangeNameWnd::SendMsg(UIWindow*, int message, std::intptr_t a, std::intpt } char text[300]; - std::sprintf(text, LookupMessage(1213), this->m_info.name); + std::sprintf(text, LookupMessage(MSI_CONFIRM_TO_CHANGE_NAME), this->m_info.name); if (g_windowMgr.Confirm(text, 2, false, false, 0, "Message", 280, 120, 0) == 187) { CharacterRenamePacket packet; packet.id = 0x8FC; diff --git a/Source/UI/Window/UIEscOptionWnd.cpp b/Source/UI/Window/UIEscOptionWnd.cpp index f8863f639..2045ade5f 100644 --- a/Source/UI/Window/UIEscOptionWnd.cpp +++ b/Source/UI/Window/UIEscOptionWnd.cpp @@ -11,6 +11,7 @@ #include "Utility/Text/FormatString.h" #include +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x0091F4F0 // FUNCTION: fn_12638 @@ -37,7 +38,7 @@ void UIEscOptionWnd::OnCreate(int, int) { // OFFSET: 0x0092BDE0 // FUNCTION: fn_12662 void UIEscOptionWnd::Paint() { - this->m_titleHeight = this->DrawTitleBar(true, FormatOwnedString("%s (%s)", LookupMessage(1483), ShortcutFilename(g_session.m_gid).c_str()).c_str(), 0); + this->m_titleHeight = this->DrawTitleBar(true, FormatOwnedString("%s (%s)", LookupMessage(MSI_ESC_OPTIONWND), ShortcutFilename(g_session.m_gid).c_str()).c_str(), 0); this->DrawPanelBackground(this->m_titleHeight, 0, ""); } @@ -127,7 +128,7 @@ int UIEscOptionWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argumen } break; case ID_RETURN_TO_LOGIN: - if (g_windowMgr.Confirm(LookupMessage(0x60C), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_MOVETO_SAVEPOINT), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { mode->SendMsg(MM_RESTART, 0, 0, 0, 0); g_windowMgr.CloseWindow(WID_ESCOPTIONWND); } diff --git a/Source/UI/Window/UIFrameWnd.cpp b/Source/UI/Window/UIFrameWnd.cpp index 6afd039fe..66ef34774 100644 --- a/Source/UI/Window/UIFrameWnd.cpp +++ b/Source/UI/Window/UIFrameWnd.cpp @@ -50,6 +50,7 @@ #include "UI/Window/UIResizer.h" #include "UI/Window/UINewSelectCharWnd.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -478,7 +479,7 @@ int UIAllyGuildAcceptWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a std::string text = "("; text += reinterpret_cast(b); text += ")"; - text += LookupMessage(393); + text += LookupMessage(MSI_SUGGEST_ALLY_GUILD); this->viewer->Clear(); this->viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(text.c_str()), 38, 0, 0); return 0; @@ -518,13 +519,13 @@ int UIBank_NewWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: if (!this->m_amountEdit) { return 0; } - this->m_amountEdit->SetText(LookupMessage(0xADA)); + this->m_amountEdit->SetText(LookupMessage(MSI_BANK_1_MINI)); g_windowMgr.SetFocus(this->m_amountEdit); return 0; case 0x1CE: { PACKET_CZ_BANK_TRANSACTION packet; if (g_modeMgr.GetGameMode() && static_cast(g_modeMgr.GetGameMode())->IsMenuWindowOpen() == true) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x9B9)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_WRONG_GUN)), 255, 0, 0, 0); return 0; } const long long amount = this->TransactionAmount(1); @@ -532,11 +533,11 @@ int UIBank_NewWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: return 0; } if (g_session.m_zeny < amount) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x998)), 255, 0, 0, 0); - this->m_status = LookupMessage(0xAE1); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BANK_OVER_INT_MAX)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_ITEMMOVEINFO_DROP); } else if (g_session.m_bankBalance + amount > 0x7FFFFFFFLL) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xAE3)), 255, 0, 0, 0); - this->m_status = LookupMessage(0xADF); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEMMOVEINFO_CART)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_BANK_6_MINI); } else { packet.amount = static_cast(amount); packet.id = 0x9A7; @@ -549,7 +550,7 @@ int UIBank_NewWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: case 0x1CF: { PACKET_CZ_BANK_TRANSACTION packet; if (g_modeMgr.GetGameMode() && static_cast(g_modeMgr.GetGameMode())->IsMenuWindowOpen() == true) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x9B9)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_WRONG_GUN)), 255, 0, 0, 0); return 0; } const long long amount = this->TransactionAmount(0); @@ -557,11 +558,11 @@ int UIBank_NewWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: return 0; } if (g_session.m_bankBalance < amount) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x997)), 255, 0, 0, 0); - this->m_status = LookupMessage(0xAE2); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BANK_WITHDRAW_ZERO)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_ITEMMOVEINFO_STORE); } else if (static_cast(g_session.m_zeny + static_cast(amount)) > 0x7FFFFFFFu) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x99B)), 255, 0, 0, 0); - this->m_status = LookupMessage(0xAE3); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_JOBPLUSEXP_VALUE)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_ITEMMOVEINFO_CART); } else { packet.amount = static_cast(amount); packet.id = 0x9A9; @@ -675,7 +676,7 @@ int UIChatRoomWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: } if (g_navigationLinkParser->HasLink(std::string(this->edit->Text()))) { this->edit->SetText(""); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3042)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CLOSE)), 255, 0, 0, 0); return 0; } @@ -697,7 +698,7 @@ int UIChatRoomWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: } if (g_serviceType == 1 && !ValidateCharacterName(buffer)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(190)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENGLISHONLY)), 255, 0, 0, 0); return 0; } @@ -765,7 +766,7 @@ int UIChatRoomWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: g_windowMgr.EnsureWindow(WID_CHATROOMCHANGEWND)->SendMsg(nullptr, UM_SETINFO, reinterpret_cast(&mode->unknown_03C8), 0, 0, 0); return 0; case 3: - g_windowMgr.Confirm(LookupMessage(191), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NOTSUPPORTEDYET), 0, true, false, 0, "Message", 280, 120, 0); return 0; case 11: this->SaveChatLog(); @@ -806,27 +807,27 @@ int UIChatRoomWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: switch (rank) { case 0: if (!(target == self)) { - this->unknown_0114.push_back(std::pair(std::string(LookupMessage(127)), 0)); - this->unknown_0114.push_back(std::pair(std::string(LookupMessage(128)), 1)); + this->unknown_0114.push_back(std::pair(std::string(LookupMessage(MSI_BAN)), 0)); + this->unknown_0114.push_back(std::pair(std::string(LookupMessage(MSI_GIVE_GIVE_ROOM_POWER)), 1)); } - this->unknown_0114.push_back(std::pair(std::string(LookupMessage(129)), 3)); + this->unknown_0114.push_back(std::pair(std::string(LookupMessage(MSI_SEE_INFORMATION_OF_CHARACTER)), 3)); if (g_serviceMode != 3 && !g_windowMgr.IsFriend(target.c_str()) && !(target == self)) { - this->unknown_0114.push_back(std::pair(std::string(LookupMessage(358)), 21)); + this->unknown_0114.push_back(std::pair(std::string(LookupMessage(MSI_ADD_TO_FRIEND_CHAR_LIST)), 21)); } - this->unknown_0114.push_back(std::pair(std::string(LookupMessage(126)), 2)); + this->unknown_0114.push_back(std::pair(std::string(LookupMessage(MSI_CHANGE_ROOM_SETTING)), 2)); break; case 1: - this->unknown_0114.push_back(std::pair(std::string(LookupMessage(129)), 3)); + this->unknown_0114.push_back(std::pair(std::string(LookupMessage(MSI_SEE_INFORMATION_OF_CHARACTER)), 3)); if (!g_windowMgr.IsFriend(target.c_str()) && !(target == self) && g_serviceMode != 3) { - this->unknown_0114.push_back(std::pair(std::string(LookupMessage(358)), 21)); + this->unknown_0114.push_back(std::pair(std::string(LookupMessage(MSI_ADD_TO_FRIEND_CHAR_LIST)), 21)); } break; } } else { if (rank == 0) { - this->unknown_0114.push_back(std::pair(std::string(LookupMessage(126)), 2)); + this->unknown_0114.push_back(std::pair(std::string(LookupMessage(MSI_CHANGE_ROOM_SETTING)), 2)); } - this->unknown_0114.push_back(std::pair(std::string(LookupMessage(312)), 11)); + this->unknown_0114.push_back(std::pair(std::string(LookupMessage(MSI_WRITE_CHAT_TO_FILE)), 11)); } } @@ -1029,7 +1030,7 @@ int UIChatRoomWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: std::memcpy(&header, data, sizeof(header)); if (header.tag == 0x5014) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(64)), 0xFFFF00, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ROOM_IS_MADE)), 0xFFFF00, 0, 0, 0); ChatRoomTitleInfo* settings = reinterpret_cast(&static_cast(g_modeMgr.GetGameMode())->unknown_03C8); unsigned offset = 6; while (offset < size) { diff --git a/Source/UI/Window/UIHotKeyWnd.cpp b/Source/UI/Window/UIHotKeyWnd.cpp index c33da4c6d..9b892f05a 100644 --- a/Source/UI/Window/UIHotKeyWnd.cpp +++ b/Source/UI/Window/UIHotKeyWnd.cpp @@ -29,6 +29,7 @@ #include "UI/Window/WindowManagerWindows.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -84,7 +85,7 @@ void UIHotKeyWnd::OnCreate(int, int) { this->m_balloon = new UITransBalloonText(); this->m_balloon->SetSize(this->geometry.width, 20); - this->m_balloon->SetText(LookupMessage(1486), 60); + this->m_balloon->SetText(LookupMessage(MSI_HOTKEYWND_NOTICE1), 60); this->m_balloon->Show(0); g_windowMgr.AddRendered(this->m_balloon); @@ -93,7 +94,7 @@ void UIHotKeyWnd::OnCreate(int, int) { this->unknown_0100->Move(this->unknown_00C8, this->unknown_00CC + this->unknown_00BC); this->AddChild(this->unknown_0100); - const char* tabs[4] = {LookupMessage(1491), LookupMessage(3595), LookupMessage(1492), LookupMessage(1493)}; + const char* tabs[4] = {LookupMessage(MSI_HOTKEYWND_TAB1), LookupMessage(MSI_HOTKEYGUIDEWND_UP), LookupMessage(MSI_HOTKEYWND_TAB2), LookupMessage(MSI_HOTKEYWND_TAB3)}; for (int index = 0; index < 4; ++index) { this->unknown_0100->AddTab(tabs[index], ""); } @@ -130,7 +131,7 @@ void UIHotKeyWnd::OnCreate(int, int) { UICheckBox* checkBox = new UICheckBox(); this->unknown_0108 = checkBox; checkBox->SetSize(150, 12); - checkBox->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(1775)); + checkBox->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_CHATMODE_ONOFF)); checkBox->Move(80, this->geometry.height - 22); checkBox->SetChecked(g_windowMgr.chatModeChanged); this->AddChild(this->unknown_0108); @@ -143,7 +144,7 @@ void UIHotKeyWnd::OnCreate(int, int) { prevButton->SetSize(prevButton->BitmapWidth(), prevButton->BitmapHeight()); prevButton->Move(this->geometry.width - 80, 25); prevButton->Enable(0); - prevButton->SetTooltip(LookupMessage(1053)); + prevButton->SetTooltip(LookupMessage(MSI_PREV_PAGE)); prevButton->SetId(316); this->AddChild(this->m_prevButton); @@ -155,7 +156,7 @@ void UIHotKeyWnd::OnCreate(int, int) { nextButton->SetSize(nextButton->BitmapWidth(), nextButton->BitmapHeight()); nextButton->Move(this->geometry.width - 20, 25); nextButton->Enable(0); - nextButton->SetTooltip(LookupMessage(1054)); + nextButton->SetTooltip(LookupMessage(MSI_NEXT_PAGE)); nextButton->SetId(317); this->AddChild(this->m_nextButton); } @@ -212,7 +213,7 @@ void UIHotKeyWnd::SaveHotkeys() { g_session.m_hotkeyScript->Call("SaveUserHotKeys2", "s", path.c_str()); char message[500]; std::memset(message, 0, sizeof(message)); - StringFormat(message, sizeof(message), static_cast(-1), "%s", LookupMessage(3572)); + StringFormat(message, sizeof(message), static_cast(-1), "%s", LookupMessage(MSI_TRANSLATE_TITLE)); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFFFF, 1, 0, 0); } } @@ -265,7 +266,7 @@ void UIHotKeyWnd::OnLBtnDown(int x, int y) { int screenX = 0; int screenY = 0; this->ToScreen(screenX, screenY); - const char* text = LookupMessage(0x5CE); + const char* text = LookupMessage(MSI_HOTKEYWND_NOTICE1); this->m_balloon->SetText(text, 0x3C); this->m_balloon->m_textColor = 0xFFFFFF; this->m_balloon->m_outlineColor = 0; @@ -379,7 +380,7 @@ void UIHotKeyWnd::Paint() { } - this->unknown_00BC = this->DrawTitleBar(true, LookupMessage(1494), 0); + this->unknown_00BC = this->DrawTitleBar(true, LookupMessage(MSI_HOTKEYWND_TITLE), 0); this->unknown_00C0 = this->DrawButtonBar(2, 0, 1); this->DrawPanelBackground(this->unknown_00BC, 0, ""); @@ -401,7 +402,7 @@ void UIHotKeyWnd::Paint() { std::string text = entry.info.text; if (text.empty()) { - text = entry.info.key1 ? LookupMessage(1700) : LookupMessage(1518); + text = entry.info.key1 ? LookupMessage(MSI_HOTKEY_UNKOWN) : LookupMessage(MSI_HOTKEY_NOTHING); } const int halfWidth = this->geometry.width / 2; @@ -541,7 +542,7 @@ bool UIHotKeyWnd::AssignSelectedHotkey(int mode) { const int balloonY = (this->m_selectedRow % this->m_rowsPerPage - 1) * this->unknown_00D0 + this->unknown_00CC + this->unknown_00C4 + this->unknown_00BC; - this->m_balloon->SetText(LookupMessage(0x5CE), 0x3C); + this->m_balloon->SetText(LookupMessage(MSI_HOTKEYWND_NOTICE1), 0x3C); this->m_balloon->m_textColor = 0xFFFFFF; this->m_balloon->m_outlineColor = 0; this->m_balloon->Move((this->geometry.width - this->m_balloon->geometry.width) / 2 + screenX, screenY + balloonY); @@ -645,7 +646,7 @@ int UIHotKeyWnd::CheckHotkeyConflict() { return 1; } - StringFormat(message, sizeof(message), static_cast(-1), LookupMessage(0x5D1), info.description.c_str()); + StringFormat(message, sizeof(message), static_cast(-1), LookupMessage(MSI_HOTKEYWND_NOTICE4), info.description.c_str()); if (g_windowMgr.Confirm(message, 2, true, false, 0, "Message", 280, 120, 0) != 187) { return 1; } diff --git a/Source/UI/Window/UIJobListWnd.cpp b/Source/UI/Window/UIJobListWnd.cpp index 696ffcc7b..bfa21f68c 100644 --- a/Source/UI/Window/UIJobListWnd.cpp +++ b/Source/UI/Window/UIJobListWnd.cpp @@ -15,6 +15,7 @@ #include "UI/Text/UIStaticText.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -127,7 +128,7 @@ int UIJobListWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1 } if (selected == 0) { - g_windowMgr.Confirm(LookupMessage(1767), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PARTY_BOOKING_ERR1), 0, true, false, 0, "Message", 280, 120, 0); return 0; } diff --git a/Source/UI/Window/UIMessageBox.cpp b/Source/UI/Window/UIMessageBox.cpp index bbf599e05..66e11eac6 100644 --- a/Source/UI/Window/UIMessageBox.cpp +++ b/Source/UI/Window/UIMessageBox.cpp @@ -99,6 +99,7 @@ #include "Resource/PaletteResource.h" #include "Contents/Jobs/JobInheritance.h" +#include "Resource/MSGSTRINGID.h" // GLOBAL: gl_25153 static const std::string s_messageBoxItemLinkOpening = ""; @@ -319,7 +320,7 @@ void UILoginWnd::Paint() { void UIMakeCharWnd::Paint() { CBitmapRes* background = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\login_interface\\win_make2.bmp"))); this->DrawBitmap(0, 17, background, false); - this->DrawTitleBar(true, LookupMessage(0x940), 0); + this->DrawTitleBar(true, LookupMessage(MSI_SELECT_SEX), 0); this->DrawButtonBar(2, 0, 1); SpriteAtlasRecord record{}; @@ -386,12 +387,12 @@ void UIMerInfoWnd::Paint() { const int titleId = kind - 6017 <= 9 ? 1181 : kind - 6037 <= 9 ? 1182 : kind - 6027 <= 9 ? 1183 : 1367; std::sprintf(title, LookupMessage(titleId)); this->DrawTextAt(5, 2, title, 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 24, LookupMessage(407), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 47, LookupMessage(408), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 111, LookupMessage(1184), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 135, LookupMessage(1185), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 159, LookupMessage(1186), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(230, 133, LookupMessage(1187), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 24, LookupMessage(MSI_NAME), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 47, LookupMessage(MSI_LEVEL), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 111, LookupMessage(MSI_LEFT_TIME), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 135, LookupMessage(MSI_MER_FRIENDLY), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 159, LookupMessage(MSI_MER_CALLCOUNT), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(230, 133, LookupMessage(MSI_MER_KILL), 0, 0, 12, 0, 0, 0); char number[24] = {}; int bytes = std::sprintf(number, "%d", g_session.m_mercenaryStats[0]); this->DrawRightAlignedText(79, 24, number, bytes, 1, 14, 0, 0); @@ -420,7 +421,7 @@ void UIMerInfoWnd::Paint() { this->DrawTextAt(218, 70, text, bytes, 1, 14, 0, 0, 0); bytes = std::sprintf(text, "%d / %d", g_session.m_mercenarySp, g_session.m_mercenaryMaxSp); this->DrawTextAt(218, 85, text, bytes, 1, 14, 0, 0, 0); - std::strftime(text, 128, LookupMessage(1260), _localtime32(&g_session.m_mercenaryExpiration)); + std::strftime(text, 128, LookupMessage(MSI_TIME_TYPE2), _localtime32(&g_session.m_mercenaryExpiration)); this->DrawTextAt(155, 111, text, static_cast(std::strlen(text)), 0, 12, 255, 0, 0); bytes = std::sprintf(text, "%d", g_session.m_mercenaryLoyalty); this->DrawTextAt(170, 133, text, bytes, 1, 14, 0, 0, 0); @@ -436,56 +437,56 @@ void UIMerInfoWnd::Paint() { long long UIBank_NewWnd::TransactionAmount(unsigned char deposit) { std::string text = this->m_amountEdit->Text(); this->m_amountEdit->SetText(""); - if (text == std::string(LookupMessage(2778))) { + if (text == std::string(LookupMessage(MSI_BANK_1_MINI))) { const long long cash = g_session.m_zeny; const long long balance = g_session.m_bankBalance; const long long excess = cash + balance > 0x7FFFFFFF ? cash + balance - 0x7FFFFFFF : 0; if (deposit) { if (balance >= 0x7FFFFFFF) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2787)), 255, 0, 0, 0); - this->m_status = LookupMessage(2783); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEMMOVEINFO_CART)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_BANK_6_MINI); return 0; } if (g_session.m_zeny == 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2770)), 255, 0, 0, 0); - this->m_status = LookupMessage(2780); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BANK_3)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_BANK_3_MINI); return 0; } const long long amount = cash - excess; if (amount < 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2465)), 255, 0, 0, 0); - this->m_status = LookupMessage(2780); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOT_VALID_AUTH_TICKET)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_BANK_3_MINI); return 0; } return amount; } if (balance == 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2770)), 255, 0, 0, 0); - this->m_status = LookupMessage(2780); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BANK_3)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_BANK_3_MINI); return 0; } const long long amount = balance - excess; return cash + amount > 0x7FFFFFFF ? static_cast(0x7FFFFFFF - g_session.m_zeny) : amount; } if (text.empty()) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2779)), 255, 0, 0, 0); - this->m_status = LookupMessage(2781); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BANK_2_MINI)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_BANK_4_MINI); return 0; } if (!this->IsNumeric(text)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2488)), 255, 0, 0, 0); - this->m_status = LookupMessage(2782); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_COMPARISON)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_BANK_5_MINI); return 0; } const long long amount = _atoi64(text.c_str()); if (amount > 0x7FFFFFFF) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2768)), 255, 0, 0, 0); - this->m_status = LookupMessage(2783); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BANK_1)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_BANK_6_MINI); return 0; } if (amount < 1) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2769)), 255, 0, 0, 0); - this->m_status = LookupMessage(2784); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BANK_2)), 255, 0, 0, 0); + this->m_status = LookupMessage(MSI_BANK_7_MINI); return 0; } return amount; @@ -528,16 +529,16 @@ bool UIBank_NewWnd::IsNumeric(std::string text) { // FUNCTION: fn_11760 void UIBank_NewWnd::Paint() { auto* background = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\bank\\bg_bank.bmp"))); - this->DrawBitmap(0, this->DrawTitleBar(true, LookupMessage(2771), 0), background, false); + this->DrawBitmap(0, this->DrawTitleBar(true, LookupMessage(MSI_BANK_4), 0), background, false); char number[260] = {}; char text[260] = {}; - this->DrawTextAt(30, 29, LookupMessage(2772), 0, 0, 12, 0, 0, 0); - const int x = this->VerticalTextHeight(LookupMessage(2772), 0, 0, 12, 0) + 43; + this->DrawTextAt(30, 29, LookupMessage(MSI_BANK_5), 0, 0, 12, 0, 0, 0); + const int x = this->VerticalTextHeight(LookupMessage(MSI_BANK_5), 0, 0, 12, 0) + 43; FormatGroupedInteger(g_session.m_bankBalance, number, 260); std::sprintf(text, "%s z", number); this->DrawTextAt(x, 29, text, 0, 0, 11, 0, 0, 0); - this->DrawTextAt(30, 46, LookupMessage(2773), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(30, 46, LookupMessage(MSI_BANK_6), 0, 0, 12, 0, 0, 0); FormatGroupedInteger(g_session.m_zeny, number, 260); std::sprintf(text, "%s z", number); this->DrawTextAt(x, 46, text, 0, 0, 11, 0, 0, 0); @@ -722,7 +723,7 @@ void UIMessageBox::Configure( this->m_message0 = 184; auto* link = new UITextButton(); - link->Configure(LookupMessage(3445), 0x00F4934A, 0, 12, 0, 0); + link->Configure(LookupMessage(MSI_FRIEND_ALREADY_FRIEND), 0x00F4934A, 0, 12, 0, 0); link->m_hoverColor = 0x00FF7864; link->Move(14, 70); link->SetId(426); @@ -791,7 +792,7 @@ int UIMessageBox::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i return 0; case UM_TEXT_LBTN_UP: if (a == 426) { - ShellExecuteA(hWnd, "open", LookupMessage(3445), nullptr, nullptr, SW_SHOWNORMAL); + ShellExecuteA(hWnd, "open", LookupMessage(MSI_FRIEND_ALREADY_FRIEND), nullptr, nullptr, SW_SHOWNORMAL); } return 0; @@ -979,7 +980,7 @@ int UIMerInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i case ID_FIRE_MER: { CMode* mode = g_modeMgr.GetGameMode(); - if (g_windowMgr.Confirm(LookupMessage(1370), 2, false, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DELETE_MER), 2, false, false, 0, "Message", 280, 120, 0) == 187) { mode->SendMsg(MM_COMMAND_MER, 2, 0, 0, 0); g_windowMgr.CloseWindow(WID_MERINFOWND); g_windowMgr.CloseWindow(WID_SKILLLISTWND_SKILLTAB_1); @@ -1058,34 +1059,34 @@ void UILoginOTPWnd::OnCreate(int, int) { UIStaticText* label = new UIStaticText(); label->SetSize(80, 20); - label->Move(141 - this->TextWidth(LookupMessage(3410), 0, 0, 12, 0, 0), 67); - label->SetText(LookupMessage(3410), 0); + label->Move(141 - this->TextWidth(LookupMessage(MSI_ID), 0, 0, 12, 0, 0), 67); + label->SetText(LookupMessage(MSI_ID), 0); this->AddChild(label); this->timerText = new UIStaticText(); this->timerText->SetSize(80, 20); this->timerText->Move(150, 66); - this->timerText->SetText(LookupMessage(3410), 0); + this->timerText->SetText(LookupMessage(MSI_ID), 0); this->timerText->SetFont(0, 14, 1, 0); this->timerText->SetColor(205, 19, 41); this->AddChild(this->timerText); label = new UIStaticText(); label->SetSize(200, 40); - label->SetText(LookupMessage(3385), 0); - label->Move(static_cast(141.0f - this->TextWidth(LookupMessage(3385), 0, 0, 12, 0, 0) * 0.5f), 28); + label->SetText(LookupMessage(MSI_JOBNAME_TAEKWON), 0); + label->Move(static_cast(141.0f - this->TextWidth(LookupMessage(MSI_JOBNAME_TAEKWON), 0, 0, 12, 0, 0) * 0.5f), 28); this->AddChild(label); label = new UIStaticText(); label->SetSize(200, 40); - label->SetText(LookupMessage(3386), 0); - label->Move(static_cast(141.0f - this->TextWidth(LookupMessage(3386), 0, 0, 12, 0, 0) * 0.5f), 42); + label->SetText(LookupMessage(MSI_TO_BLOCK_WHISPER), 0); + label->Move(static_cast(141.0f - this->TextWidth(LookupMessage(MSI_TO_BLOCK_WHISPER), 0, 0, 12, 0, 0) * 0.5f), 42); this->AddChild(label); label = new UIStaticText(); label->SetSize(80, 20); - label->Move(74 - this->TextWidth(LookupMessage(3255), 0, 0, 12, 0, 0), 98); - label->SetText(LookupMessage(3255), 0); + label->Move(74 - this->TextWidth(LookupMessage(MSI_SERVER_PROPERTY_ADULT_NO_COUNT), 0, 0, 12, 0, 0), 98); + label->SetText(LookupMessage(MSI_SERVER_PROPERTY_ADULT_NO_COUNT), 0); label->SetFont(0, 12, 1, 0); label->SetColor(64, 64, 64); this->AddChild(label); @@ -1110,7 +1111,7 @@ void UILoginOTPWnd::OnCreate(int, int) { button->Move(186, 92); button->SetId(382); { - const std::string text(LookupMessage(3384)); + const std::string text(LookupMessage(MSI_PRIVATE_AIRPLANE_WARNNING_SELECT_NPC)); button->text = text; button->Invalidate(); } @@ -1131,7 +1132,7 @@ void UILoginOTPWnd::Paint() { thread_local EncryptedName name(source); auto* background = static_cast(resources.Load(Resolve(name.Text()))); this->DrawBitmap(0, 0, background, false); - this->DrawTitleBar(true, LookupMessage(3254), 280); + this->DrawTitleBar(true, LookupMessage(MSI_PARTY_DO_YOU_WANT_BREAKING_UP), 280); } // OFFSET: 0x008C3620 @@ -1429,7 +1430,7 @@ void UINoticeWnd::OnWheel(int delta) { // OFFSET: 0x008A8AD0 // FUNCTION: fn_11715 void UIPayConfirmWnd::Configure(const std::string& text, int itemId) { - reinterpret_cast(this)->Configure(text.c_str(), 2, true, 0, LookupMessage(0xFDF), 0xDC, 0x85, 1, nullptr); + reinterpret_cast(this)->Configure(text.c_str(), 2, true, 0, LookupMessage(MSI_TITLE_QUEST_BOARD_INFO), 0xDC, 0x85, 1, nullptr); this->viewer->Resize(0xA5, 0x50); this->viewer->Move(7, 0x17); @@ -1495,29 +1496,29 @@ void UIReplayRECControlWnd::Paint() { DrawFilledRoundedBorder(*this, 0, 34, this->geometry.width, this->geometry.height - 34, 0xDEDEDE); DrawFilledRoundedBorder(*this, 4, 38, this->geometry.width - 8, 95, 0xFFFFFF); DrawFilledRoundedBorder(*this, 4, 138, this->geometry.width - 8, 57, 0xFFFFFF); - DrawOutlinedText(*this, 10, 42, LookupMessage(1973), 0, 0x7F3C00, 0xFFFFFF, 0, 12, 1, 0); - DrawOutlinedText(*this, 10, 142, LookupMessage(1974), 0, 0x7F3C00, 0xFFFFFF, 0, 12, 1, 0); + DrawOutlinedText(*this, 10, 42, LookupMessage(MSI_REPLAY_SETREPLAYSAVEDATA), 0, 0x7F3C00, 0xFFFFFF, 0, 12, 1, 0); + DrawOutlinedText(*this, 10, 142, LookupMessage(MSI_REPLAY_SETRECOPTION), 0, 0x7F3C00, 0xFFFFFF, 0, 12, 1, 0); } } // OFFSET: 0x008BA010 // FUNCTION: fn_11776 void UISelectReplayDataWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(2084), 0); + this->DrawTitleBar(true, LookupMessage(MSI_NOT_MOVEABLE_TRADE), 0); this->DrawPanelBackground(17, 0, ""); this->DrawButtonBar(2, 0, 1); this->FillRegion(6, 32, 268, 77, 0xFFE7E7E7); - this->DrawTextAt(6, 19, LookupMessage(2085), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(6, 112, LookupMessage(2086), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(6, 19, LookupMessage(MSI_GUILD_DISBAND), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(6, 112, LookupMessage(MSI_PUT_DISBAND_GUILDNAME), 0, 0, 12, 0, 0, 0); } // OFFSET: 0x008BA0B0 // FUNCTION: fn_11777 void UISelectServerWnd::Paint() { - const char* title = LookupMessage(2082); + const char* title = LookupMessage(MSI_REPLAY_STR_FILEINFO); if (g_modeMgr.GetLoginMode()->cursorType == 30) { - title = LookupMessage(2083); + title = LookupMessage(MSI_REPLAY_STR_FILELIST); } this->DrawTitleBar(true, title, 0); @@ -1531,10 +1532,10 @@ void UITalkboxTrapInputWnd::Paint() { const int titleHeight = this->DrawTitleBar(false, "", 0); this->DrawPanelBackground(titleHeight, 0, ""); this->DrawButtonBar(2, 0, 1); - this->DrawTextAt(17, 3, LookupMessage(435), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(16, 2, LookupMessage(435), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(17, 23, LookupMessage(436), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(16, 22, LookupMessage(436), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(17, 3, LookupMessage(MSI_TALKBOX_WINDOW), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(16, 2, LookupMessage(MSI_TALKBOX_WINDOW), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(17, 23, LookupMessage(MSI_TALKBOX_WINDOW_MSG), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(16, 22, LookupMessage(MSI_TALKBOX_WINDOW_MSG), 0, 0, 12, 0, 0, 0); } // OFFSET: 0x008BA660 @@ -1575,7 +1576,7 @@ void UIMakeCharWnd::InitHairControls() { this->unknown_02C4->SetSize(this->unknown_02C4->BitmapWidth(), this->unknown_02C4->BitmapHeight()); this->unknown_02C4->Move(20, 80); this->unknown_02C4->SetId(227); - this->unknown_02C4->SetTooltip(LookupMessage(0x87E)); + this->unknown_02C4->SetTooltip(LookupMessage(MSI_VIEW_BEFORE_WORLDINFO_TITLE)); this->AddChild(this->unknown_02C4); this->unknown_02C8 = new (std::nothrow) UIBitmapButton(); @@ -1585,7 +1586,7 @@ void UIMakeCharWnd::InitHairControls() { this->unknown_02C8->SetSize(this->unknown_02C4->BitmapWidth(), this->unknown_02C4->BitmapHeight()); this->unknown_02C8->Move(110, 80); this->unknown_02C8->SetId(226); - this->unknown_02C8->SetTooltip(LookupMessage(0x87F)); + this->unknown_02C8->SetTooltip(LookupMessage(MSI_VIEW_BEFORE_SERVERINFO)); this->AddChild(this->unknown_02C8); this->unknown_02D4 = this->m_info.head - 1; @@ -1852,9 +1853,9 @@ void UIReplayRECControlWnd::OnCreate(int, int) { "replay_recrun_1", "replay_recrun_2", "replay_recrun_3", "replay_recrun_4", "replay_recrun_5", }; const char* tooltips[16] = { - LookupMessage(0x7B9), LookupMessage(0x7BA), LookupMessage(0x7BB), LookupMessage(0x7BC), LookupMessage(0x7BD), LookupMessage(0x7BE), - LookupMessage(0x7BF), LookupMessage(0x64), LookupMessage(0x68), LookupMessage(0x6A), LookupMessage(0x11B), LookupMessage(0x7C0), - LookupMessage(0x7C1), LookupMessage(0x7C2), LookupMessage(0x7C3), LookupMessage(0x7C4), + LookupMessage(MSI_REPLAY_START), LookupMessage(MSI_REPLAY_STOP), LookupMessage(MSI_REPLAY_START2), LookupMessage(MSI_REPLAY_OPENOPTION), LookupMessage(MSI_REPLAY_CLOSEOPION), LookupMessage(MSI_REPLAY_END), + LookupMessage(MSI_REPLAY_TIME), LookupMessage(MSI_CHARACTER_INFO), LookupMessage(MSI_EQUIPED_ITEM), LookupMessage(MSI_ITEM), LookupMessage(MSI_SKILLLIST), LookupMessage(MSI_REPLAY_PARTYFRIEND), + LookupMessage(MSI_REPLAY_CHAT), LookupMessage(MSI_REPLAY_SHORTCUTS), LookupMessage(MSI_REPLAY_AUTOMATICFILENAME), LookupMessage(MSI_REPLAY_CHECKINGFILE), }; int ids[6] = {420, 421, 422, 423, 424, 425}; @@ -1893,7 +1894,7 @@ void UIReplayRECControlWnd::OnCreate(int, int) { } int textSizes[2][2] = {{50, 12}, {80, 12}}; - const char* labels[2] = {"000:00:00", LookupMessage(0x7B3)}; + const char* labels[2] = {"000:00:00", LookupMessage(MSI_REPLAY_REPLAYOPTIONSETTING)}; for (int index = 0; index < 2; ++index) { this->texts[index] = new UIStaticText(); this->texts[index]->SetSize(textSizes[index][0], textSizes[index][1]); @@ -1940,7 +1941,7 @@ void UIReplayRECControlWnd::OnCreate(int, int) { edit->maximum = 80; edit->Background(232, 232, 232); edit->SetText(""); - if (const char* tooltip = LookupMessage(0x7B4)) { + if (const char* tooltip = LookupMessage(MSI_REPLAY_ENTERTHEFILENAME)) { edit->tooltip = tooltip; } this->AddChild(edit); @@ -2141,117 +2142,117 @@ void UIMonsterInfoWnd::Paint() { SkinPaletteChannels(ResourceMgr::Instance(), 22, 2, red, green, blue); const std::uint32_t border = RGB(red, green, blue); - this->DrawTextAt(17, 3, LookupMessage(406), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(16, 2, LookupMessage(406), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(120, 30, LookupMessage(407), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(17, 3, LookupMessage(MSI_MONSTER_INFO_WINDOW), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(16, 2, LookupMessage(MSI_MONSTER_INFO_WINDOW), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(120, 30, LookupMessage(MSI_NAME), 0, 0, 12, 0, 0, 0); this->DrawTextAt(160, 30, this->name.c_str(), 0, 0, 12, 0, 0, 0); char text[256]; StringFormat(text, sizeof(text), static_cast(-1), "%d", this->info.level); - this->DrawTextAt(120, 50, LookupMessage(408), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(120, 50, LookupMessage(MSI_LEVEL), 0, 0, 12, 0, 0, 0); this->DrawTextAt(160, 50, text, 0, 0, 12, 0, 0, 0); StringFormat(text, sizeof(text), static_cast(-1), "%d", this->info.hp); - this->DrawTextAt(120, 70, LookupMessage(409), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(120, 70, LookupMessage(MSI_HP), 0, 0, 12, 0, 0, 0); this->DrawTextAt(160, 70, text, 0, 0, 12, 0, 0, 0); StringFormat(text, sizeof(text), static_cast(-1), "%d", this->info.defense); - this->DrawTextAt(120, 90, LookupMessage(3910), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(120, 90, LookupMessage(MSI_ZEROQUEST_ALLSELECT), 0, 0, 12, 0, 0, 0); this->DrawTextAt(160, 90, text, 0, 0, 12, 0, 0, 0); - this->DrawTextAt(260, 30, LookupMessage(410), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(260, 30, LookupMessage(MSI_SIZE), 0, 0, 12, 0, 0, 0); switch (this->info.size) { case SZ_SMALL: - this->DrawTextAt(300, 30, LookupMessage(3907), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 30, LookupMessage(MSI_MONSTERINFO_DEF), 0, 0, 12, 0, 0, 0); break; case SZ_MEDIUM: - this->DrawTextAt(300, 30, LookupMessage(3908), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 30, LookupMessage(MSI_BAN_TEENAGER), 0, 0, 12, 0, 0, 0); break; case SZ_BIG: - this->DrawTextAt(300, 30, LookupMessage(3909), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 30, LookupMessage(MSI_STYLINGSHOP_COLOR_RESET), 0, 0, 12, 0, 0, 0); break; } StringFormat(text, sizeof(text), static_cast(-1), "%d", this->info.race); - this->DrawTextAt(260, 50, LookupMessage(411), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(260, 50, LookupMessage(MSI_RACETYPE), 0, 0, 12, 0, 0, 0); switch (this->info.race) { case RC_FORMLESS: - this->DrawTextAt(300, 50, LookupMessage(3887), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 50, LookupMessage(MSI_MONSTERINFO_TRIBE_PLANT), 0, 0, 12, 0, 0, 0); break; case RC_UNDEAD: - this->DrawTextAt(300, 50, LookupMessage(3888), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 50, LookupMessage(MSI_MONSTERINFO_TRIBE_INSECT), 0, 0, 12, 0, 0, 0); break; case RC_BRUTE: - this->DrawTextAt(300, 50, LookupMessage(3889), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 50, LookupMessage(MSI_MONSTERINFO_TRIBE_MARINE), 0, 0, 12, 0, 0, 0); break; case RC_PLANT: - this->DrawTextAt(300, 50, LookupMessage(3890), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 50, LookupMessage(MSI_MONSTERINFO_TRIBE_DEVIL), 0, 0, 12, 0, 0, 0); break; case RC_INSECT: - this->DrawTextAt(300, 50, LookupMessage(3891), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 50, LookupMessage(MSI_MONSTERINFO_TRIBE_HUMAN), 0, 0, 12, 0, 0, 0); break; case RC_FISH: - this->DrawTextAt(300, 50, LookupMessage(3892), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 50, LookupMessage(MSI_MONSTERINFO_TRIBE_ANGEL), 0, 0, 12, 0, 0, 0); break; case RC_DEMON: - this->DrawTextAt(300, 50, LookupMessage(3893), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 50, LookupMessage(MSI_MONSTERINFO_TRIBE_DRAGON), 0, 0, 12, 0, 0, 0); break; case RC_DEMIHUMAN: - this->DrawTextAt(300, 50, LookupMessage(3894), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 50, LookupMessage(MSI_MONSTERINFO_PROPERTY_NEUTURAL), 0, 0, 12, 0, 0, 0); break; case RC_ANGEL: - this->DrawTextAt(300, 50, LookupMessage(3895), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 50, LookupMessage(MSI_MONSTERINFO_PROPERTY_WATER), 0, 0, 12, 0, 0, 0); break; case RC_DRAGON: - this->DrawTextAt(300, 50, LookupMessage(3896), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 50, LookupMessage(MSI_MONSTERINFO_PROPERTY_EARTH), 0, 0, 12, 0, 0, 0); break; } StringFormat(text, sizeof(text), static_cast(-1), "%d", this->info.magicDefense); - this->DrawTextAt(260, 90, LookupMessage(412), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(260, 90, LookupMessage(MSI_MDEFPOWER), 0, 0, 12, 0, 0, 0); this->DrawTextAt(300, 90, text, 0, 0, 12, 0, 0, 0); - this->DrawTextAt(260, 70, LookupMessage(413), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(260, 70, LookupMessage(MSI_PROPERTY), 0, 0, 12, 0, 0, 0); switch (this->info.element % 20) { case ELE_NEUTRAL: - this->DrawTextAt(300, 70, LookupMessage(3897), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 70, LookupMessage(MSI_MONSTERINFO_PROPERTY_FIRE), 0, 0, 12, 0, 0, 0); break; case ELE_WATER: - this->DrawTextAt(300, 70, LookupMessage(3898), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 70, LookupMessage(MSI_MONSTERINFO_PROPERTY_WIND), 0, 0, 12, 0, 0, 0); break; case ELE_EARTH: - this->DrawTextAt(300, 70, LookupMessage(3899), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 70, LookupMessage(MSI_MONSTERINFO_PROPERTY_POISON), 0, 0, 12, 0, 0, 0); break; case ELE_FIRE: - this->DrawTextAt(300, 70, LookupMessage(3900), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 70, LookupMessage(MSI_MONSTERINFO_PROPERTY_SAINT), 0, 0, 12, 0, 0, 0); break; case ELE_WIND: - this->DrawTextAt(300, 70, LookupMessage(3901), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 70, LookupMessage(MSI_MONSTERINFO_PROPERTY_DARK), 0, 0, 12, 0, 0, 0); break; case ELE_POISON: - this->DrawTextAt(300, 70, LookupMessage(3902), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 70, LookupMessage(MSI_MONSTERINFO_PROPERTY_MENTAL), 0, 0, 12, 0, 0, 0); break; case ELE_HOLY: - this->DrawTextAt(300, 70, LookupMessage(3903), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 70, LookupMessage(MSI_MONSTERINFO_PROPERTY_UNDEAD), 0, 0, 12, 0, 0, 0); break; case ELE_DARK: - this->DrawTextAt(300, 70, LookupMessage(3904), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 70, LookupMessage(MSI_MONSTERINFO_SIZE_SMALL), 0, 0, 12, 0, 0, 0); break; case ELE_GHOST: - this->DrawTextAt(300, 70, LookupMessage(3905), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 70, LookupMessage(MSI_MONSTERINFO_SIZE_MIDDLE), 0, 0, 12, 0, 0, 0); break; case ELE_UNDEAD: - this->DrawTextAt(300, 70, LookupMessage(3906), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(300, 70, LookupMessage(MSI_MONSTERINFO_SIZE_BIG), 0, 0, 12, 0, 0, 0); break; } - this->DrawResistance(120, 110, LookupMessage(3898), this->info.resistances[0], border, fill); - this->DrawResistance(120, 128, LookupMessage(3899), this->info.resistances[1], border, fill); - this->DrawResistance(120, 146, LookupMessage(3900), this->info.resistances[2], border, fill); - this->DrawResistance(200, 110, LookupMessage(3901), this->info.resistances[3], border, fill); - this->DrawResistance(200, 128, LookupMessage(3902), this->info.resistances[4], border, fill); - this->DrawResistance(200, 146, LookupMessage(3903), this->info.resistances[5], border, fill); - this->DrawResistance(280, 110, LookupMessage(3904), this->info.resistances[6], border, fill); - this->DrawResistance(280, 128, LookupMessage(3905), this->info.resistances[7], border, fill); - this->DrawResistance(280, 146, LookupMessage(3906), this->info.resistances[8], border, fill); + this->DrawResistance(120, 110, LookupMessage(MSI_MONSTERINFO_PROPERTY_WIND), this->info.resistances[0], border, fill); + this->DrawResistance(120, 128, LookupMessage(MSI_MONSTERINFO_PROPERTY_POISON), this->info.resistances[1], border, fill); + this->DrawResistance(120, 146, LookupMessage(MSI_MONSTERINFO_PROPERTY_SAINT), this->info.resistances[2], border, fill); + this->DrawResistance(200, 110, LookupMessage(MSI_MONSTERINFO_PROPERTY_DARK), this->info.resistances[3], border, fill); + this->DrawResistance(200, 128, LookupMessage(MSI_MONSTERINFO_PROPERTY_MENTAL), this->info.resistances[4], border, fill); + this->DrawResistance(200, 146, LookupMessage(MSI_MONSTERINFO_PROPERTY_UNDEAD), this->info.resistances[5], border, fill); + this->DrawResistance(280, 110, LookupMessage(MSI_MONSTERINFO_SIZE_SMALL), this->info.resistances[6], border, fill); + this->DrawResistance(280, 128, LookupMessage(MSI_MONSTERINFO_SIZE_MIDDLE), this->info.resistances[7], border, fill); + this->DrawResistance(280, 146, LookupMessage(MSI_MONSTERINFO_SIZE_BIG), this->info.resistances[8], border, fill); char spriteName[128]; StringFormat(spriteName, sizeof(spriteName), static_cast(-1), "몬스터\\%s.spr", g_session.GetJobName(this->info.job, -1)); @@ -2703,14 +2704,14 @@ UINoticeWnd::UINoticeWnd() : UIFrameWnd(0) { // FUNCTION: fn_11737 void UIBank_NewWnd::OnCreate(int, int) { this->AddCloseButton("Exit", 0); - this->AddBitmapButton(462, 209, 77, "bank\\btn_deposit", LookupMessage(2774)); - this->AddBitmapButton(463, 209, 102, "bank\\btn_withdraw", LookupMessage(2775)); - this->AddBitmapButton(279, 177, 89, "bank\\btn_upper", LookupMessage(2776)); - this->AddBitmapButton(280, 177, 99, "bank\\btn_buttom", LookupMessage(2777)); + this->AddBitmapButton(462, 209, 77, "bank\\btn_deposit", LookupMessage(MSI_BANK_7)); + this->AddBitmapButton(463, 209, 102, "bank\\btn_withdraw", LookupMessage(MSI_BANK_MAX)); + this->AddBitmapButton(279, 177, 89, "bank\\btn_upper", LookupMessage(MSI_BANK_NOMSG)); + this->AddBitmapButton(280, 177, 99, "bank\\btn_buttom", LookupMessage(MSI_BANK_0_MINI)); this->AddBitmapButton(392, 189, 132, "bank\\btn_10mil", "+ 100,000"); this->AddBitmapButton(391, 141, 132, "bank\\btn_100mil", "+ 1,000,000"); this->AddBitmapButton(390, 93, 132, "bank\\btn_1000mil", "+ 10,000,000"); - this->AddBitmapButton(389, 45, 132, "bank\\btn_max", LookupMessage(2778)); + this->AddBitmapButton(389, 45, 132, "bank\\btn_max", LookupMessage(MSI_BANK_1_MINI)); this->m_amountEdit = new UIEditCtrl(); this->m_amountEdit->SetSize(99, 17); @@ -2817,7 +2818,7 @@ bool UIReplayControlWnd::RefreshInfo() { const ReplayTime duration = Replay::Instance().Duration(); char text[100]; std::memset(text, 0, sizeof(text)); - std::sprintf(text, LookupMessage(1955), minutes / 60, minutes % 60, seconds % 60, duration.hours, duration.minutes, duration.seconds); + std::sprintf(text, LookupMessage(MSI_REPLAY_ELAPSEDTIME), minutes / 60, minutes % 60, seconds % 60, duration.hours, duration.minutes, duration.seconds); this->m_texts[0]->SetTextFitted(text); std::memset(text, 0, sizeof(text)); @@ -2890,14 +2891,14 @@ int UISelectReplayDataWnd::SendMsg(UIWindow* sender, int message, std::intptr_t return 0; } Replay::Instance().CloseFile(); - g_windowMgr.Confirm(LookupMessage(1970), 0, true, true, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_REPLAY_SERVERNOMATCH), 0, true, true, 0, "Message", 280, 120, 0); } else { - g_windowMgr.Confirm(LookupMessage(1969), 0, true, true, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_REPLAY_NOREPLAYFILE), 0, true, true, 0, "Message", 280, 120, 0); } } break; case ID_EXIT: - if (g_windowMgr.Confirm(LookupMessage(17), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_TO_QUIT), 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); g_windowMgr.Schedule(this); return 0; @@ -2932,7 +2933,7 @@ bool UISelectReplayDataWnd::UpdateInfo() { if (ReplayFileList::Instance().Open(32, 0, 0) != 1) { this->m_texts[0]->SetTextFitted(""); - this->m_texts[1]->SetTextFitted(LookupMessage(1969)); + this->m_texts[1]->SetTextFitted(LookupMessage(MSI_REPLAY_NOREPLAYFILE)); this->m_texts[2]->SetTextFitted(""); this->m_texts[3]->SetTextFitted(""); this->m_texts[4]->SetTextFitted(""); @@ -2965,35 +2966,35 @@ bool UISelectReplayDataWnd::UpdateInfo() { default: service = "Data Error"; this->m_texts[0]->SetTextFitted(""); - this->m_texts[1]->SetTextFitted(LookupMessage(1969)); + this->m_texts[1]->SetTextFitted(LookupMessage(MSI_REPLAY_NOREPLAYFILE)); this->m_texts[2]->SetTextFitted(""); this->m_texts[3]->SetTextFitted(""); this->m_texts[4]->SetTextFitted(""); return false; } - std::sprintf(buffer, LookupMessage(1964), service.c_str()); + std::sprintf(buffer, LookupMessage(MSI_REPLAY_CHRVICEINFO), service.c_str()); this->m_texts[0]->SetTextFitted(buffer); std::memset(buffer, 0, sizeof(buffer)); char name[64]; std::memcpy(name, Replay::Instance().header.characterName, sizeof(name)); - std::sprintf(buffer, LookupMessage(1965), name); + std::sprintf(buffer, LookupMessage(MSI_REPLAY_CHARACTERNAME), name); this->m_texts[1]->SetTextFitted(buffer); - std::sprintf(buffer, LookupMessage(1966), Replay::Instance().header.mapName); + std::sprintf(buffer, LookupMessage(MSI_REPLAY_MAPNAME), Replay::Instance().header.mapName); this->m_texts[2]->SetTextFitted(buffer); const std::uint32_t date = Replay::Instance().header.key0; const std::uint32_t time = Replay::Instance().header.key1; std::sprintf( - buffer, LookupMessage(1967), date & 0xFFFF, static_cast(date >> 16), static_cast(date >> 24), static_cast(time >> 8), + buffer, LookupMessage(MSI_REPLAY_RECORDTIME), date & 0xFFFF, static_cast(date >> 16), static_cast(date >> 24), static_cast(time >> 8), static_cast(time >> 16), static_cast(time >> 24) ); this->m_texts[3]->SetTextFitted(buffer); const ReplayTime duration = Replay::Instance().Duration(); - std::sprintf(buffer, LookupMessage(1968), duration.hours, duration.minutes, duration.seconds); + std::sprintf(buffer, LookupMessage(MSI_REPLAY_PLAYTIME), duration.hours, duration.minutes, duration.seconds); this->m_texts[4]->SetTextFitted(buffer); return true; } @@ -3060,7 +3061,7 @@ int UISelectServerWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s g_modeMgr.gameMode->SendMsg(LMM_CANCEL, 0, 0, 0, 0); return 0; case ID_EXIT: - if (g_windowMgr.Confirm(LookupMessage(17), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_TO_QUIT), 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); g_windowMgr.Schedule(this); return 0; @@ -3093,27 +3094,27 @@ void UIPetInfoWnd::Paint() { this->DrawBitmap(this->geometry.width - rightCorner->image.width, this->geometry.height - rightCorner->image.height, rightCorner, false); char title[32]; - StringFormat(title, 32, static_cast(-1), "%s", LookupMessage(584)); + StringFormat(title, 32, static_cast(-1), "%s", LookupMessage(MSI_PET_INFO)); this->DrawTextAt(5, 2, title, 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 24, LookupMessage(407), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 44, LookupMessage(408), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 69, LookupMessage(585), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 89, LookupMessage(586), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 24, LookupMessage(MSI_NAME), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 44, LookupMessage(MSI_LEVEL), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 69, LookupMessage(MSI_PET_HUNGRY), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 89, LookupMessage(MSI_PET_FRIENDLY), 0, 0, 12, 0, 0, 0); char level[8]; char hunger[24]; if (g_session.unknown_1044 >= 0 && g_session.unknown_1044 <= 10) { - std::strcpy(hunger, LookupMessage(667)); + std::strcpy(hunger, LookupMessage(MSI_VERY_HUNGRY)); } else if (g_session.unknown_1044 > 10 && g_session.unknown_1044 <= 25) { - std::strcpy(hunger, LookupMessage(668)); + std::strcpy(hunger, LookupMessage(MSI_HUNGRY)); } else if (g_session.unknown_1044 > 25 && g_session.unknown_1044 <= 75) { - std::strcpy(hunger, LookupMessage(669)); + std::strcpy(hunger, LookupMessage(MSI_NORMAL)); } else if (g_session.unknown_1044 > 75 && g_session.unknown_1044 <= 90) { - std::strcpy(hunger, LookupMessage(670)); + std::strcpy(hunger, LookupMessage(MSI_REPLETE)); } else if (g_session.unknown_1044 > 90 && g_session.unknown_1044 <= 100) { - std::strcpy(hunger, LookupMessage(671)); + std::strcpy(hunger, LookupMessage(MSI_VERY_REPLETE)); } else { - std::strcpy(hunger, LookupMessage(676)); + std::strcpy(hunger, LookupMessage(MSI_UNKNOWN)); } _itoa(g_session.unknown_1040, level, 10); @@ -3136,11 +3137,11 @@ void UIPetInfoWnd::Paint() { this->FillRegion(160, 44, 110, 18, 0xFAE6E6); const int width = this->TextWidth(command, 0, 0, 12, 0, 0); this->DrawTextAt(206 - width / 2, 48, command, 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 119, LookupMessage(597), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 119, LookupMessage(MSI_PET_ACCESSARY), 0, 0, 12, 0, 0, 0); this->DrawTextAt(100, 139, LookupMessage(g_session.unknown_1038 == 0 ? 600 : 598), 0, 0, 12, 0, 0, 0); if (this->unknown_00E4 == 1) { - this->DrawTextAt(100, 159, LookupMessage(2577), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 159, LookupMessage(MSI_PET_AUTO_FEEDING_OFF), 0, 0, 12, 0, 0, 0); } } } @@ -3169,28 +3170,28 @@ void UIPetInfoWnd::UpdateFriendlyGauge() { } this->friendlyText = LookupMessage(message); } else { - this->friendlyText = LookupMessage(672); + this->friendlyText = LookupMessage(MSI_VERY_AWKWARD); low = 0; high = 100; } } else if (g_session.m_petFriendly > 100 && g_session.m_petFriendly <= 250) { - this->friendlyText = LookupMessage(673); + this->friendlyText = LookupMessage(MSI_AWKWARD); low = 100; high = 250; } else if (g_session.m_petFriendly > 250 && g_session.m_petFriendly <= 750) { - this->friendlyText = LookupMessage(669); + this->friendlyText = LookupMessage(MSI_NORMAL); low = 250; high = 750; } else if (g_session.m_petFriendly > 750 && g_session.m_petFriendly <= 900) { - this->friendlyText = LookupMessage(674); + this->friendlyText = LookupMessage(MSI_FRIENDLY); low = 750; high = 900; } else if (g_session.m_petFriendly > 900 && g_session.m_petFriendly <= 1000) { - this->friendlyText = LookupMessage(675); + this->friendlyText = LookupMessage(MSI_VERY_FRIENDLY); low = 900; high = 1000; } else { - this->friendlyText = LookupMessage(676); + this->friendlyText = LookupMessage(MSI_UNKNOWN); low = 0; high = 0; } @@ -3346,7 +3347,7 @@ int UILoginWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::int ShellExecuteA(hWnd, verbName.Text(), url, nullptr, nullptr, SW_SHOWNORMAL); break; } - if (g_windowMgr.Confirm(LookupMessage(3336), 2, true, false, 0, "Message", 280, 120, 0) != 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_SELECTCHARWND_RESERVE_TO_DEL_CHAR), 2, true, false, 0, "Message", 280, 120, 0) != 187) { break; } } @@ -3366,9 +3367,9 @@ int UILoginWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::int g_windowMgr.CloseWindow(WID_LOGINWND); this->SaveLogin(); } else if (this->idEdit->Length() < 4) { - g_windowMgr.Confirm(FormatOwnedString(LookupMessage(3029), 4).c_str(), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(FormatOwnedString(LookupMessage(MSI_BASIC_EXP_MSG2_EXCEPT_PREMIUM), 4).c_str(), 0, true, false, 0, "Message", 280, 120, 0); } else { - g_windowMgr.Confirm(FormatOwnedString(LookupMessage(3030), 6).c_str(), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(FormatOwnedString(LookupMessage(MSI_SWAP_EQUIPITEM_CANNOT_ADD_ITEM), 6).c_str(), 0, true, false, 0, "Message", 280, 120, 0); } break; } @@ -3378,7 +3379,7 @@ int UILoginWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::int break; case ID_EXIT: this->SaveLogin(); - if (g_windowMgr.Confirm(LookupMessage(17), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_TO_QUIT), 2, true, false, 0, "Message", 280, 120, 0) == 187) { goto quit; } break; @@ -3437,7 +3438,7 @@ int UILoginOTPWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: switch (message) { case UM_COMMAND: { if (a == 185) { - if (g_windowMgr.Confirm(LookupMessage(17), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_TO_QUIT), 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); g_windowMgr.Schedule(this); } @@ -3450,7 +3451,7 @@ int UILoginOTPWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: g_modeMgr.gameMode->SendMsg(LMM_SEND_LOGIN_AUTH_CODE, 0, 0, 0, 0); g_windowMgr.CloseWindow(WID_LOGINOTPWND); } else { - g_windowMgr.Confirm(LookupMessage(3249), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_FAIL_SERVICE_CHECKING_ERROR), 0, true, false, 0, "Message", 280, 120, 0); } } @@ -3569,13 +3570,13 @@ void UIHomunInfoWnd::Paint() { this->DrawBitmap(0, 0, background, false); DrawFilledRoundedBorder(*this, 0, this->geometry.height - 40, this->geometry.width, 40, 0xFFFFFF); char title[32]; - std::sprintf(title, LookupMessage(936)); + std::sprintf(title, LookupMessage(MSI_HOMUN_INFO)); this->DrawTextAt(5, 2, title, 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 24, LookupMessage(407), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 47, LookupMessage(408), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 105, LookupMessage(1019), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 131, LookupMessage(585), 0, 0, 12, 0, 0, 0); - this->DrawTextAt(100, 159, LookupMessage(586), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 24, LookupMessage(MSI_NAME), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 47, LookupMessage(MSI_LEVEL), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 105, LookupMessage(MSI_HOMUN_EXP), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 131, LookupMessage(MSI_PET_HUNGRY), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(100, 159, LookupMessage(MSI_PET_FRIENDLY), 0, 0, 12, 0, 0, 0); this->DrawTextAt(140, 159, ":", 0, 0, 12, 0, 0, 0); const int* const stats = reinterpret_cast(&g_session.unknown_5570[0x2C]); char number[12]; @@ -3609,25 +3610,25 @@ void UIHomunInfoWnd::Paint() { this->DrawRightAlignedText(200, 130, text, bytes, 1, 14, 0, 0); const int intimacy = g_session.unknown_55D4; if (intimacy >= 0 && intimacy <= 3) { - std::strcpy(text, LookupMessage(1022)); + std::strcpy(text, LookupMessage(MSI_VERYHATE)); } else if (intimacy > 3 && intimacy <= 10) { - std::strcpy(text, LookupMessage(1021)); + std::strcpy(text, LookupMessage(MSI_HATE)); } else if (intimacy > 10 && intimacy <= 100) { - std::strcpy(text, LookupMessage(672)); + std::strcpy(text, LookupMessage(MSI_VERY_AWKWARD)); } else if (intimacy > 100 && intimacy <= 250) { - std::strcpy(text, LookupMessage(673)); + std::strcpy(text, LookupMessage(MSI_AWKWARD)); } else if (intimacy > 250 && intimacy <= 750) { - std::strcpy(text, LookupMessage(669)); + std::strcpy(text, LookupMessage(MSI_NORMAL)); } else if (intimacy > 750 && intimacy <= 910) { - std::strcpy(text, LookupMessage(674)); + std::strcpy(text, LookupMessage(MSI_FRIENDLY)); } else if (intimacy > 910 && intimacy <= 1000) { - std::strcpy(text, LookupMessage(675)); + std::strcpy(text, LookupMessage(MSI_VERY_FRIENDLY)); } else { - std::strcpy(text, LookupMessage(676)); + std::strcpy(text, LookupMessage(MSI_UNKNOWN)); } this->DrawTextAt(150, 159, text, 0, 0, 12, 0, 0, 0); - this->DrawWrappedFormattedText(225, 136, std::string(LookupMessage(3279)), 0, 0, 0, 0, 12, 0, 0); - this->DrawWrappedFormattedText(8, 180, std::string(LookupMessage(3284)), 0, 0, 0, 0, 12, 0xFF, 0); + this->DrawWrappedFormattedText(225, 136, std::string(LookupMessage(MSI_HOMUN_SELF_FEEDING_ON)), 0, 0, 0, 0, 12, 0, 0); + this->DrawWrappedFormattedText(8, 180, std::string(LookupMessage(MSI_HOMUN_TARGET_NOT_EXIST_HOMUN_TARGAT)), 0, 0, 0, 0, 12, 0xFF, 0); } // OFFSET: 0x008BDD10 @@ -3647,13 +3648,13 @@ int UIHomunInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std: case ID_OK: { char* const name = reinterpret_cast(&g_session.unknown_5570[0x0C]); if (std::strlen(this->nameEdit->Text()) >= 24) { - g_windowMgr.Confirm(LookupMessage(938), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_HOMUN_NAME_IN23), 0, true, false, 0, "Message", 280, 120, 0); } else if (_mbsstr(reinterpret_cast(this->nameEdit->Text()), reinterpret_cast(s_messageBoxItemLinkOpening.c_str())) || _mbsstr(reinterpret_cast(this->nameEdit->Text()), reinterpret_cast(s_messageBoxItemLinkClosing.c_str()))) { - g_windowMgr.Confirm(LookupMessage(2812), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STYLING_SHOP_OPEN_COUPON), 0, true, false, 0, "Message", 280, 120, 0); } else { char text[512]; - std::sprintf(text, LookupMessage(2977), this->nameEdit->Text()); + std::sprintf(text, LookupMessage(MSI_BLOCK_CALL_NOTIFY), this->nameEdit->Text()); if (g_windowMgr.Confirm(text, 2, false, false, 0, "Message", 280, 120, 0) != 188) { if (g_forbiddenWords.Contains(this->nameEdit->Text()) != true) { g_modeMgr.GetGameMode()->SendMsg(MM_MER_RENAME, reinterpret_cast(this->nameEdit->Text()), 0, 0, 0); @@ -3662,7 +3663,7 @@ int UIHomunInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std: return 0; } - g_windowMgr.Confirm(LookupMessage(2948), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANNOT_SELL_IN_PRIVATE_TAB), 0, true, false, 0, "Message", 280, 120, 0); } this->nameEdit->SetText(name); @@ -3689,12 +3690,12 @@ int UIHomunInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std: return 0; case ID_FEED_TO_HOMUN: this->unknown_00D0 = new UINormalMB(); - this->unknown_00D0->Create(this, LookupMessage(601), 2, true, nullptr, 280, 120, nullptr); + this->unknown_00D0->Create(this, LookupMessage(MSI_SURE_TO_FEED_PET), 2, true, nullptr, 280, 120, nullptr); g_windowMgr.AddRendered(this->unknown_00D0); return 0; case ID_DELETE_HOMUN: { CMode* mode = g_modeMgr.GetGameMode(); - if (g_windowMgr.Confirm(LookupMessage(955), 2, false, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DELETE_HOMUN), 2, false, false, 0, "Message", 280, 120, 0) == 187) { mode->SendMsg(MM_COMMAND_HOMUN, 2, 0, 0, 0); g_windowMgr.CloseWindow(WID_HOMUNINFOWND); g_windowMgr.CloseWindow(WID_SKILLLISTWND_SKILLTAB_0); @@ -3707,7 +3708,7 @@ int UIHomunInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std: CMode* mode = g_modeMgr.GetGameMode(); if (sender == this->unknown_00D0 && b == 187) { if (g_windowMgr.LookupWindow(WID_EXCHANGEUI)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3551)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_EXCHANGED_FAILED)), 255, 0, 0, 0); } else { mode->SendMsg(MM_COMMAND_HOMUN, 1, 0, 0, 0); } @@ -3777,7 +3778,7 @@ void UIPetInfoWnd::OnCreate(int, int) { this->AddChild(button); } - this->friendlyText = LookupMessage(676); + this->friendlyText = LookupMessage(MSI_UNKNOWN); this->friendlyGauge = new UIPetInfoBarGraph(); this->friendlyGauge->SetSize(120, 9); this->friendlyGauge->Move(145, 105); @@ -3790,7 +3791,7 @@ void UIPetInfoWnd::OnCreate(int, int) { if (this->unknown_00E4 == true) { this->unknown_00E8 = new UICheckBox(); this->unknown_00E8->SetSize(12, 12); - this->unknown_00E8->Move(this->TextWidth(LookupMessage(2577), 0, 0, 12, 0, 0) + 110, 159); + this->unknown_00E8->Move(this->TextWidth(LookupMessage(MSI_PET_AUTO_FEEDING_OFF), 0, 0, 12, 0, 0) + 110, 159); this->unknown_00E8->SetBitmaps("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp"); this->unknown_00E8->SetChecked(g_petAutoFeed); this->AddChild(this->unknown_00E8); @@ -3812,11 +3813,11 @@ int UIPetInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i switch (a) { case 467: if (g_windowMgr.unknown_0458) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2985)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_REFINING_FAIL_ITEM_DISAPPEAR)), 255, 0, 0, 0); break; } this->window_00C4 = new UINormalMB(); - this->window_00C4->Create(this, LookupMessage(601), 2, true, nullptr, 280, 120, nullptr); + this->window_00C4->Create(this, LookupMessage(MSI_SURE_TO_FEED_PET), 2, true, nullptr, 280, 120, nullptr); g_windowMgr.AddRendered(this->window_00C4); g_windowMgr.CloseWindow(WID_COMBOBOXIDWND); return 0; @@ -3842,7 +3843,7 @@ int UIPetInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i g_windowMgr.CloseWindow(WID_COMBOBOXIDWND); return 0; } - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2576)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PET_AUTO_FEEDING_ON)), 255, 0, 0, 0); break; } g_windowMgr.CloseWindow(WID_COMBOBOXIDWND); @@ -3856,13 +3857,13 @@ int UIPetInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i switch (a) { case ID_OK: if (std::strlen(this->nameEdit->Text()) >= 24) { - g_windowMgr.Confirm(LookupMessage(682), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PETNAME_IN23), 0, true, false, 0, "Message", 280, 120, 0); } else if (_mbsstr(reinterpret_cast(this->nameEdit->Text()), reinterpret_cast(s_messageBoxItemLinkOpening.c_str())) || _mbsstr(reinterpret_cast(this->nameEdit->Text()), reinterpret_cast(s_messageBoxItemLinkClosing.c_str()))) { - g_windowMgr.Confirm(LookupMessage(2812), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_STYLING_SHOP_OPEN_COUPON), 0, true, false, 0, "Message", 280, 120, 0); } else { char text[512]; - std::sprintf(text, LookupMessage(2931), this->nameEdit->Text()); + std::sprintf(text, LookupMessage(MSI_STORE_ASSISTANT_TRADE_CNT), this->nameEdit->Text()); if (g_windowMgr.Confirm(text, 2, false, false, 0, "Message", 280, 120, 0) != 188) { if (g_forbiddenWords.Contains(this->nameEdit->Text()) != true) { g_modeMgr.GetGameMode()->SendMsg(MM_PET_RENAME, reinterpret_cast(this->nameEdit->Text()), 0, 0, 0); @@ -3871,7 +3872,7 @@ int UIPetInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i return 0; } - g_windowMgr.Confirm(LookupMessage(2948), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_CANNOT_SELL_IN_PRIVATE_TAB), 0, true, false, 0, "Message", 280, 120, 0); } this->nameEdit->SetText(g_session.unknown_1018); @@ -3896,10 +3897,10 @@ int UIPetInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i std::string performance; std::string returnToEgg; std::string unequip; - feed = LookupMessage(592); - performance = LookupMessage(593); - returnToEgg = LookupMessage(594); - unequip = LookupMessage(595); + feed = LookupMessage(MSI_PET_FEEDING); + performance = LookupMessage(MSI_PET_PERFORMANCE); + returnToEgg = LookupMessage(MSI_PET_RETURN_EGG); + unequip = LookupMessage(MSI_PET_ACC_OFF); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(feed.c_str()), 467, 0, 0); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(performance.c_str()), 468, 0, 0); menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(unequip.c_str()), 469, 0, 0); @@ -3912,9 +3913,9 @@ int UIPetInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i std::string text; const char* name = g_session.GetPetString(job); if (name == nullptr) { - text = static_cast(FormatOwnedString(LookupMessage(2568), g_session.GetJobName(job, -1))); + text = static_cast(FormatOwnedString(LookupMessage(MSI_PET_EVOLUTION_FAIL_UNKNOWN), g_session.GetJobName(job, -1))); } else { - text = static_cast(FormatOwnedString(LookupMessage(2568), name)); + text = static_cast(FormatOwnedString(LookupMessage(MSI_PET_EVOLUTION_FAIL_UNKNOWN), name)); } menu->SendMsg(nullptr, UM_ADDITEM, reinterpret_cast(text.c_str()), 471, *it, 0); } @@ -3932,7 +3933,7 @@ int UIPetInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::i CMode* mode = g_modeMgr.GetGameMode(); if (sender == this->window_00C4 && b == 187) { if (g_windowMgr.LookupWindow(WID_EXCHANGEUI)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3550)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BARTERITEM_NAME_COUNT)), 255, 0, 0, 0); this->window_00C4 = nullptr; return 0; } @@ -4217,7 +4218,7 @@ int UIMakeCharWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: error = 2812; } else { if (this->m_nameEdit->Length() < 4) { - g_windowMgr.Confirm(LookupMessage(21), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_ENTER_NAME_MORE_THAN_4_CHAR), 0, true, false, 0, "Message", 280, 120, 0); goto create; } @@ -4231,13 +4232,13 @@ int UIMakeCharWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: const bool blank = g_session.IsBlankString(this->m_nameEdit->Text()); if (control || !allowed || !valid || blank) { if (control || !allowed) { - g_windowMgr.Confirm(LookupMessage(20), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BAD_NAME), 0, true, false, 0, "Message", 280, 120, 0); } if (!valid) { - g_windowMgr.Confirm(LookupMessage(190), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_ENGLISHONLY), 0, true, false, 0, "Message", 280, 120, 0); } if (blank) { - g_windowMgr.Confirm(LookupMessage(199), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NO_SPACE_IN_NAME), 0, true, false, 0, "Message", 280, 120, 0); } goto create; } @@ -4403,7 +4404,7 @@ void UILoginWnd::OnCreate(int, int) { UIStaticText* label = new UIStaticText(); label->SetSize(72, 22); - label->SetText(LookupMessage(3411), 0); + label->SetText(LookupMessage(MSI_CREATE_RAG_ACCOUNT), 0); label->SetColor(51, 51, 51); label->Move(73, 87); label->SetFont(0, 11, 0, 0); @@ -4430,7 +4431,7 @@ void UILoginWnd::OnCreate(int, int) { button->Move(13, 104); button->SetId(285); { - const std::string text(LookupMessage(3431)); + const std::string text(LookupMessage(MSI_ENST_BLESSING2)); button->text = text; button->Invalidate(); } @@ -4459,7 +4460,7 @@ void UILoginWnd::OnCreate(int, int) { button->Move(87, 104); button->SetId(267); { - const std::string text(LookupMessage(3414)); + const std::string text(LookupMessage(MSI_ADVENTURER_AGENCY_REGIST_FAILED)); button->text = text; button->Invalidate(); } @@ -4554,10 +4555,10 @@ void UILoginWnd::OnCreate(int, int) { this->unknown_00E8->SetSize(160, 22); this->unknown_00E8->Move(13, 10); this->AddChild(this->unknown_00E8); - this->unknown_00E8->AddOption(LookupMessage(3250), 0); - this->unknown_00E8->AddOption(LookupMessage(3251), 0); + this->unknown_00E8->AddOption(LookupMessage(MSI_ENTER_THE_SEARCH_WORD), 0); + this->unknown_00E8->AddOption(LookupMessage(MSI_MOTP), 0); this->unknown_00E8->Clear(); - this->unknown_00E8->AddOption(LookupMessage(3250), 0); + this->unknown_00E8->AddOption(LookupMessage(MSI_ENTER_THE_SEARCH_WORD), 0); this->unknown_00E8->Select(0); this->SendMsg(this->unknown_00E8, UM_COMBOBOX_SELECTED, 0, 0, 0, 0); this->idEdit->maximum = 24; diff --git a/Source/UI/Window/UIMileageWnd.cpp b/Source/UI/Window/UIMileageWnd.cpp index 58714d0e9..48c51c210 100644 --- a/Source/UI/Window/UIMileageWnd.cpp +++ b/Source/UI/Window/UIMileageWnd.cpp @@ -14,6 +14,7 @@ #include "Utility/Text/FormatString.h" #include "Client/Mode/CMode.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -127,7 +128,7 @@ void UIMileageWnd::OnProcess() { // OFFSET: 0x0094C230 // FUNCTION: fn_12894 void UIMileageWnd::OnCreate(int width, int height) { - const std::string title = FormatOwnedString(LookupMessage(2619), 300); + const std::string title = FormatOwnedString(LookupMessage(MSI_RESTRAINT_OF_TRADE_3), 300); this->m_tooltip = title; } diff --git a/Source/UI/Window/UINavigationHelpWnd.cpp b/Source/UI/Window/UINavigationHelpWnd.cpp index fdb5a32ac..68d1bcb8b 100644 --- a/Source/UI/Window/UINavigationHelpWnd.cpp +++ b/Source/UI/Window/UINavigationHelpWnd.cpp @@ -8,6 +8,7 @@ #include "UI/Text/UITextViewer.h" #include "UI/Window/WindowManagerWindows.h" +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x00921530 // FUNCTION: fn_12642 void UINavigationHelpWnd::OnCreate(int width, int height) { @@ -18,44 +19,44 @@ void UINavigationHelpWnd::OnCreate(int width, int height) { this->m_viewer->backgroundRed = 0xd2; this->AddChild(this->m_viewer); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2241)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP4)), 0x30, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(" "), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2242)), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2243)), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2244)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP5)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP6)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP7)), 0x30, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(" "), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2245)), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2246)), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2247)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP8)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP9)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP10)), 0x30, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(" "), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2248)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP11)), 0x30, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(" "), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2249)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP12)), 0x30, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(" "), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2250)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP13)), 0x30, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(" "), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2251)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP14)), 0x30, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(" "), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2252)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP15)), 0x30, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(" "), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2253)), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2254)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP16)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP17)), 0x30, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(" "), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2255)), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(2256)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP18)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NAVIGATION_HELP19)), 0x30, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(" "), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(3216)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_GOT_EXPERIENCE_POINT_INT64)), 0x30, 0, 0); this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(" "), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(3217)), 0x30, 0, 0); - this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(3218)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_NOTIFY_EXP_INT64)), 0x30, 0, 0); + this->m_viewer->SendMsg(nullptr, UM_SETTEXT, reinterpret_cast(LookupMessage(MSI_CHARGE_FEE_HELP)), 0x30, 0, 0); - this->AddCloseButton(LookupMessage(2202), 0); + this->AddCloseButton(LookupMessage(MSI_NAVIGATION_HELP), 0); } // OFFSET: 0x0092CEC0 // FUNCTION: fn_12667 void UINavigationHelpWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(2240), 0); + this->DrawTitleBar(true, LookupMessage(MSI_NAVIGATION_HELP3), 0); this->DrawPanelBackground(17, 0, ""); } diff --git a/Source/UI/Window/UINavigationWnd.cpp b/Source/UI/Window/UINavigationWnd.cpp index 4baa888cd..833f03281 100644 --- a/Source/UI/Window/UINavigationWnd.cpp +++ b/Source/UI/Window/UINavigationWnd.cpp @@ -26,6 +26,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -73,7 +74,7 @@ void UINavigationWnd::OnCreate(int width, int height) { path += "navigation_interface\\"; const char* tooltips[6] = { - LookupMessage(0x894), LookupMessage(0x895), LookupMessage(0x896), LookupMessage(0x897), LookupMessage(0x898), LookupMessage(0x899), + LookupMessage(MSI_NAVIGATION_SEARCHINFO), LookupMessage(MSI_NAVIGATION_VIEWCHANGE), LookupMessage(MSI_NAVIGATION_LIGHTCHANGE), LookupMessage(MSI_NAVIGATION_END), LookupMessage(MSI_NAVIGATION_BASE), LookupMessage(MSI_NAVIGATION_MINI), }; const char* names[6] = {"NaviSearch", "NaviStart", "NaviRoute", "NaviList", "Navisyschange2", "navifolder"}; const int ids[6] = {321, 184, 189, 190, 284, 191}; @@ -90,7 +91,7 @@ void UINavigationWnd::OnCreate(int width, int height) { this->AddChild(this->m_buttons[index]); } - this->m_closeButton = this->AddCloseButton(LookupMessage(0x89A), 0); + this->m_closeButton = this->AddCloseButton(LookupMessage(MSI_NAVIGATION_HELP), 0); this->m_minimizeButton = this->AddMinimizeButton("", 0); this->unknown_0120 = new UIBitmapButton(); @@ -100,7 +101,7 @@ void UINavigationWnd::OnCreate(int width, int height) { this->unknown_0120->SetSize(this->unknown_0120->BitmapWidth(), this->unknown_0120->BitmapHeight()); this->unknown_0120->Move(this->geometry.width - 42, 3); this->unknown_0120->SetId(343); - this->unknown_0120->SetTooltip(LookupMessage(0x89D)); + this->unknown_0120->SetTooltip(LookupMessage(MSI_NAVIGATION_NPC)); this->AddChild(this->unknown_0120); this->unknown_00EC = new UIComboBoxDefWnd(); @@ -114,10 +115,10 @@ void UINavigationWnd::OnCreate(int width, int height) { this->unknown_00EC->green = 232; this->unknown_00EC->blue = 232; this->AddChild(this->unknown_00EC); - this->unknown_00EC->AddOption(LookupMessage(0x89E), 0); - this->unknown_00EC->AddOption(LookupMessage(0x89F), 0); - this->unknown_00EC->AddOption(LookupMessage(0x8A0), 0); - this->unknown_00EC->AddOption(LookupMessage(0x8A1), 0); + this->unknown_00EC->AddOption(LookupMessage(MSI_NAVIGATION_MOB), 0); + this->unknown_00EC->AddOption(LookupMessage(MSI_NAVIGATION_SETSTRING), 0); + this->unknown_00EC->AddOption(LookupMessage(MSI_NAVIGATION_SCROLL), 0); + this->unknown_00EC->AddOption(LookupMessage(MSI_NAVIGATION_USESCROLL), 0); this->m_titleBar = new UIEditCtrl(); this->m_titleBar->SetSize(226, 18); @@ -127,7 +128,7 @@ void UINavigationWnd::OnCreate(int width, int height) { this->m_titleBar->Border(200, 100, 100); this->m_titleBar->flat = 0; UIEditCtrl* edit = this->m_titleBar; - const char* tooltip = LookupMessage(0x8A2); + const char* tooltip = LookupMessage(MSI_NAVIGATION_SERVICE); if (tooltip) { edit->tooltip = tooltip; } @@ -138,30 +139,30 @@ void UINavigationWnd::OnCreate(int width, int height) { } this->unknown_0118 = new UICheckBox(); - this->unknown_0118->SetSize(this->TextWidth(LookupMessage(0x8A3), 10, 0, 12, 0, 0), 12); + this->unknown_0118->SetSize(this->TextWidth(LookupMessage(MSI_NAVIGATION_USESERVICE), 10, 0, 12, 0, 0), 12); path = base; - this->unknown_0118->SetImages((path + "checkbox_1.bmp").c_str(), (path + "checkbox_0.bmp").c_str(), LookupMessage(0x8A3)); + this->unknown_0118->SetImages((path + "checkbox_1.bmp").c_str(), (path + "checkbox_0.bmp").c_str(), LookupMessage(MSI_NAVIGATION_USESERVICE)); this->unknown_0118->Move(-1000, -1000); this->unknown_0118->SetChecked(g_navigationManager.unknown_127D); - this->unknown_0118->SetTooltip(LookupMessage(0x8A4)); + this->unknown_0118->SetTooltip(LookupMessage(MSI_NAVIGATION_PLANE)); this->AddChild(this->unknown_0118); this->unknown_0114 = new UICheckBox(); - this->unknown_0114->SetSize(this->TextWidth(LookupMessage(0x8A5), 10, 0, 12, 0, 0), 12); + this->unknown_0114->SetSize(this->TextWidth(LookupMessage(MSI_NAVIGATION_USEPLANE), 10, 0, 12, 0, 0), 12); path = base; - this->unknown_0114->SetImages((path + "checkbox_1.bmp").c_str(), (path + "checkbox_0.bmp").c_str(), LookupMessage(0x8A5)); + this->unknown_0114->SetImages((path + "checkbox_1.bmp").c_str(), (path + "checkbox_0.bmp").c_str(), LookupMessage(MSI_NAVIGATION_USEPLANE)); this->unknown_0114->Move(-1000, -1000); this->unknown_0114->SetChecked(g_navigationManager.unknown_127C); - this->unknown_0114->SetTooltip(LookupMessage(0x8A6)); + this->unknown_0114->SetTooltip(LookupMessage(MSI_NAVIGATION_TARGETUNKNOWN)); this->AddChild(this->unknown_0114); this->unknown_011C = new UICheckBox(); - this->unknown_011C->SetSize(this->TextWidth(LookupMessage(0x8A7), 10, 0, 12, 0, 0), 12); + this->unknown_011C->SetSize(this->TextWidth(LookupMessage(MSI_NAVIGATION_GOING), 10, 0, 12, 0, 0), 12); path = base; - this->unknown_011C->SetImages((path + "checkbox_1.bmp").c_str(), (path + "checkbox_0.bmp").c_str(), LookupMessage(0x8A7)); + this->unknown_011C->SetImages((path + "checkbox_1.bmp").c_str(), (path + "checkbox_0.bmp").c_str(), LookupMessage(MSI_NAVIGATION_GOING)); this->unknown_011C->Move(-1000, -1000); this->unknown_011C->SetChecked(g_navigationManager.unknown_127E); - this->unknown_011C->SetTooltip(LookupMessage(0x8A8)); + this->unknown_011C->SetTooltip(LookupMessage(MSI_NAVIGATION_SEARCHING)); this->AddChild(this->unknown_011C); } @@ -212,17 +213,17 @@ void UINavigationWnd::RefreshHeaderTexts(int mode) { if (g_navigationManager.SavedTargetText(saved, sizeof(saved))) { std::sprintf(text, ">>%s", saved); } else { - std::sprintf(text, LookupMessage(0x8A9)); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_UN)); } - this->m_title = LookupMessage(0x8AA); + this->m_title = LookupMessage(MSI_NAVIGATION_NAVI); this->m_subtitle = text; } else { - this->m_title = LookupMessage(0x8AB); - this->m_subtitle = LookupMessage(0x8AC); + this->m_title = LookupMessage(MSI_NAVIGATION_SEARCHRESULT_D); + this->m_subtitle = LookupMessage(MSI_NAVIGATION_NPC_S_S); } } else { - this->m_title = LookupMessage(0x8AD); - this->m_subtitle = LookupMessage(0x8AC); + this->m_title = LookupMessage(MSI_NAVIGATION_MOB_S_S); + this->m_subtitle = LookupMessage(MSI_NAVIGATION_NPC_S_S); } this->Invalidate(); @@ -299,60 +300,60 @@ void UINavigationWnd::RefreshRouteList() { return; } - this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(LookupMessage(0x8B2)), 0, 0); + this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(LookupMessage(MSI_NAVIGATION_TARGET_S_D_D)), 0, 0); char text[100]; std::memset(text, 0, sizeof(text)); - std::sprintf(text, LookupMessage(0x8B3), g_navigationManager.GetRouteResult(), nodeCount); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_BOSS), g_navigationManager.GetRouteResult(), nodeCount); this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(text), 0, 0); int lineOffset; if (target.type == 2) { CNavi_Object* npc = static_cast(target.object); std::memset(text, 0, sizeof(text)); - std::sprintf(text, LookupMessage(0x8B4), npc->GetInfo()->GetTitle(), npc->GetInfo()->GetName()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_NORMAL), npc->GetInfo()->GetTitle(), npc->GetInfo()->GetName()); this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(text), 0, 0); std::memset(text, 0, sizeof(text)); NaviCell cellX; NaviCell cellY; - std::sprintf(text, LookupMessage(0x8B5), npc->GetName(), npc->GetCell(&cellX)->x, npc->GetCell(&cellY)->y); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_TARGET_S_S), npc->GetName(), npc->GetCell(&cellX)->x, npc->GetCell(&cellY)->y); this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(text), 0, 0); lineOffset = 5; } else if (target.type == 3) { CNavi_Object* mob = static_cast(target.object); std::memset(text, 0, sizeof(text)); - std::sprintf(text, LookupMessage(0x8B4), mob->GetInfo()->GetTitle(), mob->GetInfo()->GetName()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_NORMAL), mob->GetInfo()->GetTitle(), mob->GetInfo()->GetName()); this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(text), 0, 0); std::string kind; kind = LookupMessage(mob->GetType() == 301 ? 0x8B6 : 0x8B7); std::memset(text, 0, sizeof(text)); - std::sprintf(text, LookupMessage(0x8B8), mob->GetName(), kind.c_str()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_ITEM_S_S), mob->GetName(), kind.c_str()); this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(text), 0, 0); lineOffset = 5; } else if (target.type == 1) { CNaviInfo* map = static_cast(target.object); std::memset(text, 0, sizeof(text)); - std::sprintf(text, LookupMessage(0x8B4), map->GetTitle(), map->GetName()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_NORMAL), map->GetTitle(), map->GetName()); this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(text), 0, 0); lineOffset = 4; } else if (target.type == 0) { CNaviInfo* map = static_cast(target.object); std::memset(text, 0, sizeof(text)); - std::sprintf(text, LookupMessage(0x8B4), map->GetTitle(), map->GetName()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_NORMAL), map->GetTitle(), map->GetName()); this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(text), 0, 0); std::memset(text, 0, sizeof(text)); NaviCell cellX; NaviCell cellY; - std::sprintf(text, LookupMessage(0x8B9), g_navigationManager.GetDestinationCell(&cellX)->x, g_navigationManager.GetDestinationCell(&cellY)->y); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_D_S_D_D_D_D), g_navigationManager.GetDestinationCell(&cellX)->x, g_navigationManager.GetDestinationCell(&cellY)->y); this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(text), 0, 0); lineOffset = 5; } else { return; } - this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(LookupMessage(0x8BA)), 0, 0); + this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(LookupMessage(MSI_NAVIGATION_E_D_S_D_D_D_D)), 0, 0); this->m_searchPanel->SetLineOffset(lineOffset); CNavi_Link* previous = nullptr; @@ -363,19 +364,19 @@ void UINavigationWnd::RefreshRouteList() { NaviCell cellY; if (index == 0) { if (node->GetType() == 400) { - std::sprintf(text, LookupMessage(0x8BB), index, node->GetName(), node->GetLinkedName()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_E_D_S), index, node->GetName(), node->GetLinkedName()); } else { int column = 0; int row = 0; g_navigationManager.PlayerCell(&column, &row); std::sprintf( - text, LookupMessage(0x8BC), index, node->GetInfo()->GetName(), column, row, node->GetCell(&cellX)->x, node->GetCell(&cellY)->y + text, LookupMessage(MSI_NAVIGATION_GOEXIT), index, node->GetInfo()->GetName(), column, row, node->GetCell(&cellX)->x, node->GetCell(&cellY)->y ); } } else { std::sprintf( text, - LookupMessage(0x8BC), + LookupMessage(MSI_NAVIGATION_GOEXIT), index, node->GetInfo()->GetName(), previous->GetLinkedCell().x, @@ -405,9 +406,9 @@ void UINavigationWnd::RefreshRouteList() { const int destinationY = g_navigationManager.GetDestinationCell(&cell)->y; if (savedType == 2 || savedType == 0) { - std::sprintf(text, LookupMessage(0x8BD), nodeCount, destination.c_str(), startX, startY, destinationX, destinationY); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_HELPTITLE), nodeCount, destination.c_str(), startX, startY, destinationX, destinationY); } else { - std::sprintf(text, LookupMessage(0x8BE), nodeCount, destination.c_str()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_HELP1), nodeCount, destination.c_str()); } this->SendMsg(nullptr, UM_ADDITEM, 441, reinterpret_cast(text), 0, 0); @@ -441,7 +442,7 @@ void UINavigationWnd::ApplyMinimized() { this->unknown_0120->Move(this->geometry.width - 42, 3); this->m_closeButton->Move(this->geometry.width - 14, 3); this->m_minimizeButton->Move(this->geometry.width - 28, 3); - this->m_minimizeButton->SetTooltip(LookupMessage(0x89B)); + this->m_minimizeButton->SetTooltip(LookupMessage(MSI_NAVIGATION_ALL)); for (int index = 0; index < 6; ++index) { this->m_buttons[index]->Move(-1000, -1000); @@ -479,7 +480,7 @@ void UINavigationWnd::ApplyMinimized() { this->unknown_0120->Move(this->geometry.width - 42, 3); this->m_closeButton->Move(this->geometry.width - 14, 3); this->m_minimizeButton->Move(this->geometry.width - 28, 3); - this->m_minimizeButton->SetTooltip(LookupMessage(0x89C)); + this->m_minimizeButton->SetTooltip(LookupMessage(MSI_NAVIGATION_MAP)); int buttonX[6] = {this->geometry.width - 66, this->geometry.width - 77, -1000, -1000, this->geometry.width - 224, this->geometry.width - 31}; @@ -709,7 +710,7 @@ int UINavigationWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argume break; case ID_CLOSE: if (g_navigationManager.unknown_1258 == 2) { - const int response = g_windowMgr.Confirm(LookupMessage(0x8BF), 2, true, false, 0, "Message", 280, 120, 0); + const int response = g_windowMgr.Confirm(LookupMessage(MSI_NAVIGATION_HELP2), 2, true, false, 0, "Message", 280, 120, 0); if (response != 0xBB) { break; } @@ -858,7 +859,7 @@ void UINavigationWnd::FillRouteList() { char text[64]; std::memset(text, 0, sizeof(text)); - std::sprintf(text, LookupMessage(0x8AE), g_navigationManager.StateCount()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_MAP_S), g_navigationManager.StateCount()); this->SendMsg(nullptr, UM_ADDITEM, 0x150, reinterpret_cast(text), 0, 0); this->m_routePanel->SetLineOffset(1); @@ -867,35 +868,35 @@ void UINavigationWnd::FillRouteList() { NavigationTarget state = g_navigationManager.GetState(index); if (state.type == 2) { CNavi_Object* object = static_cast(state.object); - std::sprintf(text, LookupMessage(0x8AF), object->GetInfo()->GetName(), object->GetName()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_RESULTINFO), object->GetInfo()->GetName(), object->GetName()); } else if (state.type == 3) { CNavi_Object* object = static_cast(state.object); const int flag = object->GetFlag(); if (flag > 0) { std::string kind = "없음"; if (flag > 99) { - kind = LookupMessage(0x991); + kind = LookupMessage(MSI_NAVIGATION_NUM4); } else if (flag > 49) { - kind = LookupMessage(0x992); + kind = LookupMessage(MSI_NAVIGATION_NUM5); } else if (flag >= 20 && flag <= 49) { - kind = LookupMessage(0x993); + kind = LookupMessage(MSI_BANK_SYSTEM_ERROR); } else if (flag >= 5 && flag <= 19) { - kind = LookupMessage(0x994); + kind = LookupMessage(MSI_BANK_WITHDRAW_NO_MONEY); } else if (flag >= 1 && flag <= 4) { - kind = LookupMessage(0x995); + kind = LookupMessage(MSI_BANK_DEPOSIT_NO_MONEY); } - std::sprintf(text, LookupMessage(0x98F), object->GetInfo()->GetName(), object->GetName(), kind.c_str()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_NUM2), object->GetInfo()->GetName(), object->GetName(), kind.c_str()); } else { - std::sprintf(text, LookupMessage(0x8B0), object->GetInfo()->GetName(), object->GetName()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_LENGTH), object->GetInfo()->GetName(), object->GetName()); } } else if (state.type == 1) { - std::sprintf(text, LookupMessage(0x8B1), static_cast(state.object)->GetName()); + std::sprintf(text, LookupMessage(MSI_NAVIGATION_TARGETMAP_S_S), static_cast(state.object)->GetName()); } else if (state.type == 0) { CNaviInfo* info = static_cast(state.object); if (state.name.empty()) { - std::sprintf(text, LookupMessage(0x975), info->GetName(), state.x, state.y); + std::sprintf(text, LookupMessage(MSI_REFUSE_ERRORCODE), info->GetName(), state.x, state.y); } else { - std::sprintf(text, LookupMessage(0x976), state.name.c_str(), info->GetName(), state.x, state.y); + std::sprintf(text, LookupMessage(MSI_REFUSE_DISCONNECT_KEEP_TIME), state.name.c_str(), info->GetName(), state.x, state.y); } } this->SendMsg(nullptr, UM_ADDITEM, 0x150, reinterpret_cast(text), 0, 0); diff --git a/Source/UI/Window/UINewMakeCharWnd.cpp b/Source/UI/Window/UINewMakeCharWnd.cpp index 7ce8a5d90..2ba047d0f 100644 --- a/Source/UI/Window/UINewMakeCharWnd.cpp +++ b/Source/UI/Window/UINewMakeCharWnd.cpp @@ -24,6 +24,7 @@ #include "Resource/TextureNames.h" #include "UI/Window/UINewSelectCharWnd.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -176,7 +177,7 @@ void UINewMakeCharWnd::Paint() { CBitmapRes* background = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\make_character_ver2\\bg_makeBg.bmp"))); this->DrawBitmap(0, 0, background, false); - this->DrawTextAt(0x2C, 0x11, LookupMessage(0xD1B), 0, 0, 0xC, 0x5F5F5F, 1, 0); + this->DrawTextAt(0x2C, 0x11, LookupMessage(MSI_STOP_RECRUITING), 0, 0, 0xC, 0x5F5F5F, 1, 0); for (int i = 0; i < 2; ++i) { CImfRes* offsets = static_cast(ResourceMgr::Instance().Load(this->m_raceOffsets.c_str())); @@ -359,7 +360,7 @@ void UINewMakeCharWnd::OnCreate(int width, int height) { makeButton->SetBitmap("유저인터페이스\\make_character_ver2\\bt_make_press.bmp", 2, 0); makeButton->SetSize(makeButton->BitmapWidth(), makeButton->BitmapHeight()); makeButton->Move(0x268, 0x17B); - makeButton->SetText(LookupMessage(0xD11)); + makeButton->SetText(LookupMessage(MSI_MAKECHARWND_DOUBLECHECK_NAME)); makeButton->AddTextStyle(0, 0xE, 0x313131, 1, 1, -1000, -1000); makeButton->AddTextStyle(1, 0xE, 0x313131, 1, 1, -1000, -1000); makeButton->AddTextStyle(2, 0xE, 0x313131, 1, 1, -1000, -1000); @@ -372,7 +373,7 @@ void UINewMakeCharWnd::OnCreate(int width, int height) { cancelButton->SetBitmap("유저인터페이스\\make_character_ver2\\bt_make_press.bmp", 2, 0); cancelButton->SetSize(cancelButton->BitmapWidth(), cancelButton->BitmapHeight()); cancelButton->Move(0x19, 0x17B); - cancelButton->SetText(LookupMessage(0xD17)); + cancelButton->SetText(LookupMessage(MSI_PRIVATE_AIRPLANE_FAILED_DEAD_STATE)); cancelButton->AddTextStyle(0, 0xE, 0x313131, 1, 1, -1000, -1000); cancelButton->AddTextStyle(1, 0xE, 0x313131, 1, 1, -1000, -1000); cancelButton->AddTextStyle(2, 0xE, 0x313131, 1, 1, -1000, -1000); @@ -444,7 +445,7 @@ void UINewMakeCharWnd::OnCreate(int width, int height) { leftTurn->Move(0x1AA, 0xB3); leftTurn->SetId(0xE3); leftTurn->m_argument = 0; - leftTurn->SetTooltip(LookupMessage(0x87E)); + leftTurn->SetTooltip(LookupMessage(MSI_VIEW_BEFORE_WORLDINFO_TITLE)); this->AddChild(leftTurn); UIBitmapButton* rightTurn = new UIBitmapButton(); @@ -455,12 +456,12 @@ void UINewMakeCharWnd::OnCreate(int width, int height) { rightTurn->Move(0x227, 0xB3); rightTurn->SetId(0xE2); rightTurn->m_argument = 0; - rightTurn->SetTooltip(LookupMessage(0x87F)); + rightTurn->SetTooltip(LookupMessage(MSI_VIEW_BEFORE_SERVERINFO)); this->AddChild(rightTurn); UIStaticText* hairStyleTitle = new UIStaticText(); hairStyleTitle->SetSize(100, 0xF); - hairStyleTitle->SetText(LookupMessage(0xD12), 0); + hairStyleTitle->SetText(LookupMessage(MSI_DATE_HH_MM_SS), 0); hairStyleTitle->SetColor(0x40, 0x40, 0x40); hairStyleTitle->SetFont(0, 0xB, 1, 0); hairStyleTitle->Move(0x261, 0x2E); @@ -482,7 +483,7 @@ void UINewMakeCharWnd::OnCreate(int width, int height) { UIStaticText* hairColorTitle = new UIStaticText(); hairColorTitle->SetSize(100, 0xF); - hairColorTitle->SetText(LookupMessage(0xD13), 0); + hairColorTitle->SetText(LookupMessage(MSI_INPUT_TIME_EXCEEDED_SIGN_IN_AGAIN), 0); hairColorTitle->SetColor(0x40, 0x40, 0x40); hairColorTitle->SetFont(0, 0xB, 1, 0); hairColorTitle->Move(0x261, 0x11F); @@ -559,7 +560,7 @@ int UINewMakeCharWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argum if (!hasControlCharacter && allowed == 1 && valid == 1 && blank == 0) { if (this->m_nameEdit->Length() >= 24) { - g_windowMgr.Confirm(LookupMessage(0x213), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NAMELENGTH_TOO_LONG), 0, true, false, 0, "Message", 280, 120, 0); this->m_nameEdit->SetText(""); return 0; } @@ -584,13 +585,13 @@ int UINewMakeCharWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argum g_windowMgr.Schedule(this); } else { if (hasControlCharacter || allowed == 0) { - g_windowMgr.Confirm(LookupMessage(0x14), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BAD_NAME), 0, true, false, 0, "Message", 280, 120, 0); } if (valid == 0) { - g_windowMgr.Confirm(LookupMessage(0xBE), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_ENGLISHONLY), 0, true, false, 0, "Message", 280, 120, 0); } if (blank == 1) { - g_windowMgr.Confirm(LookupMessage(199), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NO_SPACE_IN_NAME), 0, true, false, 0, "Message", 280, 120, 0); } } diff --git a/Source/UI/Window/UINewSelectCharWnd.cpp b/Source/UI/Window/UINewSelectCharWnd.cpp index 008d50c8f..b0976e39c 100644 --- a/Source/UI/Window/UINewSelectCharWnd.cpp +++ b/Source/UI/Window/UINewSelectCharWnd.cpp @@ -33,6 +33,7 @@ #include "Script/LuaScript.h" #include "UI/Window/UIChangeNameWnd.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -208,7 +209,7 @@ void UINewSelectCharWnd::OnCreate(int width, int height) { this->m_textButton->SetBitmap("유저인터페이스\\select_character_ver3\\bt_info_press.bmp", 2, 0); this->m_textButton->SetSize(this->m_textButton->BitmapWidth(), this->m_textButton->BitmapHeight()); this->m_textButton->Move(0x33E, 0x15F); - this->m_textButton->SetText(LookupMessage(0xD10)); + this->m_textButton->SetText(LookupMessage(MSI_MAKECHARWND_HAIR_COLOR)); this->m_textButton->AddTextStyle(0, 0xC, 0x313131, 0, 1, -1000, -1000); this->m_textButton->AddTextStyle(1, 0xC, 0x313131, 0, 1, -1000, -1000); this->m_textButton->AddTextStyle(2, 0xC, 0x313131, 0, 1, -1000, -1000); @@ -224,7 +225,7 @@ void UINewSelectCharWnd::OnCreate(int width, int height) { startButton->SetBitmap("유저인터페이스\\select_character_ver3\\bt_info_normal.bmp", 3, 0); startButton->SetSize(startButton->BitmapWidth(), startButton->BitmapHeight()); startButton->Move(0x33E, 0x142); - startButton->SetText(LookupMessage(0xD0B)); + startButton->SetText(LookupMessage(MSI_SELECTCHARWND_DELETE)); startButton->AddTextStyle(0, 0xC, 0x313131, 0, 1, -1000, -1000); startButton->AddTextStyle(1, 0xC, 0x313131, 0, 1, -1000, -1000); startButton->AddTextStyle(2, 0xC, 0x313131, 0, 1, -1000, -1000); @@ -243,7 +244,7 @@ void UINewSelectCharWnd::OnCreate(int width, int height) { cancelDeleteButton->SetBitmap("유저인터페이스\\select_character_ver3\\bt_info_press.bmp", 2, 0); cancelDeleteButton->SetSize(cancelDeleteButton->BitmapWidth(), cancelDeleteButton->BitmapHeight()); cancelDeleteButton->Move(0x33E, 0x142); - cancelDeleteButton->SetText(LookupMessage(0xD0C)); + cancelDeleteButton->SetText(LookupMessage(MSI_SELECTCHARWND_CHARACTER_LIST)); cancelDeleteButton->AddTextStyle(0, 0xC, 0x313131, 0, 1, -1000, -1000); cancelDeleteButton->AddTextStyle(1, 0xC, 0x313131, 0, 1, -1000, -1000); cancelDeleteButton->AddTextStyle(2, 0xC, 0x313131, 0, 1, -1000, -1000); @@ -260,7 +261,7 @@ void UINewSelectCharWnd::OnCreate(int width, int height) { gameStartButton->SetSize(gameStartButton->BitmapWidth(), gameStartButton->BitmapHeight()); gameStartButton->Move(0x330, 0x197); gameStartButton->SetId(0xB8); - gameStartButton->SetText(LookupMessage(0xD0D)); + gameStartButton->SetText(LookupMessage(MSI_SELECTCHARWND_NOTICE)); gameStartButton->AddTextStyle(0, 0x12, 0xFFFFFF, 1, 1, -1000, 0x39); gameStartButton->AddTextStyle(1, 0x12, 0xFFFFFF, 1, 1, -1000, 0x39); gameStartButton->AddTextStyle(2, 0x12, 0xFFFFFF, 1, 1, -1000, 0x39); @@ -274,7 +275,7 @@ void UINewSelectCharWnd::OnCreate(int width, int height) { deleteButton->SetBitmap("유저인터페이스\\select_character_ver3\\bt_info_press.bmp", 2, 0); deleteButton->SetSize(deleteButton->BitmapWidth(), deleteButton->BitmapHeight()); deleteButton->Move(0x33E, 0x15F); - deleteButton->SetText(LookupMessage(0xD0E)); + deleteButton->SetText(LookupMessage(MSI_MAKECHARWND_CREATE)); deleteButton->AddTextStyle(0, 0xC, 0x313131, 0, 1, -1000, -1000); deleteButton->AddTextStyle(1, 0xC, 0x313131, 0, 1, -1000, -1000); deleteButton->AddTextStyle(2, 0xC, 0x313131, 0, 1, -1000, -1000); @@ -347,9 +348,9 @@ void UINewSelectCharWnd::OnCreate(int width, int height) { this->AddChild(this->m_nextPageButton); UIStaticText* pageTitle = new UIStaticText(); - const int titleWidth = this->TextWidth(LookupMessage(0xD0F), 0, 0, 0xC, 1, 0); - pageTitle->SetSize(titleWidth, this->TextHeight(LookupMessage(0xD0F), 0, 0, 0xC, 1, 0)); - pageTitle->SetText(LookupMessage(0xD0F), 0); + const int titleWidth = this->TextWidth(LookupMessage(MSI_MAKECHARWND_HAIR_STYLE), 0, 0, 0xC, 1, 0); + pageTitle->SetSize(titleWidth, this->TextHeight(LookupMessage(MSI_MAKECHARWND_HAIR_STYLE), 0, 0, 0xC, 1, 0)); + pageTitle->SetText(LookupMessage(MSI_MAKECHARWND_HAIR_STYLE), 0); pageTitle->SetColor(0x57, 0x66, 0x91); pageTitle->Move(0x380 - titleWidth / 2, 0x21A); this->AddChild(pageTitle); @@ -390,7 +391,7 @@ void UINewSelectCharWnd::OnCreate(int width, int height) { if (g_session.IsListedId(character->job, character->sex) == 1) { char message[260]; std::memset(message, 0, sizeof(message)); - std::sprintf(message, LookupMessage(0x974), index, 0x9C41); + std::sprintf(message, LookupMessage(MSI_REFUSE_OVER_USERLIMIT), index, 0x9C41); g_windowMgr.Confirm(message, 0, true, false, 0, "Message", 0x118, 0x78, 0); g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); break; @@ -611,7 +612,7 @@ int UINewSelectCharWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg if (info->gid == blocked[index].gid) { char text[260]; std::memset(text, 0, sizeof(text)); - std::sprintf(text, LookupMessage(0x337), blocked[index].expireDate); + std::sprintf(text, LookupMessage(MSI_BLOCKED), blocked[index].expireDate); g_windowMgr.Confirm(text, 0, true, true, 0, "Message", 0x118, 0x78, 0); this->m_unknown118 = false; return 0; @@ -632,10 +633,10 @@ int UINewSelectCharWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg case ID_CANCEL: g_accountLinkedUserDataMgr->Save(); if (g_session.m_loginModeFlag == 1) { - if (g_windowMgr.Confirm(LookupMessage(0xD68), 2, true, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_ENST_ANGELUS2), 2, true, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { g_modeMgr.gameMode->SendMsg(LMM_GOTO_LOGIN, 0, 0, 0, 0); } - } else if (g_windowMgr.Confirm(LookupMessage(0x11), 2, true, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + } else if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_TO_QUIT), 2, true, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); g_windowMgr.Schedule(this); } @@ -712,13 +713,13 @@ int UINewSelectCharWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg if (info->gid == blocked[index].gid) { char text[260]; std::memset(text, 0, sizeof(text)); - std::sprintf(text, LookupMessage(0x337), blocked[index].expireDate); + std::sprintf(text, LookupMessage(MSI_BLOCKED), blocked[index].expireDate); g_windowMgr.Confirm(text, 0, true, true, 0, "Message", 0x118, 0x78, 0); return 0; } } - if (g_windowMgr.Confirm(LookupMessage(0x13), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DELETE_CHARACTER), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { this->m_unknown118 = true; if (g_windowMgr.RunEmailAddress() == 0xB8) { g_modeMgr.gameMode->SendMsg(MM_COMMAND, 0x271A, 0, 0, 0); @@ -936,7 +937,7 @@ int UINewSelectCharWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg break; case 0x1B1: { const unsigned char selected = static_cast(g_selectedSlotIndex); - if (g_windowMgr.Confirm(LookupMessage(0x7E0), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_CHANGE_CHARACTER_SLOT), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { const CharacterInfo* info = reinterpret_cast(g_modeMgr.gameMode->SendMsg(MM_QUERYCHARICTORINFO, this->m_unknown138, 0, 0, 0)); if (info != nullptr) { CharacterMovePacket packet; diff --git a/Source/UI/Window/UINewSkillListWnd.cpp b/Source/UI/Window/UINewSkillListWnd.cpp index f6baea513..e1f452b5e 100644 --- a/Source/UI/Window/UINewSkillListWnd.cpp +++ b/Source/UI/Window/UINewSkillListWnd.cpp @@ -45,6 +45,7 @@ #include "Resource/Sprites/SpriteResource.h" #include "Client/Mode/CMode.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -356,7 +357,7 @@ void UINewSkillListWnd::DrawSkillList() { this->DrawTextAt(levelX, textY, text, 0, 0, 12, RGB(green, green, red), 0, 0); if (skill.unknown_000C == 0) { - std::sprintf(text, LookupMessage(286)); + std::sprintf(text, LookupMessage(MSI_PASSIVE)); } else { int sp = static_cast(skill.unknown_0014); const int useLevel = g_session.UseLevel(static_cast(skill.id)); @@ -734,7 +735,7 @@ void UINewSkillListWnd::InitTabs() { } if (initialTabCount == 0) { - this->m_tabs->AddTab(LookupMessage(1093), ""); + this->m_tabs->AddTab(LookupMessage(MSI_ETC), ""); } this->m_tabs->unknown_007C = this->m_tab; } @@ -925,8 +926,8 @@ void UINewSkillListWnd::Paint() { this->DrawBitmap(x, this->geometry.height - bitmap->image.height, bitmap, false); } - this->DrawTextAt(41, 6, LookupMessage(283), 0, 0, 12, 0xFFFFFF, 0, 0); - this->DrawTextAt(40, 5, LookupMessage(283), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(41, 6, LookupMessage(MSI_SKILLLIST), 0, 0, 12, 0xFFFFFF, 0, 0); + this->DrawTextAt(40, 5, LookupMessage(MSI_SKILLLIST), 0, 0, 12, 0, 0, 0); const int points = this->m_skillPoints; char text[80]; @@ -934,16 +935,16 @@ void UINewSkillListWnd::Paint() { if (g_session.m_simplifiedSkillList == 0) { const int total = g_session.m_skillPoint; if (points < total) { - StringFormat(text, sizeof(text), static_cast(-1), "%s^0000ff%d^000000(^ff0000%d^000000) / %d", LookupMessage(2343), points, total - points, + StringFormat(text, sizeof(text), static_cast(-1), "%s^0000ff%d^000000(^ff0000%d^000000) / %d", LookupMessage(MSI_REFUSE_CHANGE_PASSWD_SITE), points, total - points, total); } else { - StringFormat(text, sizeof(text), static_cast(-1), "%s%d", LookupMessage(2343), total); + StringFormat(text, sizeof(text), static_cast(-1), "%s%d", LookupMessage(MSI_REFUSE_CHANGE_PASSWD_SITE), total); } this->DrawWrappedFormattedText(80, this->geometry.height - 23, std::string(text), 0, 0, 0, 0, 12, 0, 0); this->DrawSkillTree(); this->DrawCharacter(); } else { - std::sprintf(text, LookupMessage(284), points); + std::sprintf(text, LookupMessage(MSI_SKILLPOINT), points); this->TextWidth(text, 0, 0, 12, 0, 0); this->DrawTextAt(30, this->geometry.height - 23, text, 0, 0, 12, 0, 0, 0); this->DrawSkillList(); @@ -1345,7 +1346,7 @@ int UINewSkillListWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s g_windowMgr.CloseWindow(WID_SKILLLISTWND); return 0; case ID_APPLY: - if (g_windowMgr.Confirm(LookupMessage(1377), 2, false, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_APPLY_SKILL_UP), 2, false, false, 0, "Message", 280, 120, 0) == 187) { this->ApplySkillPoints(); this->SendMsg(nullptr, UM_REFRESHITEM, 0, 0, 0, 0); if (ChatWindow()) { @@ -1553,7 +1554,7 @@ bool UINewSkillListWnd::IncreaseSkillLevel(int skillId) { if (static_cast(info->unknown_002C) <= 0) { const char* name = info->DisplayName(*g_session.m_hotkeyScript); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatString(LookupMessage(0xDCB), name)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(FormatString(LookupMessage(MSI_REFUSE_LOGIN_AUTH), name)), 0xFF, 0, 0, 0); return false; } diff --git a/Source/UI/Window/UINormalMB.cpp b/Source/UI/Window/UINormalMB.cpp index 0c47c9447..7eb284b65 100644 --- a/Source/UI/Window/UINormalMB.cpp +++ b/Source/UI/Window/UINormalMB.cpp @@ -10,6 +10,7 @@ #include "UI/UIStaticBitmap.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include // OFFSET: 0x00946C00 @@ -77,7 +78,7 @@ void UINormalMB::Create(UIWindow* owner, const char* text, int type, bool defaul this->m_owner = owner; this->m_message = text; if (!title) { - this->m_title = LookupMessage(3700); + this->m_title = LookupMessage(MSI_ITEM_GRADE_ENCHANT_FAIL); } else { this->m_title = title; } diff --git a/Source/UI/Window/UINoteWnd.cpp b/Source/UI/Window/UINoteWnd.cpp index 30cfa34ec..e6c7843b3 100644 --- a/Source/UI/Window/UINoteWnd.cpp +++ b/Source/UI/Window/UINoteWnd.cpp @@ -7,11 +7,12 @@ #include "UI/Window/UIWindowMgr.h" #include "UI/Window/WindowBorder.h" +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x0094C2D0 // FUNCTION: fn_12895 void UINoteWnd::OnCreate(int width, int height) { UIBasicButton* button = new UIBasicButton(); - button->Configure(60, LookupMessage(0xBE5)); + button->Configure(60, LookupMessage(MSI_ZENY_LOTTO_BUY_10)); button->Move(width - 68, height - 26); button->SetId(201); this->AddChild(button); diff --git a/Source/UI/Window/UIOpenMailBoxWnd.cpp b/Source/UI/Window/UIOpenMailBoxWnd.cpp index 892a3f9ad..0b397d123 100644 --- a/Source/UI/Window/UIOpenMailBoxWnd.cpp +++ b/Source/UI/Window/UIOpenMailBoxWnd.cpp @@ -6,6 +6,7 @@ #include "UI/Window/UIWindowMgr.h" #include "UI/Window/WindowManagerWindows.h" +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x0094F020 // FUNCTION: fn_12927 void UIOpenMailBoxWnd::UpdateMailIcon() { @@ -40,22 +41,22 @@ int UIOpenMailBoxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, st } if (g_windowMgr.LookupWindow(WID_REFININGWND)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2992)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_AURA_EFFECT_OFF)), 0xFF, 0, 0, 0); return 0; } if (g_windowMgr.LookupWindow(WID_GRADEENCHANTWND)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3715)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BROADCASTING_GRADE_ENCHANT_SUCCESS)), 0xFF, 0, 0, 0); return 0; } if (g_windowMgr.LookupWindow(WID_ENCHANTUI)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(3843)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ENCHANT_REQUEST)), 0xFF, 0, 0, 0); return 0; } if (g_windowMgr.LookupWindow(WID_RUNESYSTEMWND)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(4054)), 0xFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_CLOSE_BANKING)), 0xFF, 0, 0, 0); return 0; } diff --git a/Source/UI/Window/UIPartyBookingHelpWnd.cpp b/Source/UI/Window/UIPartyBookingHelpWnd.cpp index 375d9e9f1..d0416e7b3 100644 --- a/Source/UI/Window/UIPartyBookingHelpWnd.cpp +++ b/Source/UI/Window/UIPartyBookingHelpWnd.cpp @@ -10,6 +10,7 @@ #include "UI/Text/UITextViewer.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -38,7 +39,7 @@ void UIPartyBookingHelpWnd::OnCreate(int width, int height) { // OFFSET: 0x0092D630 // FUNCTION: fn_12670 void UIPartyBookingHelpWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(1716), 0); + this->DrawTitleBar(true, LookupMessage(MSI_DESCRIBE_PARTY_BOOKING), 0); this->DrawPanelBackground(17, 0, ""); } diff --git a/Source/UI/Window/UIPetEvolutionWnd.cpp b/Source/UI/Window/UIPetEvolutionWnd.cpp index 23613a708..1d8fd1a11 100644 --- a/Source/UI/Window/UIPetEvolutionWnd.cpp +++ b/Source/UI/Window/UIPetEvolutionWnd.cpp @@ -17,6 +17,7 @@ #include "UI/Window/UIWindowMgr.h" #include "UI/Window/WindowBorder.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -62,7 +63,7 @@ void UIPetEvolutionWnd::OnCreate(int width, int height) { // FUNCTION: fn_13764 void UIPetEvolutionWnd::Paint() { this->ClearSurface(0xFFFFFFFF); - this->DrawTitleBar(true, LookupMessage(2567), 0); + this->DrawTitleBar(true, LookupMessage(MSI_DO_YOU_WANT_TO_EVOLVE_PET), 0); char text[260]; std::memset(text, 0, sizeof(text)); @@ -106,7 +107,7 @@ void UIPetEvolutionWnd::Paint() { } } - this->DrawTextAt(10, 200, LookupMessage(2569), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(10, 200, LookupMessage(MSI_PET_EVOLUTION_FAIL_NOTEXIST_CALLPET), 0, 0, 12, 0, 0, 0); int index = 0; for (auto it = this->m_materials.begin(); it != this->m_materials.end(); ++it, ++index) { @@ -117,7 +118,7 @@ void UIPetEvolutionWnd::Paint() { ); } - this->DrawTextAt(10, this->geometry.height - 52, LookupMessage(2570), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(10, this->geometry.height - 52, LookupMessage(MSI_PET_EVOLUTION_FAIL_NOT_PETEGG), 0, 0, 12, 0, 0, 0); } namespace { @@ -141,7 +142,7 @@ int UIPetEvolutionWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argu for (auto it = this->m_materials.begin(); it != this->m_materials.end(); ++it) { ITEM_INFO item = LookupClientItem(g_session.m_inventoryItems, it->first, 1); if (item.quantity < it->second) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2574)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PET_AUTO_FEEDING)), 255, 0, 0, 0); return 0; } materials.push_back(static_cast(item.unknown_0000[1])); @@ -149,7 +150,7 @@ int UIPetEvolutionWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argu } if (g_session.unknown_1038 != 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2607)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TIME_LINE_DAY2)), 255, 0, 0, 0); return 0; } diff --git a/Source/UI/Window/UIRoMapWnd.cpp b/Source/UI/Window/UIRoMapWnd.cpp index 24d73686e..eea3a6320 100644 --- a/Source/UI/Window/UIRoMapWnd.cpp +++ b/Source/UI/Window/UIRoMapWnd.cpp @@ -29,6 +29,7 @@ #include "UI/Buttons/UICheckBox.h" #include "UI/Edit/UIEditCtrl.h" #include "UI/Lists/UIComboBoxDefWnd.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -1032,7 +1033,7 @@ void UIRoMapWnd::OnCreate(int, int) { std::string unchecked = "유저인터페이스\\checkbox_0.bmp"; this->m_labelCheck = new (std::nothrow) UICheckBox(); this->m_labelCheck->SetSize(80, 12); - this->m_labelCheck->SetImages(checked.c_str(), unchecked.c_str(), LookupMessage(0x988)); + this->m_labelCheck->SetImages(checked.c_str(), unchecked.c_str(), LookupMessage(MSI_WORLDMAP_MSG4)); this->m_labelCheck->SetId(192); this->m_labelCheck->Move(closeX - 82, 3); this->m_labelCheck->SetChecked(this->m_showLabels); @@ -1046,7 +1047,7 @@ void UIRoMapWnd::OnCreate(int, int) { this->m_searchButton->SetSize(this->m_searchButton->BitmapWidth(), this->m_searchButton->BitmapHeight()); this->m_searchButton->Move(-100, -100); this->m_searchButton->SetId(321); - this->m_searchButton->SetTooltip(LookupMessage(0x894)); + this->m_searchButton->SetTooltip(LookupMessage(MSI_NAVIGATION_SEARCHINFO)); this->AddChild(this->m_searchButton); this->m_searchListButton = new UIBitmapButton(); @@ -1056,7 +1057,7 @@ void UIRoMapWnd::OnCreate(int, int) { this->m_searchListButton->SetSize(this->m_searchListButton->BitmapWidth(), this->m_searchListButton->BitmapHeight()); this->m_searchListButton->Move(-100, -100); this->m_searchListButton->SetId(200); - this->m_searchListButton->SetTooltip(LookupMessage(0xC8D)); + this->m_searchListButton->SetTooltip(LookupMessage(MSI_NAVIGATION_V4_HELP01)); this->AddChild(this->m_searchListButton); this->m_searchEdit = new UIEditCtrl(); @@ -1067,7 +1068,7 @@ void UIRoMapWnd::OnCreate(int, int) { this->m_searchEdit->Border(200, 100, 100); this->m_searchEdit->flat = 0; UIEditCtrl* edit = this->m_searchEdit; - if (const char* tooltip = LookupMessage(0x8A2)) { + if (const char* tooltip = LookupMessage(MSI_NAVIGATION_SERVICE)) { edit->tooltip = tooltip; } this->AddChild(this->m_searchEdit); diff --git a/Source/UI/Window/UIRodexContentsWnd.cpp b/Source/UI/Window/UIRodexContentsWnd.cpp index 2733888c4..e15f56112 100644 --- a/Source/UI/Window/UIRodexContentsWnd.cpp +++ b/Source/UI/Window/UIRodexContentsWnd.cpp @@ -35,6 +35,7 @@ #include "Utility/Text/FormatString.h" #include "Utility/Text/GroupedInteger.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -120,7 +121,7 @@ void UIRodexContentsWnd::OnCreate(int, int) { if ((mail->second.unknown_0001 & 8) == 0 && mail->second.unknown_0194 == 0) { UIBasicButton* report = new UIBasicButton(); - report->Configure(70, LookupMessage(3548)); + report->Configure(70, LookupMessage(MSI_FAILED_HOMUN_AUTO_FEEDING_BY_ITEMACTION)); report->Move(224, 29); report->SetId(310); report->SetDisabled(0); @@ -149,7 +150,7 @@ void UIRodexContentsWnd::OnCreate(int, int) { } this->unknown_0104 = new UIBasicButton(); - this->unknown_0104->Configure(50, LookupMessage(3542)); + this->unknown_0104->Configure(50, LookupMessage(MSI_RODEX_BUTTON_CONFIRM_ID)); this->unknown_0104->Move(6, 376); this->unknown_0104->SetId(211); this->AddChild(this->unknown_0104); @@ -164,7 +165,7 @@ void UIRodexContentsWnd::Paint() { ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\bg_rodex_read.bmp")) ); this->DrawBitmap(0, 0, &background->image, false); - this->DrawTitleBar(true, LookupMessage(2727), 0); + this->DrawTitleBar(true, LookupMessage(MSI_RODEX_CHOOSEWND_FAILED), 0); this->DrawTextAt(8, 29, this->m_title.c_str(), 0, 0, 12, 0x95330F, 1, 0); this->DrawTextAt(9, 52, this->m_sender.c_str(), 0, 0, 12, 0x313131, 0, 0); @@ -223,7 +224,7 @@ void UIRodexContentsWnd::OnMouseHover(int x, int y) { this->ToScreen(tooltipX, tooltipY); CMode* tooltip = g_modeMgr.gameMode; if (item.identified == 1 && item.unknown_0098 != 0) { - tooltip->ShowTooltip(FormatOwnedString(LookupMessage(2600), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, + tooltip->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { tooltip->ShowTooltip(item.DisplayName(0).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); @@ -301,11 +302,11 @@ int UIRodexContentsWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg } if ((mail->second.unknown_0001 & 6) != 0) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xA34)), 0x64FFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILE_MAIL_RECIEVER_INFO)), 0x64FFFF, 0, 0, 0); break; } - if (g_windowMgr.Confirm(LookupMessage(0x164), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_DELETE), 2, false, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { g_modeMgr.GetGameMode()->SendMsg(MM_DELETE_MAIL, static_cast(g_rodexMailStore->currentMailId), g_rodexMailStore->unknown_0010, 0, 0); if (g_windowMgr.unknown_045C != 0) { g_windowMgr.CloseWindow(WID_RODEXCONTENTSWND); @@ -413,7 +414,7 @@ void UIRodexContentsWnd::SetMailContents(std::string title, std::string sender, if (g_rodexMailStore->unknown_0010 == 0 && (flags & 8) == 0) { this->unknown_0108 = new UIBasicButton(); - this->unknown_0108->Configure(70, LookupMessage(3543)); + this->unknown_0108->Configure(70, LookupMessage(MSI_RODEX_TAB_ADMIN)); this->unknown_0108->Move(224, 376); this->unknown_0108->SetId(305); this->unknown_0108->SetDisabled(0); diff --git a/Source/UI/Window/UIRoulletteWnd.cpp b/Source/UI/Window/UIRoulletteWnd.cpp index 808b3a941..4fddba526 100644 --- a/Source/UI/Window/UIRoulletteWnd.cpp +++ b/Source/UI/Window/UIRoulletteWnd.cpp @@ -28,6 +28,7 @@ #include "Render/Text/TextContext.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -188,7 +189,7 @@ void UIRoulletteWnd::OnCreate(int, int) { // OFFSET: 0x0080C220 // FUNCTION: fn_10087 void UIRoulletteWnd::Paint() { - this->DrawTitleBar(true, LookupMessage(2641), 0); + this->DrawTitleBar(true, LookupMessage(MSI_CHECK_USER_NAME), 0); this->DrawPanelBackground(17, 0, "유저인터페이스\\basic_interface\\roullette\\roulletteBG.bmp"); char buffer[40] = {}; @@ -258,7 +259,7 @@ void UIRoulletteWnd::OnMouseHover(int x, int y) { this->ToScreen(tooltipX, tooltipY); CMode* tooltip = g_modeMgr.gameMode; if (item.identified == 1 && item.unknown_0098 != 0) { - tooltip->ShowTooltip(FormatOwnedString(LookupMessage(2600), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, + tooltip->ShowTooltip(FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), item.DisplayName(0).c_str(), item.unknown_0098).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); } else { tooltip->ShowTooltip(item.DisplayName(0).c_str(), tooltipX, tooltipY, g_session.GetItemNameColor(item), 0, 1); @@ -289,7 +290,7 @@ void UIRoulletteWnd::OnProcess() { if (this->m_startButton->geometry.unknown_0030 == 1 && this->m_enabled == 1) { if (g_rouletteMgr->m_spinning == 0) { this->m_startSprite->Move(339, 398); - this->m_startSprite->SetTooltip(LookupMessage(2684)); + this->m_startSprite->SetTooltip(LookupMessage(MSI_GUILD_MAKE_GUILD_NOT_PERMITTED_MAP)); this->m_stageArrow->Move(480, 337 - (this->CoinType() + g_rouletteMgr->m_stage) * 40); } if (g_rouletteMgr->m_resultShown == 1 && g_rouletteMgr->m_bonus == 0) { @@ -308,7 +309,7 @@ void UIRoulletteWnd::OnProcess() { if (this->m_prizeButton->geometry.unknown_0030 == 1) { this->m_prizeSprite->Move(203, 398); - this->m_prizeSprite->SetTooltip(LookupMessage(2683)); + this->m_prizeSprite->SetTooltip(LookupMessage(MSI_TAKEOFF_TITLE)); this->m_prizeButton->SetState(0); } @@ -367,7 +368,7 @@ int UIRoulletteWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argumen return 0; } } else { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(2640)), 0x6464FF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_FAILED_SEND_MAIL_ITEMS)), 0x6464FF, 0, 0, 0); } break; case ID_ROULETTE_GENERATE: diff --git a/Source/UI/Window/UISecondCostumeWnd.cpp b/Source/UI/Window/UISecondCostumeWnd.cpp index 96bac7ce7..8636d80fd 100644 --- a/Source/UI/Window/UISecondCostumeWnd.cpp +++ b/Source/UI/Window/UISecondCostumeWnd.cpp @@ -18,6 +18,7 @@ #include "UI/Window/WindowManagerWindows.h" #include "Client/Session.h" #include "Script/LuaScript.h" +#include "Resource/MSGSTRINGID.h" // OFFSET: 0x00948D20 // FUNCTION: fn_12882 void UISecondCostumeWnd::DrawCharacterPreview(int x, int y) { @@ -184,10 +185,10 @@ void UISecondCostumeWnd::OnCreate(int width, int height) { this->m_typeCombo->green = 232; this->m_typeCombo->blue = 232; this->AddChild(this->m_typeCombo); - this->m_typeCombo->AddOption(LookupMessage(2763), 0); - this->m_typeCombo->AddOption(LookupMessage(2764), 0); - this->m_typeCombo->AddOption(LookupMessage(2765), 0); - this->m_typeCombo->AddOption(LookupMessage(2766), 0); + this->m_typeCombo->AddOption(LookupMessage(MSI_DRESSROOM_BODYSTYLE), 0); + this->m_typeCombo->AddOption(LookupMessage(MSI_MINIMAP_MSG_16), 0); + this->m_typeCombo->AddOption(LookupMessage(MSI_BANK_MAX_MONEY), 0); + this->m_typeCombo->AddOption(LookupMessage(MSI_BANK_MIN_MONEY), 0); this->m_typeCombo->Select(this->m_tab); auto* previous = new UIBitmapButton(); diff --git a/Source/UI/Window/UISeekPartyListWnd.cpp b/Source/UI/Window/UISeekPartyListWnd.cpp index a20e3f71d..c8649c91d 100644 --- a/Source/UI/Window/UISeekPartyListWnd.cpp +++ b/Source/UI/Window/UISeekPartyListWnd.cpp @@ -21,6 +21,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -44,7 +45,7 @@ void UISeekPartyListWnd::OnCreate(int width, int height) { std::string label; { - std::string title(LookupMessage(0x699)); + std::string title(LookupMessage(MSI_SEEK_PARTY_LIST)); this->m_title = new UIStaticText(); this->m_title->SetSize(this->geometry.width - 0x20, 0xF); this->m_title->SetTextFitted(title.c_str()); @@ -89,7 +90,7 @@ void UISeekPartyListWnd::OnCreate(int width, int height) { this->m_jobLabel->shadow = 1; this->AddChild(this->m_jobLabel); - label = LookupMessage(0x72A); + label = LookupMessage(MSI_TALK); this->m_footerText = new UIStaticText(); this->m_footerText->SetSize(this->geometry.width - 10, 0x1E); this->m_footerText->SetText(label.c_str(), 0); @@ -98,25 +99,25 @@ void UISeekPartyListWnd::OnCreate(int width, int height) { this->m_filterLabel0 = new UIStaticText(); this->m_filterLabel0->SetSize(0x32, 0x14); - this->m_filterLabel0->SetText(LookupMessage(0x6A1), 0); + this->m_filterLabel0->SetText(LookupMessage(MSI_TIME), 0); this->m_filterLabel0->Move(0x21, 0x68); this->AddChild(this->m_filterLabel0); this->m_filterLabel1 = new UIStaticText(); this->m_filterLabel1->SetSize(0x32, 0x14); - this->m_filterLabel1->SetText(LookupMessage(0x197), 0); + this->m_filterLabel1->SetText(LookupMessage(MSI_NAME), 0); this->m_filterLabel1->Move(0x6A, 0x68); this->AddChild(this->m_filterLabel1); this->m_filterLabel2 = new UIStaticText(); this->m_filterLabel2->SetSize(0x32, 0x14); - this->m_filterLabel2->SetText(LookupMessage(0x198), 0); + this->m_filterLabel2->SetText(LookupMessage(MSI_LEVEL), 0); this->m_filterLabel2->Move(0xDC, 0x68); this->AddChild(this->m_filterLabel2); this->m_filterLabel3 = new UIStaticText(); this->m_filterLabel3->SetSize(0x32, 0x14); - this->m_filterLabel3->SetText(LookupMessage(0x6A2), 0); + this->m_filterLabel3->SetText(LookupMessage(MSI_MAP), 0); this->m_filterLabel3->Move(0x16D, 0x68); this->AddChild(this->m_filterLabel3); @@ -159,7 +160,7 @@ void UISeekPartyListWnd::OnCreate(int width, int height) { this->m_alarmCheck = new UICheckBox(); this->m_alarmCheck->SetSize(0x3C, 0x14); this->m_alarmCheck->SetSize(100, 0xC); - this->m_alarmCheck->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(0x69E)); + this->m_alarmCheck->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_ALRAM)); this->m_alarmCheck->Move(0x1AE, 0x2B); this->m_alarmCheck->SetChecked(g_session.m_partyBooking.m_alarm); this->AddChild(this->m_alarmCheck); @@ -201,9 +202,9 @@ void UISeekPartyListWnd::OnCreate(int width, int height) { } this->m_refreshButton = new UITextButton(); - this->m_refreshButton->Configure(LookupMessage(0x6E3), 0, 0, 0xC, 0, 0); + this->m_refreshButton->Configure(LookupMessage(MSI_PARTY_BOOKING_REQURTING), 0, 0, 0xC, 0, 0); this->m_refreshButton->m_hoverColor = 0xEFB700; - this->m_refreshButton->SetTooltip(LookupMessage(0x6E4)); + this->m_refreshButton->SetTooltip(LookupMessage(MSI_PARTY_BOOKING_REQURT_TIP)); this->m_refreshButton->Move(10, this->geometry.height - 0x16); this->m_refreshButton->SetId(0x17A); this->AddChild(this->m_refreshButton); @@ -272,7 +273,7 @@ int UISeekPartyListWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg std::string text(this->m_searchEdit->Text()); for (std::size_t i = 0; i < text.size(); ++i) { if (text[i] < '/' || text[i] > '9') { - g_windowMgr.Confirm(LookupMessage(1770), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PARTY_BOOKING_ERR4), 0, true, false, 0, "Message", 280, 120, 0); return 0; } } @@ -280,7 +281,7 @@ int UISeekPartyListWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg if (packet.level < 0 || packet.level > g_session.m_maxLevel) { char buffer[260]; std::memset(buffer, 0, sizeof(buffer)); - StringFormat(buffer, sizeof(buffer), static_cast(-1), LookupMessage(2601), g_session.m_maxLevel); + StringFormat(buffer, sizeof(buffer), static_cast(-1), LookupMessage(MSI_FAILED_TO_WRITE_MAIL), g_session.m_maxLevel); g_windowMgr.Confirm(buffer, 0, true, false, 0, "Message", 280, 120, 0); return 0; } @@ -319,7 +320,7 @@ int UISeekPartyListWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg this->m_filterLevel = packet.level; this->m_filterMap = packet.mapId; - std::string title(LookupMessage(0x6E5)); + std::string title(LookupMessage(MSI_PARTY_BOOKING_SEARCH)); if (packet.level > 0) { title += " Level: "; title += IntToString(packet.level, 0); @@ -424,7 +425,7 @@ int UISeekPartyListWnd::SendMsg(UIWindow* sender, int message, std::intptr_t arg void UISeekPartyListWnd::NotifyNewAd() { if (this->m_alarmCheck->geometry.unknown_0030 != 0) { g_soundMgr->PlayWave("party_alarm.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0); - const char* message = LookupMessage(0x6D9); + const char* message = LookupMessage(MSI_PARTY_BOOKING_NOTIFY); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(message), 0xFFFF00, 15, 0, 0); } } @@ -614,19 +615,19 @@ void UISeekPartyListWnd::InitRegionFilter() { // OFFSET: 0x00943830 // FUNCTION: fn_12829 void UISeekPartyListWnd::InitJobFilter() { - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6E6), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6DB), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6DC), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6DD), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6DE), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6DF), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6E0), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6E1), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6E2), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_ALL_SELECT), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_1), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_2), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_3_1), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_3_2), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_1PLUS), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_2PLUS), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_ETC), 0); int counts[9] = {0, 0, 6, 13, 6, 7, 6, 13, 8}; int message = 0; - this->m_jobOptions[0].push_back(std::string(LookupMessage(0x6E6))); + this->m_jobOptions[0].push_back(std::string(LookupMessage(MSI_PARTY_BOOKING_ALL_SELECT))); for (int i = 0; i < 4; ++i) { std::string name(LookupMessage(0x6B0 + i)); diff --git a/Source/UI/Window/UISeekPartyMBWnd.cpp b/Source/UI/Window/UISeekPartyMBWnd.cpp index f519b7b70..4d1948561 100644 --- a/Source/UI/Window/UISeekPartyMBWnd.cpp +++ b/Source/UI/Window/UISeekPartyMBWnd.cpp @@ -18,6 +18,7 @@ #include "UI/Window/WindowManagerWindows.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -57,14 +58,14 @@ int UISeekPartyMBWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, st } if (count == 0) { - g_windowMgr.Confirm(LookupMessage(1768), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PARTY_BOOKING_ERR2), 0, true, false, 0, "Message", 280, 120, 0); break; } if (count > 6) { char text[100]; std::memset(text, 0, sizeof(text)); - std::sprintf(text, LookupMessage(1769), count); + std::sprintf(text, LookupMessage(MSI_PARTY_BOOKING_ERR3), count); g_windowMgr.Confirm(text, 0, true, false, 0, "Message", 280, 120, 0); break; } @@ -72,7 +73,7 @@ int UISeekPartyMBWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, st std::string level(this->m_levelEdit->Text()); for (unsigned int i = 0; i < level.size(); ++i) { if (level[i] < '/' || level[i] > '9') { - g_windowMgr.Confirm(LookupMessage(1770), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_PARTY_BOOKING_ERR4), 0, true, false, 0, "Message", 280, 120, 0); return 0; } } @@ -91,7 +92,7 @@ int UISeekPartyMBWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, st } else { char text[260]; std::memset(text, 0, sizeof(text)); - StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(2601), maximum); + StringFormat(text, sizeof(text), static_cast(-1), LookupMessage(MSI_FAILED_TO_WRITE_MAIL), maximum); g_windowMgr.Confirm(text, 0, true, false, 0, "Message", 280, 120, 0); } break; @@ -202,14 +203,14 @@ void UISeekPartyMBWnd::CreateJobChecks() { // OFFSET: 0x009447D0 // FUNCTION: fn_12832 void UISeekPartyMBWnd::InitJobCategoryCombo() { - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6DB), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6DC), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6DD), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6DE), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6DF), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6E0), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6E1), 0); - this->m_jobCategoryCombo->AddOption(LookupMessage(0x6E2), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_1), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_2), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_3_1), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_3_2), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_1PLUS), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_2PLUS), 0); + this->m_jobCategoryCombo->AddOption(LookupMessage(MSI_PARTY_BOOKING_TYPE_ETC), 0); this->m_jobCategoryCombo->Select(0); } @@ -268,7 +269,7 @@ UISeekPartyMBWnd::~UISeekPartyMBWnd() = default; void UISeekPartyMBWnd::OnCreate(int width, int height) { char title[64]; std::memset(title, 0, sizeof(title)); - std::sprintf(title, LookupMessage(0x698)); + std::sprintf(title, LookupMessage(MSI_SEEK_PARTY_MEMBER)); this->m_titleText = new UIStaticText(); this->m_titleText->SetSize(this->geometry.width - 0x20, 0xF); @@ -339,7 +340,7 @@ void UISeekPartyMBWnd::OnCreate(int width, int height) { this->m_levelEdit->Border(0x64, 0x64, 0x64); this->m_levelEdit->flat = 0; UIEditCtrl* edit = this->m_levelEdit; - if (const char* tooltip = LookupMessage(0x79D)) { + if (const char* tooltip = LookupMessage(MSI_SEEK_PARTY_LEVEL_HELP)) { edit->tooltip = tooltip; } this->AddChild(this->m_levelEdit); diff --git a/Source/UI/Window/UISeekPartyWnd.cpp b/Source/UI/Window/UISeekPartyWnd.cpp index 898331053..32ac20337 100644 --- a/Source/UI/Window/UISeekPartyWnd.cpp +++ b/Source/UI/Window/UISeekPartyWnd.cpp @@ -6,6 +6,7 @@ #include "UI/Text/UIStaticText.h" #include "UI/Window/UIJobListWnd.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -37,7 +38,7 @@ void UISeekPartyWnd::OnCreate(int, int) { if (minimum + 0xF <= maximum) { maximum = minimum + 0xF; } - std::sprintf(text, "%s - %d~%d", LookupMessage(0x6DA), minimum, maximum); + std::sprintf(text, "%s - %d~%d", LookupMessage(MSI_PARTY_BOOKING_REQURT), minimum, maximum); this->m_label = new UIStaticText(); this->m_label->SetSize(this->geometry.width - 0x20, 0xF); diff --git a/Source/UI/Window/UISelCharForUServerWnd.cpp b/Source/UI/Window/UISelCharForUServerWnd.cpp index 97c030fca..29c4f2cdd 100644 --- a/Source/UI/Window/UISelCharForUServerWnd.cpp +++ b/Source/UI/Window/UISelCharForUServerWnd.cpp @@ -16,6 +16,7 @@ #include "Render/Renderer.h" #include "UI/Text/UICharInfoBalloonText.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -141,7 +142,7 @@ int UISelCharForUServerWnd::SendMsg(UIWindow* sender, int message, std::intptr_t switch (argument1) { case ID_OK: { - if (g_windowMgr.Confirm(LookupMessage(0x4BB), 2, false, false, 0, "Message", 280, 120, 0) != 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_CONFIRM_SELECT_CHARACTERS), 2, false, false, 0, "Message", 280, 120, 0) != 0xBB) { return 0; } @@ -170,13 +171,13 @@ int UISelCharForUServerWnd::SendMsg(UIWindow* sender, int message, std::intptr_t return 0; } - g_windowMgr.Confirm(LookupMessage(0x4C1), 0, true, true, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_NO_SELECT_CHARACTERS), 0, true, true, 0, "Message", 280, 120, 0); break; } case ID_CHECK: this->m_checkedCount += sender->geometry.unknown_0030 != 0 ? 1 : -1; if (this->m_checkedCount > 9) { - g_windowMgr.Confirm(LookupMessage(0x4BC), 0, true, true, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_ERROR_SELECT_CHARACTERS), 0, true, true, 0, "Message", 280, 120, 0); static_cast(sender)->SetChecked(0); } break; diff --git a/Source/UI/Window/UISerachStoreInfoWnd.cpp b/Source/UI/Window/UISerachStoreInfoWnd.cpp index d52cf0106..c3a8c85fd 100644 --- a/Source/UI/Window/UISerachStoreInfoWnd.cpp +++ b/Source/UI/Window/UISerachStoreInfoWnd.cpp @@ -19,6 +19,7 @@ #include "UI/Window/UIWindowMgr.h" #include "Utility/Text/FormatString.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -95,8 +96,8 @@ void UISerachStoreInfoWnd::OnCreate(int width, int height) { this->AddChild(*radio); ++radio; } - this->m_radios[0]->SetText(LookupMessage(0x6F2)); - this->m_radios[1]->SetText(LookupMessage(0x6F3)); + this->m_radios[0]->SetText(LookupMessage(MSI_SELL)); + this->m_radios[1]->SetText(LookupMessage(MSI_BUY)); this->m_radios[this->unknown_00E4]->SendMsg(this, UM_SETSTATE, 1, 0, 0, 0); this->m_edits[1] = new UIEditCtrl(); @@ -116,7 +117,7 @@ void UISerachStoreInfoWnd::OnCreate(int width, int height) { this->m_edits[0]->Border(0xC0, 0xC0, 0xC0); this->m_edits[0]->flat = 0; UIEditCtrl* edit = this->m_edits[0]; - if (const char* tooltip = LookupMessage(0x709)) { + if (const char* tooltip = LookupMessage(MSI_SSI_TOOLTIP_OF_SERACHING_THE_CARD)) { edit->tooltip = tooltip; } this->m_edits[0]->disabled = 1; @@ -148,7 +149,7 @@ void UISerachStoreInfoWnd::OnCreate(int width, int height) { UICheckBox* check = new UICheckBox(); check->SetSize(0xA0, 0xC); - check->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(0x6FC)); + check->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", LookupMessage(MSI_SEARCH_INCLUDED)); check->Move(100, 0x3C); check->SetChecked(this->unknown_00ED); this->AddChild(check); @@ -166,20 +167,20 @@ void UISerachStoreInfoWnd::OnCreate(int width, int height) { } this->m_prevButton = new UITextButton(); - this->m_prevButton->Configure(LookupMessage(0x41D), 0x8E8E8E, 0, 0xC, 0, 0); + this->m_prevButton->Configure(LookupMessage(MSI_PREV_PAGE), 0x8E8E8E, 0, 0xC, 0, 0); this->m_prevButton->m_hoverColor = 0xEFB700; this->m_prevButton->Move( - this->geometry.width / 2 - this->TextWidth(LookupMessage(0x41D), 0, 0, 0xC, 0, 0) - 0x14, + this->geometry.width / 2 - this->TextWidth(LookupMessage(MSI_PREV_PAGE), 0, 0, 0xC, 0, 0) - 0x14, this->geometry.height - 0x15); - this->m_prevButton->SetTooltip(LookupMessage(0x41D)); + this->m_prevButton->SetTooltip(LookupMessage(MSI_PREV_PAGE)); this->m_prevButton->SetId(0x13C); this->AddChild(this->m_prevButton); this->m_nextButton = new UITextButton(); - this->m_nextButton->Configure(LookupMessage(0x41E), 0x8E8E8E, 0, 0xC, 0, 0); + this->m_nextButton->Configure(LookupMessage(MSI_NEXT_PAGE), 0x8E8E8E, 0, 0xC, 0, 0); this->m_nextButton->m_hoverColor = 0xEFB700; this->m_nextButton->Move(this->geometry.width / 2 + 0x14, this->geometry.height - 0x15); - this->m_nextButton->SetTooltip(LookupMessage(0x41E)); + this->m_nextButton->SetTooltip(LookupMessage(MSI_NEXT_PAGE)); this->m_nextButton->SetId(0x13D); this->AddChild(this->m_nextButton); @@ -241,7 +242,7 @@ int UISerachStoreInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a std::string itemName = this->m_edits[1]->Text(); if (itemName.size() == 0) { this->unknown_00EC = 0; - this->unknown_00F0 = LookupMessage(1809); + this->unknown_00F0 = LookupMessage(MSI_SSI_FAILED_ENTER_THE_NAME_OF_ITEM); } if (this->unknown_00EC != 0) { std::list itemIds; @@ -249,12 +250,12 @@ int UISerachStoreInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a itemIds = SearchItemIds(itemName, 0, this->unknown_00ED); if (itemIds.size() == 0) { this->unknown_00EC = 0; - this->unknown_00F0 = LookupMessage(1799); + this->unknown_00F0 = LookupMessage(MSI_SSI_FAILED_ITEM_DOES_NOT_EXIST); } else if (cardName.size() != 0) { cardIds = SearchItemIds(cardName, 1, this->unknown_00ED); if (cardIds.size() == 0) { this->unknown_00EC = 0; - this->unknown_00F0 = LookupMessage(1812); + this->unknown_00F0 = LookupMessage(MSI_SSI_FAILED_NAME_OF_CARD_DOES_NOT_EXIST); } } @@ -284,7 +285,7 @@ int UISerachStoreInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a } } if (this->unknown_00EC == 0) { - this->unknown_00F0 = LookupMessage(1804); + this->unknown_00F0 = LookupMessage(MSI_SSI_FAILED_PRICE_ISNOT_VALID); } if (this->unknown_00EC != 0) { const short length = static_cast(count * 4 + 15); @@ -336,23 +337,23 @@ int UISerachStoreInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a this->unknown_00DC = 1; g_session.unknown_5BD4.clear(); reinterpret_cast(&g_session.unknown_5BE4)[1] = 0; - this->unknown_00F0 = LookupMessage(1803); + this->unknown_00F0 = LookupMessage(MSI_SSI_FAILED_SEARCH_STORE); --g_session.unknown_5BE0; break; case SSI_FAILED_OVER_MAXCOUNT: - this->unknown_00F0 = LookupMessage(1784); + this->unknown_00F0 = LookupMessage(MSI_SSI_FAILED_OVER_MAXCOUNT); break; case SSI_FAILED_SEARCH_CNT: - this->unknown_00F0 = LookupMessage(1798); + this->unknown_00F0 = LookupMessage(MSI_SSI_FAILED_SEARCH_CNT); break; case SSI_FAILED_LIMIT_SEARCH_TIME: - g_windowMgr.Confirm(LookupMessage(1800), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_SSI_FAILED_LIMIT_SERACH_TIME), 0, true, false, 0, "Message", 280, 120, 0); return 0; case SSI_FAILED_SSILIST_CLICK_TO_OPEN_STORE: g_session.unknown_5BE8 = -1; g_session.unknown_5BEC = -1; g_session.unknown_5BF0 = 0xFFFFFFFF; - g_windowMgr.Confirm(LookupMessage(1797), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_FAIL_OPEN_STORE), 0, true, false, 0, "Message", 280, 120, 0); return 0; } } @@ -360,7 +361,7 @@ int UISerachStoreInfoWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a this->m_findButton->SetDisabled(0); this->m_findButton->Invalidate(); } else if (g_session.unknown_5BD4.empty() && this->unknown_00EC != 0) { - this->unknown_00F0 = LookupMessage(1102); + this->unknown_00F0 = LookupMessage(MSI_SEARCHING_ITEM); } this->m_prevButton->Enable(this->unknown_00DC != 1); this->m_nextButton->Enable(reinterpret_cast(&g_session.unknown_5BE4)[1]); @@ -423,7 +424,7 @@ void UISerachStoreInfoWnd::OnLBtnDblClk(int x, int y) { } if (reinterpret_cast(&g_session.unknown_5BE4)[1] != 0 && - g_windowMgr.Confirm(LookupMessage(0x6F9), 2, true, false, 0, "Message", 0x118, 0x78, 0) != 0xBB) { + g_windowMgr.Confirm(LookupMessage(MSI_OPEN_SEARCH_STORE), 2, true, false, 0, "Message", 0x118, 0x78, 0) != 0xBB) { return; } diff --git a/Source/UI/Window/UIShowWarpWnd.cpp b/Source/UI/Window/UIShowWarpWnd.cpp index 0291182de..3ace030f9 100644 --- a/Source/UI/Window/UIShowWarpWnd.cpp +++ b/Source/UI/Window/UIShowWarpWnd.cpp @@ -8,6 +8,7 @@ #include "UI/Lists/UIListBox.h" #include "UI/Window/UIWindowMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -66,9 +67,9 @@ int UIShowWarpWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument case UM_SETINFO: { const char* name = reinterpret_cast(argument1); if (std::string(name) == "Random") { - this->m_list->AddLine(LookupMessage(0xD4)); + this->m_list->AddLine(LookupMessage(MSI_RANDOM_POS)); } else if (std::string(name) == "cancel") { - this->m_list->AddLine(LookupMessage(0xDA)); + this->m_list->AddLine(LookupMessage(MSI_CANCEL)); } else { this->m_list->AddLine(g_session.GetMapDisplayName(g_session.GatName2RswName(name))); } diff --git a/Source/UI/Window/UIVideoWnd.cpp b/Source/UI/Window/UIVideoWnd.cpp index da0ab9fe2..09348bcea 100644 --- a/Source/UI/Window/UIVideoWnd.cpp +++ b/Source/UI/Window/UIVideoWnd.cpp @@ -11,6 +11,7 @@ #include "Render/Textures/TextureCache.h" #include "UI/Window/WindowManagerWindows.h" +#include "Resource/MSGSTRINGID.h" #include #include @@ -115,7 +116,7 @@ int UIVideoWnd::SendMsg( } break; case UM_CLOSE: - if (g_windowMgr.Confirm(LookupMessage(3142), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_CANNOT_MOVE_MINI_PARTYWND), 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_windowMgr.CloseWindow(WID_VIDEOWND); } break; diff --git a/Source/UI/Window/UIWindow.cpp b/Source/UI/Window/UIWindow.cpp index 6361f8cf0..efe9e32f8 100644 --- a/Source/UI/Window/UIWindow.cpp +++ b/Source/UI/Window/UIWindow.cpp @@ -72,6 +72,7 @@ #include "Contents/Items/ItemInfo.h" #include "Contents/PrivateAirplaneMgr.h" #include "Contents/MapSkyMgr.h" +#include "Resource/MSGSTRINGID.h" #include #include #include @@ -2089,8 +2090,8 @@ void UIPrivateAirplaneWnd::Paint() { this->DrawBitmap( 0, 0, static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\private_airplane\\bg_pay.bmp"))), false ); - this->DrawTextAt(19, 4, LookupMessage(0xd02), 0, 0, 12, 0xffffff, 0, 0); - this->DrawTextAt(18, 3, LookupMessage(0xd02), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(19, 4, LookupMessage(MSI_PRIVATE_AIRPLANE_FAILED_NOT_ENOUGH_ITEM), 0, 0, 12, 0xffffff, 0, 0); + this->DrawTextAt(18, 3, LookupMessage(MSI_PRIVATE_AIRPLANE_FAILED_NOT_ENOUGH_ITEM), 0, 0, 12, 0, 0, 0); if (this->m_text.size() == 0) { return; @@ -2254,7 +2255,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { closeButton->SetBitmap("유저인터페이스\\navigation_interface3\\btn_close_press.bmp", 2, 0); closeButton->SetSize(closeButton->BitmapWidth(), closeButton->BitmapHeight()); closeButton->SetId(201); - closeButton->SetTooltip(LookupMessage(0x0BE5)); + closeButton->SetTooltip(LookupMessage(MSI_ZENY_LOTTO_BUY_10)); this->AddChild(closeButton); UIBitmapButton* maximizeButton = new UIBitmapButton(); @@ -2264,7 +2265,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { maximizeButton->SetBitmap("유저인터페이스\\navigation_interface3\\btn_maximize_press.bmp", 2, 0); maximizeButton->SetSize(maximizeButton->BitmapWidth(), maximizeButton->BitmapHeight()); maximizeButton->SetId(200); - maximizeButton->SetTooltip(LookupMessage(0x089B)); + maximizeButton->SetTooltip(LookupMessage(MSI_NAVIGATION_ALL)); this->AddChild(maximizeButton); UICheckBox* minimizeCheck = new UICheckBox(); @@ -2272,7 +2273,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { minimizeCheck->SetSize(110, 12); minimizeCheck->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", "Minimize"); minimizeCheck->SetChecked(0); - minimizeCheck->SetTooltip(LookupMessage(0x089C)); + minimizeCheck->SetTooltip(LookupMessage(MSI_NAVIGATION_MAP)); this->AddChild(minimizeCheck); UIBitmapButton* roadIconButton = new UIBitmapButton(); @@ -2280,7 +2281,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { this->SetRoadIcon(g_navigationManager.viewIcon); roadIconButton->SetSize(roadIconButton->BitmapWidth(), roadIconButton->BitmapHeight()); roadIconButton->SetId(189); - roadIconButton->SetTooltip(LookupMessage(0x0C8B)); + roadIconButton->SetTooltip(LookupMessage(MSI_TAREN_LOGINREFUSE_FAIL_NOTACTIVATED)); this->AddChild(roadIconButton); UIBitmapButton* roadListButton = new UIBitmapButton(); @@ -2290,7 +2291,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { roadListButton->SetBitmap("유저인터페이스\\navigation_interface3\\btn_roadlistwnd_press.bmp", 2, 0); roadListButton->SetSize(roadListButton->BitmapWidth(), roadListButton->BitmapHeight()); roadListButton->SetId(442); - roadListButton->SetTooltip(LookupMessage(0x0C85)); + roadListButton->SetTooltip(LookupMessage(MSI_NAVIGATION_SEARCHTORUITE)); this->AddChild(roadListButton); UIListBox_NaviSearch* roadList = new UIListBox_NaviSearch(); @@ -2317,7 +2318,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { filterCheck->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", "service"); filterCheck->SetId(213); filterCheck->SetChecked(g_navigationManager.unknown_127C); - filterCheck->SetTooltip(LookupMessage(0x0C8C)); + filterCheck->SetTooltip(LookupMessage(MSI_NAVIGATION_V4_HELP)); this->AddChild(filterCheck); UIBitmapButton* shareButton = new UIBitmapButton(); @@ -2327,7 +2328,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { shareButton->SetBitmap("유저인터페이스\\private_airplane\\btn_share_press.bmp", 2, 0); shareButton->SetSize(shareButton->BitmapWidth(), shareButton->BitmapHeight()); shareButton->SetId(354); - shareButton->SetTooltip(LookupMessage(0x0C86)); + shareButton->SetTooltip(LookupMessage(MSI_NAVIGATION_SHARE_DESC)); this->AddChild(shareButton); UIBitmapButton* findButton = new UIBitmapButton(); @@ -2337,7 +2338,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { findButton->SetBitmap("유저인터페이스\\private_airplane\\btn_find_press.bmp", 2, 0); findButton->SetSize(findButton->BitmapWidth(), findButton->BitmapHeight()); findButton->SetId(430); - findButton->SetTooltip(LookupMessage(0x0895)); + findButton->SetTooltip(LookupMessage(MSI_NAVIGATION_VIEWCHANGE)); this->AddChild(findButton); UIBitmapButton* moveButton = new UIBitmapButton(); @@ -2353,11 +2354,11 @@ void UINavigationV4Wnd::OnCreate(int, int) { this->unknown_00E8 = label; label->SetSize(100, 20); this->AddChild(label); - label->SetText(LookupMessage(0x0C87), 0); + label->SetText(LookupMessage(MSI_NAVIGATION_SEARCH_02), 0); label->SetColor(0, 0, 0); - this->unknown_00B4 = this->AddCloseButton(LookupMessage(0x0BE5), 0); - this->unknown_00BC = this->AddMinimizeButton(LookupMessage(0x089C), 0); + this->unknown_00B4 = this->AddCloseButton(LookupMessage(MSI_ZENY_LOTTO_BUY_10), 0); + this->unknown_00BC = this->AddMinimizeButton(LookupMessage(MSI_NAVIGATION_MAP), 0); UIBitmapButton* helpButton = new UIBitmapButton(); this->unknown_00C0 = helpButton; @@ -2366,7 +2367,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { helpButton->SetBitmap("유저인터페이스\\navigation_interface\\NaviHelp_on.bmp", 2, 0); helpButton->SetSize(helpButton->BitmapWidth(), helpButton->BitmapHeight()); helpButton->SetId(343); - helpButton->SetTooltip(LookupMessage(0x089D)); + helpButton->SetTooltip(LookupMessage(MSI_NAVIGATION_NPC)); this->AddChild(helpButton); UIBitmapButton* dataButton = new UIBitmapButton(); @@ -2376,7 +2377,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { dataButton->SetBitmap("유저인터페이스\\navigation_interface3\\btn_Navidata_Open_press.bmp", 2, 0); dataButton->SetSize(dataButton->BitmapWidth(), dataButton->BitmapHeight()); dataButton->SetId(191); - dataButton->SetTooltip(LookupMessage(0x0899)); + dataButton->SetTooltip(LookupMessage(MSI_NAVIGATION_MINI)); this->AddChild(dataButton); UIBitmapEditCtrl* searchEdit = new UIBitmapEditCtrl(); @@ -2395,7 +2396,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { searchButton->SetBitmap("유저인터페이스\\navigation_interface3\\btn_searchbar_press.bmp", 2, 0); searchButton->SetSize(searchButton->BitmapWidth(), searchButton->BitmapHeight()); searchButton->SetId(321); - searchButton->SetTooltip(LookupMessage(0x0894)); + searchButton->SetTooltip(LookupMessage(MSI_NAVIGATION_SEARCHINFO)); this->AddChild(searchButton); UIBitmapButton* backButton = new UIBitmapButton(); @@ -2406,7 +2407,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { backButton->SetBitmap("유저인터페이스\\navigation_interface3\\bt_back_on.bmp", 2, 0); backButton->SetSize(backButton->BitmapWidth(), backButton->BitmapHeight()); backButton->SetId(284); - backButton->SetTooltip(LookupMessage(0x0C88)); + backButton->SetTooltip(LookupMessage(MSI_NAVIGATION_ICONTIP)); this->AddChild(backButton); UIComboBox_BmpWnd* searchType = new UIComboBox_BmpWnd(); @@ -2420,10 +2421,10 @@ void UINavigationV4Wnd::OnCreate(int, int) { searchType->green = 232; searchType->blue = 232; this->AddChild(searchType); - searchType->AddOption(LookupMessage(0x089E), 0); - searchType->AddOption(LookupMessage(0x089F), 0); - searchType->AddOption(LookupMessage(0x08A0), 0); - searchType->AddOption(LookupMessage(0x08A1), 0); + searchType->AddOption(LookupMessage(MSI_NAVIGATION_MOB), 0); + searchType->AddOption(LookupMessage(MSI_NAVIGATION_SETSTRING), 0); + searchType->AddOption(LookupMessage(MSI_NAVIGATION_SCROLL), 0); + searchType->AddOption(LookupMessage(MSI_NAVIGATION_USESCROLL), 0); searchType->Select(g_navigationManager.unknown_1260); this->RefreshLayout(); @@ -2431,7 +2432,7 @@ void UINavigationV4Wnd::OnCreate(int, int) { // OFFSET: 0x005C5D40 // FUNCTION: fn_03582 void UINavigationroadiconWnd::OnCreate(int, int) { - this->AddCloseButton(LookupMessage(3045), 0); + this->AddCloseButton(LookupMessage(MSI_ZENY_LOTTO_BUY_10), 0); this->icon = new UIStaticBitmap(); this->icon->SetBitmap("유저인터페이스\\navigation_interface3\\img_roadIocn_bg_select.bmp"); @@ -2450,7 +2451,7 @@ void UINavigationV4Wnd::Paint() { if (g_navigationManager.unknown_1254 == true) { DrawFilledRoundedBorder(*this, 0, 0, 0x86, 0x3d, 0xffffff); DrawFilledRoundedBorder(*this, 1, 0x11, 0x84, 0x2b, 0); - this->DrawTextAt(3, 3, LookupMessage(0x8ad), 0, 0, 12, 0, 0, 0); + this->DrawTextAt(3, 3, LookupMessage(MSI_NAVIGATION_MOB_S_S), 0, 0, 12, 0, 0, 0); if (g_navigationManager.destinationText.size() != 0) { this->DrawBitmap( 2, 0x12, static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\navigation_interface3\\ico_destination.bmp"))), true @@ -2461,7 +2462,7 @@ void UINavigationV4Wnd::Paint() { return; } - this->DrawPanelBackground(this->DrawTitleBar(true, LookupMessage(0x8ad), 0), 0, ""); + this->DrawPanelBackground(this->DrawTitleBar(true, LookupMessage(MSI_NAVIGATION_MOB_S_S), 0), 0, ""); this->DrawButtonBar(0, 0, 1); this->FillRegion(0, 0x2b, 0x110, 1, 0xcccccc); this->DrawBitmap( @@ -2529,7 +2530,7 @@ void UINavigationV4Wnd::Paint() { ); } - std::string message = LookupMessage(0xc8f); + std::string message = LookupMessage(MSI_NAVIGATION_V4_HELP03); std::vector lines; WrapPlainText(message.c_str(), lines, 0x26); int y = (0x29 - static_cast(lines.size())) * 7; @@ -2599,7 +2600,7 @@ void UINavigationV4Wnd::Paint() { // FUNCTION: fn_03589 void UINavigationroadiconWnd::Paint() { CBitmapRes* bitmap = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\navigation_interface3\\bg_roadIocn_select.bmp"))); - const int titleHeight = this->DrawTitleBar(true, LookupMessage(3203), 0); + const int titleHeight = this->DrawTitleBar(true, LookupMessage(MSI_NAVIGATION_SHARETIP), 0); this->DrawBitmap(0, titleHeight, bitmap, false); } @@ -2627,31 +2628,31 @@ int UINavigationV4Wnd::SendMsg(UIWindow* sender, int message, std::intptr_t argu window->Move(static_cast((g_renderer->viewport.width - 0xD0) * 0.5), static_cast((g_renderer->viewport.height - 0x6E) * 0.5)); g_windowMgr.AddRendered(window); if (g_navigationManager.GetCurrentTargetType() == 2) { - window->SendMsg(nullptr, 0x9A, reinterpret_cast(LookupMessage(0xD3B)), 0, 0, 0); + window->SendMsg(nullptr, 0x9A, reinterpret_cast(LookupMessage(MSI_TO_BLOCK_WHISPER_FAILED1)), 0, 0, 0); } std::string mapName = static_cast(g_modeMgr.GetGameMode())->MapName(); mapName = mapName.substr(0, mapName.find(".rsw")) + ".gat"; if (!g_privateAirplaneItems->IsStartableMap(mapName)) { - window->SendMsg(nullptr, 0x9A, reinterpret_cast(LookupMessage(0xD03)), 0, 0, 0); + window->SendMsg(nullptr, 0x9A, reinterpret_cast(LookupMessage(MSI_ENTER_ONE_LINE_WITHOUT_LINE_BREAKS)), 0, 0, 0); window->SendMsg(nullptr, UM_REFRESHBUTTON, 0, 0, 0, 0); } std::string targetName = g_navigationManager.GetCurrentTargetName() + ".gat"; if (!g_privateAirplaneItems->IsEndableMap(targetName)) { - window->SendMsg(nullptr, 0x9A, reinterpret_cast(LookupMessage(0xD04)), 0, 0, 0); + window->SendMsg(nullptr, 0x9A, reinterpret_cast(LookupMessage(MSI_CANNOT_REGISTER_NAME_THAT_CONTAINS_BADWORDS)), 0, 0, 0); window->SendMsg(nullptr, UM_REFRESHBUTTON, 0, 0, 0, 0); } if (mapName.compare(targetName) == 0) { - window->SendMsg(nullptr, 0x9A, reinterpret_cast(LookupMessage(0xD19)), 0, 0, 0); + window->SendMsg(nullptr, 0x9A, reinterpret_cast(LookupMessage(MSI_REGISTER_ADVENTURER_AGENCY)), 0, 0, 0); window->SendMsg(nullptr, UM_REFRESHBUTTON, 0, 0, 0, 0); } CGameMode* mode = static_cast(g_modeMgr.GetGameMode()); if (mode->scene && static_cast(g_modeMgr.GetGameMode())->scene->player && static_cast(g_modeMgr.GetGameMode())->scene->player->render.unknown_0070 == 3) { - window->SendMsg(nullptr, 0x9A, reinterpret_cast(LookupMessage(0xD1A)), 0, 0, 0); + window->SendMsg(nullptr, 0x9A, reinterpret_cast(LookupMessage(MSI_REGISTER_ADVENTURER_AGENCY2)), 0, 0, 0); window->SendMsg(nullptr, UM_REFRESHBUTTON, 0, 0, 0, 0); } @@ -2844,7 +2845,7 @@ int UINavigationV4Wnd::SendMsg(UIWindow* sender, int message, std::intptr_t argu break; case ID_CLOSE: if (g_navigationManager.unknown_1258 == 2) { - if (g_windowMgr.Confirm(LookupMessage(0x8BF), 2, true, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { + if (g_windowMgr.Confirm(LookupMessage(MSI_NAVIGATION_HELP2), 2, true, false, 0, "Message", 0x118, 0x78, 0) == 0xBB) { g_navigationManager.SetViewMode(1); g_navigationManager.unknown_125C = 0; g_navigationManager.ClearSavedTarget(); @@ -2909,7 +2910,7 @@ int UINavigationroadiconWnd::SendMsg(UIWindow*, int message, std::intptr_t a, st // OFFSET: 0x005C4D70 // FUNCTION: fn_03580 void UINavigationRuideWnd::OnCreate(int width, int) { - this->AddCloseButton(LookupMessage(3045), 0); + this->AddCloseButton(LookupMessage(MSI_ZENY_LOTTO_BUY_10), 0); this->routeList = new UIListBox_NaviSearch(); this->routeList->SetSize(width - 4, 293); this->routeList->backgroundRed = 255; @@ -2925,7 +2926,7 @@ void UINavigationRuideWnd::OnCreate(int width, int) { // FUNCTION: fn_03587 void UINavigationRuideWnd::Paint() { this->FillRegion(0, 0, 272, 338, 0xCCCCCC); - this->DrawPanelBackground(this->DrawTitleBar(true, LookupMessage(3204), 0), 0, ""); + this->DrawPanelBackground(this->DrawTitleBar(true, LookupMessage(MSI_NAVIGATION_SEARCH_01), 0), 0, ""); this->DrawButtonBar(0, 0, 1); } @@ -3077,15 +3078,15 @@ std::string UINavigationV4Wnd::MobName(CNavi_Object* mob) { const int level = mob->GetFlag(); if (level > 0) { std::string text; - text.assign(LookupMessage(2453)); + text.assign(LookupMessage(MSI_BANK_DEPOSIT_NO_MONEY)); if (level > 99) { - text.assign(LookupMessage(2449)); + text.assign(LookupMessage(MSI_NAVIGATION_NUM4)); } else if (level > 49) { - text.assign(LookupMessage(2450)); + text.assign(LookupMessage(MSI_NAVIGATION_NUM5)); } else if (level >= 20 && level <= 49) { - text.assign(LookupMessage(2451)); + text.assign(LookupMessage(MSI_BANK_SYSTEM_ERROR)); } else if (level >= 5 && level <= 19) { - text = LookupMessage(2452); + text = LookupMessage(MSI_BANK_WITHDRAW_NO_MONEY); } std::sprintf(grade, " (%s)", text.c_str()); @@ -3112,15 +3113,15 @@ std::string UINavigationV4Wnd::ObjectLabel(int type, void* object) { label.assign(static_cast(object)->GetInfo()->GetName()); const int level = static_cast(object)->GetFlag(); if (level > 0) { - std::string text(LookupMessage(2453)); + std::string text(LookupMessage(MSI_BANK_DEPOSIT_NO_MONEY)); if (level > 99) { - text.assign(LookupMessage(2449)); + text.assign(LookupMessage(MSI_NAVIGATION_NUM4)); } else if (level > 49) { - text = LookupMessage(2450); + text = LookupMessage(MSI_NAVIGATION_NUM5); } else if (level >= 20 && level <= 49) { - text = LookupMessage(2451); + text = LookupMessage(MSI_BANK_SYSTEM_ERROR); } else if (level >= 5 && level <= 19) { - text = LookupMessage(2452); + text = LookupMessage(MSI_BANK_WITHDRAW_NO_MONEY); } std::sprintf(suffix, " (%s)", text.c_str()); @@ -3245,7 +3246,7 @@ void UINavigationV4Wnd::FillRouteGroups() { char summary[50]; std::memset(summary, 0, sizeof(summary)); - std::sprintf(summary, LookupMessage(3210), static_cast(g_navigationManager.nodePaths.size())); + std::sprintf(summary, LookupMessage(MSI_WORLDMAP_NAVIGATION_SET), static_cast(g_navigationManager.nodePaths.size())); this->unknown_00E8->SetText(summary, 0); this->Invalidate(); } @@ -3560,7 +3561,7 @@ void UIPrivateAirplaneWnd::OnCreate(int, int) { } UIBasicButton* button = new UIBasicButton(); - const std::string text = FormatOwnedString(LookupMessage(0xd01), name); + const std::string text = FormatOwnedString(LookupMessage(MSI_PRIVATE_AIRPLANE_FAILED_ISNOT_ENDABLE_MAP), name); button->Configure(0xc0, text.c_str()); button->Move(8, y); button->SetId(500); diff --git a/Source/UI/Window/UIWindowMgr.cpp b/Source/UI/Window/UIWindowMgr.cpp index b743cc622..7ef7e0e5e 100644 --- a/Source/UI/Window/UIWindowMgr.cpp +++ b/Source/UI/Window/UIWindowMgr.cpp @@ -247,6 +247,7 @@ #include "UI/Window/UIVideoWnd.h" #include "UI/Window/UIViewCameraInfoWnd.h" #include "Utility/JsonCppLoader.h" +#include "Resource/MSGSTRINGID.h" #include namespace { @@ -1159,13 +1160,13 @@ int UIWindowMgr::ShowWhisperFrom(const char* name, const char* text, int color, if ((g_session.m_autoOpenWhisperWindow != 0 && !isFriend) || (g_session.m_autoOpenFriendWhisperWindow != 0 && isFriend)) { const char* label = nullptr; if (isFriend) { - label = LookupMessage(102); + label = LookupMessage(MSI_FRIEND); } else if (g_session.IsGuildMemberCharacter(accountId)) { label = "GuildMember"; } else if (g_session.IsFriendNameDifferent(name)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(917)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ID_WARNING)), 0xFFFF, 0, 0, 0); } else if (g_session.IsGuildMemberNameDifferent(name)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(919)), 0xFFFF, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ID_WARNING_GUILD)), 0xFFFF, 0, 0, 0); } shown = this->SendNotice(UIM_MAKE_WHISPER_WINDOW, reinterpret_cast(name), reinterpret_cast(label), reinterpret_cast(ShortcutFilename(accountId).c_str()), 0, 0); @@ -1665,7 +1666,7 @@ void UIWindowMgr::SendEmotionHotkey(int index) { if (g_windowMgr.unknown_01DC != nullptr) { const bool linked = HasTextLinks(std::string(text)); if (linked) { - g_windowMgr.Confirm(LookupMessage(0xE53), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_UNDEAD_MONSTERINFO), 0, true, false, 0, "Message", 280, 120, 0); return; } } @@ -2566,7 +2567,7 @@ bool UIWindowMgr::ProcessHotkeyAction(int action, int pressed) { return false; } } else if (g_navigationManager.unknown_1258 == 2) { - if (g_windowMgr.Confirm(LookupMessage(0x8BF), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_NAVIGATION_HELP2), 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_navigationManager.unknown_125C = 0; g_navigationManager.unknown_1254 = false; g_navigationManager.Reset(true); @@ -2601,13 +2602,13 @@ bool UIWindowMgr::ProcessHotkeyAction(int action, int pressed) { } if (this->LookupWindow(WID_NEWSELECTCHARWND) && g_session.m_loginModeFlag == 1) { - if (g_windowMgr.Confirm(LookupMessage(0xD68), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + if (g_windowMgr.Confirm(LookupMessage(MSI_ENST_ANGELUS2), 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(LMM_GOTO_LOGIN, 0, 0, 0, 0); } return false; } - if (this->Confirm(LookupMessage(0x11), 2, true, false, 0, "Message", 280, 120, 0) == 187) { + if (this->Confirm(LookupMessage(MSI_DO_YOU_REALLY_WANT_TO_QUIT), 2, true, false, 0, "Message", 280, 120, 0) == 187) { GetRagConnection().Close(); g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); } @@ -4570,7 +4571,7 @@ bool UIWindowMgr::ProcessShortcutKey(int action) { case HK_SINGLEMAP_ONOFF + 100: if (static_cast(g_modeMgr.GetGameMode())->unknown_0254 != 0) { if (!g_session.IsNavigationAllowed()) { - g_windowMgr.Confirm(LookupMessage(0xACF), 0, true, false, 0, "Message", 280, 120, 0); + g_windowMgr.Confirm(LookupMessage(MSI_BANK_0_MONEY), 0, true, false, 0, "Message", 280, 120, 0); } else if (!g_windowMgr.CloseWindow(WID_MINIMAPWND)) { g_windowMgr.EnsureWindow(WID_MINIMAPWND); } @@ -5049,7 +5050,7 @@ UIWindow* UIWindowMgr::EnsureWindow(int id) { window = new UIItemStoreFindWnd(); this->unknown_02AC = window; window->SetSize(140, 145); - static_cast(this->unknown_02AC)->SetTitle(LookupMessage(0x447)); + static_cast(this->unknown_02AC)->SetTitle(LookupMessage(MSI_AUCTION_SEARCH)); window->Move(CenterOnViewportX(200), ScaleByScreenHeight(200)); this->AddRendered(window); this->unknown_02AC->SendMsg(nullptr, UM_SETINFO, reinterpret_cast(base + 0x6AC), 0, 0, 0); @@ -5166,7 +5167,7 @@ UIWindow* UIWindowMgr::EnsureWindow(int id) { case WID_MERCHANTITEMWND: if (!g_mapPropertyMgr->GetValue(g_session.unknown_0000, 40)) { g_windowMgr.SendNotice(UIM_OPENCHATWND, 0, 0, 0, 0, 0); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0x94C)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RANKING_NUMBER)), 255, 0, 0, 0); break; } window = this->unknown_02F4; @@ -6850,23 +6851,23 @@ UIWindow* UIWindowMgr::EnsureWindow(int id) { break; case WID_BANK_NEWWND: if (this->LookupWindow(WID_REFININGWND)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBC6)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NEWMAKECHAR_HUMANJOB)), 255, 0, 0, 0); break; } if (this->LookupWindow(WID_GRADEENCHANTWND)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xE85)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_GRADE_ENCHANT_ITEM)), 255, 0, 0, 0); break; } if (this->LookupWindow(WID_ENCHANTUI)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xF05)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_ITEM_REFORM_WARNNING_NOT_ENOUGH_MATERIAL)), 255, 0, 0, 0); break; } if (this->LookupWindow(WID_EXPANDEDBARTERMARKETWND)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xF7F)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_PACKAGEITEM_SLEEPSTONECURSEFAIL)), 255, 0, 0, 0); break; } if (g_windowMgr.LookupWindow(WID_RUNESYSTEMWND)) { - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFD7)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOTIFY_JOIN_GUILD_ACCEPT_WND)), 255, 0, 0, 0); break; } window = this->window_0448; @@ -7200,11 +7201,11 @@ UIWindow* UIWindowMgr::EnsureWindow(int id) { this->CloseWindow(WID_RODEXCOMPOSEWND); this->CloseWindow(WID_RODEXCONTENTSWND); this->unknown_0454->SendMsg(nullptr, UM_COMMAND, ID_CLOSE, 0, 0, 0); - this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBAF)), 255, 0, 0, 0); + this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_AURA_EFFECT_ON)), 255, 0, 0, 0); } if (this->window_0448) { g_windowMgr.CloseWindow(WID_BANK_NEWWND); - this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xBC5)), 255, 0, 0, 0); + this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NEWMAKECHAR_HUMAN)), 255, 0, 0, 0); } if (this->LookupWindow(WID_REFININGWND) == nullptr) { window = new UIRefiningWnd(); @@ -7360,7 +7361,7 @@ UIWindow* UIWindowMgr::EnsureWindow(int id) { case WID_EXPANDEDBARTERMARKETWND: if (this->LookupWindow(WID_BANK_NEWWND)) { g_windowMgr.CloseWindow(WID_BANK_NEWWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xF7E)), 255, 0, 0, 0); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_USESKILL_FAIL_NEED_COMMUNION_WITH_SPIRIT)), 255, 0, 0, 0); } if (this->LookupWindow(WID_EXPANDEDBARTERMARKETWND) == nullptr) { window = new UIExpandedBartermarketWnd(); @@ -7422,11 +7423,11 @@ UIWindow* UIWindowMgr::EnsureWindow(int id) { this->CloseWindow(WID_RODEXCOMPOSEWND); this->CloseWindow(WID_RODEXCONTENTSWND); this->unknown_0454->SendMsg(nullptr, UM_COMMAND, ID_CLOSE, 0, 0, 0); - this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xE82)), 255, 0, 0, 0); + this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_CANNOT_OPEN_BANKING_DURING_GRADE_ENCHANT)), 255, 0, 0, 0); } if (this->window_0448) { g_windowMgr.CloseWindow(WID_BANK_NEWWND); - this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xE84)), 255, 0, 0, 0); + this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BROADCASTING_GRADE_ENCHANT_FAIL)), 255, 0, 0, 0); } if (this->LookupWindow(WID_GRADEENCHANTWND) == nullptr) { window = new UIGradeEnchantWnd(); @@ -7538,11 +7539,11 @@ UIWindow* UIWindowMgr::EnsureWindow(int id) { this->CloseWindow(WID_RODEXCOMPOSEWND); this->CloseWindow(WID_RODEXCONTENTSWND); this->unknown_0454->SendMsg(nullptr, UM_COMMAND, ID_CLOSE, 0, 0, 0); - this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFD8)), 255, 0, 0, 0); + this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOTIFY_ALLY_GUILD_ACCEPT_WND)), 255, 0, 0, 0); } if (this->window_0448) { g_windowMgr.CloseWindow(WID_BANK_NEWWND); - this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFD9)), 255, 0, 0, 0); + this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOTIFY_JOIN_FRIEND_ACCEPT_WND)), 255, 0, 0, 0); } window = new UIRuneSystemWnd(); window->SetSize(910, 539); @@ -7617,19 +7618,19 @@ UIWindow* UIWindowMgr::EnsureWindow(int id) { if (notify) { switch (id) { case WID_JOINGUILDACCEPTWND: - this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFDA)), 0xFFFF00, 0, 0, 0); + this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOTIFY_JOIN_PARTY_ACCEPT_WND)), 0xFFFF00, 0, 0, 0); break; case WID_ALLYGUILDACCEPTWND: - this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFDB)), 0xFFFF00, 0, 0, 0); + this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_NOTIFY_EXCHANGE_ACCEPT_WND)), 0xFFFF00, 0, 0, 0); break; case WID_JOINFRIENDACCEPTWND: - this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFDC)), 0xFFFF00, 0, 0, 0); + this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_WARNING)), 0xFFFF00, 0, 0, 0); break; case WID_JOINPARTYACCEPTWND: - this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFDD)), 0xFFFF00, 0, 0, 0); + this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_RUNESYSTEM_FAILED_ITEMCREATE)), 0xFFFF00, 0, 0, 0); break; case WID_EXCHANGEACCEPTWND: - this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(0xFDE)), 0xFFFF00, 0, 0, 0); + this->SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_TITLE_QUEST_BOARD_LIST)), 0xFFFF00, 0, 0, 0); break; } } diff --git a/Source/UI/Window/UIZeroChatWnd.cpp b/Source/UI/Window/UIZeroChatWnd.cpp index 4e1190651..67b6e4ba4 100644 --- a/Source/UI/Window/UIZeroChatWnd.cpp +++ b/Source/UI/Window/UIZeroChatWnd.cpp @@ -7,6 +7,7 @@ #include "UI/Text/UIStaticText.h" #include "UI/Window/UIDebuffRemoveWnd.h" +#include "Resource/MSGSTRINGID.h" #include // OFFSET: 0x0094B410 @@ -88,7 +89,7 @@ void UIGuild_Storage_Log::OnCreate(int width, int height) { this->unknown_0158->Configure(1, 20, 50, 1, 0, 0, 0, 0, 0, 0, 0, 0); this->unknown_0158->Move(0, 17); this->AddChild(this->unknown_0158); - this->unknown_0158->AddTab(LookupMessage(2544), ""); - this->unknown_0158->AddTab(LookupMessage(2545), ""); - this->unknown_0158->AddTab(LookupMessage(2546), ""); + this->unknown_0158->AddTab(LookupMessage(MSI_GUILD_STORAGE_LOG_WND_NAME), ""); + this->unknown_0158->AddTab(LookupMessage(MSI_GUILD_STORAGE_LOG_CAUTION), ""); + this->unknown_0158->AddTab(LookupMessage(MSI_GUILD_STORAGE_CLOSE_TIMEOUT), ""); }