Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // By Shepher & The Rev'
- // 1.0
- void PergaRessu(int clientid)
- {
- time_t start,end;
- time(&start);
- while(1)
- {
- time(&end);
- double dif = difftime (end,start);
- if(dif>= 2) // Se a diferença for maior que 2(sempre)
- {
- for(int i=0; i<130; i++) // loop dos players online
- {
- int addr_bclient = i * 0x0410; // Pega o address do client do usuário
- if(PInt(i * 0x0410 + 0x15C6A04) == 0) // Verifica se ele está com hp 0
- {
- int itenslot = FindInv(i, ITEM); // Se estiver, busca o item
- if(itenslot != -1) // Se achou
- {
- MOB *player = (MOB*)GetMobFromIndex(i);
- if(player->Inventory[itenslot].EF1 == 61)// Verifica as unidades
- {
- player->Inventory[itenslot].EFV1 -= 1; // Diminui uma
- /*PInt(i * 0x0410 + 0x15C6A04)*/
- PInt(i * 0x0410 + 0x15C6A04) = PInt(i * 0x0410 + 0x15C6A00) / 2 ; //HP
- SendALL(i); // SendALL
- break;
- }
- }
- else
- {
- // printf("Não encontrado");
- }
- }
- else
- {
- // printf("Hp não é igual a 0");
- }
- }
- }
- }
- Sleep(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment