Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. //Say Spam Protection
- //In User.h got to
- #ifdef __PERIN_BUY_BUG
- DWORD m_dwLastTryBuyItem;
- DWORD m_dwLastBuyItemTick;
- #endif // __PERIN_BUY_BUG
- // Add this below
- DWORD m_dwLastSpammTick;
- //Then go in FuncTextCmd.cpp at BOOL TextCmd_say( CScanner& scanner )
- //And Below this:
- scanner.GetToken();
- //Add This:
- if( pUser->m_dwLastSpammTick + 350 > GetTickCount() ) // ¾ÆÀÌÅÛ ±¸ÀԽõµ ÈÄ 0.5ÃÊÀ̳»¿¡ ´Ù½Ã ±¸ÀԽõµÇÑ °æ¿ì
- {
- pUser->AddText( "[Anti-Spam] Only 3 Messages per 1 Sec. allowed" );
- return TRUE;
- }
- pUser->m_dwLastSpammTick = GetTickCount();
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- 2. //REMOVE STUN BUG
- // FuncTextCmd.cpp Add This
- BOOL TextCmd_RemoveStunBug( CScanner & s )
- {
- #ifdef __WORLDSERVER
- CUser* pUser = (CUser*)s.dwValue;
- if( pUser->m_dwLastAwakeTick + 30000 > GetTickCount() ) // ¾ÆÀÌÅÛ ±¸ÀԽõµ ÈÄ 0.5ÃÊÀ̳»¿¡ ´Ù½Ã ±¸ÀԽõµÇÑ °æ¿ì
- {
- pUser->AddText( "[Anti-Spam] Only 1 Stun-bug Removal Per 30 Sec." );
- return TRUE;
- }
- pUser->m_dwLastSpammTick = GetTickCount();
- pUser->StopCollecting();
- pUser->AddText( "Stun-Bug has been removed." );
- #endif // __WORLDSERVER
- return TRUE;
- }
- // And This to the command area also in FuncTextCmd.cpp
- ON_TEXTCMDFUNC( TextCmd_Position, "RemoveStunBug", "rsb", "ÁÂÇ¥", "ÁÂÇ¥", TCM_CLIENT, AUTH_GENERAL , "ÇöÀç ÁÂÇ¥¸¦ Ãâ·ÂÇØÁØ´Ù." )
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- 3. //REMOVE POTION
- //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!
- //In FuncTextCmd.cpp search for:
- ON_TEXTCMDFUNC( TextCmd_Position, "position", "pos", "ÁÂÇ¥", "ÁÂÇ¥", TCM_CLIENT, AUTH_GENERAL , "ÇöÀç ÁÂÇ¥¸¦ Ãâ·ÂÇØÁØ´Ù." )
- //Replace with:
- ON_TEXTCMDFUNC( TextCmd_Position, "position", "pos", "ÁÂÇ¥", "ÁÂÇ¥", TCM_CLIENT, AUTH_ADMINISTRATOR , "ÇöÀç ÁÂÇ¥¸¦ Ãâ·ÂÇØÁØ´Ù." )
- //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.
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- 4. //Guild Siege Client Crash caused by Client Side Admin auth and destroy guild command.
- //In FuncTextCmd.cpp search for:
- BOOL TextCmd_DestroyGuild( CScanner & scanner )
- {
- #ifdef __CLIENT
- g_DPlay.SendDestroyGuild( g_pPlayer->m_idPlayer );
- #endif
- return TRUE;
- }
- //Replace with:
- BOOL TextCmd_DestroyGuild( CScanner & scanner )
- {
- #ifdef __CLIENT
- CUser* pUser = (CUser*)scanner.dwValue;
- if( g_GuildCombatMng.m_nState != CGuildCombat::CLOSE_STATE )
- {
- char chMessage[128] = {0,};
- sprintf( chMessage, "Can not disband Guild during Guild Siege" );
- pUser->AddText( chMessage );
- return TRUE;
- }
- g_DPlay.SendDestroyGuild( g_pPlayer->m_idPlayer );
- #endif
- return TRUE;
- }
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- 5. //Command to Open Guide/About section on Forum and Website /Wiki Command
- //In FuncTextCmd.cpp
- BOOL TextCmd_Wiki( CScanner & scanner )
- {
- #ifdef __CLIENT
- ShellExecute(0, TEXT("open"), TEXT("https://YOUR-Wiki.com/"), 0, 0, 0); //Opens Website About page
- ShellExecute(0, TEXT("open"), TEXT("http://Your-Forum-or-Web.net/), 0, 0, 0); //Opens Forum Guide Section
- //ShellExecute(0, TEXT("open"), TEXT("https://gtop100.com/Your-Vote/"), 0, 0, 0); // Can Be used to create a vote command
- #endif
- return TRUE;
- }
- // And This to the command area also in FuncTextCmd.cpp
- ON_TEXTCMDFUNC( TextCmd_Wiki, "Wiki", "Info", "ÁÂÇ¥", "ÁÂÇ¥", TCM_CLIENT, AUTH_GENERAL , "ÇöÀç ÁÂÇ¥¸¦ Ãâ·ÂÇØÁØ´Ù." )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement