From b508007c21b636ca7ea05a12e6a6a0481e57c311 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 01:29:04 +0000 Subject: [PATCH] Decompile 5 functions in Source/Client/Mode/GameModePackets.cpp, Source/Script/LuaScript.cpp, ... Batch #12837 by KWDev: 5 byte-identical, 0 confirmed by peer review. - fn_21735 CGameMode::ReceiveUnknownD31A40: byte-identical - fn_18354 TraceValue: byte-identical - fn_12636 UIBattleMsgOptionWnd::Slot15: byte-identical - fn_18357 AddCheckAttendanceBanner: byte-identical - fn_22421 CGndRiser::SendMsg: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Client/Mode/GameModePackets.cpp | 2 +- Source/Contents/Sound/SoundMaker.cpp | 2 +- Source/Script/LuaScript.cpp | 6 +++--- Source/UI/Window/UIBattleMsgOptionWnd.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index 2f1cb1e1..55e18ef4 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -2795,7 +2795,7 @@ __declspec(noinline) void CGameMode::ReceiveUnknownD31A40(const unsigned char* p std::strcpy(text, FindItemDescription(*ids).identifiedName); ++ids; for (unsigned int index = 1; index < count; ++index, ++ids) { - std::sprintf(text, "%s %s", text, FindItemDescription(*ids).identifiedName); + std::sprintf(text, "%s, %s", text, FindItemDescription(*ids).identifiedName); } std::sprintf(text, LookupMessage(2087), text); diff --git a/Source/Contents/Sound/SoundMaker.cpp b/Source/Contents/Sound/SoundMaker.cpp index 53c8b5a8..c305a881 100644 --- a/Source/Contents/Sound/SoundMaker.cpp +++ b/Source/Contents/Sound/SoundMaker.cpp @@ -603,7 +603,7 @@ void CGndRiser::SendMsg( return; } - CRenderObject::SendMsg(sender, message, a, b, c, d, e, f, g, h, i, 0, 0, 0, 0); + EffectActor::SendMsg(sender, message, a, b, c, d, e, f, g, h, i, 0, 0, 0, 0); } // OFFSET: 0x00DA4BF0 diff --git a/Source/Script/LuaScript.cpp b/Source/Script/LuaScript.cpp index f6d03bf2..0bfa144f 100644 --- a/Source/Script/LuaScript.cpp +++ b/Source/Script/LuaScript.cpp @@ -95,7 +95,7 @@ int AddNeededSkill(lua_State* state); // FUNCTION: fn_18354 int TraceValue(lua_State* state) { std::string text = luaL_checkstring(state, 1); - MessageBoxA(nullptr, text.c_str(), "Lua Error", 0); + MessageBoxA(nullptr, text.c_str(), "Lua error", 0); return 1; } @@ -752,8 +752,8 @@ int AddCashshopBanner2(lua_State* state) { int AddCheckAttendanceBanner(lua_State* state) { std::string image = luaL_checkstring(state, 1); std::string url = luaL_checkstring(state, 2); - const int action = lua_toboolean(state, 3); - const int argument = lua_toboolean(state, 4); + const int action = luaL_checkinteger(state, 3); + const int argument = luaL_checkinteger(state, 4); if (UIWindow* window = g_windowMgr.LookupWindow(0x148)) { AddAttendanceBanner(static_cast(window), image, url, action, argument); } diff --git a/Source/UI/Window/UIBattleMsgOptionWnd.cpp b/Source/UI/Window/UIBattleMsgOptionWnd.cpp index 506af311..90bdf13b 100644 --- a/Source/UI/Window/UIBattleMsgOptionWnd.cpp +++ b/Source/UI/Window/UIBattleMsgOptionWnd.cpp @@ -78,7 +78,7 @@ void UIBattleMsgOptionWnd::Slot15(int, int height) { this->AddCloseButton("ESC", 0); this->m_allCheckBox = new UICheckBox(); this->m_allCheckBox->SetSize(70, 12); - this->m_allCheckBox->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", "all on"); + this->m_allCheckBox->SetImages("유저인터페이스\\checkbox_1.bmp", "유저인터페이스\\checkbox_0.bmp", " all on"); this->m_allCheckBox->Move(20, this->geometry.height - 16); this->m_allCheckBox->SetChecked(this->unknown_010C); this->AddChild(this->m_allCheckBox);