Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void DropGold(DWORD dwAmount)
- {
- UnitAny* pPlayer = D2CLIENT_GetPlayerUnit();
- DWORD id = pPlayer->dwUnitId;
- BYTE *pPacket = new BYTE[9];
- memset(pPacket, 0x00, 9);
- *(DWORD*)&pPacket[0] = 0x50;
- *(DWORD*)&pPacket[1] = id;
- *(DWORD*)&pPacket[5] = dwAmount;
- D2NET_SendPacket(9, 0, pPacket);
- }
- DWORD WINAPI DropGoldThread(LPVOID lpParameter) {
- while(bDropGold) {
- if(GameReady()) {
- DropGold(iGoldAmount);
- Sleep(iGoldDelay);
- }
- if(!GameReady()) break;
- }
- return NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement