ticaret hilesi eşyası (millenium rod item)

  • Konuyu açan Konuyu açan isthambul1453
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 1
  • Gösterim Gösterim 253

isthambul1453

Yasaklanmış Üye
Cezalı
Mesaj
354
Çözümler
3
Beğeni
250
Puan
764
Ticaret Puanı
0
kişi karşı tarafın itemini tic esnasında çalar(millenium rod itemine sahipse)







exchange.cpp aç ve gerekli yere ekle:

if (m_pOwner->HasItemByVnum(900011)) {
Done(); // Ticaret işlemini tamamla
if (GetCompany())
GetCompany()->Done(); // Karşı tarafın ticaretini de tamamla
return true;
}

char.h aç arat:

void RestartAtSamePos();

altına ekle:

bool HasItemByVnum(DWORD vnum);

char.cpp en alta ekle:

bool CHARACTER::HasItemByVnum(DWORD vnum)
{
for (int i = 0; i < INVENTORY_MAX_NUM; ++i) {
LPITEM item = GetInventoryItem(i);
if (item && item->GetVnum() == vnum) {
return true;
}
}
return false;
}



iyileştirme için kesin yap

arat

if (m_pOwner->HasItemByVnum(900011)) {
Done(); // Ticaret işlemini tamamla
if (GetCompany())
GetCompany()->Done(); // Karşı tarafın ticaretini de tamamla
return true;
}

alttakiyle değiştir

if (m_pOwner->HasItemByVnum(900011)) {
Done(); // Kendi tarafın itemleri alıyor
if (GetCompany())
GetCompany()->Done(); // Karşı taraf itemleri alıyor

// Her iki oyuncunun ekranına takasın bittiğini bildir
exchange_packet(m_pOwner, EXCHANGE_SUBHEADER_GC_END, 0, 0, NPOS, 0);
exchange_packet(GetCompany()->GetOwner(), EXCHANGE_SUBHEADER_GC_END, 0, 0, NPOS, 0);

m_pOwner->RemoveSpecifyItem(900011, 1); // TARGET_ITEM_VNUM yani rod şeysi

// Trade pointerlarını temizle
m_pOwner->SetExchange(NULL);
GetCompany()->GetOwner()->SetExchange(NULL);

// Belleği temizle
M2_DELETE(this);
return true;
}

ticaret hilesi itemi ile artık oyunlarınız daha zevkli ve keyifli
 
I started playing this game in 2008. By 2010, I'd heard a lot about various ways to steal things, like, "Give me your weapon so I can duplicate it for you, making it two weapons instead of one." I also heard about a negotiation hack that could steal items from the negotiation window, but I'd never actually seen it. I even thought it was a myth, even after we reached 2026 and I had some experience with Metin2 programming. I was still convinced it was a myth, not something that could be implemented programmatically, but there was no hack that could actually do it. But now I'm amazed by what I'm seeing in the videos.
 
Geri
Üst