Advertisement
Guest User

Untitled

a guest
Aug 24th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. ;Autor: odzi
  2. ;v. 1.0
  3. set %key f2
  4. set %ji #jindex
  5. repeat
  6. {
  7. onhotkey %key
  8. {
  9. gosub szukaj
  10. if #result = nie
  11. continue
  12. set %juka #result
  13. gosub karm %juka
  14. if #result = nie
  15. continue
  16. }
  17. }
  18. until #false
  19.  
  20. sub szukaj
  21. finditem BO G_2
  22. if #findkind = -1
  23. {
  24. set #sysmsgcol 45
  25. event sysmessage Nie znalazlem juki
  26. ignoreitem reset
  27. return nie
  28. }
  29. return #findid
  30.  
  31. sub karm
  32. finditem FWI_QQD_TWI_UWI C_ , #backpackid
  33. if #findkind <> -1
  34. {
  35. exevent drag #findid #findstack
  36. set %czas #scnt + 5
  37. repeat
  38. {
  39. if %czas < #scnt
  40. exevent drag #findid #findstack
  41. finditem #findid C_ , #backpackid
  42. }
  43. until #findkind = -1
  44. exevent dropc %1
  45. repeat
  46. {
  47. if %ji < #jindex
  48. {
  49. set %ji %ji + 1
  50. scanjournal %ji
  51. if *szczesliwe* in #journal || *twe_zwierze in #journal
  52. {
  53. ignoreitem %1
  54. return
  55. }
  56. if *Yum* in #journal
  57. return
  58. }
  59. until #false
  60. }
  61. set #sysmsgcol 45
  62. event sysmessage Nie znalazlem owocow
  63. return nie
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement