asmodeus27
Confirmed Memb.
Ayın En Aktifi 🌟
Haftanın Üyesi
Tartışma Başlatıcı
10 Rozet
İçerik Kaşifi
Profilini Tamamla
Top Sharer
Günlük Ziyaretçi
İlk Paylaşım
Sharer I
İlk Mesaj
İlk Beğeni
Doğrulanmış Üye
temel kod :d:
static void* iNetworkStreamInstance()
{
DWORD inst = *(DWORD*)(sdk_client + metin2client::C_CPythonNetworkStream);
if (!inst) return nullptr;
return (void*)inst;
}
static void NetworkStreamSendRefinePacket(int slot1, int sans)
{
try
{
typedef void(__thiscall* tRefine)(void* This, int slot, int chance);
tRefine SendRefinePacket = (tRefine)(sdk_client + metin2client::C_SendRefinePacket);
void* pNetStream = sdk::iNetworkStreamInstance();
if (!SendRefinePacket || !pNetStream) return;
SendRefinePacket(pNetStream, slot1, sans);
}
catch (...)
{
}
}
kullanım:
DWORD WINAPI Set_Blacksmith(HMODULE hModule)
{
bool* UpgradeSlot[20] = {
&Keyboard::C_Blacksmith_Slot1, &Keyboard::C_Blacksmith_Slot2,
&Keyboard::C_Blacksmith_Slot3, &Keyboard::C_Blacksmith_Slot4,
&Keyboard::C_Blacksmith_Slot5, &Keyboard::C_Blacksmith_Slot6,
&Keyboard::C_Blacksmith_Slot7, &Keyboard::C_Blacksmith_Slot8,
&Keyboard::C_Blacksmith_Slot9, &Keyboard::C_Blacksmith_Slot10,
&Keyboard::C_Blacksmith_Slot11, &Keyboard::C_Blacksmith_Slot12,
&Keyboard::C_Blacksmith_Slot13, &Keyboard::C_Blacksmith_Slot14,
&Keyboard::C_Blacksmith_Slot15, &Keyboard::C_Blacksmith_Slot16,
&Keyboard::C_Blacksmith_Slot17, &Keyboard::C_Blacksmith_Slot18,
&Keyboard::C_Blacksmith_Slot19, &Keyboard::C_Blacksmith_Slot20
};
while (true)
{
if (Keyboard::C_Blacksmith)
{
for (int i = 0; i < 20; ++i)
{
if (*UpgradeSlot[I])
engine::NetworkStreamSendRefinePacket((int)i, (int)0);
}
}
Sleep(Keyboard::C_BlacksmithSpeed);
}
}