Advertisement
Combreal

FlyModMangosOneOC.cpp

Apr 20th, 2020
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.09 KB | None | 0 0
  1. //Gathered from Mangos One lib/src
  2.  
  3. SMSG_MOVE_SET_CAN_FLY                           = 0x343,
  4. SMSG_MOVE_UNSET_CAN_FLY                         = 0x344,
  5. CMSG_MOVE_SET_CAN_FLY_ACK                       = 0x345,
  6. CMSG_MOVE_SET_FLY                               = 0x346,
  7.    
  8.    
  9. /*0x343*/ { "SMSG_MOVE_SET_CAN_FLY",                        STATUS_NEVER,    PROCESS_INPLACE,      &WorldSession::Handle_ServerSide               },
  10. /*0x344*/ { "SMSG_MOVE_UNSET_CAN_FLY",                      STATUS_NEVER,    PROCESS_INPLACE,      &WorldSession::Handle_ServerSide               },
  11. /*0x345*/ { "CMSG_MOVE_SET_CAN_FLY_ACK",                    STATUS_LOGGEDIN, PROCESS_THREADSAFE,   &WorldSession::HandleMoveSetCanFlyAckOpcode    },
  12. /*0x346*/ { "CMSG_MOVE_SET_FLY",                            STATUS_LOGGEDIN, PROCESS_THREADSAFE,   &WorldSession::HandleMovementOpcodes           },
  13.    
  14.    
  15.    
  16.    
  17. // --------------------------------------------------------------------------------------------------------------------------------------------------------
  18.  
  19.  
  20. //Gathered from Mangos Zero lib/src
  21.  
  22. MSG_MOVE_START_SWIM                             = 0x0CA,
  23. MSG_MOVE_STOP_SWIM                              = 0x0CB,
  24.  
  25.  
  26. /*0x0CA*/  StoreOpcode(MSG_MOVE_START_SWIM,               "MSG_MOVE_START_SWIM",              STATUS_LOGGEDIN,  PROCESS_THREADSAFE,   &WorldSession::HandleMovementOpcodes);
  27. /*0x0CB*/  StoreOpcode(MSG_MOVE_STOP_SWIM,                "MSG_MOVE_STOP_SWIM",               STATUS_LOGGEDIN,  PROCESS_THREADSAFE,   &WorldSession::HandleMovementOpcodes);
  28.        
  29.    
  30.    
  31. // --------------------------------------------------------------------------------------------------------------------------------------------------------
  32.  
  33.  
  34. //Mangos Zero OpCodes Patch lib/src
  35.  
  36.  
  37. MSG_MOVE_START_SWIM                             = 0x0CA,
  38. MSG_MOVE_STOP_SWIM                              = 0x0CB,
  39. SMSG_MOVE_SET_CAN_FLY                           = 0x343,
  40. SMSG_MOVE_UNSET_CAN_FLY                         = 0x344,
  41. CMSG_MOVE_SET_CAN_FLY_ACK                       = 0x345,
  42. CMSG_MOVE_SET_FLY                               = 0x346,
  43.  
  44.  
  45. /*0x0CA*/  StoreOpcode(MSG_MOVE_START_SWIM,               "MSG_MOVE_START_SWIM",              STATUS_LOGGEDIN,  PROCESS_THREADSAFE,   &WorldSession::HandleMovementOpcodes);
  46. /*0x0CB*/  StoreOpcode(MSG_MOVE_STOP_SWIM,                "MSG_MOVE_STOP_SWIM",               STATUS_LOGGEDIN,  PROCESS_THREADSAFE,   &WorldSession::HandleMovementOpcodes);
  47. /*0x343*/  StoreOpcode(SMSG_MOVE_SET_CAN_FLY,               "MSG_MOVE_START_SWIM",              STATUS_NEVER,  PROCESS_INPLACE,   &WorldSession::Handle_ServerSide);
  48. /*0x344*/  StoreOpcode(SMSG_MOVE_UNSET_CAN_FLY,                "MSG_MOVE_STOP_SWIM",               STATUS_NEVER,  PROCESS_INPLACE,   &WorldSession::Handle_ServerSide);
  49. /*0x345*/  StoreOpcode(CMSG_MOVE_SET_CAN_FLY_ACK,               "MSG_MOVE_START_SWIM",              STATUS_LOGGEDIN,  PROCESS_THREADSAFE,   &WorldSession::HandleMovementOpcodes);
  50. /*0x346*/  StoreOpcode(CMSG_MOVE_SET_FLY,                "MSG_MOVE_STOP_SWIM",               STATUS_LOGGEDIN,  PROCESS_THREADSAFE,   &WorldSession::HandleMovementOpcodes);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement