Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. void PesaAG(int clientid)
  2. {
  3. MOB *player = (MOB*)GetMobFromIndex(clientid);
  4. int cMin = PInt(0x00A5EA414);
  5. int addr_bclient = clientid * 0x0410;
  6. int cX = PInt(addr_bclient + 0x015C6CEC);
  7. int cY = PInt(addr_bclient + 0x015C6CF0);
  8. int itenslot = GetFirstSlotSADD(clientid,3326,64);
  9. if(PInt(PesaA) <= 2);
  10. else
  11. {
  12. SendClientMsg(clientid,"Três grupos já estão participando da quest.");
  13. SendALL(clientid);
  14. return;
  15. }
  16. if(cX >= 2446 && cY >= 1680 && cX <= 2547 && cY <= 1740);
  17. else
  18. {
  19. SendClientMsg(clientid,"Use este item no Reino de Azran.");
  20. SendALL(clientid);
  21. return;
  22. }
  23. if((cMin == 01) || (cMin == 23) || (cMin == 58));
  24. else
  25. {
  26. SendClientMsg(clientid,"Acessível apenas nos minutos 01,21,41");
  27. SendALL(clientid);
  28. return;
  29. }
  30. DoTeleport(clientid, 1225, 189);
  31. PTeleport(clientid,1225,189);
  32. player->Inventory[itenslot].Index = 0;
  33. PInt(PesaA) += 1;
  34. respaw(clientid);
  35. SendALL(clientid);
  36. return;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement