Guest User

Untitled

a guest
May 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. ;
  2. ; ******************************
  3. ; * Jedzenie ver 1,00 *
  4. ; *<<>><<>><<>><<>><<>><<>><<>>*
  5. ; * Romek_z_Jawora *
  6. ; ******************************
  7. ;
  8. ; W momencie pojawienia sie komunikatu
  9. ; makro zaczyna jesc, o ile ma to sens
  10. ; najpierw probuje zjadac jedzenie 1 pkt
  11. ; nastepnie 2 pkt - w celu najedzenia
  12. ; jezeli nie mamy jedzenia 1 pkt to je tylko 2pkt
  13. ;
  14. ; Skrypt jest kompatybilny z innymi skryptami z mojej strony
  15. ; np. nie zacznie jesc, poki sie osoba leczy
  16. ;
  17. ; Makro uzupelnili: Kwiatek, Evilas, spot
  18.  
  19. set %sciezka C:\xxx.wav ;sciezka do pliku dzwiekowego
  20.  
  21. set #sysmsgcol 90
  22. event sysmessage [RJ]: Tyle wiesz ile zjesz
  23.  
  24. set %typy1pkt ZPE_HND_YRD_YBF_BND_WGB_FND_GND_END_HND_RGG_YSD_QQD_QUD
  25. set %typy2pkt TQE_WLI_BNL_NWI_IND_ACG_VRD_SLI_HGI_OLI_HTH_HGI_EGI_JGI_QRD_ZBG_NRD_WLI_ZPD_GUD_YLI_HQD_IND_SPE_PRD_AQE_DNL_EQD_DQD_YDF_COQ_FWF_ZVF_DWF_NNQ_BCK
  26. set %typysurowemieso PUD_VRD
  27. set *RJjedzenie #false
  28. set %ji #jindex
  29. event macro 1 0 .glod
  30. set *RJskill #false
  31. ;-------------------------------
  32. repeat
  33. if %ji < #jindex
  34. {
  35. set %ji %ji + 1
  36. scanjournal %ji
  37. if : notin #journal && ( Wciaz_glod_meczy in #journal || Jestes_troche_najedz in #journal || Jestes_najedz in #journal || zglodniales in #journal || juz_cos_zjesc in #journal || zaczynasz_robic_sie_glod in #journal || glod in #journal || Zoladek_cie_boli in #journal || Czujesz_sie_troszke_najedz in #journal )
  38. gosub jedzenie
  39. set %ji #jindex
  40. }
  41. until #false
  42. ;-------------------------------
  43. sub jedzenie
  44. set *RJjedzenie #true
  45. sound %sciezka
  46. set %jednopkt #true
  47. repeat
  48. if odrobine_zglodniales in #journal || Jestes_najedz in #journal ||
  49. set %jednopkt #false
  50. if %scnt <> #scnt
  51. {
  52. set %scnt #scnt
  53. finditem #charid G_0
  54. set %typpostaci #findtype
  55. szukaj:
  56. if %typpostaci notin FH_PG_YG
  57. {
  58. finditem %typyjednopkt C
  59. if #findkind <> 0
  60. finditem %typy2pkt C
  61. event property #findid
  62. if surow in #property
  63. {
  64. ignoreitem #findid
  65. goto szukaj
  66. }
  67. }
  68. else
  69. {
  70. finditem %typysurowemieso C
  71. event property #findid
  72. if krwisty in #property || pieczon in #property
  73. {
  74. ignoreitem #findid
  75. goto szukaj
  76. }
  77. }
  78. if #findkind = -1
  79. {
  80. set %ji #jindex
  81. set #sysmsgcol 50
  82. event sysmessage [Jedzenie]: Brak!
  83. return
  84. }
  85. repeat
  86. until *RJskill <> #true
  87. set #lobjectid #findid
  88. event macro 17
  89. }
  90. if %ji < #jindex
  91. {
  92. set %ji %ji + 1
  93. scanjournal %ji
  94. }
  95. until Jestes_bardzo_porzadnie in #journal
  96. set #sysmsgcol 88
  97. event sysmessage [Jedzenie]: Skonczylem jesc!
  98. ignoreitem reset
  99. set *RJjedzenie #false
  100. return
Add Comment
Please, Sign In to add comment