Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 59: // Revitalizador By Erick Mota
- {
- if((cMontaria >= 2359) && (cMontaria + 4 <= 9)) // Catalizador Aumenta a Vida do Pet em até 3 vitas
- {
- srand(time(NULL)); // "desbuga" o rand
- numero = (rand() % 3); // gera o aleatório
- printf("%dn", numero);
- if(numero==0) // Se for 0
- if(cMontaria + 4 >= 59)
- {
- SendClientMessage(clientid, "Impossível Aumentar Mais!!");
- return;
- }
- {
- PInt(addr_bclient + 0x015C6A84+5) += 1; //vitalidade
- SendClientMessage(clientid, "Vitalidade Aumentada em 1 !");
- PInt(0x015C6A94+ addr_bclient) = 0;
- SendIn(clientid, 0x15C6A84, 14);
- SendStats(clientid);
- return;
- }
- if(numero==1) //Se for 1
- if(cMontaria + 4 >=58)
- {
- SendClientMessage(clientid, "Impossível Aumentar Mais!!");
- return;
- }
- {
- PInt(addr_bclient + 0x015C6A84+5) += 2; //vitalidade
- SendClientMessage(clientid, "Vitalidade Aumentada em 2 !!");
- PInt(0x015C6A94+ addr_bclient) = 0;
- SendIn(clientid, 0x15C6A84, 14);
- SendStats(clientid);
- return;
- }
- if(numero==2) //Se for 2
- if(cMontaria + 4 >=57)
- {
- SendClientMessage(clientid, "Impossível Aumentar Mais!!");
- return;
- }
- {
- PInt(addr_bclient + 0x015C6A84+5) += 3; //vitalidade
- SendClientMessage(clientid, "Vitalidade Aumentada em 3 !!!");
- PInt(0x015C6A94+ addr_bclient) = 0;
- SendIn(clientid, 0x15C6A84, 14);
- SendStats(clientid);
- return;
- }
- }
- }
Add Comment
Please, Sign In to add comment