BackPlayer 55 Posted June 26, 2016 Share Posted June 26, 2016 hello guys how can i block GM buy from private shops only(not from NPC). Link to comment Share on other sites More sharing options...
.Devil. 28 Posted June 26, 2016 Share Posted June 26, 2016 + Open shop.cpp + Search for CShop::Buy(LPCHARACTER ch, BYTE pos) + After: if (pos >= m_itemVector.size()) { sys_log(0, "Shop::Buy : invalid position %d : %s", pos, ch->GetName()); return SHOP_SUBHEADER_GC_INVALID_POS; } put: if (IsPCShop() && ch->GetGMLevel() > GM_PLAYER) return SHOP_SUBHEADER_GC_SOLD_OUT; I haven't tested it but should work. 2 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