Advertisement
Guest User

Untitled

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