Advertisement
Guest User

Untitled

a guest
Oct 30th, 2016
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. ;%Klawisz - defaultowo F12
  2. ;============
  3. set %Klawisz F12
  4. ;============
  5. repeat
  6. onhotkey %Klawisz
  7. gosub Nozyczki
  8. until #false
  9. sub Nozyczki
  10. Uzyj_nozyczek:
  11. finditem kag C
  12. if #findkind = -1
  13. return
  14. set #lobjectid #findid
  15. event macro 17
  16. set %Timer #scnt2 + 5
  17. repeat
  18. if %Timer < #scnt2
  19. goto Uzyj_nozyczek
  20. until #targcurs = 1
  21. repeat
  22. onhotkey ESC
  23. return
  24. until #targcurs = 0
  25. onhotkey ESC
  26. return
  27. set %Id_pojemnika #ltargetid
  28. set #lobjectid %Id_pojemnika
  29. event macro 17
  30. set %Timer #scnt2 + 25
  31. Nastepne_piora:
  32. repeat
  33. if %Timer < #scnt2
  34. return
  35. finditem VLK C_ , %Id_pojemnika
  36. until #findkind = 0
  37. set %Id_pior #findid
  38. set %Stack_pior #findstack
  39. ExDrag_pior:
  40. exevent drag %Id_pior %Stack_pior
  41. set %Timer #scnt2 + 25
  42. repeat
  43. if %Timer < #scnt2
  44. goto ExDrag_pior
  45. finditem %Id_pior C_ , %Id_pojemnika
  46. until #findkind = -1
  47. set %Id_pior_w_plecaku 0
  48. finditem vlk C_ , #backpackid
  49. if #findkind = 0
  50. {
  51. set %Id_pior_w_plecaku #findid
  52. set %Stack_pior_w_plecaku #findstack
  53. }
  54. set %Cnt_dropow 0
  55. ExDrop_pior:
  56. set %Cnt_dropow %Cnt_dropow + 1
  57. if %Cnt_dropow > 3
  58. return
  59. exevent dropc #backpackid
  60. set %Timer #scnt2 + 12
  61. repeat
  62. if %Timer < #scnt2
  63. goto ExDrop_pior
  64. if %Id_pior_w_plecaku = 0
  65. finditem %Id_pior C_ , #backpackid
  66. else
  67. finditem %Id_pior_w_plecaku C_ , #backpackid
  68. until ( #findkind = 0 && %Id_pior_w_plecaku = 0 ) || ( #findstack = %Stack_pior_w_plecaku + %Stack_pior && %Id_pior_w_plecaku <> 0 )
  69. set %Timer #scnt2 + 3
  70. goto Nastepne_piora
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement