rendered paste bodyif (Packet[0] == 0x5A) { if (Packet[1] == 0x00) { if (V_ModifiedLeaveString) { for (INT i = 0; i < V_Players.GetSize(); i++) { if (!_stricmp((LPSTR)&Packet[8], V_Players[i].PlayerName)) return LeaveMessage(0x00, (LPSTR)&Packet[24], (LPSTR)&Packet[8], V_Players[i].ClassId, V_Players[i].Level, V_Players[i].Life); } } } if (Packet[1] == 0x01) { if (V_ModifiedLeaveString) { for (INT i = 0; i < V_Players.GetSize(); i++) { if (!_stricmp((LPSTR)&Packet[8], V_Players[i].PlayerName)) return LeaveMessage(0x01, (LPSTR)&Packet[24], (LPSTR)&Packet[8], V_Players[i].ClassId, V_Players[i].Level, V_Players[i].Life); } } } if (Packet[1] == 0x02) { LPROSTERUNIT Unit = FindPartyByName((LPSTR)&Packet[8]); if (!Unit || Unit->dwUnitId == Me->dwUnitId) return TRUE; if (V_Enchant && V_EnchantNote) V_EnchantNoteIteration = TRUE; if (V_ModifiedJoinString) return JoinMessage((LPSTR)&Packet[24], (LPSTR)&Packet[8], Unit); } if (Packet[1] == 0x03) { if (V_ModifiedLeaveString) { for (INT i = 0; i < V_Players.GetSize(); i++) { if (!_stricmp((LPSTR)&Packet[8], V_Players[i].PlayerName)) return LeaveMessage(0x03, (LPSTR)&Packet[24], (LPSTR)&Packet[8], V_Players[i].ClassId, V_Players[i].Level, V_Players[i].Life); } } } if (Packet[1] == 0x06) { if (Packet[7] == UNIT_TYPE_PLAYER) { LPROSTERUNIT Unit = FindPartyByName((LPSTR)&Packet[8]); if (!Unit) return TRUE; if (!_stricmp((LPSTR)&Packet[24], Me->pPlayerData->szName)) { V_InjectKillCount++; V_InGameKillCount++; strcpy_s(V_SlainName, (LPSTR)&Packet[8]); if (V_NotifyKills) NotifyKillMessage((LPSTR)&Packet[8], Unit); if (V_KillLog) KillLog(); if (V_DeathMessage) V_DeathMessageIteration = TRUE; if (V_AutoScreenshot) { V_LastAutoScreenshot = GetTickCount(); V_AutoScreenshotIteration = TRUE; } } if (V_ModifiedSlainString) { LPROSTERUNIT lpPlayer = FindPartyByName((LPSTR)&Packet[24]); if (!lpPlayer) return TRUE; return SlainByPlayerMessage((LPSTR)&Packet[8], (LPSTR)&Packet[24], Unit, lpPlayer); } } if (!_stricmp((LPSTR)&Packet[8], Me->pPlayerData->szName)) { V_InjectDeathCount++; V_InGameDeathCount++; } } if (Packet[1] == 0x07 && Packet[7] == 0x03) { if (V_TPWhenHostiled && !InTown(Me)) { LPROSTERUNIT Player = FindPartyById(*(LPDWORD)&Packet[3]); if (!Player || Player->dwUnitId == Me->dwUnitId) return TRUE; Print(0, 4, "Escapeÿc0: ÿc1%s hostiled you", Player->szName); Chicken(); } } return TRUE; }