feat(parity): replicate skill execution, affect sync, packet send methods, and monster color oracle (pass34)

This commit is contained in:
shen
2026-10-08 01:55:39 -07:00
parent a7f55b29d5
commit 9a635932d6
17 changed files with 387 additions and 33 deletions
+52
View File
@@ -1340,6 +1340,58 @@ bool PythonNetworkStream::SendFlyTargetingPacket(uint32_t targetVID, int32_t x,
return true;
}
bool PythonNetworkStream::SendAddFlyTargetingPacket(uint32_t targetVID, int32_t x, int32_t y) {
TPacketCGFlyTargeting p;
p.bHeader = HEADER_CG_ADD_FLY_TARGETING;
p.dwTargetVID = targetVID;
p.x = x;
p.y = y;
Send(&p, sizeof(p));
return true;
}
bool PythonNetworkStream::SendUseSkillPacket(uint32_t skillIndex, uint32_t targetVID) {
TPacketCGUseSkill p;
p.bHeader = HEADER_CG_USE_SKILL;
p.dwVnum = skillIndex;
p.dwTargetVID = targetVID;
Send(&p, sizeof(p));
return true;
}
bool PythonNetworkStream::SendTargetPacket(uint32_t vid) {
TPacketCGTarget p;
p.header = HEADER_CG_TARGET;
p.dwVID = vid;
Send(&p, sizeof(p));
return true;
}
bool PythonNetworkStream::SendShootPacket(uint32_t uSkill) {
TPacketCGShoot p;
p.bHeader = HEADER_CG_SHOOT;
p.bType = static_cast<uint8_t>(uSkill);
Send(&p, sizeof(p));
return true;
}
bool PythonNetworkStream::SendCharacterPositionPacket(uint8_t iPosition) {
TPacketCGPosition p;
p.header = HEADER_CG_CHARACTER_POSITION;
p.position = iPosition;
Send(&p, sizeof(p));
return true;
}
bool PythonNetworkStream::SendSyncPositionElementPacket(uint32_t victimVID, int32_t victimX, int32_t victimY) {
TPacketCGSyncPositionElement p;
p.dwVID = victimVID;
p.lX = victimX;
p.lY = victimY;
Send(&p, sizeof(p));
return true;
}
bool PythonNetworkStream::SendWarpPacket() {
TPacketCGWarp p;
p.header = HEADER_CG_WARP;