Guest User

Untitled

a guest
Jan 13th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. case 59: // Revitalizador By Erick Mota
  2. {
  3. if((cMontaria >= 2359) && (cMontaria + 4 <= 9)) // Catalizador Aumenta a Vida do Pet em até 3 vitas
  4. {
  5. srand(time(NULL)); // "desbuga" o rand
  6. numero = (rand() % 3); // gera o aleatório
  7. printf("%dn", numero);
  8. if(numero==0) // Se for 0
  9. if(cMontaria + 4 >= 59)
  10. {
  11. SendClientMessage(clientid, "Impossível Aumentar Mais!!");
  12. return;
  13. }
  14. {
  15. PInt(addr_bclient + 0x015C6A84+5) += 1; //vitalidade
  16. SendClientMessage(clientid, "Vitalidade Aumentada em 1 !");
  17. PInt(0x015C6A94+ addr_bclient) = 0;
  18. SendIn(clientid, 0x15C6A84, 14);
  19. SendStats(clientid);
  20. return;
  21. }
  22. if(numero==1) //Se for 1
  23. if(cMontaria + 4 >=58)
  24. {
  25. SendClientMessage(clientid, "Impossível Aumentar Mais!!");
  26. return;
  27. }
  28. {
  29. PInt(addr_bclient + 0x015C6A84+5) += 2; //vitalidade
  30. SendClientMessage(clientid, "Vitalidade Aumentada em 2 !!");
  31. PInt(0x015C6A94+ addr_bclient) = 0;
  32. SendIn(clientid, 0x15C6A84, 14);
  33. SendStats(clientid);
  34. return;
  35. }
  36. if(numero==2) //Se for 2
  37. if(cMontaria + 4 >=57)
  38. {
  39. SendClientMessage(clientid, "Impossível Aumentar Mais!!");
  40. return;
  41. }
  42. {
  43. PInt(addr_bclient + 0x015C6A84+5) += 3; //vitalidade
  44. SendClientMessage(clientid, "Vitalidade Aumentada em 3 !!!");
  45. PInt(0x015C6A94+ addr_bclient) = 0;
  46. SendIn(clientid, 0x15C6A84, 14);
  47. SendStats(clientid);
  48. return;
  49. }
  50. }
  51.  
  52. }
Add Comment
Please, Sign In to add comment