Metin2Taipan 5 Posted October 29, 2015 Share Posted October 29, 2015 Someone could make me a tutorial on how to block the source pro gm not trade players and not play items on the floor? Link to comment Share on other sites More sharing options...
Premium TAUMP 825 Posted October 29, 2015 Premium Share Posted October 29, 2015 Exchange.cpp this code add under //PREVENT_TRADE_WINDOW if (ch->GetGMLevel() > GM_PLAYER || victim->GetGMLevel() > GM_PLAYER) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("With GM cant trade !")); return false; Link to comment Share on other sites More sharing options...
Metin2Taipan 5 Posted October 29, 2015 Author Share Posted October 29, 2015 Exchange.cpp this code add under //PREVENT_TRADE_WINDOW if (ch->GetGMLevel() > GM_PLAYER || victim->GetGMLevel() > GM_PLAYER) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("With GM cant trade !")); return false; Can you help me also how to block for gm not play items on the floor? Link to comment Share on other sites More sharing options...
Premium TAUMP 825 Posted October 29, 2015 Premium Share Posted October 29, 2015 (edited) char_item.cppfind bool CHARACTER::DropItem(TItemPos Cell, BYTE bCount) { LPITEM item = NULL; if (GetGMLevel() > GM_PLAYER) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("GM cant drop item!")); return false; } Edited October 29, 2015 by .T4Ump Link to comment Share on other sites More sharing options...
Metin2Taipan 5 Posted October 29, 2015 Author Share Posted October 29, 2015 Exchange.cpp this code add under //PREVENT_TRADE_WINDOW if (ch->GetGMLevel() > GM_PLAYER || victim->GetGMLevel() > GM_PLAYER) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("With GM cant trade !")); return false; Makefile:132: recipe for target 'OBJDIR/exchange.o' failedgmake[1]: *** [OBJDIR/exchange.o] Error 1gmake[1]: Leaving directory '/mainline/Server/game/src'Makefile:60: recipe for target 'all' failedgmake: *** [all] Error 2 Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted October 29, 2015 Premium Share Posted October 29, 2015 char_item.cpp Look for: bool CHARACTER::DropItem(TItemPos Cell, BYTE bCount) { LPITEM item = NULL; Add this under: if (GetGMLevel() > GM_PLAYER) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("GM cant drop items.")); return false; } Like this: Spoiler exchange.cpp Look for: //PREVENT_TRADE_WINDOW if ( IsOpenSafebox() || GetShopOwner() || GetMyShop() || IsCubeOpen()) { ChatPacket( CHAT_TYPE_INFO, LC_TEXT("다른 거래창이 열려있을경우 거래를 할수 없습니다." ) ); return false; } Add this under: if (GetGMLevel() > GM_PLAYER || victim->GetGMLevel() > GM_PLAYER) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("GM cant trade.")); return false; } Like this: Spoiler 1 1 Link to comment Share on other sites More sharing options...
Curinga 1 Posted April 29, 2016 Share Posted April 29, 2016 nice. and who to block player trade or drop in single map index? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now