Guest User

Untitled

a guest
Apr 25th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. #include "DLLMain.h"
  2.  
  3. void Merch::Kibita(int clientid,int npcid)
  4. {
  5. MOB *thisclient = (MOB*)GetMobFromIndex(clientid);
  6. Atualizar *p;
  7. int itenslot = p->GetFirstSlot(clientid,420,0,0,0,0,0,0,64);
  8. int cHor = PInt(0x00A5EA418);
  9. int cDia = PInt(0x00a5ea428);
  10. if(thisclient->Equip[0].EFV2 == 1)
  11. {
  12. if(cDia != 0 && cDia != 6)
  13. {
  14. if(cHor == 21)
  15. {
  16. if(itenslot != -1)
  17. {
  18. for(int i=0;i<15;i++)
  19. {
  20. if(thisclient->Affects[i].Index == 0)
  21. {
  22. thisclient->Affects[i].Index = 29;
  23. thisclient->Affects[i].Master = 29;
  24. thisclient->Affects[i].Time = 500;
  25. thisclient->Affects[i].Value = 700;
  26. thisclient->Inventory[itenslot].Index = 0;
  27. p->DoTeleport(clientid,2459,1838);
  28. p->SendALL(clientid);
  29. break;
  30. }
  31. else
  32. return;
  33. }
  34. thisclient->bStatus.maxHP += 10000;
  35. if(thisclient->bStatus.curHP > 20000)
  36. {
  37. thisclient->bStatus.maxHP -= 10500;
  38. }
  39. p->SendScore(clientid);
  40. p->SendALL(clientid);
  41. return;
  42. }
  43. else
  44. p->SendSay(npcid,"Tragame um Resto de Lactorium.");
  45. }
  46. else
  47. p->SendSay(npcid,"Aguarde ate as 21:00 Horas.");
  48. return;
  49. }
  50. else
  51. p->SendSay(npcid,"Você só pode usar a Kibita em dias da semana.");
  52. return;
  53. }
  54. else
  55. {
  56. p->SendSay(npcid,"Desculpe.");
  57. return;
  58. }
  59. }
Add Comment
Please, Sign In to add comment