Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@@@ Packet Received.cpp @@@@
- -- Put after join game message
- if(Packet[1] == 0x03)
- {
- if (V_ModifiedLeaveMessage) {
- Print(0, 4, "%s(%s) [Level %d %s (%d%% Life)] has left our world. Diablo's minions weaken.", (LPSTR)&Packet[8], (LPSTR)&Packet[24], V_LastPlayerExitLevel, V_LastPlayerExitClass, V_LastPlayerExitLife);
- return FALSE;
- }
- }
- -- Put this before if (Packet[0] == 0x5D) line
- if (Packet[0] == 0x5C)
- {
- LPROSTERUNIT Unit = FindPartyById(*(LPDWORD)&Packet[1]);
- if (!Unit)
- return TRUE;
- GetPlayerClassName(Unit->dwClassId, V_LastPlayerExitClass, 512);
- V_LastPlayerExitLife = Unit->dwPartyLife;
- V_LastPlayerExitLevel = Unit->wLevel;
- return TRUE;
- }
- @@@@ Vars.h @@@@
- Befr Death Message Delay Var
- VAR(CHAR, LastPlayerExitClass[32])
- VAR(INT, LastPlayerExitLife)
- VAR(INT, LastPlayerExitLevel)
- after ModifiedJoinMessage
- VAR(BOOL, ModifiedLeaveMessage)
- @@@@ Configuration.cpp @@@@
- {"Miscellaneous", "Modified Leave Message", NULL, BOOLEAN, &V_ModifiedLeaveMessage},
Add Comment
Please, Sign In to add comment