Decompile 2 functions in Source/Contents/PetTalk.cpp, Source/Contents/EnemyMonsterTalk.cpp, ...

Batch #1692 by eAthena: 0 byte-identical, 2 confirmed by peer review.

- fn_23805 CSession::GetPetTalkActionName: logic confirmed by peer review
- fn_23834 CSession::GetMonsterTalkEventName: logic confirmed by peer review

Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
Adds to the build: Source/Contents/PetTalk.cpp, Source/Contents/EnemyMonsterTalk.cpp
This commit is contained in:
ragnarok-clanker 2026-10-28 20:12:56 +00:00
commit b7bd70ab06
4 changed files with 60 additions and 0 deletions

View file

@ -175,6 +175,8 @@ public:
int GetPetJobByEggItem(int eggItemId);
const char* GetPetString(int id);
const char* GetPetTalkName(int job);
const char* GetPetTalkActionName(int action);
const char* GetMonsterTalkEventName(int event);
bool UpdateHomunSkill(const CSkillInfo& value, unsigned char notify);
bool UpdateMercSkill(const CSkillInfo& value, unsigned char notify);
void AddUnknownId(int id);

View file

@ -0,0 +1,24 @@
#include "Client/Session.h"
// OFFSET: 0x00E19090
// FUNCTION: fn_23834
const char* CSession::GetMonsterTalkEventName(int event) {
switch (event) {
case 0:
return "attack";
case 1:
return "castskill";
case 2:
return "useskill";
case 3:
return "skillattacked";
case 4:
return "hp50";
case 5:
return "hp25";
case 6:
return "dead";
default:
return nullptr;
}
}

View file

@ -0,0 +1,32 @@
#include "Client/Session.h"
// OFFSET: 0x00E0AD10
// FUNCTION: fn_23805
const char* CSession::GetPetTalkActionName(int action) {
switch (action) {
case 0:
return "feeding";
case 1:
return "hunting";
case 2:
return "danger";
case 3:
return "dead";
case 4:
return "stand";
case 10:
return "connect";
case 6:
return "levelup";
case 7:
return "perfor_1";
case 8:
return "perfor_2";
case 9:
return "perfor_3";
case 5:
return "perfor_s";
default:
return "normal";
}
}

View file

@ -320,6 +320,7 @@
"Source/Contents/Emblems/EmblemDownload.cpp": 4,
"Source/Contents/Emblems/EmblemUpload.cpp": 2,
"Source/Contents/Emblems/GuildEmblemReqBundle.cpp": 4,
"Source/Contents/EnemyMonsterTalk.cpp": 4,
"Source/Contents/EquipmentResources.cpp": 4,
"Source/Contents/ForbiddenWords.cpp": 4,
"Source/Contents/Ground/GroundDecals.cpp": 3,
@ -401,6 +402,7 @@
"Source/Contents/Pathfinding.cpp": 4,
"Source/Contents/PetStatus.cpp": 4,
"Source/Contents/PetStrings.cpp": 4,
"Source/Contents/PetTalk.cpp": 4,
"Source/Contents/PetTalkNames.cpp": 4,
"Source/Contents/PlayerNameDictionary.cpp": 4,
"Source/Contents/RobeOpacity.cpp": 4,