Guest User

Untitled

a guest
Jun 24th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. #include "DLLMain.h"
  2.  
  3. void WINAPI SeloDoComandante_Counter(int clientid)
  4. {
  5. Atualizar *p;
  6.  
  7. Sleep(10);
  8. p->TempoVerde(clientid,600);
  9. p->GenerateSpawn(10);
  10. Sleep(600000);
  11. p->DoTeleportArea(2100,2100,1305,1440,1380,1475);
  12. PByte(0x04BFB8E) = 0;
  13. Sleep(10);
  14. }
  15.  
  16. void Volatiles::SeloDoComandante(int clientid)
  17. {
  18. Atualizar *p;
  19. MOB *player = (MOB*)GetMobFromIndex(clientid);
  20.  
  21. int addr_bclient = clientid * 0x0410;
  22. int cX = PInt(addr_bclient + 0x015C6CEC);
  23. int cY = PInt(addr_bclient + 0x015C6CF0);
  24. int Grupo = PInt(addr_bclient + 0x015C6CD0);
  25. int Selo = PByte(0x04BFB8E);
  26. int ITEM = p->GetFirstSlotSADD(clientid,3457,64);
  27.  
  28. if(player->Equip[0].EFV2 == 3)
  29. {
  30. if(Grupo == 0)
  31. {
  32. if(Selo == 00)
  33. {
  34. if(player->Inventory[ITEM].EFV1 >= 2)
  35. {
  36. CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)SeloDoComandante_Counter, NULL, 0, 0);
  37. player->Inventory[ITEM].EFV1 -= 1;
  38. p->DoTeleport(clientid,1341,1465);
  39. p->PTeleport(clientid,1341,1465);
  40. Selo = 1;
  41. p->SendALL(clientid);
  42. return;
  43. }
  44. if(player->Inventory[ITEM].EFV1 <= 1)
  45. {
  46. CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)SeloDoComandante_Counter, NULL, 0, 0);
  47. player->Inventory[ITEM].Index == 0;
  48. p->DoTeleport(clientid,1341,1465);
  49. p->PTeleport(clientid,1341,1465);
  50. Selo = 1;
  51. p->SendALL(clientid);
  52. return;
  53. }
  54. }
  55. else if(Selo >= 01)
  56. {
  57. p->SendClientMsg(clientid,"Outros jogadores já estão realizando esta quest.");
  58. p->SendALL(clientid);
  59. return;
  60. }
  61. }
  62. else
  63. {
  64. p->SendClientMsg(clientid,"Uso apenas sendo Lider do Grupo.");
  65. p->SendALL(clientid);
  66. return;
  67. }
  68. }
  69. else
  70. {
  71. p->SendClientMsg(clientid,"Somente [Celestial / SubCelestial] Podem Realizar a Quest.");
  72. p->SendALL(clientid);
  73. return;
  74. }
  75. }
Add Comment
Please, Sign In to add comment