Guest User

hi

a guest
Feb 24th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.01 KB | None | 0 0
  1. // @Search:
  2.  
  3. #include "input.h"
  4.  
  5. // @Add after:
  6.  
  7. #ifdef ENABLE_DUNGEON_INFO_SYSTEM
  8.     #include "DungeonInfo.h"
  9. #endif
  10.  
  11. // @Search:
  12.  
  13. int CInputMain::Chat(LPCHARACTER ch, const char * data, size_t uiBytes)
  14.  
  15. // @Add above:
  16. #ifdef ENABLE_DUNGEON_INFO_SYSTEM
  17. void CInputMain::DungeonTeleport(LPCHARACTER ch, const char* c_pData)
  18. {
  19.     if (!ch->GetDesc())
  20.         return;
  21.    
  22.     TPacketGCTeleport* p = (TPacketGCTeleport*)c_pData;
  23.     ch->WarpSet(p->mapCoords[0] * 100, p->mapCoords[1] * 100);
  24. }
  25. void CInputMain::DungeonRank(LPCHARACTER ch, const char* c_pData)
  26. {
  27.     if (!ch->GetDesc())
  28.         return;
  29.    
  30.     TPacketGCDungeonRank* p = (TPacketGCDungeonRank*)c_pData;
  31.     DungeonInfo::instance().UpdateDungeonRank(ch, p->dungeonID, p->rankType);
  32. }
  33.  
  34. #endif
  35.  
  36. // @Search:
  37.  
  38.         case HEADER_CG_HACK:
  39.             Hack(ch, c_pData);
  40.             break;
  41.            
  42. // @Add:
  43. #ifdef ENABLE_DUNGEON_INFO_SYSTEM
  44.         case HEADER_GC_TELEPORT:
  45.             DungeonTeleport(ch, c_pData);
  46.             break;
  47.         case HEADER_GC_RECEIVE_RANK:
  48.             DungeonRank(ch, c_pData);
  49.             break;
  50. #endif
Add Comment
Please, Sign In to add comment