Advertisement
Guest User

Untitled

a guest
May 4th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.43 KB | None | 0 0
  1.  
  2.  
  3. ###############################################
  4. ############ AUTOLOOT - PVP I PVM ############
  5. ###############################################
  6.  
  7. sub autolot() # Permaloot z posledni mrtvoly
  8. var start
  9. repeat
  10. repeat
  11. wait(10)
  12. until uo.injournal("Body of")
  13. replace_journal("Body of")
  14. start = uo.timer()
  15. repeat
  16. wait(100)
  17. until uo.getdistance("lastcorpse") < 5 OR uo.timer()>start+40
  18. if uo.getdistance("lastcorpse") <=4 then
  19. ;uo.print("lootim")
  20. loot("lastcorpse")
  21. uo.ignorereset()
  22. ;else
  23. ; uo.charprint("self",20,"Nedosahnu")
  24. end if
  25. until uo.injournal("stop loot")
  26. end sub
  27.  
  28. sub lootni() # Loot jednou z posledniho containeru
  29. loot("lastcontainer")
  30. uo.ignorereset()
  31. end sub
  32.  
  33. sub loot(kde)
  34. var n,pauza,start
  35. Dim A[146]
  36. A[1] = 0x13F8 ;gnarledka 1
  37. A[2] = 0x13F9 ;gnarledka 2
  38. A[3] = 0x0E89 ;quarterka 1
  39. A[4] = 0x0E8A ;quarterka 2
  40. A[5] = 0x0DF1 ;black staff 1
  41. A[6] = 0x0DF0 ;black staff 2
  42. A[7] = 0x143E ;hala 1
  43. A[8] = 0x143F ;hala 2
  44. A[9] = 0x0F4D ;bardiche 1
  45. A[10] = 0x0F4E ;bardiche 2
  46. A[11] = 0x0F62 ;spear 1
  47. A[12] = 0x0F63 ;spear 2
  48. A[13] = 0x13FA ;LBA 1
  49. A[14] = 0x13FB ;LBA 2
  50. A[15] = 0x0F4B ;double axe 1
  51. A[16] = 0x0F4C ;double axe 2
  52. A[17] = 0x1442 ;two hand axe 1
  53. A[18] = 0x1443 ;two hand axe 2
  54. A[19] = 0x1438 ;war hammer 1
  55. A[20] = 0x1439 ;war hammer 2
  56. A[21] = 0x1406 ;war mace 1
  57. A[22] = 0x1407 ;war mace 2
  58. A[23] = 0x13B9 ;viking sword 1
  59. A[24] = 0x13BA ;viking sword 2
  60. A[25] = 0x13FE ;katana 1
  61. A[26] = 0x13FF ;katana 2
  62. A[27] = 0x0F60 ;long sword 1
  63. A[28] = 0x0F61 ;long sword 2
  64. A[29] = 0x1400 ;kryss 1
  65. A[30] = 0x1401 ;kryss 2
  66. A[31] = 0x1440 ;cutlass 1
  67. A[32] = 0x1441 ;cutlass 2
  68. A[33] = 0x13B5 ;scimitar 1
  69. A[34] = 0x13B6 ;scimitar 2
  70. A[35] = 0x13B1 ;luk 1
  71. A[36] = 0x13B2 ;luk 2
  72. A[37] = 0x13FC ;hxb 1
  73. A[38] = 0x13FD ;hxb 2
  74. A[39] = 0x144F ;bone hrud
  75. A[40] = 0x1454 ;bone hrud(flip)
  76. A[41] = 0x1452 ;bone nohy
  77. A[42] = 0x1457 ;bone nohy(flip)
  78. A[43] = 0x1451 ;bone helma
  79. A[44] = 0x1453 ;bone lokty(flip)
  80. A[45] = 0x144E ;bone lokty
  81. A[46] = 0x1450 ;bone rukavice
  82. A[47] = 0x1455 ;bone rukavice(flip)
  83. A[48] = 0x13DB ;studet hrud
  84. A[49] = 0x13E2 ;studet hrud(flip)
  85. A[50] = 0x1C02 ;studet hrud babska
  86. A[51] = 0x13DA ;studet nohy
  87. A[52] = 0x13E1 ;studet nohy(flip)
  88. A[53] = 0x1DB9 ;studet helma
  89. A[54] = 0x1DBA ;studet helma(flip)
  90. A[55] = 0x13D4 ;studet lokty
  91. A[56] = 0x13DC ;studet lokty(flip)
  92. A[57] = 0x13D6 ;studet krk
  93. A[58] = 0x13DD ;studet rukavice
  94. A[59] = 0x13D5 ;studet rukavice(flip)
  95. A[60] = 0x1B7B ;chain stit
  96. A[61] = 0x13C4 ;chain hrud(flip)
  97. A[62] = 0x13BF ;chain hrud
  98. A[63] = 0x13BE ;chain nohy
  99. A[64] = 0x13CD ;chain lokty(flip1)
  100. A[65] = 0x13CF ;chain lokty(flip2)
  101. A[66] = 0x13BB ;chain helma
  102. A[67] = 0x13C5 ;chain lokty
  103. A[68] = 0x13C7 ;chain krk
  104. A[69] = 0x13C6 ;chain rukavice
  105. A[70] = 0x13CE ;chain rukavice(flip)
  106. A[71] = 0x13ED ;ring hrud
  107. A[72] = 0x13EC ;ring hrud(flip)
  108. A[73] = 0x13F0 ;ring nohy
  109. A[74] = 0x13F1 ;ring nohy(flip)
  110. A[75] = 0x140A ;ring helma
  111. A[76] = 0x13EE ;ring lokty
  112. A[77] = 0x13EF ;ring lokty(flip)
  113. A[78] = 0x13C7 ;ring krk
  114. A[79] = 0x13F2 ;ring rukavice
  115. A[80] = 0x13EB ;ring rukavice(flip)
  116. A[81] = 0x1B77 ;plate stit
  117. A[82] = 0x1B76 ;plate stit(flip)
  118. A[83] = 0x1415 ;plate hrud
  119. A[84] = 0x1416 ;plate hrud(flip)
  120. A[85] = 0x141A ;plate nohy
  121. A[86] = 0x1411 ;plate nohy(flip)
  122. A[87] = 0x1412 ;plate helma
  123. A[88] = 0x140E ;plate nose helma
  124. A[89] = 0x1408 ;plate closed helma
  125. A[90] = 0x140C ;plate bascinet helma
  126. A[91] = 0x1410 ;plate lokty
  127. A[92] = 0x1417 ;plate lokty(flip)
  128. A[93] = 0x1413 ;plate krk
  129. A[94] = 0x1414 ;plate rukavice
  130. A[95] = 0x1418 ;plate rukavice(flip)
  131. A[96] = 0x1087 ;nausky
  132. A[97] = 0x1086 ;braclik
  133. A[98] = 0x1088 ;nahrdelnik
  134. A[99] = 0x108A ;prsten
  135. A[100] = 0x1F04 ;roba
  136. A[101] = 0x1F03 ;roba(flip)
  137. A[102] = 0x1515 ;plast
  138. A[103] = 0x1530 ;plast(flip)
  139. A[104] = 0x1718 ;klobouk
  140. A[105] = 0x0EFA ;book
  141. A[106] = 0x0E76 ; bagl1
  142. A[107] = 0x0E75 ; bagl2
  143. A[108] = 0x09B0 ; bagl3
  144. ;tady zacina pvm loot
  145. A[109] = 0x0E76 ; itemek
  146. A[110] = 0x0EED ; penize
  147. A[111] = 0x0F8D ; regy
  148. A[112] = 0x0F8F ; regy
  149. A[113] = 0x0EFA ; regy
  150. A[114] = 0x0F81 ; regy
  151. A[115] = 0x0F8A ; regy
  152. A[116] = 0x0F82 ; regy
  153. A[117] = 0x0F90 ; regy
  154. A[118] = 0x0F86; regy
  155. A[119] = 0x0F78 ; regy
  156. A[120] = 0x0F83 ; regy
  157. A[121] = 0x0F8C ; regy
  158. A[122] = 0x0F87 ; regy
  159. A[123] = 0x0F7A ; regy
  160. A[124] = 0x0F7E ; regy
  161. A[125] = 0x0F7D ; regy
  162. A[126] = 0x0F91 ; regy
  163. A[127] = 0x0F8B ; regy
  164. A[128] = 0x0F88 ; regy
  165. A[129] = 0x0F80 ; regy
  166. A[130] = 0x0F8E ; regy
  167. A[131] = 0x0F89 ; regy
  168. A[132] = 0x0F85 ; regy
  169. A[133] = 0x0F84 ; regy
  170. A[134] = 0x0F7B ; regy
  171. A[135] = 0x1BD1 ; peri
  172. A[136] = 0x0F26 ; diamant
  173. A[137] = 0x0F18 ; sutr
  174. A[138] = 0x0F0F ; sutr
  175. A[139] = 0x0F10 ; sutr
  176. A[140] = 0x0F25 ; sutr
  177. A[141] = 0x0F15 ; sutr
  178. A[142] = 0x0F13 ; sutr
  179. A[143] = 0x0F16 ; sutr
  180. A[144] = 0x0F11 ; sutr
  181. A[145] = 0x14EB ; tajemna mapa (FLIP)
  182. A[146] = 0x14EC ; tajemna mapa (FLIP)
  183.  
  184. uo.deletejournal()
  185. if UO.GetQuantity(kde)==400 OR UO.GetQuantity(kde)==401 then
  186. ;uo.print("hrac")
  187. pauza = 1000
  188. start = 1
  189. else
  190. ; uo.print("mob")
  191. pauza = 500
  192. start = 109
  193. end if
  194. ; Uo.set('quiet','1')
  195. ; uo.print(str(pauza))
  196. UO.SetReceivingContainer("loot") ; loot store bag nastavi lootovaci batoh
  197. FOR n=start TO 146
  198. uo.findtype(A[n],"-1",kde); tohle hleda ty veci
  199. if uo.findcount() > 0 then
  200. ;UO.grab(0,"finditem"); a tohle je sebere
  201. UO.moveitem("finditem",-1,"loot") ; grab nejak nefacha v pvp
  202. if n==109 AND pauza==500 then
  203. uo.playwav("meepmeep.wav")
  204. end if
  205. n=n-1
  206. uo.ignore("finditem")
  207. Wait(pauza); pauza
  208. end if
  209. if uo.injournal("You are stuck") then
  210. n=146
  211. uo.charprint("self",77,"Prestavam lootit")
  212. end if
  213. Next
  214. ;UO.UnSetReceivingContainer() #odnastavi lootovaci batoh
  215. Uo.set('quiet','0')
  216.  
  217. end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement