Eko 25 Posted October 1, 2015 Share Posted October 1, 2015 (edited) hi guys!, how i can make all items in shop, and trade? example khan seal in my shop or in trade Edited October 1, 2015 by Eko Link to comment Share on other sites More sharing options...
Rideas 167 Posted October 1, 2015 Share Posted October 1, 2015 open exchange.cppSearch: if (IS_SET(item->GetAntiFlag(), ITEM_ANTIFLAG_GIVE)) { m_pOwner->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("아이템을 건네줄 수 없습니다.")); return false; } Add to on: (üstüne ekle) if (item->GetVnum() == itemvnum1 || item->GetVnum() == itemvnum2 || item->GetVnum() == itemvnum3) { Accept(false); GetCompany()->Accept(false); for (int i = 0; i < EXCHANGE_ITEM_MAX_NUM; ++i) { if (m_apItems[i]) continue; m_apItems[i] = item; m_aItemPos[i] = item_pos; m_abItemDisplayPos[i] = display_pos; m_pGrid->Put(display_pos, 1, item->GetSize()); item->SetExchanging(true); exchange_packet(m_pOwner, EXCHANGE_SUBHEADER_GC_ITEM_ADD, true, item->GetVnum(), TItemPos(RESERVED_WINDOW, display_pos), item->GetCount(), item); exchange_packet(GetCompany()->GetOwner(), EXCHANGE_SUBHEADER_GC_ITEM_ADD, false, item->GetVnum(), TItemPos(RESERVED_WINDOW, display_pos), item->GetCount(), item); sys_log(0, "EXCHANGE AddItem success %s pos(%d, %d) %d", item->GetName(), item_pos.window_type, item_pos.cell, display_pos); return true; } } open char.cppSearch: // ANTI_GIVE, ANTI_MYSHOP check LPITEM pkItem = GetItem((pTable + i)->pos); if (pkItem) { const TItemTable * item_table = pkItem->GetProto(); if (item_table && (IS_SET(item_table->dwAntiFlags, ITEM_ANTIFLAG_GIVE | ITEM_ANTIFLAG_MYSHOP))) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("유료화 아이템은 개인상점에서 판매할 수 없습니다.")); return; } Replace: // ANTI_GIVE, ANTI_MYSHOP check LPITEM pkItem = GetItem((pTable + i)->pos); if (pkItem) { const TItemTable * item_table = pkItem->GetProto(); if (pkItem->GetVnum() != itemvnum1 || pkItem->GetVnum() != itemvnum2 || pkItem->GetVnum() != itemvnum3 && item_table && (IS_SET(item_table->dwAntiFlags, ITEM_ANTIFLAG_GIVE | ITEM_ANTIFLAG_MYSHOP))) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("유료화 아이템은 개인상점에서 판매할 수 없습니다.")); return; } Best Regards Rideas 1 Link to comment Share on other sites More sharing options...
Eko 25 Posted October 1, 2015 Author Share Posted October 1, 2015 (edited) have errors from exchange https://metin2.download/picture/I2t6E0ayz3Ca4m5qDjzk52ADmSx2o7c8/.png Edited August 31, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Rideas 167 Posted October 1, 2015 Share Posted October 1, 2015 (edited) have errors from exchange https://metin2.download/picture/I2t6E0ayz3Ca4m5qDjzk52ADmSx2o7c8/.png itemvnum1 is item vnumSimple:item->GetVnum() == 50512 Edited August 31, 2022 by Metin2 Dev Core X - External 2 Internal 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