Active Member ReFresh 2343 Posted December 14, 2015 Active Member Share Posted December 14, 2015 Hi guys, how can I block doing shop with GM? When i did a shop with GM, other players can buy item's from my shop, that's logic, but I want to block this. Thank you for answers! Kind Regards ReFresh I'll be always helpful! Link to comment Share on other sites More sharing options...
dzdev 40 Posted December 14, 2015 Share Posted December 14, 2015 unpack root and open game.py search Spoiler def __PutItem(self, attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, dstChrID): add under it Spoiler # GM_DISABLE_ITEM_SEND char = player.GetMainCharacterName() GMMark= "[" if char >= GMMark: chat.AppendChat(chat.CHAT_TYPE_INFO, locale.SEND_ITEM_FAILURE_GM) return # END_OF_GM_DISABLE_ITEM_SEND then go to locale_game.txt and add Spoiler SEND_ITEM_FAILURE_GM GM can't trade 1 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2343 Posted December 14, 2015 Author Active Member Share Posted December 14, 2015 @dzdev Thanks for your answer, but I need block doing shop with shop bundle, for GM. I'll be always helpful! Link to comment Share on other sites More sharing options...
Endymion 321 Posted December 14, 2015 Share Posted December 14, 2015 char_item.cpp find case 50200: and case 71049: then add this code if (IsGM()){ChatPacket(CHAT_TYPE_INFO, "GM Cant open pshop."); return false;} 2 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2343 Posted December 16, 2015 Author Active Member Share Posted December 16, 2015 (edited) . Edited December 16, 2015 by ReFresh -SOLVED- I'll be always helpful! Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19704 Posted December 16, 2015 Honorable Member Share Posted December 16, 2015 Put the if statement under the case. case 71049: if(isgm()...return false if lc_isymir blabla Link to comment Share on other sites More sharing options...
Active Member ReFresh 2343 Posted December 16, 2015 Author Active Member Share Posted December 16, 2015 (edited) . Edited December 16, 2015 by ReFresh -SOLVED- I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2343 Posted December 16, 2015 Author Active Member Share Posted December 16, 2015 Thanks to all for the help. I fixed it. I'll be always helpful! 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