Guest User

Mini MultiHack

a guest
Apr 9th, 2016
861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 102.46 KB | None | 0 0
  1. import ui
  2. import dbg
  3. import app
  4. import wndMgr
  5. import chat
  6. import chr
  7. import locale
  8. import net
  9. import player
  10. import time
  11. import interfacemodule
  12. import background
  13. import os
  14. import chrmgr
  15. import item
  16. import textTail
  17. import shop
  18. import mouseModule
  19. import grp
  20. import uiToolTip
  21.  
  22. Auto_Attack = 0
  23.  
  24. Mobber = 0
  25. Mobber_Mode = 1
  26. Mobber_Delay = 0
  27. Mobber_ID = 0
  28. Mobber_Icon = 0
  29. Mobber_Mode_Combobox = ["Pelerynki", "1_Slot"]
  30.  
  31. Pick_Up = 0
  32.  
  33. Poty = 0
  34. Poty_1_ID = 27003
  35. Poty_1_Icon = 0
  36. Poty_2_ID = 27006
  37. Poty_2_Icon = 0
  38.  
  39. Restart = 0
  40.  
  41. Use_Item = 0
  42. Use_Item_Delay = 1
  43. Use_Item_Delay_ok = 1
  44. Use_Item_Delay_Mode_ComboBox = ["Minut", "Sekund"]
  45.  
  46. Item_1_ID = 0
  47. Item_2_ID = 0
  48. Item_3_ID = 0
  49. Item_4_ID = 0
  50. Item_5_ID = 0
  51. Item_6_ID = 0
  52. Item_7_ID = 0
  53. Item_8_ID = 0
  54. Item_9_ID = 0
  55. Item_10_ID = 0
  56. Item_11_ID = 0
  57. Item_12_ID = 0
  58. Item_13_ID = 0
  59. Item_14_ID = 0
  60. Item_15_ID = 0
  61. Item_16_ID = 0
  62. Item_17_ID = 0
  63. Item_18_ID = 0
  64. Item_19_ID = 0
  65. Item_20_ID = 0
  66. Item_21_ID = 0
  67. Item_22_ID = 0
  68. Item_23_ID = 0
  69. Item_24_ID = 0
  70. Item_25_ID = 0
  71.  
  72. Item_1_Icon = 0
  73. Item_2_Icon = 0
  74. Item_3_Icon = 0
  75. Item_4_Icon = 0
  76. Item_5_Icon = 0
  77. Item_6_Icon = 0
  78. Item_7_Icon = 0
  79. Item_8_Icon = 0
  80. Item_9_Icon = 0
  81. Item_10_Icon = 0
  82. Item_11_Icon = 0
  83. Item_12_Icon = 0
  84. Item_13_Icon = 0
  85. Item_14_Icon = 0
  86. Item_15_Icon = 0
  87. Item_16_Icon = 0
  88. Item_17_Icon = 0
  89. Item_18_Icon = 0
  90. Item_19_Icon = 0
  91. Item_20_Icon = 0
  92. Item_21_Icon = 0
  93. Item_22_Icon = 0
  94. Item_23_Icon = 0
  95. Item_24_Icon = 0
  96. Item_25_Icon = 0
  97.  
  98. # d:/ymir work/ui/public/Slot_Base.sub
  99.  
  100. class Mini_MH(ui.Window):
  101. def __init__(self):
  102. ui.Window.__init__(self)
  103. self.BuildWindow()
  104. self.Load_func()
  105.  
  106. def __del__(self):
  107. ui.Window.__del__(self)
  108.  
  109. def BuildWindow(self):
  110. self.Board = ui.BoardWithTitleBar()
  111. self.Board.SetSize(200, 275)
  112. self.Board.SetCenterPosition()
  113. self.Board.AddFlag('movable')
  114. self.Board.AddFlag('float')
  115. self.Board.SetTitleName('Mini MultiHack')
  116. self.Board.SetCloseEvent(self.Close)
  117. self.Board.Show()
  118.  
  119. self.About = ui.BoardWithTitleBar()
  120. self.About.SetSize(200, 90)
  121. self.About.SetCenterPosition()
  122. self.About.AddFlag('movable')
  123. self.About.AddFlag('float')
  124. self.About.SetTitleName('Informacje')
  125. self.About.SetCloseEvent(self.About_Close)
  126. self.About.Hide()
  127.  
  128. self.__BuildKeyDict()
  129. self.comp = Component()
  130.  
  131. # self.tooltipItem = uiToolTip.ItemToolTip()
  132.  
  133. ################################### Slot #######################################
  134.  
  135. ### Mobber ###
  136. self.Mobber_Slot = ui.ExpandedImageBox()
  137. self.Mobber_Slot.SetParent(self.Board)
  138. self.Mobber_Slot.SetPosition(80, 60)
  139. self.Mobber_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  140. self.Mobber_Slot.OnMouseLeftButtonUp = lambda: self.Set_Mobber_ID()
  141. self.Mobber_Slot.OnMouseRightButtonDown = lambda: self.Delete_Mobber_ID()
  142. self.Mobber_Slot.Hide()
  143.  
  144. item.SelectItem(int(Mobber_ID))
  145. Mobber_Icon = item.GetIconImageFileName()
  146. self.Item_Mobber_Slot = ui.ExpandedImageBox()
  147. self.Item_Mobber_Slot.SetParent(self.Board)
  148. self.Item_Mobber_Slot.SetPosition(80, 60)
  149. self.Item_Mobber_Slot.LoadImage(str(Mobber_Icon))
  150. self.Item_Mobber_Slot.OnMouseLeftButtonUp = lambda: self.Set_Mobber_ID()
  151. self.Item_Mobber_Slot.OnMouseRightButtonDown = lambda: self.Delete_Mobber_ID()
  152. self.Item_Mobber_Slot.Hide()
  153.  
  154. ### Poty ###
  155. self.Poty_1_Slot = ui.ExpandedImageBox()
  156. self.Poty_1_Slot.SetParent(self.Board)
  157. self.Poty_1_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  158. self.Poty_1_Slot.OnMouseLeftButtonUp = lambda: self.Set_Poty_1_ID()
  159. self.Poty_1_Slot.OnMouseRightButtonDown = lambda: self.Delete_Poty_1_ID()
  160. self.Poty_1_Slot.SetPosition(60,172)
  161. self.Poty_1_Slot.Hide()
  162.  
  163. item.SelectItem(int(Poty_1_ID))
  164. Poty_1_Icon = item.GetIconImageFileName()
  165. self.Item_Poty_1_Slot = ui.ExpandedImageBox()
  166. self.Item_Poty_1_Slot.SetParent(self.Board)
  167. self.Item_Poty_1_Slot.SetPosition(60, 172)
  168. self.Item_Poty_1_Slot.LoadImage(str(Poty_1_Icon))
  169. self.Item_Poty_1_Slot.OnMouseLeftButtonUp = lambda: self.Set_Poty_1_ID()
  170. self.Item_Poty_1_Slot.OnMouseRightButtonDown = lambda: self.Delete_Poty_1_ID()
  171. self.Item_Poty_1_Slot.Hide()
  172.  
  173. self.Poty_2_Slot = ui.ExpandedImageBox()
  174. self.Poty_2_Slot.SetParent(self.Board)
  175. self.Poty_2_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  176. self.Poty_2_Slot.OnMouseLeftButtonUp = lambda: self.Set_Poty_2_ID()
  177. self.Poty_2_Slot.OnMouseRightButtonDown = lambda: self.Delete_Poty_2_ID()
  178. self.Poty_2_Slot.SetPosition(92,172)
  179. self.Poty_2_Slot.Hide()
  180.  
  181. item.SelectItem(int(Poty_2_ID))
  182. Poty_2_Icon = item.GetIconImageFileName()
  183. self.Item_Poty_2_Slot = ui.ExpandedImageBox()
  184. self.Item_Poty_2_Slot.SetParent(self.Board)
  185. self.Item_Poty_2_Slot.SetPosition(92, 172)
  186. self.Item_Poty_2_Slot.LoadImage(str(Poty_2_Icon))
  187. self.Item_Poty_2_Slot.OnMouseLeftButtonUp = lambda: self.Set_Poty_2_ID()
  188. self.Item_Poty_2_Slot.OnMouseRightButtonDown = lambda: self.Delete_Poty_2_ID()
  189. self.Item_Poty_2_Slot.Hide()
  190.  
  191. ################################### Sloty #############################################
  192.  
  193. self.Item_1_Slot = ui.ExpandedImageBox()
  194. self.Item_1_Slot.SetParent(self.Board)
  195. self.Item_1_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  196. # self.Item_1_Slot.OnMouseLeftButtonUp = lambda: self.Set_Item_1_ID()
  197. # self.Item_1_Slot.OnMouseRightButtonUp = lambda: self.Delete_Item_1_ID()
  198. self.Item_1_Slot.SetPosition(19,60)
  199. self.Item_1_Slot.Hide()
  200.  
  201. item.SelectItem(int(Item_1_ID))
  202. Item_1_Icon = item.GetIconImageFileName()
  203. self.Item_1_Icon = ui.ExpandedImageBox()
  204. self.Item_1_Icon.SetParent(self.Board)
  205. self.Item_1_Icon.SetPosition(19, 60)
  206. self.Item_1_Icon.LoadImage(str(Item_1_Icon))
  207. self.Item_1_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_1_ID()
  208. self.Item_1_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_1_ID()
  209. self.Item_1_Icon.Hide()
  210.  
  211. self.Item_2_Slot = ui.ExpandedImageBox()
  212. self.Item_2_Slot.SetParent(self.Board)
  213. self.Item_2_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  214. self.Item_2_Slot.SetPosition(51,60)
  215. self.Item_2_Slot.Hide()
  216.  
  217. item.SelectItem(int(Item_2_ID))
  218. Item_2_Icon = item.GetIconImageFileName()
  219. self.Item_2_Icon = ui.ExpandedImageBox()
  220. self.Item_2_Icon.SetParent(self.Board)
  221. self.Item_2_Icon.SetPosition(51, 60)
  222. self.Item_2_Icon.LoadImage(str(Item_2_Icon))
  223. self.Item_2_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_2_ID()
  224. self.Item_2_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_2_ID()
  225. self.Item_2_Icon.Hide()
  226.  
  227. self.Item_3_Slot = ui.ExpandedImageBox()
  228. self.Item_3_Slot.SetParent(self.Board)
  229. self.Item_3_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  230. self.Item_3_Slot.SetPosition(83,60)
  231. self.Item_3_Slot.Hide()
  232.  
  233. item.SelectItem(int(Item_3_ID))
  234. Item_3_Icon = item.GetIconImageFileName()
  235. self.Item_3_Icon = ui.ExpandedImageBox()
  236. self.Item_3_Icon.SetParent(self.Board)
  237. self.Item_3_Icon.SetPosition(83, 60)
  238. self.Item_3_Icon.LoadImage(str(Item_3_Icon))
  239. self.Item_3_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_3_ID()
  240. self.Item_3_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_3_ID()
  241. self.Item_3_Icon.Hide()
  242.  
  243. self.Item_4_Slot = ui.ExpandedImageBox()
  244. self.Item_4_Slot.SetParent(self.Board)
  245. self.Item_4_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  246. self.Item_4_Slot.SetPosition(115,60)
  247. self.Item_4_Slot.Hide()
  248.  
  249. item.SelectItem(int(Item_4_ID))
  250. Item_4_Icon = item.GetIconImageFileName()
  251. self.Item_4_Icon = ui.ExpandedImageBox()
  252. self.Item_4_Icon.SetParent(self.Board)
  253. self.Item_4_Icon.SetPosition(115, 60)
  254. self.Item_4_Icon.LoadImage(str(Item_4_Icon))
  255. self.Item_4_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_4_ID()
  256. self.Item_4_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_4_ID()
  257. self.Item_4_Icon.Hide()
  258.  
  259. self.Item_5_Slot = ui.ExpandedImageBox()
  260. self.Item_5_Slot.SetParent(self.Board)
  261. self.Item_5_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  262. self.Item_5_Slot.SetPosition(147,60)
  263. self.Item_5_Slot.Hide()
  264.  
  265. item.SelectItem(int(Item_5_ID))
  266. Item_5_Icon = item.GetIconImageFileName()
  267. self.Item_5_Icon = ui.ExpandedImageBox()
  268. self.Item_5_Icon.SetParent(self.Board)
  269. self.Item_5_Icon.SetPosition(147, 60)
  270. self.Item_5_Icon.LoadImage(str(Item_5_Icon))
  271. self.Item_5_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_5_ID()
  272. self.Item_5_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_5_ID()
  273. self.Item_5_Icon.Hide()
  274.  
  275. self.Item_6_Slot = ui.ExpandedImageBox()
  276. self.Item_6_Slot.SetParent(self.Board)
  277. self.Item_6_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  278. self.Item_6_Slot.SetPosition(19,92)
  279. self.Item_6_Slot.Hide()
  280.  
  281. item.SelectItem(int(Item_6_ID))
  282. Item_6_Icon = item.GetIconImageFileName()
  283. self.Item_6_Icon = ui.ExpandedImageBox()
  284. self.Item_6_Icon.SetParent(self.Board)
  285. self.Item_6_Icon.SetPosition(19, 92)
  286. self.Item_6_Icon.LoadImage(str(Item_6_Icon))
  287. self.Item_6_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_6_ID()
  288. self.Item_6_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_6_ID()
  289. self.Item_6_Icon.Hide()
  290.  
  291. self.Item_7_Slot = ui.ExpandedImageBox()
  292. self.Item_7_Slot.SetParent(self.Board)
  293. self.Item_7_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  294. self.Item_7_Slot.SetPosition(51,92)
  295. self.Item_7_Slot.Hide()
  296.  
  297. item.SelectItem(int(Item_7_ID))
  298. Item_7_Icon = item.GetIconImageFileName()
  299. self.Item_7_Icon = ui.ExpandedImageBox()
  300. self.Item_7_Icon.SetParent(self.Board)
  301. self.Item_7_Icon.SetPosition(51, 92)
  302. self.Item_7_Icon.LoadImage(str(Item_7_Icon))
  303. self.Item_7_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_7_ID()
  304. self.Item_7_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_7_ID()
  305. self.Item_7_Icon.Hide()
  306.  
  307. self.Item_8_Slot = ui.ExpandedImageBox()
  308. self.Item_8_Slot.SetParent(self.Board)
  309. self.Item_8_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  310. self.Item_8_Slot.SetPosition(83,92)
  311. self.Item_8_Slot.Hide()
  312.  
  313. item.SelectItem(int(Item_8_ID))
  314. Item_8_Icon = item.GetIconImageFileName()
  315. self.Item_8_Icon = ui.ExpandedImageBox()
  316. self.Item_8_Icon.SetParent(self.Board)
  317. self.Item_8_Icon.SetPosition(83, 92)
  318. self.Item_8_Icon.LoadImage(str(Item_8_Icon))
  319. self.Item_8_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_8_ID()
  320. self.Item_8_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_8_ID()
  321. self.Item_8_Icon.Hide()
  322.  
  323. self.Item_9_Slot = ui.ExpandedImageBox()
  324. self.Item_9_Slot.SetParent(self.Board)
  325. self.Item_9_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  326. self.Item_9_Slot.SetPosition(115,92)
  327. self.Item_9_Slot.Hide()
  328.  
  329. item.SelectItem(int(Item_9_ID))
  330. Item_9_Icon = item.GetIconImageFileName()
  331. self.Item_9_Icon = ui.ExpandedImageBox()
  332. self.Item_9_Icon.SetParent(self.Board)
  333. self.Item_9_Icon.SetPosition(115, 92)
  334. self.Item_9_Icon.LoadImage(str(Item_9_Icon))
  335. self.Item_9_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_9_ID()
  336. self.Item_9_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_9_ID()
  337. self.Item_9_Icon.Hide()
  338.  
  339. self.Item_10_Slot = ui.ExpandedImageBox()
  340. self.Item_10_Slot.SetParent(self.Board)
  341. self.Item_10_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  342. self.Item_10_Slot.SetPosition(147,92)
  343. self.Item_10_Slot.Hide()
  344.  
  345. item.SelectItem(int(Item_10_ID))
  346. Item_10_Icon = item.GetIconImageFileName()
  347. self.Item_10_Icon = ui.ExpandedImageBox()
  348. self.Item_10_Icon.SetParent(self.Board)
  349. self.Item_10_Icon.SetPosition(147, 92)
  350. self.Item_10_Icon.LoadImage(str(Item_10_Icon))
  351. self.Item_10_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_10_ID()
  352. self.Item_10_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_10_ID()
  353. self.Item_10_Icon.Hide()
  354.  
  355. self.Item_11_Slot = ui.ExpandedImageBox()
  356. self.Item_11_Slot.SetParent(self.Board)
  357. self.Item_11_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  358. self.Item_11_Slot.SetPosition(19,124)
  359. self.Item_11_Slot.Hide()
  360.  
  361. item.SelectItem(int(Item_11_ID))
  362. Item_11_Icon = item.GetIconImageFileName()
  363. self.Item_11_Icon = ui.ExpandedImageBox()
  364. self.Item_11_Icon.SetParent(self.Board)
  365. self.Item_11_Icon.SetPosition(19, 124)
  366. self.Item_11_Icon.LoadImage(str(Item_11_Icon))
  367. self.Item_11_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_11_ID()
  368. self.Item_11_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_11_ID()
  369. self.Item_11_Icon.Hide()
  370.  
  371. self.Item_12_Slot = ui.ExpandedImageBox()
  372. self.Item_12_Slot.SetParent(self.Board)
  373. self.Item_12_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  374. self.Item_12_Slot.SetPosition(51,124)
  375. self.Item_12_Slot.Hide()
  376.  
  377. item.SelectItem(int(Item_12_ID))
  378. Item_12_Icon = item.GetIconImageFileName()
  379. self.Item_12_Icon = ui.ExpandedImageBox()
  380. self.Item_12_Icon.SetParent(self.Board)
  381. self.Item_12_Icon.SetPosition(51, 124)
  382. self.Item_12_Icon.LoadImage(str(Item_12_Icon))
  383. self.Item_12_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_12_ID()
  384. self.Item_12_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_12_ID()
  385. self.Item_12_Icon.Hide()
  386.  
  387. self.Item_13_Slot = ui.ExpandedImageBox()
  388. self.Item_13_Slot.SetParent(self.Board)
  389. self.Item_13_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  390. self.Item_13_Slot.SetPosition(83,124)
  391. self.Item_13_Slot.Hide()
  392.  
  393. item.SelectItem(int(Item_13_ID))
  394. Item_13_Icon = item.GetIconImageFileName()
  395. self.Item_13_Icon = ui.ExpandedImageBox()
  396. self.Item_13_Icon.SetParent(self.Board)
  397. self.Item_13_Icon.SetPosition(83, 124)
  398. self.Item_13_Icon.LoadImage(str(Item_13_Icon))
  399. self.Item_13_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_13_ID()
  400. self.Item_13_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_13_ID()
  401. self.Item_13_Icon.Hide()
  402.  
  403. self.Item_14_Slot = ui.ExpandedImageBox()
  404. self.Item_14_Slot.SetParent(self.Board)
  405. self.Item_14_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  406. self.Item_14_Slot.SetPosition(115,124)
  407. self.Item_14_Slot.Hide()
  408.  
  409. item.SelectItem(int(Item_14_ID))
  410. Item_14_Icon = item.GetIconImageFileName()
  411. self.Item_14_Icon = ui.ExpandedImageBox()
  412. self.Item_14_Icon.SetParent(self.Board)
  413. self.Item_14_Icon.SetPosition(115, 124)
  414. self.Item_14_Icon.LoadImage(str(Item_14_Icon))
  415. self.Item_14_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_14_ID()
  416. self.Item_14_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_14_ID()
  417. self.Item_14_Icon.Hide()
  418.  
  419. self.Item_15_Slot = ui.ExpandedImageBox()
  420. self.Item_15_Slot.SetParent(self.Board)
  421. self.Item_15_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  422. self.Item_15_Slot.SetPosition(147,124)
  423. self.Item_15_Slot.Hide()
  424.  
  425. item.SelectItem(int(Item_15_ID))
  426. Item_15_Icon = item.GetIconImageFileName()
  427. self.Item_15_Icon = ui.ExpandedImageBox()
  428. self.Item_15_Icon.SetParent(self.Board)
  429. self.Item_15_Icon.SetPosition(147, 124)
  430. self.Item_15_Icon.LoadImage(str(Item_15_Icon))
  431. self.Item_15_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_15_ID()
  432. self.Item_15_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_15_ID()
  433. self.Item_15_Icon.Hide()
  434.  
  435. self.Item_16_Slot = ui.ExpandedImageBox()
  436. self.Item_16_Slot.SetParent(self.Board)
  437. self.Item_16_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  438. self.Item_16_Slot.SetPosition(19,156)
  439. self.Item_16_Slot.Hide()
  440.  
  441. item.SelectItem(int(Item_16_ID))
  442. Item_16_Icon = item.GetIconImageFileName()
  443. self.Item_16_Icon = ui.ExpandedImageBox()
  444. self.Item_16_Icon.SetParent(self.Board)
  445. self.Item_16_Icon.SetPosition(19, 156)
  446. self.Item_16_Icon.LoadImage(str(Item_16_Icon))
  447. self.Item_16_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_16_ID()
  448. self.Item_16_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_16_ID()
  449. self.Item_16_Icon.Hide()
  450.  
  451. self.Item_17_Slot = ui.ExpandedImageBox()
  452. self.Item_17_Slot.SetParent(self.Board)
  453. self.Item_17_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  454. self.Item_17_Slot.SetPosition(51,156)
  455. self.Item_17_Slot.Hide()
  456.  
  457. item.SelectItem(int(Item_17_ID))
  458. Item_17_Icon = item.GetIconImageFileName()
  459. self.Item_17_Icon = ui.ExpandedImageBox()
  460. self.Item_17_Icon.SetParent(self.Board)
  461. self.Item_17_Icon.SetPosition(51, 156)
  462. self.Item_17_Icon.LoadImage(str(Item_17_Icon))
  463. self.Item_17_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_17_ID()
  464. self.Item_17_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_17_ID()
  465. self.Item_17_Icon.Hide()
  466.  
  467. self.Item_18_Slot = ui.ExpandedImageBox()
  468. self.Item_18_Slot.SetParent(self.Board)
  469. self.Item_18_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  470. self.Item_18_Slot.SetPosition(83,156)
  471. self.Item_18_Slot.Hide()
  472.  
  473. item.SelectItem(int(Item_18_ID))
  474. Item_18_Icon = item.GetIconImageFileName()
  475. self.Item_18_Icon = ui.ExpandedImageBox()
  476. self.Item_18_Icon.SetParent(self.Board)
  477. self.Item_18_Icon.SetPosition(83, 156)
  478. self.Item_18_Icon.LoadImage(str(Item_18_Icon))
  479. self.Item_18_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_18_ID()
  480. self.Item_18_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_18_ID()
  481. self.Item_18_Icon.Hide()
  482.  
  483. self.Item_19_Slot = ui.ExpandedImageBox()
  484. self.Item_19_Slot.SetParent(self.Board)
  485. self.Item_19_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  486. self.Item_19_Slot.SetPosition(115,156)
  487. self.Item_19_Slot.Hide()
  488.  
  489. item.SelectItem(int(Item_19_ID))
  490. Item_19_Icon = item.GetIconImageFileName()
  491. self.Item_19_Icon = ui.ExpandedImageBox()
  492. self.Item_19_Icon.SetParent(self.Board)
  493. self.Item_19_Icon.SetPosition(115, 156)
  494. self.Item_19_Icon.LoadImage(str(Item_19_Icon))
  495. self.Item_19_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_19_ID()
  496. self.Item_19_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_19_ID()
  497. self.Item_19_Icon.Hide()
  498.  
  499. self.Item_20_Slot = ui.ExpandedImageBox()
  500. self.Item_20_Slot.SetParent(self.Board)
  501. self.Item_20_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  502. self.Item_20_Slot.SetPosition(147,156)
  503. self.Item_20_Slot.Hide()
  504.  
  505. item.SelectItem(int(Item_20_ID))
  506. Item_20_Icon = item.GetIconImageFileName()
  507. self.Item_20_Icon = ui.ExpandedImageBox()
  508. self.Item_20_Icon.SetParent(self.Board)
  509. self.Item_20_Icon.SetPosition(147, 156)
  510. self.Item_20_Icon.LoadImage(str(Item_20_Icon))
  511. self.Item_20_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_20_ID()
  512. self.Item_20_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_20_ID()
  513. self.Item_20_Icon.Hide()
  514.  
  515. self.Item_21_Slot = ui.ExpandedImageBox()
  516. self.Item_21_Slot.SetParent(self.Board)
  517. self.Item_21_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  518. self.Item_21_Slot.SetPosition(19,188)
  519. self.Item_21_Slot.Hide()
  520.  
  521. item.SelectItem(int(Item_21_ID))
  522. Item_21_Icon = item.GetIconImageFileName()
  523. self.Item_21_Icon = ui.ExpandedImageBox()
  524. self.Item_21_Icon.SetParent(self.Board)
  525. self.Item_21_Icon.SetPosition(19, 188)
  526. self.Item_21_Icon.LoadImage(str(Item_21_Icon))
  527. self.Item_21_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_21_ID()
  528. self.Item_21_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_21_ID()
  529. self.Item_21_Icon.Hide()
  530.  
  531. self.Item_22_Slot = ui.ExpandedImageBox()
  532. self.Item_22_Slot.SetParent(self.Board)
  533. self.Item_22_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  534. self.Item_22_Slot.SetPosition(51,188)
  535. self.Item_22_Slot.Hide()
  536.  
  537. item.SelectItem(int(Item_22_ID))
  538. Item_22_Icon = item.GetIconImageFileName()
  539. self.Item_22_Icon = ui.ExpandedImageBox()
  540. self.Item_22_Icon.SetParent(self.Board)
  541. self.Item_22_Icon.SetPosition(51, 188)
  542. self.Item_22_Icon.LoadImage(str(Item_22_Icon))
  543. self.Item_22_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_22_ID()
  544. self.Item_22_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_22_ID()
  545. self.Item_22_Icon.Hide()
  546.  
  547. self.Item_23_Slot = ui.ExpandedImageBox()
  548. self.Item_23_Slot.SetParent(self.Board)
  549. self.Item_23_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  550. self.Item_23_Slot.SetPosition(83,188)
  551. self.Item_23_Slot.Hide()
  552.  
  553. item.SelectItem(int(Item_23_ID))
  554. Item_23_Icon = item.GetIconImageFileName()
  555. self.Item_23_Icon = ui.ExpandedImageBox()
  556. self.Item_23_Icon.SetParent(self.Board)
  557. self.Item_23_Icon.SetPosition(83, 188)
  558. self.Item_23_Icon.LoadImage(str(Item_23_Icon))
  559. self.Item_23_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_23_ID()
  560. self.Item_23_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_23_ID()
  561. self.Item_23_Icon.Hide()
  562.  
  563. self.Item_24_Slot = ui.ExpandedImageBox()
  564. self.Item_24_Slot.SetParent(self.Board)
  565. self.Item_24_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  566. self.Item_24_Slot.SetPosition(115,188)
  567. self.Item_24_Slot.Hide()
  568.  
  569. item.SelectItem(int(Item_24_ID))
  570. Item_24_Icon = item.GetIconImageFileName()
  571. self.Item_24_Icon = ui.ExpandedImageBox()
  572. self.Item_24_Icon.SetParent(self.Board)
  573. self.Item_24_Icon.SetPosition(115, 188)
  574. self.Item_24_Icon.LoadImage(str(Item_24_Icon))
  575. self.Item_24_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_24_ID()
  576. self.Item_24_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_24_ID()
  577. self.Item_24_Icon.Hide()
  578.  
  579. self.Item_25_Slot = ui.ExpandedImageBox()
  580. self.Item_25_Slot.SetParent(self.Board)
  581. self.Item_25_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  582. self.Item_25_Slot.SetPosition(147,188)
  583. self.Item_25_Slot.Hide()
  584.  
  585. item.SelectItem(int(Item_25_ID))
  586. Item_25_Icon = item.GetIconImageFileName()
  587. self.Item_25_Icon = ui.ExpandedImageBox()
  588. self.Item_25_Icon.SetParent(self.Board)
  589. self.Item_25_Icon.SetPosition(147, 188)
  590. self.Item_25_Icon.LoadImage(str(Item_25_Icon))
  591. self.Item_25_Icon.OnMouseLeftButtonUp = lambda: self.Set_Item_25_ID()
  592. self.Item_25_Icon.OnMouseRightButtonDown = lambda: self.Delete_Item_25_ID()
  593. self.Item_25_Icon.Hide()
  594.  
  595. ################################### HorizontalBars ###################################
  596.  
  597. self.Mobber_HorizontalBar = self.comp.HorizontalBarHide(self.Board , 10, 40, 180)
  598. self.Mobber_HorizontalBar_Text = self.comp.TextLine_SetPackedFontColor(self.Mobber_HorizontalBar, 'Mobber', 5, 0, 0xFFFFE3AD)
  599.  
  600. self.Use_Item_HorizontalBar = self.comp.HorizontalBarHide(self.Board , 10, 40, 180)
  601. self.Use_Item_HorizontalBar_Text = self.comp.TextLine_SetPackedFontColor(self.Use_Item_HorizontalBar, 'Używanie Dopalaczy', 5, 0, 0xFFFFE3AD)
  602.  
  603. self.Poty_HorizontalBar = self.comp.HorizontalBarHide(self.Board , 10, 152, 180)
  604. self.Poty_HorizontalBar_Text = self.comp.TextLine_SetPackedFontColor(self.Poty_HorizontalBar, 'Automatyczne Potowanie', 5, 0, 0xFFFFE3AD)
  605.  
  606. self.Site_HorizontalBar = self.comp.HorizontalBar(self.Board , 10, 220, 180)
  607. self.Site_HorizontalBar_Text = self.comp.TextLine_SetPackedFontColor(self.Site_HorizontalBar, 'Strony', 5, 0, 0xFFFFE3AD)
  608.  
  609. ### About ###
  610.  
  611. self.About_HorizontalBar = self.comp.HorizontalBar(self.About , 10, 40, 180)
  612. self.About_HorizontalBar_Text = self.comp.TextLine_SetPackedFontColor(self.About_HorizontalBar, 'Mini MultiHack v1.0 by ZAHON', 5, 0, 0xFFFFE3AD)
  613.  
  614. ################################### Buttony #########################################
  615.  
  616. self.Auto_Attack_Button = self.comp.Button(self.Board, 'Auto Atak', '', 10, 40, self.Auto_Attack_func, 'd:/ymir work/ui/public/xlarge_button_01.sub', 'd:/ymir work/ui/public/xlarge_button_02.sub', 'd:/ymir work/ui/public/xlarge_button_03.sub')
  617. self.Mobber_Button = self.comp.Button(self.Board, 'Mobber', '', 10, 70, self.Mobber_func, 'd:/ymir work/ui/public/xlarge_button_01.sub', 'd:/ymir work/ui/public/xlarge_button_02.sub', 'd:/ymir work/ui/public/xlarge_button_03.sub')
  618. self.Pick_Up_Button = self.comp.Button(self.Board, 'Pick Up', '', 10, 100, self.Pick_Up_func, 'd:/ymir work/ui/public/xlarge_button_01.sub', 'd:/ymir work/ui/public/xlarge_button_02.sub', 'd:/ymir work/ui/public/xlarge_button_03.sub')
  619. self.Poty_Button = self.comp.Button(self.Board, 'Automatyczne Potowanie', '', 10, 130, self.Poty_func, 'd:/ymir work/ui/public/xlarge_button_01.sub', 'd:/ymir work/ui/public/xlarge_button_02.sub', 'd:/ymir work/ui/public/xlarge_button_03.sub')
  620. self.Restart_Button = self.comp.Button(self.Board, 'Automatyczne Wstawanie', '', 10, 160, self.Restart_func, 'd:/ymir work/ui/public/xlarge_button_01.sub', 'd:/ymir work/ui/public/xlarge_button_02.sub', 'd:/ymir work/ui/public/xlarge_button_03.sub')
  621. self.Use_Item_Button = self.comp.Button(self.Board, 'Używanie Dopalaczy', '', 10, 190, self.Use_Item_func, 'd:/ymir work/ui/public/xlarge_button_01.sub', 'd:/ymir work/ui/public/xlarge_button_02.sub', 'd:/ymir work/ui/public/xlarge_button_03.sub')
  622.  
  623. self.Site_1_Button = self.comp.Button(self.Board, 'I', '', 10, 240, self.Site_1_func, 'd:/ymir work/ui/game/windows/tab_button_middle_01.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_02.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_03.sub')
  624. self.Site_2_Button = self.comp.Button(self.Board, 'II', '', 73, 240, self.Site_2_func, 'd:/ymir work/ui/game/windows/tab_button_middle_01.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_02.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_03.sub')
  625. self.Site_3_Button = self.comp.Button(self.Board, 'III', '', 135, 240, self.Site_3_func, 'd:/ymir work/ui/game/windows/tab_button_middle_01.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_02.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_03.sub')
  626.  
  627. self.About_Button = self.comp.Button(self.Board, '', 'Informacje', 150, 8, self.About_func, 'd:/ymir work/ui/game/taskbar/Open_Chat_Log_Button_01.sub', 'd:/ymir work/ui/game/taskbar/Open_Chat_Log_Button_02.sub', 'd:/ymir work/ui/game/taskbar/Open_Chat_Log_Button_03.sub')
  628.  
  629. ### About ###
  630.  
  631. self.FaceBook_Button = self.comp.Button(self.About, 'FB', '', 10, 60, self.FaceBook_func, 'd:/ymir work/ui/game/windows/tab_button_middle_01.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_02.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_03.sub')
  632. self.YouTube_Button = self.comp.Button(self.About, 'YT', '', 73, 60, self.YouTube_func, 'd:/ymir work/ui/game/windows/tab_button_middle_01.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_02.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_03.sub')
  633. self.MPC_Button = self.comp.Button(self.About, 'MPC', '', 135, 60, self.MPC_func, 'd:/ymir work/ui/game/windows/tab_button_middle_01.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_02.sub', 'd:/ymir work/ui/game/windows/tab_button_middle_03.sub')
  634.  
  635. ################################## Slotbar i Text ###################################
  636.  
  637. self.Mobber_Info_Text = self.comp.TextLineHide(self.Board, 'Przeciągnij pelerynki aby pobrać ich id', 14, 92, self.comp.RGB(255, 255, 255))
  638. self.Mobber_Mode_Text = self.comp.TextLineHide(self.Board, 'Rodzaj Mobbera', 14, 112, self.comp.RGB(255, 255, 255))
  639. self.Mobber_Delay_Text = self.comp.TextLineHide(self.Board, 'Opóźnienie:', 14, 132, self.comp.RGB(255, 255, 255))
  640. self.slotbar_Mobber_Delay, self.Mobber_Delay_EditLine = self.comp.EditLineHide(self.Board, '0.1', 125, 132, 60, 15, 10)
  641.  
  642. self.Poty_1_Text = self.comp.TextLineHide(self.Board, '0', 74, 204, self.comp.RGB(255, 255, 255))
  643. self.Poty_2_Text = self.comp.TextLineHide(self.Board, '0', 106, 204, self.comp.RGB(255, 255, 255))
  644.  
  645. self.Use_Item_Delay_Text = self.comp.TextLineHide(self.Board, 'Co ile używać:', 14, 222, self.comp.RGB(255, 255, 255))
  646. self.slotbar_Use_Item_Delay, self.Use_Item_Delay_EditLine = self.comp.EditLineHide(self.Board, '1', 145, 222, 30, 15, 5)
  647.  
  648. ################################## Combo Box ###################################
  649.  
  650. self.Mobber_Mode_ComboBox = self.comp.ComboBoxHide(self.Board, 'Pelerynki', 125, 112, 60)
  651.  
  652. for Mobber_Mode_ComboBox in Mobber_Mode_Combobox:
  653. self.Mobber_Mode_ComboBox.InsertItem(1,str(Mobber_Mode_ComboBox))
  654.  
  655. global Use_Item_Delay_Mode_ComboBox
  656.  
  657. self.Use_Item_Delay_Mode_ComboBox = self.comp.ComboBoxHide(self.Board, 'Minut', 85, 222, 45)
  658.  
  659. for Use_Item_Delay_Mode_ComboBox in Use_Item_Delay_Mode_ComboBox:
  660. self.Use_Item_Delay_Mode_ComboBox.InsertItem(1,str(Use_Item_Delay_Mode_ComboBox))
  661.  
  662. ################################### Auto Attack Func ##########################################
  663.  
  664. def Auto_Attack_func(self):
  665. global Auto_Attack
  666. if Auto_Attack == 0:
  667. Auto_Attack = 1
  668. self.Enable_Auto_Attack()
  669. self.Auto_Attack_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  670. self.Auto_Attack_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  671. self.Auto_Attack_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  672. else:
  673. Auto_Attack = 0
  674. self.Disable_Auto_Attack()
  675. self.Auto_Attack_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_01.sub")
  676. self.Auto_Attack_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_02.sub")
  677. self.Auto_Attack_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  678.  
  679. def Enable_Auto_Attack(self):
  680.  
  681. player.SetAttackKeyState(TRUE)
  682.  
  683. self.Delay_Auto_Attack = WaitingDialog()
  684. self.Delay_Auto_Attack.Open(float(0.1))
  685. self.Delay_Auto_Attack.SAFE_SetTimeOverEvent(self.Enable_Auto_Attack)
  686.  
  687. def Disable_Auto_Attack(self):
  688.  
  689. player.SetAttackKeyState(FALSE)
  690.  
  691. self.Delay_Auto_Attack = WaitingDialog()
  692. self.Delay_Auto_Attack.Open(float(99999999999999999))
  693. self.Delay_Auto_Attack.SAFE_SetTimeOverEvent(self.Disable_Auto_Attack)
  694.  
  695. ################################### Mobber Func ##########################################
  696.  
  697. def Mobber_func(self):
  698. global Mobber
  699. if Mobber == 0:
  700. Mobber = 1
  701. self.Enable_Mobber()
  702. self.Mobber_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  703. self.Mobber_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  704. self.Mobber_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  705. else:
  706. Mobber = 0
  707. self.Mobber_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_01.sub")
  708. self.Mobber_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_02.sub")
  709. self.Mobber_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  710.  
  711.  
  712. def Enable_Mobber(self):
  713. global Mobber
  714. global Mobber_Mode
  715. global Mobber_Delay
  716. global Mobber_ID
  717.  
  718. if Mobber == 1:
  719.  
  720. if Mobber_Mode == 1:
  721. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  722. ItemValue = player.GetItemIndex(i)
  723. if ItemValue == (int(Mobber_ID)):
  724. net.SendItemUsePacket(i)
  725. break
  726.  
  727. if Mobber_Mode == 2:
  728. net.SendItemUsePacket(0)
  729.  
  730. self.Delay_Mobber = WaitingDialog()
  731. self.Delay_Mobber.Open(float(Mobber_Delay))
  732. self.Delay_Mobber.SAFE_SetTimeOverEvent(self.Enable_Mobber)
  733.  
  734. def Disable_Mobber(self):
  735.  
  736. self.Delay_Mobber = WaitingDialog()
  737. self.Delay_Mobber.Open(float(99999999999999999))
  738. self.Delay_Mobber.SAFE_SetTimeOverEvent(self.Disable_Mobber)
  739.  
  740. ################################### Pick Up Func ###################################
  741.  
  742. def Pick_Up_func(self):
  743. global Pick_Up
  744. if Pick_Up == 0:
  745. Pick_Up = 1
  746. self.Enable_Pick_Up()
  747. self.Pick_Up_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  748. self.Pick_Up_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  749. self.Pick_Up_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  750. else:
  751. Pick_Up = 0
  752. self.Disable_Pick_Up()
  753. self.Pick_Up_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_01.sub")
  754. self.Pick_Up_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_02.sub")
  755. self.Pick_Up_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  756.  
  757. def Enable_Pick_Up(self):
  758.  
  759. player.PickCloseItem()
  760.  
  761. self.Delay_Pick_up = WaitingDialog()
  762. self.Delay_Pick_up.Open(float(0.1))
  763. self.Delay_Pick_up.SAFE_SetTimeOverEvent(self.Enable_Pick_Up)
  764.  
  765. def Disable_Pick_Up(self):
  766.  
  767. self.Delay_Pick_up = WaitingDialog()
  768. self.Delay_Pick_up.Open(float(99999999999999999))
  769. self.Delay_Pick_up.SAFE_SetTimeOverEvent(self.Disable_Pick_Up)
  770.  
  771. ################################### Poty Func ###################################
  772.  
  773. def Poty_func(self):
  774. global Poty
  775. if Poty == 0:
  776. Poty = 1
  777. self.Enable_Poty()
  778. self.Poty_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  779. self.Poty_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  780. self.Poty_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  781. else:
  782. Poty = 0
  783. self.Disable_Poty()
  784. self.Poty_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_01.sub")
  785. self.Poty_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_02.sub")
  786. self.Poty_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  787.  
  788. def Enable_Poty(self):
  789. global Poty
  790. global Poty_1_ID
  791. global Poty_2_ID
  792.  
  793. Max_HP = player.GetStatus(player.MAX_HP)
  794. Actually_HP = player.GetStatus(player.HP)
  795.  
  796. Max_PE = player.GetStatus(player.MAX_SP)
  797. Actually_PE = player.GetStatus(player.SP)
  798.  
  799. if Poty == 1:
  800. if (float(Actually_HP) / (float(Max_HP)) * 100) < int(100):
  801. for i in xrange(player.INVENTORY_PAGE_SIZE*3):
  802. Red_Poty_ID = player.GetItemIndex(i)
  803. if Red_Poty_ID == (int(Poty_1_ID)):
  804. net.SendItemUsePacket(i)
  805. break
  806.  
  807. if Poty == 1:
  808. if (float(Actually_PE) / (float(Max_PE)) * 100) < int(100):
  809. for i in xrange(player.INVENTORY_PAGE_SIZE*3):
  810. Blue_Poty_ID = player.GetItemIndex(i)
  811. if Blue_Poty_ID == (int(Poty_2_ID)):
  812. net.SendItemUsePacket(i)
  813. break
  814.  
  815. self.Delay_Poty = WaitingDialog()
  816. self.Delay_Poty.Open(float(0.1))
  817. self.Delay_Poty.SAFE_SetTimeOverEvent(self.Enable_Poty)
  818.  
  819. def Disable_Poty(self):
  820. self.Delay_Poty = WaitingDialog()
  821. self.Delay_Poty.Open(float(99999999999999999))
  822. self.Delay_Poty.SAFE_SetTimeOverEvent(self.Disable_Poty)
  823.  
  824. ################################### Restart Func ###################################
  825.  
  826. def Restart_func(self):
  827. global Restart
  828. if Restart == 0:
  829. Restart = 1
  830. self.Enable_Restart()
  831. self.Restart_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  832. self.Restart_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  833. self.Restart_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  834. else:
  835. Restart = 0
  836. self.Disable_Restart()
  837. self.Restart_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_01.sub")
  838. self.Restart_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_02.sub")
  839. self.Restart_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  840.  
  841. def Enable_Restart(self):
  842.  
  843. net.SendChatPacket("/restart_here")
  844.  
  845. self.Delay_Restart = WaitingDialog()
  846. self.Delay_Restart.Open(int(2.5))
  847. self.Delay_Restart.SAFE_SetTimeOverEvent(self.Enable_Restart)
  848.  
  849. def Disable_Restart(self):
  850. self.Delay_Restart = WaitingDialog()
  851. self.Delay_Restart.Open(float(99999999999999999))
  852. self.Delay_Restart.SAFE_SetTimeOverEvent(self.Disable_Restart)
  853.  
  854. ################################### Use_Item Func ###################################
  855.  
  856. def Use_Item_func(self):
  857. global Use_Item
  858. global Use_Item_Delay
  859. global Use_Item_Delay_ok
  860.  
  861. if Use_Item == 0:
  862. Use_Item = 1
  863. self.Enable_Use_Item()
  864. self.Use_Item_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  865. self.Use_Item_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  866. self.Use_Item_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  867. else:
  868. Use_Item = 0
  869. self.Use_Item_Button.SetUpVisual("d:/ymir work/ui/public/xlarge_button_01.sub")
  870. self.Use_Item_Button.SetOverVisual("d:/ymir work/ui/public/xlarge_button_02.sub")
  871. self.Use_Item_Button.SetDownVisual("d:/ymir work/ui/public/xlarge_button_03.sub")
  872.  
  873. Delay = self.Use_Item_Delay_Mode_ComboBox.GetCurrentText()
  874.  
  875. if Delay == "Minut":
  876. Use_Item_Delay_ok = int(Use_Item_Delay * 60)
  877. # chat.AppendChat(chat.CHAT_TYPE_INFO, str(Use_Item_Delay_ok))
  878. else:
  879. Use_Item_Delay_ok = int(Use_Item_Delay)
  880. # chat.AppendChat(chat.CHAT_TYPE_INFO, str(Use_Item_Delay_ok))
  881.  
  882. def Enable_Use_Item(self):
  883. global Item_1_ID
  884. global Item_2_ID
  885. global Item_3_ID
  886. global Item_4_ID
  887. global Item_5_ID
  888. global Item_6_ID
  889. global Item_7_ID
  890. global Item_8_ID
  891. global Item_9_ID
  892. global Item_10_ID
  893. global Item_11_ID
  894. global Item_12_ID
  895. global Item_13_ID
  896. global Item_14_ID
  897. global Item_15_ID
  898. global Item_16_ID
  899. global Item_17_ID
  900. global Item_18_ID
  901. global Item_19_ID
  902. global Item_20_ID
  903. global Item_21_ID
  904. global Item_22_ID
  905. global Item_23_ID
  906. global Item_24_ID
  907. global Item_25_ID
  908. global Item_26_ID
  909. global Item_27_ID
  910. global Item_28_ID
  911. global Item_29_ID
  912. global Item_30_ID
  913. global Use_Item_Status
  914. global Use_Item_Delay_ok
  915.  
  916. if Use_Item == 1:
  917. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  918. Item_1_Index = player.GetItemIndex(i)
  919. if Item_1_Index == (int(Item_1_ID)):
  920. net.SendItemUsePacket(i)
  921.  
  922. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  923. Item_2_Index = player.GetItemIndex(i)
  924. if Item_2_Index == (int(Item_2_ID)):
  925. net.SendItemUsePacket(i)
  926. break
  927.  
  928. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  929. Item_3_Index = player.GetItemIndex(i)
  930. if Item_3_Index == (int(Item_3_ID)):
  931. net.SendItemUsePacket(i)
  932. break
  933.  
  934. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  935. Item_4_Index = player.GetItemIndex(i)
  936. if Item_4_Index == (int(Item_4_ID)):
  937. net.SendItemUsePacket(i)
  938. break
  939.  
  940. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  941. Item_5_Index = player.GetItemIndex(i)
  942. if Item_5_Index == (int(Item_5_ID)):
  943. net.SendItemUsePacket(i)
  944. break
  945.  
  946. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  947. Item_6_Index = player.GetItemIndex(i)
  948. if Item_6_Index == (int(Item_6_ID)):
  949. net.SendItemUsePacket(i)
  950. break
  951.  
  952. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  953. Item_7_Index = player.GetItemIndex(i)
  954. if Item_7_Index == (int(Item_7_ID)):
  955. net.SendItemUsePacket(i)
  956. break
  957.  
  958. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  959. Item_8_Index = player.GetItemIndex(i)
  960. if Item_8_Index == (int(Item_8_ID)):
  961. net.SendItemUsePacket(i)
  962. break
  963.  
  964. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  965. Item_9_Index = player.GetItemIndex(i)
  966. if Item_9_Index == (int(Item_9_ID)):
  967. net.SendItemUsePacket(i)
  968. break
  969.  
  970. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  971. Item_10_Index = player.GetItemIndex(i)
  972. if Item_10_Index == (int(Item_10_ID)):
  973. net.SendItemUsePacket(i)
  974. break
  975.  
  976. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  977. Item_11_Index = player.GetItemIndex(i)
  978. if Item_11_Index == (int(Item_11_ID)):
  979. net.SendItemUsePacket(i)
  980. break
  981.  
  982. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  983. Item_12_Index = player.GetItemIndex(i)
  984. if Item_12_Index == (int(Item_12_ID)):
  985. net.SendItemUsePacket(i)
  986. break
  987.  
  988. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  989. Item_13_Index = player.GetItemIndex(i)
  990. if Item_13_Index == (int(Item_13_ID)):
  991. net.SendItemUsePacket(i)
  992. break
  993.  
  994. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  995. Item_14_Index = player.GetItemIndex(i)
  996. if Item_14_Index == (int(Item_14_ID)):
  997. net.SendItemUsePacket(i)
  998. break
  999.  
  1000. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  1001. Item_15_Index = player.GetItemIndex(i)
  1002. if Item_15_Index == (int(Item_15_ID)):
  1003. net.SendItemUsePacket(i)
  1004. break
  1005.  
  1006. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  1007. Item_16_Index = player.GetItemIndex(i)
  1008. if Item_16_Index == (int(Item_16_ID)):
  1009. net.SendItemUsePacket(i)
  1010. break
  1011.  
  1012. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  1013. Item_17_Index = player.GetItemIndex(i)
  1014. if Item_17_Index == (int(Item_17_ID)):
  1015. net.SendItemUsePacket(i)
  1016. break
  1017.  
  1018. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  1019. Item_18_Index = player.GetItemIndex(i)
  1020. if Item_18_Index == (int(Item_18_ID)):
  1021. net.SendItemUsePacket(i)
  1022. break
  1023.  
  1024. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  1025. Item_19_Index = player.GetItemIndex(i)
  1026. if Item_19_Index == (int(Item_19_ID)):
  1027. net.SendItemUsePacket(i)
  1028. break
  1029.  
  1030. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  1031. Item_20_Index = player.GetItemIndex(i)
  1032. if Item_20_Index == (int(Item_20_ID)):
  1033. net.SendItemUsePacket(i)
  1034. break
  1035.  
  1036. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  1037. Item_21_Index = player.GetItemIndex(i)
  1038. if Item_21_Index == (int(Item_21_ID)):
  1039. net.SendItemUsePacket(i)
  1040. break
  1041.  
  1042. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  1043. Item_22_Index = player.GetItemIndex(i)
  1044. if Item_22_Index == (int(Item_22_ID)):
  1045. net.SendItemUsePacket(i)
  1046. break
  1047.  
  1048. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  1049. Item_23_Index = player.GetItemIndex(i)
  1050. if Item_23_Index == (int(Item_23_ID)):
  1051. net.SendItemUsePacket(i)
  1052. break
  1053.  
  1054. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  1055. Item_24_Index = player.GetItemIndex(i)
  1056. if Item_24_Index == (int(Item_24_ID)):
  1057. net.SendItemUsePacket(i)
  1058. break
  1059.  
  1060. for i in xrange(player.INVENTORY_PAGE_SIZE*5):
  1061. Item_25_Index = player.GetItemIndex(i)
  1062. if Item_25_Index == (int(Item_25_ID)):
  1063. net.SendItemUsePacket(i)
  1064. break
  1065.  
  1066. self.Delay_Slot_1 = WaitingDialog()
  1067. self.Delay_Slot_1.Open(int(Use_Item_Delay_ok))
  1068. self.Delay_Slot_1.SAFE_SetTimeOverEvent(self.Enable_Use_Item)
  1069.  
  1070. ################################## About Func ##########################################
  1071.  
  1072. def About_func(self):
  1073. self.About.Show()
  1074.  
  1075. def FaceBook_func(self):
  1076. os.system('start https://www.facebook.com/xZAHON')
  1077.  
  1078. def YouTube_func(self):
  1079. os.system('start https://www.youtube.com/channel/UC23pks_7oQXPvR1J4domS3Q')
  1080.  
  1081. def MPC_func(self):
  1082. os.system('start http://www.mpcforum.pl/user/258957-zahon/')
  1083.  
  1084. ######################################################################################
  1085. ################################### Site 2 - Opcje ###################################
  1086. ######################################################################################
  1087.  
  1088. def Set_Mobber_ID(self):
  1089. global Mobber_ID
  1090. global Mobber_Icon
  1091. if mouseModule.mouseController.isAttached():
  1092. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1093. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1094. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1095.  
  1096.  
  1097. Mobber_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1098.  
  1099. item.SelectItem(attachedSlotVnum)
  1100. # 1 i 2 oznacza, że nie da się włożyć w slot przedmiotów zakładanych (broni, tarczy, butów itp.), jeżeli będzie samo if item.GetItemType() != 0 będzie można wszystko dodać
  1101. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1102. mouseModule.mouseController.DeattachObject()
  1103. chat.AppendChat(2,"Pomyślnie dodano peleryny męstwa o ID: " + str(attachedSlotVnum))
  1104.  
  1105. item.SelectItem(int(attachedSlotVnum))
  1106. Mobber_Icon = item.GetIconImageFileName()
  1107. self.Item_Mobber_Slot.LoadImage(str(Mobber_Icon))
  1108.  
  1109. self.Mobber_HorizontalBar_Text.SetText("Mobber, ID - " + str(attachedSlotVnum))
  1110.  
  1111. else:
  1112.  
  1113. mouseModule.mouseController.DeattachObject()
  1114. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1115.  
  1116.  
  1117. def Delete_Mobber_ID(self):
  1118. global Mobber_ID
  1119. Mobber_ID = 0
  1120. self.Mobber_HorizontalBar_Text.SetText("Mobber")
  1121.  
  1122. ################################## Poty Func ##########################################
  1123.  
  1124. def Set_Poty_1_ID(self):
  1125. global Poty_1_ID
  1126. global Poty_1_Icon
  1127. if mouseModule.mouseController.isAttached():
  1128. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1129. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1130. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1131.  
  1132.  
  1133. Poty_1_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1134.  
  1135. item.SelectItem(attachedSlotVnum)
  1136. # 1 i 2 oznacza, że nie da się włożyć w slot przedmiotów zakładanych (broni, tarczy, butów itp.), jeżeli będzie samo if item.GetItemType() != 0 będzie można wszystko dodać
  1137. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1138. mouseModule.mouseController.DeattachObject()
  1139. chat.AppendChat(2,"Pomyślnie dodano poty o ID: " + str(attachedSlotVnum))
  1140.  
  1141. item.SelectItem(int(attachedSlotVnum))
  1142. Poty_1_Icon = item.GetIconImageFileName()
  1143. self.Item_Poty_1_Slot.LoadImage(str(Poty_1_Icon))
  1144.  
  1145. self.Poty_1_Text.SetText(str(attachedSlotVnum))
  1146. self.Poty_1_Text.SetPosition(64, 204)
  1147.  
  1148. else:
  1149.  
  1150. mouseModule.mouseController.DeattachObject()
  1151. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1152.  
  1153. def Delete_Poty_1_ID(self):
  1154. global Poty_1_ID
  1155. Poty_1_ID = 0
  1156.  
  1157. def Set_Poty_2_ID(self):
  1158. global Poty_2_ID
  1159. global Poty_2_Icon
  1160. if mouseModule.mouseController.isAttached():
  1161. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1162. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1163. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1164.  
  1165.  
  1166. Poty_2_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1167.  
  1168. item.SelectItem(attachedSlotVnum)
  1169. # 1 i 2 oznacza, że nie da się włożyć w slot przedmiotów zakładanych (broni, tarczy, butów itp.), jeżeli będzie samo if item.GetItemType() != 0 będzie można wszystko dodać
  1170. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1171. mouseModule.mouseController.DeattachObject()
  1172. chat.AppendChat(2,"Pomyślnie dodano poty o ID: " + str(attachedSlotVnum))
  1173.  
  1174. item.SelectItem(int(attachedSlotVnum))
  1175. Poty_2_Icon = item.GetIconImageFileName()
  1176. self.Item_Poty_2_Slot.LoadImage(str(Poty_2_Icon))
  1177.  
  1178. self.Poty_2_Text.SetText(str(attachedSlotVnum))
  1179. self.Poty_2_Text.SetPosition(96, 204)
  1180.  
  1181. else:
  1182.  
  1183. mouseModule.mouseController.DeattachObject()
  1184. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1185.  
  1186. def Delete_Poty_2_ID(self):
  1187. global Poty_2_ID
  1188. Poty_2_ID = 0
  1189.  
  1190.  
  1191. ################################### Use Item #######################################
  1192.  
  1193. ### 1 ###
  1194.  
  1195. def Set_Item_1_ID(self):
  1196. global Item_1_ID
  1197. global Item_1_Icon
  1198. if mouseModule.mouseController.isAttached():
  1199. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1200. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1201. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1202.  
  1203.  
  1204. Item_1_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1205.  
  1206. item.SelectItem(attachedSlotVnum)
  1207. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1208. mouseModule.mouseController.DeattachObject()
  1209. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1210.  
  1211. item.SelectItem(int(attachedSlotVnum))
  1212. Item_1_Icon = item.GetIconImageFileName()
  1213. self.Item_1_Icon.LoadImage(str(Item_1_Icon))
  1214.  
  1215.  
  1216. else:
  1217.  
  1218. mouseModule.mouseController.DeattachObject()
  1219. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1220.  
  1221. def Delete_Item_1_ID(self):
  1222. global Item_1_ID
  1223. Item_1_ID = 0
  1224.  
  1225. ### 2 ###
  1226.  
  1227. def Set_Item_2_ID(self):
  1228. global Item_2_ID
  1229. global Item_2_Icon
  1230. if mouseModule.mouseController.isAttached():
  1231. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1232. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1233. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1234.  
  1235.  
  1236. Item_2_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1237.  
  1238. item.SelectItem(attachedSlotVnum)
  1239. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1240. mouseModule.mouseController.DeattachObject()
  1241. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1242.  
  1243. item.SelectItem(int(attachedSlotVnum))
  1244. Item_2_Icon = item.GetIconImageFileName()
  1245. self.Item_2_Icon.LoadImage(str(Item_2_Icon))
  1246.  
  1247.  
  1248. else:
  1249.  
  1250. mouseModule.mouseController.DeattachObject()
  1251. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1252.  
  1253. def Delete_Item_2_ID(self):
  1254. global Item_2_ID
  1255. Item_2_ID = 0
  1256.  
  1257. ### 3 ###
  1258.  
  1259. def Set_Item_3_ID(self):
  1260. global Item_3_ID
  1261. global Item_3_Icon
  1262. if mouseModule.mouseController.isAttached():
  1263. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1264. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1265. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1266.  
  1267.  
  1268. Item_3_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1269.  
  1270. item.SelectItem(attachedSlotVnum)
  1271. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1272. mouseModule.mouseController.DeattachObject()
  1273. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1274.  
  1275. item.SelectItem(int(attachedSlotVnum))
  1276. Item_3_Icon = item.GetIconImageFileName()
  1277. self.Item_3_Icon.LoadImage(str(Item_3_Icon))
  1278.  
  1279.  
  1280. else:
  1281.  
  1282. mouseModule.mouseController.DeattachObject()
  1283. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1284.  
  1285. def Delete_Item_3_ID(self):
  1286. global Item_3_ID
  1287. Item_3_ID = 0
  1288.  
  1289. ### 4 ###
  1290.  
  1291. def Set_Item_4_ID(self):
  1292. global Item_4_ID
  1293. global Item_4_Icon
  1294. if mouseModule.mouseController.isAttached():
  1295. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1296. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1297. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1298.  
  1299.  
  1300. Item_4_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1301.  
  1302. item.SelectItem(attachedSlotVnum)
  1303. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1304. mouseModule.mouseController.DeattachObject()
  1305. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1306.  
  1307. item.SelectItem(int(attachedSlotVnum))
  1308. Item_4_Icon = item.GetIconImageFileName()
  1309. self.Item_4_Icon.LoadImage(str(Item_4_Icon))
  1310.  
  1311.  
  1312. else:
  1313.  
  1314. mouseModule.mouseController.DeattachObject()
  1315. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1316.  
  1317. def Delete_Item_4_ID(self):
  1318. global Item_4_ID
  1319. Item_4_ID = 0
  1320.  
  1321. ### 5 ###
  1322.  
  1323. def Set_Item_5_ID(self):
  1324. global Item_5_ID
  1325. global Item_5_Icon
  1326. if mouseModule.mouseController.isAttached():
  1327. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1328. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1329. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1330.  
  1331.  
  1332. Item_5_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1333.  
  1334. item.SelectItem(attachedSlotVnum)
  1335. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1336. mouseModule.mouseController.DeattachObject()
  1337. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1338.  
  1339. item.SelectItem(int(attachedSlotVnum))
  1340. Item_5_Icon = item.GetIconImageFileName()
  1341. self.Item_5_Icon.LoadImage(str(Item_5_Icon))
  1342.  
  1343.  
  1344. else:
  1345.  
  1346. mouseModule.mouseController.DeattachObject()
  1347. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1348.  
  1349. def Delete_Item_5_ID(self):
  1350. global Item_5_ID
  1351. Item_5_ID = 0
  1352.  
  1353. ### 6 ###
  1354.  
  1355. def Set_Item_6_ID(self):
  1356. global Item_6_ID
  1357. global Item_6_Icon
  1358. if mouseModule.mouseController.isAttached():
  1359. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1360. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1361. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1362.  
  1363.  
  1364. Item_6_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1365.  
  1366. item.SelectItem(attachedSlotVnum)
  1367. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1368. mouseModule.mouseController.DeattachObject()
  1369. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1370.  
  1371. item.SelectItem(int(attachedSlotVnum))
  1372. Item_6_Icon = item.GetIconImageFileName()
  1373. self.Item_6_Icon.LoadImage(str(Item_6_Icon))
  1374.  
  1375.  
  1376. else:
  1377.  
  1378. mouseModule.mouseController.DeattachObject()
  1379. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1380.  
  1381. def Delete_Item_6_ID(self):
  1382. global Item_6_ID
  1383. Item_6_ID = 0
  1384.  
  1385. ### 7 ###
  1386.  
  1387. def Set_Item_7_ID(self):
  1388. global Item_7_ID
  1389. global Item_7_Icon
  1390. if mouseModule.mouseController.isAttached():
  1391. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1392. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1393. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1394.  
  1395.  
  1396. Item_7_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1397.  
  1398. item.SelectItem(attachedSlotVnum)
  1399. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1400. mouseModule.mouseController.DeattachObject()
  1401. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1402.  
  1403. item.SelectItem(int(attachedSlotVnum))
  1404. Item_7_Icon = item.GetIconImageFileName()
  1405. self.Item_7_Icon.LoadImage(str(Item_7_Icon))
  1406.  
  1407.  
  1408. else:
  1409.  
  1410. mouseModule.mouseController.DeattachObject()
  1411. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1412.  
  1413. def Delete_Item_7_ID(self):
  1414. global Item_7_ID
  1415. Item_7_ID = 0
  1416.  
  1417. ### 8 ###
  1418.  
  1419. def Set_Item_8_ID(self):
  1420. global Item_8_ID
  1421. global Item_8_Icon
  1422. if mouseModule.mouseController.isAttached():
  1423. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1424. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1425. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1426.  
  1427.  
  1428. Item_8_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1429.  
  1430. item.SelectItem(attachedSlotVnum)
  1431. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1432. mouseModule.mouseController.DeattachObject()
  1433. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1434.  
  1435. item.SelectItem(int(attachedSlotVnum))
  1436. Item_8_Icon = item.GetIconImageFileName()
  1437. self.Item_8_Icon.LoadImage(str(Item_8_Icon))
  1438.  
  1439.  
  1440. else:
  1441.  
  1442. mouseModule.mouseController.DeattachObject()
  1443. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1444.  
  1445. def Delete_Item_8_ID(self):
  1446. global Item_8_ID
  1447. Item_8_ID = 0
  1448.  
  1449. ### 9 ###
  1450.  
  1451. def Set_Item_9_ID(self):
  1452. global Item_9_ID
  1453. global Item_9_Icon
  1454. if mouseModule.mouseController.isAttached():
  1455. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1456. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1457. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1458.  
  1459.  
  1460. Item_9_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1461.  
  1462. item.SelectItem(attachedSlotVnum)
  1463. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1464. mouseModule.mouseController.DeattachObject()
  1465. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1466.  
  1467. item.SelectItem(int(attachedSlotVnum))
  1468. Item_9_Icon = item.GetIconImageFileName()
  1469. self.Item_9_Icon.LoadImage(str(Item_9_Icon))
  1470.  
  1471.  
  1472. else:
  1473.  
  1474. mouseModule.mouseController.DeattachObject()
  1475. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1476.  
  1477. def Delete_Item_9_ID(self):
  1478. global Item_9_ID
  1479. Item_9_ID = 0
  1480.  
  1481. ### 10 ###
  1482.  
  1483. def Set_Item_10_ID(self):
  1484. global Item_10_ID
  1485. global Item_10_Icon
  1486. if mouseModule.mouseController.isAttached():
  1487. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1488. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1489. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1490.  
  1491.  
  1492. Item_10_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1493.  
  1494. item.SelectItem(attachedSlotVnum)
  1495. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1496. mouseModule.mouseController.DeattachObject()
  1497. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1498.  
  1499. item.SelectItem(int(attachedSlotVnum))
  1500. Item_10_Icon = item.GetIconImageFileName()
  1501. self.Item_10_Icon.LoadImage(str(Item_10_Icon))
  1502.  
  1503.  
  1504. else:
  1505.  
  1506. mouseModule.mouseController.DeattachObject()
  1507. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1508.  
  1509. def Delete_Item_10_ID(self):
  1510. global Item_10_ID
  1511. Item_10_ID = 0
  1512.  
  1513. ### 11 ###
  1514.  
  1515. def Set_Item_11_ID(self):
  1516. global Item_11_ID
  1517. global Item_11_Icon
  1518. if mouseModule.mouseController.isAttached():
  1519. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1520. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1521. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1522.  
  1523.  
  1524. Item_11_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1525.  
  1526. item.SelectItem(attachedSlotVnum)
  1527. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1528. mouseModule.mouseController.DeattachObject()
  1529. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1530.  
  1531. item.SelectItem(int(attachedSlotVnum))
  1532. Item_11_Icon = item.GetIconImageFileName()
  1533. self.Item_11_Icon.LoadImage(str(Item_11_Icon))
  1534.  
  1535.  
  1536. else:
  1537.  
  1538. mouseModule.mouseController.DeattachObject()
  1539. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1540.  
  1541. def Delete_Item_11_ID(self):
  1542. global Item_11_ID
  1543. Item_11_ID = 0
  1544.  
  1545. ### 12 ###
  1546.  
  1547. def Set_Item_12_ID(self):
  1548. global Item_12_ID
  1549. global Item_12_Icon
  1550. if mouseModule.mouseController.isAttached():
  1551. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1552. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1553. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1554.  
  1555.  
  1556. Item_12_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1557.  
  1558. item.SelectItem(attachedSlotVnum)
  1559. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1560. mouseModule.mouseController.DeattachObject()
  1561. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1562.  
  1563. item.SelectItem(int(attachedSlotVnum))
  1564. Item_12_Icon = item.GetIconImageFileName()
  1565. self.Item_12_Icon.LoadImage(str(Item_12_Icon))
  1566.  
  1567.  
  1568. else:
  1569.  
  1570. mouseModule.mouseController.DeattachObject()
  1571. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1572.  
  1573. def Delete_Item_12_ID(self):
  1574. global Item_12_ID
  1575. Item_12_ID = 0
  1576.  
  1577. ### 13 ###
  1578.  
  1579. def Set_Item_13_ID(self):
  1580. global Item_13_ID
  1581. global Item_13_Icon
  1582. if mouseModule.mouseController.isAttached():
  1583. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1584. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1585. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1586.  
  1587.  
  1588. Item_13_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1589.  
  1590. item.SelectItem(attachedSlotVnum)
  1591. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1592. mouseModule.mouseController.DeattachObject()
  1593. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1594.  
  1595. item.SelectItem(int(attachedSlotVnum))
  1596. Item_13_Icon = item.GetIconImageFileName()
  1597. self.Item_13_Icon.LoadImage(str(Item_13_Icon))
  1598.  
  1599.  
  1600. else:
  1601.  
  1602. mouseModule.mouseController.DeattachObject()
  1603. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1604.  
  1605. def Delete_Item_13_ID(self):
  1606. global Item_13_ID
  1607. Item_13_ID = 0
  1608.  
  1609. ### 14 ###
  1610.  
  1611. def Set_Item_14_ID(self):
  1612. global Item_14_ID
  1613. global Item_14_Icon
  1614. if mouseModule.mouseController.isAttached():
  1615. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1616. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1617. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1618.  
  1619.  
  1620. Item_14_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1621.  
  1622. item.SelectItem(attachedSlotVnum)
  1623. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1624. mouseModule.mouseController.DeattachObject()
  1625. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1626.  
  1627. item.SelectItem(int(attachedSlotVnum))
  1628. Item_14_Icon = item.GetIconImageFileName()
  1629. self.Item_14_Icon.LoadImage(str(Item_14_Icon))
  1630.  
  1631.  
  1632. else:
  1633.  
  1634. mouseModule.mouseController.DeattachObject()
  1635. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1636.  
  1637. def Delete_Item_14_ID(self):
  1638. global Item_14_ID
  1639. Item_14_ID = 0
  1640.  
  1641. ### 15 ###
  1642.  
  1643. def Set_Item_15_ID(self):
  1644. global Item_15_ID
  1645. global Item_15_Icon
  1646. if mouseModule.mouseController.isAttached():
  1647. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1648. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1649. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1650.  
  1651.  
  1652. Item_15_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1653.  
  1654. item.SelectItem(attachedSlotVnum)
  1655. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1656. mouseModule.mouseController.DeattachObject()
  1657. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1658.  
  1659. item.SelectItem(int(attachedSlotVnum))
  1660. Item_15_Icon = item.GetIconImageFileName()
  1661. self.Item_15_Icon.LoadImage(str(Item_15_Icon))
  1662.  
  1663.  
  1664. else:
  1665.  
  1666. mouseModule.mouseController.DeattachObject()
  1667. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1668.  
  1669. def Delete_Item_15_ID(self):
  1670. global Item_15_ID
  1671. Item_15_ID = 0
  1672.  
  1673. ### 16 ###
  1674.  
  1675. def Set_Item_16_ID(self):
  1676. global Item_16_ID
  1677. global Item_16_Icon
  1678. if mouseModule.mouseController.isAttached():
  1679. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1680. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1681. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1682.  
  1683.  
  1684. Item_16_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1685.  
  1686. item.SelectItem(attachedSlotVnum)
  1687. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1688. mouseModule.mouseController.DeattachObject()
  1689. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1690.  
  1691. item.SelectItem(int(attachedSlotVnum))
  1692. Item_16_Icon = item.GetIconImageFileName()
  1693. self.Item_16_Icon.LoadImage(str(Item_16_Icon))
  1694.  
  1695.  
  1696. else:
  1697.  
  1698. mouseModule.mouseController.DeattachObject()
  1699. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1700.  
  1701. def Delete_Item_16_ID(self):
  1702. global Item_16_ID
  1703. Item_16_ID = 0
  1704.  
  1705. ### 17 ###
  1706.  
  1707. def Set_Item_17_ID(self):
  1708. global Item_17_ID
  1709. global Item_17_Icon
  1710. if mouseModule.mouseController.isAttached():
  1711. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1712. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1713. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1714.  
  1715.  
  1716. Item_17_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1717.  
  1718. item.SelectItem(attachedSlotVnum)
  1719. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1720. mouseModule.mouseController.DeattachObject()
  1721. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1722.  
  1723. item.SelectItem(int(attachedSlotVnum))
  1724. Item_17_Icon = item.GetIconImageFileName()
  1725. self.Item_17_Icon.LoadImage(str(Item_17_Icon))
  1726.  
  1727.  
  1728. else:
  1729.  
  1730. mouseModule.mouseController.DeattachObject()
  1731. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1732.  
  1733. def Delete_Item_17_ID(self):
  1734. global Item_17_ID
  1735. Item_17_ID = 0
  1736.  
  1737. ### 18 ###
  1738.  
  1739. def Set_Item_18_ID(self):
  1740. global Item_18_ID
  1741. global Item_18_Icon
  1742. if mouseModule.mouseController.isAttached():
  1743. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1744. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1745. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1746.  
  1747.  
  1748. Item_18_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1749.  
  1750. item.SelectItem(attachedSlotVnum)
  1751. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1752. mouseModule.mouseController.DeattachObject()
  1753. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1754.  
  1755. item.SelectItem(int(attachedSlotVnum))
  1756. Item_18_Icon = item.GetIconImageFileName()
  1757. self.Item_18_Icon.LoadImage(str(Item_18_Icon))
  1758.  
  1759.  
  1760. else:
  1761.  
  1762. mouseModule.mouseController.DeattachObject()
  1763. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1764.  
  1765. def Delete_Item_18_ID(self):
  1766. global Item_18_ID
  1767. Item_18_ID = 0
  1768.  
  1769. ### 19 ###
  1770.  
  1771. def Set_Item_19_ID(self):
  1772. global Item_19_ID
  1773. global Item_19_Icon
  1774. if mouseModule.mouseController.isAttached():
  1775. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1776. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1777. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1778.  
  1779.  
  1780. Item_19_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1781.  
  1782. item.SelectItem(attachedSlotVnum)
  1783. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1784. mouseModule.mouseController.DeattachObject()
  1785. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1786.  
  1787. item.SelectItem(int(attachedSlotVnum))
  1788. Item_19_Icon = item.GetIconImageFileName()
  1789. self.Item_19_Icon.LoadImage(str(Item_19_Icon))
  1790.  
  1791.  
  1792. else:
  1793.  
  1794. mouseModule.mouseController.DeattachObject()
  1795. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1796.  
  1797. def Delete_Item_19_ID(self):
  1798. global Item_19_ID
  1799. Item_19_ID = 0
  1800.  
  1801. ### 20 ###
  1802.  
  1803. def Set_Item_20_ID(self):
  1804. global Item_20_ID
  1805. global Item_20_Icon
  1806. if mouseModule.mouseController.isAttached():
  1807. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1808. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1809. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1810.  
  1811.  
  1812. Item_20_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1813.  
  1814. item.SelectItem(attachedSlotVnum)
  1815. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1816. mouseModule.mouseController.DeattachObject()
  1817. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1818.  
  1819. item.SelectItem(int(attachedSlotVnum))
  1820. Item_20_Icon = item.GetIconImageFileName()
  1821. self.Item_20_Icon.LoadImage(str(Item_20_Icon))
  1822.  
  1823.  
  1824. else:
  1825.  
  1826. mouseModule.mouseController.DeattachObject()
  1827. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1828.  
  1829. def Delete_Item_20_ID(self):
  1830. global Item_20_ID
  1831. Item_20_ID = 0
  1832.  
  1833. ### 21 ###
  1834.  
  1835. def Set_Item_21_ID(self):
  1836. global Item_21_ID
  1837. global Item_21_Icon
  1838. if mouseModule.mouseController.isAttached():
  1839. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1840. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1841. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1842.  
  1843.  
  1844. Item_21_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1845.  
  1846. item.SelectItem(attachedSlotVnum)
  1847. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1848. mouseModule.mouseController.DeattachObject()
  1849. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1850.  
  1851. item.SelectItem(int(attachedSlotVnum))
  1852. Item_21_Icon = item.GetIconImageFileName()
  1853. self.Item_21_Icon.LoadImage(str(Item_21_Icon))
  1854.  
  1855.  
  1856. else:
  1857.  
  1858. mouseModule.mouseController.DeattachObject()
  1859. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1860.  
  1861. def Delete_Item_21_ID(self):
  1862. global Item_21_ID
  1863. Item_21_ID = 0
  1864.  
  1865. ### 22 ###
  1866.  
  1867. def Set_Item_22_ID(self):
  1868. global Item_22_ID
  1869. global Item_22_Icon
  1870. if mouseModule.mouseController.isAttached():
  1871. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1872. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1873. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1874.  
  1875.  
  1876. Item_22_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1877.  
  1878. item.SelectItem(attachedSlotVnum)
  1879. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1880. mouseModule.mouseController.DeattachObject()
  1881. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1882.  
  1883. item.SelectItem(int(attachedSlotVnum))
  1884. Item_22_Icon = item.GetIconImageFileName()
  1885. self.Item_22_Icon.LoadImage(str(Item_22_Icon))
  1886.  
  1887.  
  1888. else:
  1889.  
  1890. mouseModule.mouseController.DeattachObject()
  1891. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1892.  
  1893. def Delete_Item_22_ID(self):
  1894. global Item_22_ID
  1895. Item_22_ID = 0
  1896.  
  1897. ### 23 ###
  1898.  
  1899. def Set_Item_23_ID(self):
  1900. global Item_23_ID
  1901. global Item_23_Icon
  1902. if mouseModule.mouseController.isAttached():
  1903. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1904. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1905. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1906.  
  1907.  
  1908. Item_23_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1909.  
  1910. item.SelectItem(attachedSlotVnum)
  1911. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1912. mouseModule.mouseController.DeattachObject()
  1913. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1914.  
  1915. item.SelectItem(int(attachedSlotVnum))
  1916. Item_23_Icon = item.GetIconImageFileName()
  1917. self.Item_23_Icon.LoadImage(str(Item_23_Icon))
  1918.  
  1919.  
  1920. else:
  1921.  
  1922. mouseModule.mouseController.DeattachObject()
  1923. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1924.  
  1925. def Delete_Item_23_ID(self):
  1926. global Item_23_ID
  1927. Item_23_ID = 0
  1928.  
  1929. ### 24 ###
  1930.  
  1931. def Set_Item_24_ID(self):
  1932. global Item_24_ID
  1933. global Item_24_Icon
  1934. if mouseModule.mouseController.isAttached():
  1935. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1936. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1937. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1938.  
  1939.  
  1940. Item_24_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1941.  
  1942. item.SelectItem(attachedSlotVnum)
  1943. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1944. mouseModule.mouseController.DeattachObject()
  1945. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1946.  
  1947. item.SelectItem(int(attachedSlotVnum))
  1948. Item_24_Icon = item.GetIconImageFileName()
  1949. self.Item_24_Icon.LoadImage(str(Item_24_Icon))
  1950.  
  1951.  
  1952. else:
  1953.  
  1954. mouseModule.mouseController.DeattachObject()
  1955. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1956.  
  1957. def Delete_Item_24_ID(self):
  1958. global Item_24_ID
  1959. Item_24_ID = 0
  1960.  
  1961. ### 25 ###
  1962.  
  1963. def Set_Item_25_ID(self):
  1964. global Item_25_ID
  1965. global Item_25_Icon
  1966. if mouseModule.mouseController.isAttached():
  1967. attachedSlotType = mouseModule.mouseController.GetAttachedType()
  1968. attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
  1969. attachedSlotVnum = mouseModule.mouseController.GetAttachedItemIndex()
  1970.  
  1971.  
  1972. Item_25_ID = mouseModule.mouseController.GetAttachedItemIndex()
  1973.  
  1974. item.SelectItem(attachedSlotVnum)
  1975. if item.GetItemType() != 1 and item.GetItemType() != 2:
  1976. mouseModule.mouseController.DeattachObject()
  1977. chat.AppendChat(2,"Pomyślnie dodano item o ID: " + str(attachedSlotVnum))
  1978.  
  1979. item.SelectItem(int(attachedSlotVnum))
  1980. Item_25_Icon = item.GetIconImageFileName()
  1981. self.Item_25_Icon.LoadImage(str(Item_25_Icon))
  1982.  
  1983.  
  1984. else:
  1985.  
  1986. mouseModule.mouseController.DeattachObject()
  1987. chat.AppendChat(2,"Nie możesz wstawić tego przedmiotu")
  1988.  
  1989. def Delete_Item_25_ID(self):
  1990. global Item_25_ID
  1991. Item_25_ID = 0
  1992.  
  1993. ################################### Site Func ###################################
  1994.  
  1995. def Site_1_func(self):
  1996.  
  1997. self.Site_1_Button.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  1998. self.Site_1_Button.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  1999. self.Site_1_Button.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2000.  
  2001. self.Site_2_Button.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_middle_01.sub")
  2002. self.Site_2_Button.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_middle_02.sub")
  2003. self.Site_2_Button.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2004.  
  2005. self.Site_3_Button.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_middle_01.sub")
  2006. self.Site_3_Button.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_middle_02.sub")
  2007. self.Site_3_Button.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2008.  
  2009. self.Site_1_Button.SetPosition(10, 240)
  2010. self.Site_2_Button.SetPosition(73, 240)
  2011. self.Site_3_Button.SetPosition(135, 240)
  2012.  
  2013. self.Site_HorizontalBar.SetPosition(10, 220)
  2014.  
  2015. self.Board.SetSize(200, 275)
  2016.  
  2017. ### 1 ###
  2018.  
  2019. self.Auto_Attack_Button.Show()
  2020. self.Mobber_Button.Show()
  2021. self.Pick_Up_Button.Show()
  2022. self.Poty_Button.Show()
  2023. self.Restart_Button.Show()
  2024. self.Use_Item_Button.Show()
  2025.  
  2026. ### 2 ###
  2027.  
  2028. self.Mobber_Slot.Hide()
  2029. self.Item_Mobber_Slot.Hide()
  2030. self.Poty_1_Slot.Hide()
  2031. self.Item_Poty_1_Slot.Hide()
  2032. self.Poty_2_Slot.Hide()
  2033. self.Item_Poty_2_Slot.Hide()
  2034.  
  2035. self.Mobber_HorizontalBar.Hide()
  2036. self.Poty_HorizontalBar.Hide()
  2037.  
  2038. self.Mobber_Info_Text.Hide()
  2039. self.Mobber_Mode_Text.Hide()
  2040. self.Mobber_Delay_Text.Hide()
  2041. self.slotbar_Mobber_Delay.Hide()
  2042. self.Poty_1_Text.Hide()
  2043. self.Poty_2_Text.Hide()
  2044.  
  2045. self.Mobber_Mode_ComboBox.Hide()
  2046.  
  2047. ### 3 ###
  2048.  
  2049. self.Use_Item_HorizontalBar.Hide()
  2050.  
  2051. self.Use_Item_Delay_Text.Hide()
  2052. self.slotbar_Use_Item_Delay.Hide()
  2053. self.Use_Item_Delay_Mode_ComboBox.Hide()
  2054.  
  2055. self.Item_1_Slot.Hide()
  2056. self.Item_1_Icon.Hide()
  2057. self.Item_2_Slot.Hide()
  2058. self.Item_2_Icon.Hide()
  2059. self.Item_3_Slot.Hide()
  2060. self.Item_3_Icon.Hide()
  2061. self.Item_4_Slot.Hide()
  2062. self.Item_4_Icon.Hide()
  2063. self.Item_5_Slot.Hide()
  2064. self.Item_5_Icon.Hide()
  2065. self.Item_6_Slot.Hide()
  2066. self.Item_6_Icon.Hide()
  2067. self.Item_7_Slot.Hide()
  2068. self.Item_7_Icon.Hide()
  2069. self.Item_8_Slot.Hide()
  2070. self.Item_8_Icon.Hide()
  2071. self.Item_9_Slot.Hide()
  2072. self.Item_9_Icon.Hide()
  2073. self.Item_10_Slot.Hide()
  2074. self.Item_10_Icon.Hide()
  2075. self.Item_11_Slot.Hide()
  2076. self.Item_11_Icon.Hide()
  2077. self.Item_12_Slot.Hide()
  2078. self.Item_12_Icon.Hide()
  2079. self.Item_13_Slot.Hide()
  2080. self.Item_13_Icon.Hide()
  2081. self.Item_14_Slot.Hide()
  2082. self.Item_14_Icon.Hide()
  2083. self.Item_15_Slot.Hide()
  2084. self.Item_15_Icon.Hide()
  2085. self.Item_16_Slot.Hide()
  2086. self.Item_16_Icon.Hide()
  2087. self.Item_17_Slot.Hide()
  2088. self.Item_17_Icon.Hide()
  2089. self.Item_18_Slot.Hide()
  2090. self.Item_18_Icon.Hide()
  2091. self.Item_19_Slot.Hide()
  2092. self.Item_19_Icon.Hide()
  2093. self.Item_20_Slot.Hide()
  2094. self.Item_20_Icon.Hide()
  2095. self.Item_21_Slot.Hide()
  2096. self.Item_21_Icon.Hide()
  2097. self.Item_22_Slot.Hide()
  2098. self.Item_22_Icon.Hide()
  2099. self.Item_23_Slot.Hide()
  2100. self.Item_23_Icon.Hide()
  2101. self.Item_24_Slot.Hide()
  2102. self.Item_24_Icon.Hide()
  2103. self.Item_25_Slot.Hide()
  2104. self.Item_25_Icon.Hide()
  2105.  
  2106. def Site_2_func(self):
  2107.  
  2108. self.Site_2_Button.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2109. self.Site_2_Button.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2110. self.Site_2_Button.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2111.  
  2112. self.Site_1_Button.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_middle_01.sub")
  2113. self.Site_1_Button.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_middle_02.sub")
  2114. self.Site_1_Button.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2115.  
  2116. self.Site_3_Button.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_middle_01.sub")
  2117. self.Site_3_Button.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_middle_02.sub")
  2118. self.Site_3_Button.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2119.  
  2120. self.Site_1_Button.SetPosition(10, 240)
  2121. self.Site_2_Button.SetPosition(73, 240)
  2122. self.Site_3_Button.SetPosition(135, 240)
  2123.  
  2124. self.Site_HorizontalBar.SetPosition(10, 220)
  2125.  
  2126. self.Board.SetSize(200, 275)
  2127.  
  2128. ### 1 ###
  2129.  
  2130. self.Auto_Attack_Button.Hide()
  2131. self.Mobber_Button.Hide()
  2132. self.Pick_Up_Button.Hide()
  2133. self.Poty_Button.Hide()
  2134. self.Restart_Button.Hide()
  2135. self.Use_Item_Button.Hide()
  2136.  
  2137. ### 2 ###
  2138.  
  2139. self.Mobber_Slot.Show()
  2140. self.Item_Mobber_Slot.Show()
  2141. self.Poty_1_Slot.Show()
  2142. self.Item_Poty_1_Slot.Show()
  2143. self.Poty_2_Slot.Show()
  2144. self.Item_Poty_2_Slot.Show()
  2145.  
  2146. self.Mobber_HorizontalBar.Show()
  2147. self.Poty_HorizontalBar.Show()
  2148.  
  2149. self.Mobber_Info_Text.Show()
  2150. self.Mobber_Mode_Text.Show()
  2151. self.Mobber_Delay_Text.Show()
  2152. self.slotbar_Mobber_Delay.Show()
  2153. self.Poty_1_Text.Show()
  2154. self.Poty_2_Text.Show()
  2155.  
  2156. self.Mobber_Mode_ComboBox.Show()
  2157.  
  2158. ### 3 ###
  2159.  
  2160. self.Use_Item_HorizontalBar.Hide()
  2161.  
  2162. self.Use_Item_Delay_Text.Hide()
  2163. self.slotbar_Use_Item_Delay.Hide()
  2164. self.Use_Item_Delay_Mode_ComboBox.Hide()
  2165.  
  2166. self.Item_1_Slot.Hide()
  2167. self.Item_1_Icon.Hide()
  2168. self.Item_2_Slot.Hide()
  2169. self.Item_2_Icon.Hide()
  2170. self.Item_3_Slot.Hide()
  2171. self.Item_3_Icon.Hide()
  2172. self.Item_4_Slot.Hide()
  2173. self.Item_4_Icon.Hide()
  2174. self.Item_5_Slot.Hide()
  2175. self.Item_5_Icon.Hide()
  2176. self.Item_6_Slot.Hide()
  2177. self.Item_6_Icon.Hide()
  2178. self.Item_7_Slot.Hide()
  2179. self.Item_7_Icon.Hide()
  2180. self.Item_8_Slot.Hide()
  2181. self.Item_8_Icon.Hide()
  2182. self.Item_9_Slot.Hide()
  2183. self.Item_9_Icon.Hide()
  2184. self.Item_10_Slot.Hide()
  2185. self.Item_10_Icon.Hide()
  2186. self.Item_11_Slot.Hide()
  2187. self.Item_11_Icon.Hide()
  2188. self.Item_12_Slot.Hide()
  2189. self.Item_12_Icon.Hide()
  2190. self.Item_13_Slot.Hide()
  2191. self.Item_13_Icon.Hide()
  2192. self.Item_14_Slot.Hide()
  2193. self.Item_14_Icon.Hide()
  2194. self.Item_15_Slot.Hide()
  2195. self.Item_15_Icon.Hide()
  2196. self.Item_16_Slot.Hide()
  2197. self.Item_16_Icon.Hide()
  2198. self.Item_17_Slot.Hide()
  2199. self.Item_17_Icon.Hide()
  2200. self.Item_18_Slot.Hide()
  2201. self.Item_18_Icon.Hide()
  2202. self.Item_19_Slot.Hide()
  2203. self.Item_19_Icon.Hide()
  2204. self.Item_20_Slot.Hide()
  2205. self.Item_20_Icon.Hide()
  2206. self.Item_21_Slot.Hide()
  2207. self.Item_21_Icon.Hide()
  2208. self.Item_22_Slot.Hide()
  2209. self.Item_22_Icon.Hide()
  2210. self.Item_23_Slot.Hide()
  2211. self.Item_23_Icon.Hide()
  2212. self.Item_24_Slot.Hide()
  2213. self.Item_24_Icon.Hide()
  2214. self.Item_25_Slot.Hide()
  2215. self.Item_25_Icon.Hide()
  2216.  
  2217. def Site_3_func(self):
  2218.  
  2219. self.Site_1_Button.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_middle_01.sub")
  2220. self.Site_1_Button.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_middle_02.sub")
  2221. self.Site_1_Button.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2222.  
  2223. self.Site_2_Button.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_middle_01.sub")
  2224. self.Site_2_Button.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_middle_02.sub")
  2225. self.Site_2_Button.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2226.  
  2227. self.Site_3_Button.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2228. self.Site_3_Button.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2229. self.Site_3_Button.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_middle_03.sub")
  2230.  
  2231. self.Site_1_Button.SetPosition(10, 260)
  2232. self.Site_2_Button.SetPosition(73, 260)
  2233. self.Site_3_Button.SetPosition(135, 260)
  2234.  
  2235. self.Site_HorizontalBar.SetPosition(10, 240)
  2236.  
  2237. self.Board.SetSize(200, 295)
  2238.  
  2239. ### 1 ###
  2240.  
  2241. self.Auto_Attack_Button.Hide()
  2242. self.Mobber_Button.Hide()
  2243. self.Pick_Up_Button.Hide()
  2244. self.Poty_Button.Hide()
  2245. self.Restart_Button.Hide()
  2246. self.Use_Item_Button.Hide()
  2247.  
  2248. ### 2 ###
  2249.  
  2250. self.Mobber_Slot.Hide()
  2251. self.Item_Mobber_Slot.Hide()
  2252. self.Poty_1_Slot.Hide()
  2253. self.Item_Poty_1_Slot.Hide()
  2254. self.Poty_2_Slot.Hide()
  2255. self.Item_Poty_2_Slot.Hide()
  2256.  
  2257. self.Mobber_HorizontalBar.Hide()
  2258. self.Poty_HorizontalBar.Hide()
  2259.  
  2260. self.Mobber_Info_Text.Hide()
  2261. self.Mobber_Mode_Text.Hide()
  2262. self.Mobber_Delay_Text.Hide()
  2263. self.slotbar_Mobber_Delay.Hide()
  2264. self.Poty_1_Text.Hide()
  2265. self.Poty_2_Text.Hide()
  2266.  
  2267. self.Mobber_Mode_ComboBox.Hide()
  2268.  
  2269. ### 3 ###
  2270.  
  2271. self.Use_Item_HorizontalBar.Show()
  2272.  
  2273. self.Use_Item_Delay_Text.Show()
  2274. self.slotbar_Use_Item_Delay.Show()
  2275. self.Use_Item_Delay_Mode_ComboBox.Show()
  2276.  
  2277. self.Item_1_Slot.Show()
  2278. self.Item_1_Icon.Show()
  2279. self.Item_2_Slot.Show()
  2280. self.Item_2_Icon.Show()
  2281. self.Item_3_Slot.Show()
  2282. self.Item_3_Icon.Show()
  2283. self.Item_4_Slot.Show()
  2284. self.Item_4_Icon.Show()
  2285. self.Item_5_Slot.Show()
  2286. self.Item_5_Icon.Show()
  2287. self.Item_6_Slot.Show()
  2288. self.Item_6_Icon.Show()
  2289. self.Item_7_Slot.Show()
  2290. self.Item_7_Icon.Show()
  2291. self.Item_8_Slot.Show()
  2292. self.Item_8_Icon.Show()
  2293. self.Item_9_Slot.Show()
  2294. self.Item_9_Icon.Show()
  2295. self.Item_10_Slot.Show()
  2296. self.Item_10_Icon.Show()
  2297. self.Item_11_Slot.Show()
  2298. self.Item_11_Icon.Show()
  2299. self.Item_12_Slot.Show()
  2300. self.Item_12_Icon.Show()
  2301. self.Item_13_Slot.Show()
  2302. self.Item_13_Icon.Show()
  2303. self.Item_14_Slot.Show()
  2304. self.Item_14_Icon.Show()
  2305. self.Item_15_Slot.Show()
  2306. self.Item_15_Icon.Show()
  2307. self.Item_16_Slot.Show()
  2308. self.Item_16_Icon.Show()
  2309. self.Item_17_Slot.Show()
  2310. self.Item_17_Icon.Show()
  2311. self.Item_18_Slot.Show()
  2312. self.Item_18_Icon.Show()
  2313. self.Item_19_Slot.Show()
  2314. self.Item_19_Icon.Show()
  2315. self.Item_20_Slot.Show()
  2316. self.Item_20_Icon.Show()
  2317. self.Item_21_Slot.Show()
  2318. self.Item_21_Icon.Show()
  2319. self.Item_22_Slot.Show()
  2320. self.Item_22_Icon.Show()
  2321. self.Item_23_Slot.Show()
  2322. self.Item_23_Icon.Show()
  2323. self.Item_24_Slot.Show()
  2324. self.Item_24_Icon.Show()
  2325. self.Item_25_Slot.Show()
  2326. self.Item_25_Icon.Show()
  2327.  
  2328.  
  2329. def OnUpdate(self):
  2330.  
  2331. ### Mobber ###
  2332.  
  2333. global Mobber_Mode
  2334.  
  2335. Mobber_Mode_Index = self.Mobber_Mode_ComboBox.GetCurrentText()
  2336. if Mobber_Mode_Index == "Pelerynki":
  2337. Mobber_Mode = 1
  2338.  
  2339. if Mobber_Mode_Index == "1 Slot":
  2340. Mobber_Mode = 2
  2341.  
  2342.  
  2343. global Mobber_Delay
  2344. Mobber_Delay = self.Mobber_Delay_EditLine.GetText()
  2345.  
  2346.  
  2347. global Mobber_ID
  2348.  
  2349. if Mobber_ID == 0:
  2350. self.Item_Mobber_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2351.  
  2352. ### Poty ###
  2353.  
  2354. global Poty_1_ID
  2355. global Poty_2_ID
  2356.  
  2357. if Poty_1_ID == 0:
  2358. self.Item_Poty_1_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2359. self.Poty_1_Text.SetText("0")
  2360. self.Poty_1_Text.SetPosition(74, 204)
  2361.  
  2362. if Poty_2_ID == 0:
  2363. self.Item_Poty_2_Slot.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2364. self.Poty_2_Text.SetText("0")
  2365. self.Poty_2_Text.SetPosition(106, 204)
  2366.  
  2367. ### Use Item ###
  2368.  
  2369. Delay = self.Use_Item_Delay_Mode_ComboBox.GetCurrentText()
  2370.  
  2371. if Delay == "Minut":
  2372. Use_Item_Delay_ok = int(Use_Item_Delay * 60)
  2373. # chat.AppendChat(chat.CHAT_TYPE_INFO, str(Use_Item_Delay_ok))
  2374. else:
  2375. Use_Item_Delay_ok = int(Use_Item_Delay)
  2376. # chat.AppendChat(chat.CHAT_TYPE_INFO, str(Use_Item_Delay_ok))
  2377.  
  2378. global Item_1_ID
  2379. global Item_2_ID
  2380. global Item_3_ID
  2381. global Item_4_ID
  2382. global Item_5_ID
  2383. global Item_6_ID
  2384. global Item_7_ID
  2385. global Item_8_ID
  2386. global Item_9_ID
  2387. global Item_10_ID
  2388. global Item_11_ID
  2389. global Item_12_ID
  2390. global Item_13_ID
  2391. global Item_14_ID
  2392. global Item_15_ID
  2393. global Item_16_ID
  2394. global Item_17_ID
  2395. global Item_18_ID
  2396. global Item_19_ID
  2397. global Item_20_ID
  2398. global Item_21_ID
  2399. global Item_22_ID
  2400. global Item_23_ID
  2401. global Item_24_ID
  2402. global Item_25_ID
  2403. global Item_26_ID
  2404. global Item_27_ID
  2405. global Item_28_ID
  2406. global Item_29_ID
  2407. global Item_30_ID
  2408.  
  2409. if Item_1_ID == 0:
  2410. self.Item_1_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2411.  
  2412. if Item_2_ID == 0:
  2413. self.Item_2_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2414.  
  2415. if Item_3_ID == 0:
  2416. self.Item_3_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2417.  
  2418. if Item_4_ID == 0:
  2419. self.Item_4_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2420.  
  2421. if Item_5_ID == 0:
  2422. self.Item_5_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2423.  
  2424. if Item_6_ID == 0:
  2425. self.Item_6_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2426.  
  2427. if Item_7_ID == 0:
  2428. self.Item_7_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2429.  
  2430. if Item_8_ID == 0:
  2431. self.Item_8_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2432.  
  2433. if Item_9_ID == 0:
  2434. self.Item_9_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2435.  
  2436. if Item_10_ID == 0:
  2437. self.Item_10_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2438.  
  2439. if Item_11_ID == 0:
  2440. self.Item_11_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2441.  
  2442. if Item_12_ID == 0:
  2443. self.Item_12_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2444.  
  2445. if Item_13_ID == 0:
  2446. self.Item_13_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2447.  
  2448. if Item_14_ID == 0:
  2449. self.Item_14_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2450.  
  2451. if Item_15_ID == 0:
  2452. self.Item_15_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2453.  
  2454. if Item_16_ID == 0:
  2455. self.Item_16_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2456.  
  2457. if Item_17_ID == 0:
  2458. self.Item_17_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2459.  
  2460. if Item_18_ID == 0:
  2461. self.Item_18_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2462.  
  2463. if Item_19_ID == 0:
  2464. self.Item_19_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2465.  
  2466. if Item_20_ID == 0:
  2467. self.Item_20_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2468.  
  2469. if Item_21_ID == 0:
  2470. self.Item_21_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2471.  
  2472. if Item_22_ID == 0:
  2473. self.Item_22_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2474.  
  2475. if Item_23_ID == 0:
  2476. self.Item_23_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2477.  
  2478. if Item_24_ID == 0:
  2479. self.Item_24_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2480.  
  2481. if Item_25_ID == 0:
  2482. self.Item_25_Icon.LoadImage("d:/ymir work/ui/public/Slot_Base.sub")
  2483.  
  2484. ################################### Save func #########################################
  2485.  
  2486. def Save_func(self):
  2487.  
  2488. global Item_1_ID
  2489. global Item_2_ID
  2490. global Item_3_ID
  2491. global Item_4_ID
  2492. global Item_5_ID
  2493. global Item_6_ID
  2494. global Item_7_ID
  2495. global Item_8_ID
  2496. global Item_9_ID
  2497. global Item_10_ID
  2498. global Item_11_ID
  2499. global Item_12_ID
  2500. global Item_13_ID
  2501. global Item_14_ID
  2502. global Item_15_ID
  2503. global Item_16_ID
  2504. global Item_17_ID
  2505. global Item_18_ID
  2506. global Item_19_ID
  2507. global Item_20_ID
  2508. global Item_21_ID
  2509. global Item_22_ID
  2510. global Item_23_ID
  2511. global Item_24_ID
  2512. global Item_25_ID
  2513.  
  2514. global Item_1_Icon
  2515. global Item_2_Icon
  2516. global Item_3_Icon
  2517. global Item_4_Icon
  2518. global Item_5_Icon
  2519. global Item_6_Icon
  2520. global Item_7_Icon
  2521. global Item_8_Icon
  2522. global Item_9_Icon
  2523. global Item_10_Icon
  2524. global Item_11_Icon
  2525. global Item_12_Icon
  2526. global Item_13_Icon
  2527. global Item_14_Icon
  2528. global Item_15_Icon
  2529. global Item_16_Icon
  2530. global Item_17_Icon
  2531. global Item_18_Icon
  2532. global Item_19_Icon
  2533. global Item_20_Icon
  2534. global Item_21_Icon
  2535. global Item_22_Icon
  2536. global Item_23_Icon
  2537. global Item_24_Icon
  2538. global Item_25_Icon
  2539.  
  2540. global Use_Item_Delay_ok
  2541.  
  2542. global Mobber_ID
  2543. global Mobber_Icon
  2544. global Mobber_Mode
  2545. global Mobber_Delay
  2546.  
  2547. global Poty_1_ID
  2548. global Poty_1_Icon
  2549. global Poty_2_ID
  2550. global Poty_2_Icon
  2551.  
  2552. open('Config.cfg', 'w').write('%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s' % (Use_Item_Delay_ok, Item_1_ID, Item_1_Icon, Item_2_ID, Item_2_Icon, Item_3_ID, Item_3_Icon, Item_4_ID, Item_4_Icon, Item_5_ID, Item_5_Icon, Item_6_ID, Item_6_Icon, Item_7_ID, Item_7_Icon, Item_8_ID, Item_8_Icon, Item_9_ID, Item_9_Icon, Item_10_ID, Item_10_Icon, Item_11_ID, Item_11_Icon, Item_12_ID, Item_12_Icon, Item_13_ID, Item_13_Icon, Item_14_ID, Item_14_Icon, Item_15_ID, Item_15_Icon, Item_16_ID, Item_16_Icon, Item_17_ID, Item_17_Icon, Item_18_ID, Item_18_Icon, Item_19_ID, Item_19_Icon, Item_20_ID, Item_20_Icon, Item_21_ID, Item_21_Icon, Item_22_ID, Item_22_Icon, Item_23_ID, Item_23_Icon, Item_24_ID, Item_24_Icon, Item_25_ID, Item_25_Icon, Mobber_ID, Mobber_Icon, Mobber_Mode, Mobber_Delay, Poty_1_ID, Poty_1_Icon, Poty_2_ID, Poty_2_Icon))
  2553.  
  2554. # chat.AppendChat(chat.CHAT_TYPE_INFO, "Pomyślnie zapisano ustawienia!")
  2555.  
  2556. ################################### Load func #########################################
  2557.  
  2558. def Load_func(self):
  2559.  
  2560. global Item_1_ID
  2561. global Item_2_ID
  2562. global Item_3_ID
  2563. global Item_4_ID
  2564. global Item_5_ID
  2565. global Item_6_ID
  2566. global Item_7_ID
  2567. global Item_8_ID
  2568. global Item_9_ID
  2569. global Item_10_ID
  2570. global Item_11_ID
  2571. global Item_12_ID
  2572. global Item_13_ID
  2573. global Item_14_ID
  2574. global Item_15_ID
  2575. global Item_16_ID
  2576. global Item_17_ID
  2577. global Item_18_ID
  2578. global Item_19_ID
  2579. global Item_20_ID
  2580. global Item_21_ID
  2581. global Item_22_ID
  2582. global Item_23_ID
  2583. global Item_24_ID
  2584. global Item_25_ID
  2585.  
  2586. global Item_1_Icon
  2587. global Item_2_Icon
  2588. global Item_3_Icon
  2589. global Item_4_Icon
  2590. global Item_5_Icon
  2591. global Item_6_Icon
  2592. global Item_7_Icon
  2593. global Item_8_Icon
  2594. global Item_9_Icon
  2595. global Item_10_Icon
  2596. global Item_11_Icon
  2597. global Item_12_Icon
  2598. global Item_13_Icon
  2599. global Item_14_Icon
  2600. global Item_15_Icon
  2601. global Item_16_Icon
  2602. global Item_17_Icon
  2603. global Item_18_Icon
  2604. global Item_19_Icon
  2605. global Item_20_Icon
  2606. global Item_21_Icon
  2607. global Item_22_Icon
  2608. global Item_23_Icon
  2609. global Item_24_Icon
  2610. global Item_25_Icon
  2611.  
  2612. global Use_Item_Delay_ok
  2613.  
  2614. global Mobber_ID
  2615. global Mobber_Icon
  2616. global Mobber_Mode
  2617. global Mobber_Delay
  2618.  
  2619. global Poty_1_ID
  2620. global Poty_1_Icon
  2621. global Poty_2_ID
  2622. global Poty_2_Icon
  2623.  
  2624. if os.path.exists("Config.cfg"):
  2625. Options_Load = open("Config.cfg", "r").read().split()
  2626.  
  2627. Use_Item_Delay_ok = Options_Load[0]
  2628.  
  2629. Item_1_ID = Options_Load[1]
  2630. Item_1_Icon = Options_Load[2]
  2631. self.Item_1_Icon.LoadImage(str(Options_Load[2]))
  2632.  
  2633. chat.AppendChat(chat.CHAT_TYPE_INFO, str(Options_Load[2]))
  2634.  
  2635. Item_2_ID = Options_Load[3]
  2636. Item_2_Icon = Options_Load[4]
  2637. self.Item_2_Icon.LoadImage(Options_Load[4])
  2638.  
  2639. Item_3_ID = Options_Load[5]
  2640. Item_3_Icon = Options_Load[6]
  2641. self.Item_3_Icon.LoadImage(Options_Load[6])
  2642.  
  2643. Item_4_ID = Options_Load[7]
  2644. Item_4_Icon = Options_Load[8]
  2645. self.Item_4_Icon.LoadImage(Options_Load[8])
  2646.  
  2647. Item_5_ID = Options_Load[9]
  2648. Item_5_Icon = Options_Load[10]
  2649. self.Item_5_Icon.LoadImage(Options_Load[10])
  2650.  
  2651. Item_6_ID = Options_Load[11]
  2652. Item_6_Icon = Options_Load[12]
  2653. self.Item_6_Icon.LoadImage(Options_Load[12])
  2654.  
  2655. Item_7_ID = Options_Load[13]
  2656. Item_7_Icon = Options_Load[14]
  2657. self.Item_7_Icon.LoadImage(Options_Load[14])
  2658.  
  2659. Item_8_ID = Options_Load[15]
  2660. Item_8_Icon = Options_Load[16]
  2661. self.Item_8_Icon.LoadImage(Options_Load[16])
  2662.  
  2663. Item_9_ID = Options_Load[17]
  2664. Item_9_Icon = Options_Load[18]
  2665. self.Item_9_Icon.LoadImage(Options_Load[18])
  2666.  
  2667. Item_10_ID = Options_Load[19]
  2668. Item_10_Icon = Options_Load[20]
  2669. self.Item_10_Icon.LoadImage(Options_Load[20])
  2670.  
  2671. Item_11_ID = Options_Load[21]
  2672. Item_11_Icon = Options_Load[22]
  2673. self.Item_11_Icon.LoadImage(Options_Load[22])
  2674.  
  2675. Item_12_ID = Options_Load[23]
  2676. Item_12_Icon = Options_Load[24]
  2677. self.Item_12_Icon.LoadImage(Options_Load[24])
  2678.  
  2679. Item_13_ID = Options_Load[25]
  2680. Item_13_Icon = Options_Load[26]
  2681. self.Item_13_Icon.LoadImage(Options_Load[26])
  2682.  
  2683. Item_14_ID = Options_Load[27]
  2684. Item_14_Icon = Options_Load[28]
  2685. self.Item_14_Icon.LoadImage(Options_Load[28])
  2686.  
  2687. Item_15_ID = Options_Load[29]
  2688. Item_15_Icon = Options_Load[30]
  2689. self.Item_15_Icon.LoadImage(Options_Load[30])
  2690.  
  2691. Item_16_ID = Options_Load[31]
  2692. Item_16_Icon = Options_Load[32]
  2693. self.Item_16_Icon.LoadImage(Options_Load[32])
  2694.  
  2695. Item_17_ID = Options_Load[33]
  2696. Item_17_Icon = Options_Load[34]
  2697. self.Item_17_Icon.LoadImage(Options_Load[34])
  2698.  
  2699. Item_18_ID = Options_Load[35]
  2700. Item_18_Icon = Options_Load[36]
  2701. self.Item_18_Icon.LoadImage(Options_Load[36])
  2702.  
  2703. Item_19_ID = Options_Load[37]
  2704. Item_19_Icon = Options_Load[38]
  2705. self.Item_19_Icon.LoadImage(Options_Load[38])
  2706.  
  2707. Item_20_ID = Options_Load[39]
  2708. Item_20_Icon = Options_Load[40]
  2709. self.Item_20_Icon.LoadImage(Options_Load[40])
  2710.  
  2711. Item_21_ID = Options_Load[41]
  2712. Item_21_Icon = Options_Load[42]
  2713. self.Item_21_Icon.LoadImage(Options_Load[42])
  2714.  
  2715. Item_22_ID = Options_Load[43]
  2716. Item_22_Icon = Options_Load[44]
  2717. self.Item_22_Icon.LoadImage(Options_Load[44])
  2718.  
  2719. Item_23_ID = Options_Load[45]
  2720. Item_23_Icon = Options_Load[46]
  2721. self.Item_23_Icon.LoadImage(Options_Load[46])
  2722.  
  2723. Item_24_ID = Options_Load[47]
  2724. Item_24_Icon = Options_Load[48]
  2725. self.Item_24_Icon.LoadImage(Options_Load[48])
  2726.  
  2727. Item_25_ID = Options_Load[49]
  2728. Item_25_Icon = Options_Load[50]
  2729. self.Item_25_Icon.LoadImage(Options_Load[50])
  2730.  
  2731. ### Mobber ###
  2732.  
  2733. Mobber_ID = Options_Load[51]
  2734. Mobber_Icon = Options_Load[52]
  2735. self.Item_Mobber_Slot.LoadImage(str(Options_Load[52]))
  2736. self.Mobber_HorizontalBar_Text.SetText("Mobber, ID - " + str(Options_Load[51]))
  2737.  
  2738. Mobber_Mode = Options_Load[53]
  2739.  
  2740. # if Options_Load[53] == 1:
  2741. # self.Mobber_Mode_ComboBox.InsertItem("Pelerynki")
  2742. # else:
  2743. # self.Mobber_Mode_ComboBox.InsertItem("1_Slot")
  2744.  
  2745. Mobber_Delay = Options_Load[54]
  2746. self.Mobber_Delay_EditLine.SetText(str(Options_Load[54]))
  2747.  
  2748. ### Poty ###
  2749.  
  2750. Poty_1_ID = Options_Load[55]
  2751. self.Poty_1_Text.SetText(str(Options_Load[55]))
  2752. self.Poty_1_Text.SetPosition(64, 204)
  2753.  
  2754. Poty_1_Icon = Options_Load[56]
  2755. self.Item_Poty_1_Slot.LoadImage(str(Options_Load[56]))
  2756.  
  2757. Poty_2_ID = Options_Load[57]
  2758. self.Poty_2_Text.SetText(str(Options_Load[57]))
  2759. self.Poty_2_Text.SetPosition(96, 204)
  2760.  
  2761. Poty_2_Icon = Options_Load[58]
  2762. self.Item_Poty_2_Slot.LoadImage(str(Options_Load[58]))
  2763.  
  2764.  
  2765.  
  2766.  
  2767. chat.AppendChat(chat.CHAT_TYPE_INFO, "Mini MultiHack by ZAHON")
  2768.  
  2769. def __BuildKeyDict(self):
  2770. onPressKeyDict = {}
  2771. onPressKeyDict[app.DIK_F5] = lambda : self.OpenWindow()
  2772. self.onPressKeyDict = onPressKeyDict
  2773.  
  2774. def OnKeyDown(self, key):
  2775. try:
  2776. self.onPressKeyDict[key]()
  2777. except KeyError:
  2778. pass
  2779. except:
  2780. raise
  2781. return TRUE
  2782.  
  2783. def OpenWindow(self):
  2784. if self.Board.IsShow():
  2785. self.Board.Hide()
  2786. else:
  2787. self.Board.Show()
  2788.  
  2789. def Close(self):
  2790. self.Save_func()
  2791. self.Board.Hide()
  2792.  
  2793. def About_Close(self):
  2794. self.About.Hide()
  2795.  
  2796. class WaitingDialog(ui.ScriptWindow):
  2797.  
  2798. def __init__(self):
  2799. ui.ScriptWindow.__init__(self)
  2800. self.eventTimeOver = lambda *arg: None
  2801. self.eventExit = lambda *arg: None
  2802.  
  2803. def __del__(self):
  2804. ui.ScriptWindow.__del__(self)
  2805.  
  2806. def Open(self, waitTime):
  2807. curTime = time.clock()
  2808. self.endTime = curTime + waitTime
  2809.  
  2810. self.Show()
  2811.  
  2812. def Close(self):
  2813. self.Hide()
  2814.  
  2815. def Destroy(self):
  2816. self.Hide()
  2817.  
  2818. def SAFE_SetTimeOverEvent(self, event):
  2819. self.eventTimeOver = ui.__mem_func__(event)
  2820.  
  2821. def SAFE_SetExitEvent(self, event):
  2822. self.eventExit = ui.__mem_func__(event)
  2823.  
  2824.  
  2825. def OnUpdate(self):
  2826. lastTime = max(0, self.endTime - time.clock())
  2827. if 0 == lastTime:
  2828. self.Close()
  2829. self.eventTimeOver()
  2830.  
  2831. else:
  2832. return
  2833.  
  2834. class Component:
  2835. def Button(self, parent, buttonName, tooltipText, x, y, func, UpVisual, OverVisual, DownVisual):
  2836. button = ui.Button()
  2837. if parent != None:
  2838. button.SetParent(parent)
  2839. button.SetPosition(x, y)
  2840. button.SetUpVisual(UpVisual)
  2841. button.SetOverVisual(OverVisual)
  2842. button.SetDownVisual(DownVisual)
  2843. button.SetText(buttonName)
  2844. button.SetToolTipText(tooltipText)
  2845. button.Show()
  2846. button.SetEvent(func)
  2847. return button
  2848.  
  2849. def ButtonHide(self, parent, buttonName, tooltipText, x, y, func, UpVisual, OverVisual, DownVisual):
  2850. button = ui.Button()
  2851. if parent != None:
  2852. button.SetParent(parent)
  2853. button.SetPosition(x, y)
  2854. button.SetUpVisual(UpVisual)
  2855. button.SetOverVisual(OverVisual)
  2856. button.SetDownVisual(DownVisual)
  2857. button.SetText(buttonName)
  2858. button.SetToolTipText(tooltipText)
  2859. button.Hide()
  2860. button.SetEvent(func)
  2861. return button
  2862.  
  2863. def ToggleButton(self, parent, buttonName, tooltipText, x, y, funcUp, funcDown, UpVisual, OverVisual, DownVisual):
  2864. button = ui.ToggleButton()
  2865. if parent != None:
  2866. button.SetParent(parent)
  2867. button.SetPosition(x, y)
  2868. button.SetUpVisual(UpVisual)
  2869. button.SetOverVisual(OverVisual)
  2870. button.SetDownVisual(DownVisual)
  2871. button.SetText(buttonName)
  2872. button.SetToolTipText(tooltipText)
  2873. button.Show()
  2874. button.SetToggleUpEvent(funcUp)
  2875. button.SetToggleDownEvent(funcDown)
  2876. return button
  2877.  
  2878. def EditLine(self, parent, editlineText, x, y, width, heigh, max):
  2879. SlotBar = ui.SlotBar()
  2880. if parent != None:
  2881. SlotBar.SetParent(parent)
  2882. SlotBar.SetSize(width, heigh)
  2883. SlotBar.SetPosition(x, y)
  2884. SlotBar.Show()
  2885. Value = ui.EditLine()
  2886. Value.SetParent(SlotBar)
  2887. Value.SetSize(width, heigh)
  2888. Value.SetPosition(1, 1)
  2889. Value.SetMax(max)
  2890. Value.SetLimitWidth(width)
  2891. Value.SetMultiLine()
  2892. Value.SetText(editlineText)
  2893. Value.Show()
  2894. return SlotBar, Value
  2895.  
  2896. def TextLine(self, parent, textlineText, x, y, color):
  2897. textline = ui.TextLine()
  2898. if parent != None:
  2899. textline.SetParent(parent)
  2900. textline.SetPosition(x, y)
  2901. if color != None:
  2902. textline.SetFontColor(color[0], color[1], color[2])
  2903. textline.SetText(textlineText)
  2904. textline.Show()
  2905. return textline
  2906.  
  2907. def EditLineHide(self, parent, editlineText, x, y, width, heigh, max):
  2908. SlotBarHide = ui.SlotBar()
  2909. if parent != None:
  2910. SlotBarHide.SetParent(parent)
  2911. SlotBarHide.SetSize(width, heigh)
  2912. SlotBarHide.SetPosition(x, y)
  2913. SlotBarHide.Hide()
  2914. Value = ui.EditLine()
  2915. Value.SetParent(SlotBarHide)
  2916. Value.SetSize(width, heigh)
  2917. Value.SetPosition(1, 1)
  2918. Value.SetMax(max)
  2919. Value.SetLimitWidth(width)
  2920. Value.SetMultiLine()
  2921. Value.SetText(editlineText)
  2922. Value.Show()
  2923. return SlotBarHide, Value
  2924.  
  2925. def TextLineHide(self, parent, textlineText, x, y, color):
  2926. textline = ui.TextLine()
  2927. if parent != None:
  2928. textline.SetParent(parent)
  2929. textline.SetPosition(x, y)
  2930. if color != None:
  2931. textline.SetFontColor(color[0], color[1], color[2])
  2932. textline.SetText(textlineText)
  2933. textline.Hide()
  2934. return textline
  2935.  
  2936. def RGB(self, r, g, b):
  2937. return (r*255, g*255, b*255)
  2938.  
  2939. def SliderBar(self, parent, sliderPos, func, x, y):
  2940. Slider = ui.SliderBar()
  2941. if parent != None:
  2942. Slider.SetParent(parent)
  2943. Slider.SetPosition(x, y)
  2944. Slider.SetSliderPos(sliderPos / 100)
  2945. Slider.Show()
  2946. Slider.SetEvent(func)
  2947. return Slider
  2948.  
  2949. def ExpandedImage(self, parent, x, y, img):
  2950. image = ui.ExpandedImageBox()
  2951. if parent != None:
  2952. image.SetParent(parent)
  2953. image.SetPosition(x, y)
  2954. image.LoadImage(img)
  2955. image.Show()
  2956. return image
  2957.  
  2958. def ComboBox(self, parent, text, x, y, width):
  2959. combo = ui.ComboBox()
  2960. if parent != None:
  2961. combo.SetParent(parent)
  2962. combo.SetPosition(x, y)
  2963. combo.SetSize(width, 15)
  2964. combo.SetCurrentItem(text)
  2965. combo.Show()
  2966. return combo
  2967.  
  2968. def ComboBoxHide(self, parent, text, x, y, width):
  2969. combo = ui.ComboBox()
  2970. if parent != None:
  2971. combo.SetParent(parent)
  2972. combo.SetPosition(x, y)
  2973. combo.SetSize(width, 15)
  2974. combo.SetCurrentItem(text)
  2975. combo.Hide()
  2976. return combo
  2977.  
  2978. def ThinBoard(self, parent, moveable, x, y, width, heigh, center):
  2979. thin = ui.ThinBoard()
  2980. if parent != None:
  2981. thin.SetParent(parent)
  2982. if moveable == TRUE:
  2983. thin.AddFlag('movable')
  2984. thin.AddFlag('float')
  2985. thin.SetSize(width, heigh)
  2986. thin.SetPosition(x, y)
  2987. if center == TRUE:
  2988. thin.SetCenterPosition()
  2989. thin.Show()
  2990. return thin
  2991.  
  2992. def ThinBoardHide(self, parent, moveable, x, y, width, heigh, center):
  2993. thin = ui.ThinBoard()
  2994. if parent != None:
  2995. thin.SetParent(parent)
  2996. if moveable == TRUE:
  2997. thin.AddFlag('movable')
  2998. thin.AddFlag('float')
  2999. thin.SetSize(width, heigh)
  3000. thin.SetPosition(x, y)
  3001. if center == TRUE:
  3002. thin.SetCenterPosition()
  3003. thin.Hide()
  3004. return thin
  3005.  
  3006. def Gauge(self, parent, width, color, x, y):
  3007. gauge = ui.Gauge()
  3008. if parent != None:
  3009. gauge.SetParent(parent)
  3010. gauge.SetPosition(x, y)
  3011. gauge.MakeGauge(width, color)
  3012. gauge.Show()
  3013. return gauge
  3014.  
  3015. def ListBoxEx(self, parent, x, y, width, heigh):
  3016. bar = ui.Bar()
  3017. if parent != None:
  3018. bar.SetParent(parent)
  3019. bar.SetPosition(x, y)
  3020. bar.SetSize(width, heigh)
  3021. bar.SetColor(0x77000000)
  3022. bar.Show()
  3023. ListBox=ui.ListBoxEx()
  3024. ListBox.SetParent(bar)
  3025. ListBox.SetPosition(0, 0)
  3026. ListBox.SetSize(width, heigh)
  3027. ListBox.Show()
  3028. scroll = ui.ScrollBar()
  3029. scroll.SetParent(ListBox)
  3030. scroll.SetPosition(width-15, 0)
  3031. scroll.SetScrollBarSize(heigh)
  3032. scroll.Show()
  3033. ListBox.SetScrollBar(scroll)
  3034. return bar, ListBox
  3035.  
  3036. def HorizontalBar(self, parent, x, y, Create):
  3037. horizontalBar = ui.HorizontalBar()
  3038. if parent != None:
  3039. horizontalBar.SetParent(parent)
  3040. horizontalBar.SetPosition(x, y)
  3041. horizontalBar.Create(Create)
  3042. horizontalBar.Show()
  3043. return horizontalBar
  3044.  
  3045. def TextLine_SetPackedFontColor(self, parent, textlineText, x, y, color):
  3046. TextLine_SetPackedFontColor = ui.TextLine()
  3047. if parent != None:
  3048. TextLine_SetPackedFontColor.SetParent(parent)
  3049. TextLine_SetPackedFontColor.SetPosition(x, y)
  3050. TextLine_SetPackedFontColor.SetPackedFontColor(color)
  3051. TextLine_SetPackedFontColor.SetText(textlineText)
  3052. TextLine_SetPackedFontColor.Show()
  3053. return TextLine_SetPackedFontColor
  3054.  
  3055. def HorizontalBarHide(self, parent, x, y, Create):
  3056. horizontalBar = ui.HorizontalBar()
  3057. if parent != None:
  3058. horizontalBar.SetParent(parent)
  3059. horizontalBar.SetPosition(x, y)
  3060. horizontalBar.Create(Create)
  3061. horizontalBar.Hide()
  3062. return horizontalBar
  3063.  
  3064. def TextLine_SetPackedFontColorHide(self, parent, textlineText, x, y, color):
  3065. TextLine_SetPackedFontColor = ui.TextLine()
  3066. if parent != None:
  3067. TextLine_SetPackedFontColor.SetParent(parent)
  3068. TextLine_SetPackedFontColor.SetPosition(x, y)
  3069. TextLine_SetPackedFontColor.SetPackedFontColor(color)
  3070. TextLine_SetPackedFontColor.SetText(textlineText)
  3071. TextLine_SetPackedFontColor.Hide()
  3072. return TextLine_SetPackedFontColor
  3073.  
  3074. def GetCurrentText(self):
  3075. return self.textLine.GetText()
  3076. def OnSelectItem(self, index, name):
  3077. self.SetCurrentItem(name)
  3078. self.CloseListBox()
  3079. self.event()
  3080. ui.ComboBox.GetCurrentText = GetCurrentText
  3081. ui.ComboBox.OnSelectItem = OnSelectItem
  3082.  
  3083. class Item(ui.ListBoxEx.Item):
  3084. def __init__(self, text):
  3085. ui.ListBoxEx.Item.__init__(self)
  3086. self.canLoad=0
  3087. self.text=text
  3088. self.textLine=self.__CreateTextLine(text[:50])
  3089. def __del__(self):
  3090. ui.ListBoxEx.Item.__del__(self)
  3091. def GetText(self):
  3092. return self.text
  3093. def SetSize(self, width, height):
  3094. ui.ListBoxEx.Item.SetSize(self, 5*len(self.textLine.GetText()) + 4, height)
  3095. def __CreateTextLine(self, text):
  3096. textLine=ui.TextLine()
  3097. textLine.SetParent(self)
  3098. textLine.SetPosition(0, 0)
  3099. textLine.SetText(text)
  3100. textLine.Show()
  3101. return textLine
  3102.  
  3103.  
  3104.  
  3105. Mini_MH().Show()
Advertisement
Add Comment
Please, Sign In to add comment