From d2de4ac7c002dc6698054ff859e47e8dcb7abade Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 21:42:57 +0000 Subject: [PATCH] Decompile fn_22434 (CNpc::Slot17) Batch #6299 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_22434 CNpc::Slot17: logic confirmed by peer review Peer-reviewed-by: superintelligence, Romain, SapitoSucio Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Actors/Npc.h | 1 + Source/Contents/Sound/SoundMaker.cpp | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/Source/Contents/Actors/Npc.h b/Source/Contents/Actors/Npc.h index 6e3e1f23..cbe54c54 100644 --- a/Source/Contents/Actors/Npc.h +++ b/Source/Contents/Actors/Npc.h @@ -17,6 +17,7 @@ public: ) override; void Render(int argument) override; void Slot16() override; + void Slot17() override; void Slot21(int value) override; void Slot22(int value) override; void Slot23(int first, int second) override; diff --git a/Source/Contents/Sound/SoundMaker.cpp b/Source/Contents/Sound/SoundMaker.cpp index 30423e5d..7758f4e1 100644 --- a/Source/Contents/Sound/SoundMaker.cpp +++ b/Source/Contents/Sound/SoundMaker.cpp @@ -337,6 +337,21 @@ void CNpc::Slot16() { } } +// OFFSET: 0x00DA61C0 +// FUNCTION: fn_22434 +void CNpc::Slot17() { + switch (this->GetEffectiveJob(-1)) { + case 45: + case 104: + case 111: + case 139: + break; + default: + g_modeMgr.GetGameMode()->SendMsg(13, this->render.accountId, 0, 0, 0); + break; + } +} + // OFFSET: 0x00DA5800 // FUNCTION: fn_22429 void CPc::Slot59(bool value) {