Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. 1. //Say Spam Protection
  2.  
  3. //In User.h got to
  4.  
  5. #ifdef __PERIN_BUY_BUG
  6. DWORD m_dwLastTryBuyItem;
  7. DWORD m_dwLastBuyItemTick;
  8. #endif // __PERIN_BUY_BUG
  9.  
  10. // Add this below
  11.  
  12. DWORD m_dwLastSpammTick;
  13.  
  14. //Then go in FuncTextCmd.cpp at BOOL TextCmd_say( CScanner& scanner )
  15.  
  16. //And Below this:
  17.  
  18. scanner.GetToken();
  19.  
  20. //Add This:
  21.  
  22. if( pUser->m_dwLastSpammTick + 350 > GetTickCount() ) // ¾ÆÀÌÅÛ ±¸ÀԽõµ ÈÄ 0.5ÃÊÀ̳»¿¡ ´Ù½Ã ±¸ÀԽõµÇÑ °æ¿ì
  23. {
  24. pUser->AddText( "[Anti-Spam] Only 3 Messages per 1 Sec. allowed" );
  25. return TRUE;
  26. }
  27. pUser->m_dwLastSpammTick = GetTickCount();
  28.  
  29. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  30.  
  31. 2. //REMOVE STUN BUG
  32. // FuncTextCmd.cpp Add This
  33.  
  34. BOOL TextCmd_RemoveStunBug( CScanner & s )
  35. {
  36. #ifdef __WORLDSERVER
  37. CUser* pUser = (CUser*)s.dwValue;
  38. if( pUser->m_dwLastAwakeTick + 30000 > GetTickCount() ) // ¾ÆÀÌÅÛ ±¸ÀԽõµ ÈÄ 0.5ÃÊÀ̳»¿¡ ´Ù½Ã ±¸ÀԽõµÇÑ °æ¿ì
  39. {
  40. pUser->AddText( "[Anti-Spam] Only 1 Stun-bug Removal Per 30 Sec." );
  41. return TRUE;
  42. }
  43. pUser->m_dwLastSpammTick = GetTickCount();
  44.  
  45. pUser->StopCollecting();
  46. pUser->AddText( "Stun-Bug has been removed." );
  47. #endif // __WORLDSERVER
  48. return TRUE;
  49. }
  50.  
  51. // And This to the command area also in FuncTextCmd.cpp
  52.  
  53. ON_TEXTCMDFUNC( TextCmd_Position, "RemoveStunBug", "rsb", "ÁÂÇ¥", "ÁÂÇ¥", TCM_CLIENT, AUTH_GENERAL , "ÇöÀç ÁÂÇ¥¸¦ Ãâ·ÂÇØÁØ´Ù." )
  54.  
  55.  
  56. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  57.  
  58.  
  59. 3. //REMOVE POTION
  60. //Remove /position command from normal Users - Can be used to find out the position to manipulate it with memory editing in order to Teleport anywhere!
  61.  
  62. //In FuncTextCmd.cpp search for:
  63.  
  64. ON_TEXTCMDFUNC( TextCmd_Position, "position", "pos", "ÁÂÇ¥", "ÁÂÇ¥", TCM_CLIENT, AUTH_GENERAL , "ÇöÀç ÁÂÇ¥¸¦ Ãâ·ÂÇØÁØ´Ù." )
  65.  
  66.  
  67. //Replace with:
  68.  
  69. ON_TEXTCMDFUNC( TextCmd_Position, "position", "pos", "ÁÂÇ¥", "ÁÂÇ¥", TCM_CLIENT, AUTH_ADMINISTRATOR , "ÇöÀç ÁÂÇ¥¸¦ Ãâ·ÂÇØÁØ´Ù." )
  70.  
  71. //Also search for KEY_9 in source, and remove the function from that Key, it will post the Player Position into a Log file in the Client. Which will lead to the same abuse of Teleportation.
  72.  
  73.  
  74. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  75.  
  76. 4. //Guild Siege Client Crash caused by Client Side Admin auth and destroy guild command.
  77.  
  78. //In FuncTextCmd.cpp search for:
  79.  
  80. BOOL TextCmd_DestroyGuild( CScanner & scanner )
  81. {
  82. #ifdef __CLIENT
  83. g_DPlay.SendDestroyGuild( g_pPlayer->m_idPlayer );
  84. #endif
  85. return TRUE;
  86. }
  87.  
  88. //Replace with:
  89.  
  90. BOOL TextCmd_DestroyGuild( CScanner & scanner )
  91. {
  92. #ifdef __CLIENT
  93. CUser* pUser = (CUser*)scanner.dwValue;
  94. if( g_GuildCombatMng.m_nState != CGuildCombat::CLOSE_STATE )
  95. {
  96. char chMessage[128] = {0,};
  97. sprintf( chMessage, "Can not disband Guild during Guild Siege" );
  98. pUser->AddText( chMessage );
  99. return TRUE;
  100. }
  101.  
  102. g_DPlay.SendDestroyGuild( g_pPlayer->m_idPlayer );
  103. #endif
  104. return TRUE;
  105. }
  106.  
  107.  
  108. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  109.  
  110.  
  111. 5. //Command to Open Guide/About section on Forum and Website /Wiki Command
  112.  
  113. //In FuncTextCmd.cpp
  114.  
  115. BOOL TextCmd_Wiki( CScanner & scanner )
  116. {
  117. #ifdef __CLIENT
  118. ShellExecute(0, TEXT("open"), TEXT("https://YOUR-Wiki.com/"), 0, 0, 0); //Opens Website About page
  119. ShellExecute(0, TEXT("open"), TEXT("http://Your-Forum-or-Web.net/), 0, 0, 0); //Opens Forum Guide Section
  120. //ShellExecute(0, TEXT("open"), TEXT("https://gtop100.com/Your-Vote/"), 0, 0, 0); // Can Be used to create a vote command
  121.  
  122. #endif
  123. return TRUE;
  124. }
  125.  
  126.  
  127. // And This to the command area also in FuncTextCmd.cpp
  128.  
  129. ON_TEXTCMDFUNC( TextCmd_Wiki, "Wiki", "Info", "ÁÂÇ¥", "ÁÂÇ¥", TCM_CLIENT, AUTH_GENERAL , "ÇöÀç ÁÂÇ¥¸¦ Ãâ·ÂÇØÁØ´Ù." )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement