Guest User

Untitled

a guest
May 21st, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. @@@@ Packet Received.cpp @@@@
  2.  
  3.  
  4. -- Put after join game message
  5.  
  6. if(Packet[1] == 0x03)
  7. {
  8. if (V_ModifiedLeaveMessage) {
  9. 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);
  10. return FALSE;
  11. }
  12. }
  13.  
  14.  
  15.  
  16. -- Put this before if (Packet[0] == 0x5D) line
  17.  
  18. if (Packet[0] == 0x5C)
  19. {
  20. LPROSTERUNIT Unit = FindPartyById(*(LPDWORD)&Packet[1]);
  21.  
  22. if (!Unit)
  23. return TRUE;
  24.  
  25. GetPlayerClassName(Unit->dwClassId, V_LastPlayerExitClass, 512);
  26. V_LastPlayerExitLife = Unit->dwPartyLife;
  27. V_LastPlayerExitLevel = Unit->wLevel;
  28.  
  29. return TRUE;
  30. }
  31.  
  32.  
  33. @@@@ Vars.h @@@@
  34. Befr Death Message Delay Var
  35.  
  36. VAR(CHAR, LastPlayerExitClass[32])
  37. VAR(INT, LastPlayerExitLife)
  38. VAR(INT, LastPlayerExitLevel)
  39.  
  40. after ModifiedJoinMessage
  41. VAR(BOOL, ModifiedLeaveMessage)
  42.  
  43. @@@@ Configuration.cpp @@@@
  44. {"Miscellaneous", "Modified Leave Message", NULL, BOOLEAN, &V_ModifiedLeaveMessage},
Add Comment
Please, Sign In to add comment