Guest User

asdgds

a guest
Apr 22nd, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 77.15 KB | None | 0 0
  1. I have a phyton code of switchbot and i need to add in the list of bonusses Rezistenta foc ( Fire resistance) and i don't know how to do that because i don't know phyton any more . Please help me !
  2.  
  3. import ui
  4. import snd
  5. import systemSetting
  6. import net
  7. import chat
  8. import app
  9. import locale
  10. import chrmgr
  11. import player
  12. import chr
  13. import game
  14. import background
  15. import uiPhaseCurtain
  16. import interfaceModule
  17. import shop
  18. import uiSwitchBonus
  19.  
  20. class OptionDialog(ui.ScriptWindow):
  21.  
  22. def __init__(self):
  23. ui.ScriptWindow.__init__(self)
  24. self.__Initialize()
  25. self.__Load()
  26. self.curtain = uiPhaseCurtain.PhaseCurtain()
  27. self.curtain.speed = 0.01
  28. self.curtain.Hide()
  29. race = net.GetMainActorRace()
  30. if race != 1000:
  31. self.bonus0.InsertItem(1, "Max TP")
  32. self.bonus0.InsertItem(2, "Aparare Sabie")
  33. self.bonus0.InsertItem(3, "Aparare 2 Maini")
  34. self.bonus0.InsertItem(4, "Aparare Pumnal")
  35. self.bonus0.InsertItem(5, "Aparare Clopot")
  36. self.bonus0.InsertItem(6, "Aparare Evantai")
  37. self.bonus0.InsertItem(7, "Rez Sageti")
  38. self.bonus0.InsertItem(8, "Rez Magie")
  39. self.bonus0.InsertItem(9, "Vitalitate")
  40. self.bonus0.InsertItem(10, "Inteligenta")
  41. self.bonus0.InsertItem(11, "Tarie")
  42. self.bonus0.InsertItem(12, "Dex")
  43. self.bonus0.InsertItem(13, "Valoarea atacului")
  44. self.bonus0.InsertItem(14, "Paguba Medie")
  45. self.bonus0.InsertItem(15, "Paguba Competenta")
  46. self.bonus0.InsertItem(16, "Viteza de atac")
  47. self.bonus0.InsertItem(17, "Viteza de miscare")
  48. self.bonus0.InsertItem(18, "Viteza farmecului")
  49. self.bonus0.InsertItem(19, "Regenerare PV")
  50. self.bonus0.InsertItem(20, "Sansa de otravire")
  51. self.bonus0.InsertItem(21, "Sansa necunostintei")
  52. self.bonus0.InsertItem(22, "Sansa unei lovituri critice")
  53. self.bonus0.InsertItem(23, "Sansa unei lovituri patrunzatoare")
  54. self.bonus0.InsertItem(24, "Tare Impotriva semi oamenilor")
  55. self.bonus0.InsertItem(25, "Tare Impotriva vampirilor")
  56. self.bonus0.InsertItem(26, "Tare Impotriva diavolului")
  57. self.bonus0.InsertItem(27, "Imun la necunostinta")
  58. self.bonus0.InsertItem(28, "Imun la incetinire")
  59. self.bonus0.InsertItem(29, "Sansa de a bloca atacul corporal")
  60. self.bonus0.InsertItem(30, "Sansa de a evita atacul cu sageti")
  61. self.bonus0.InsertItem(31, "Sansa de a reflecta atacul corporal")
  62. self.bonus0.InsertItem(32, "Rezistenta la otrava")
  63. self.bonus0.InsertItem(33, "Exp-Bonus")
  64. self.bonus0.InsertItem(34, "Yang drop")
  65. self.bonus0.InsertItem(35, "Item drop")
  66. else:
  67. self.chooseBonus0.SetText("Niciun Bonus Disponibil.")
  68.  
  69. def __del__(self):
  70. ui.ScriptWindow.__del__(self)
  71. print " -------------------------------------- DELETE GAME OPTION DIALOG"
  72.  
  73. def __Initialize(self):
  74. self.titleBar = 0
  75.  
  76. def Destroy(self):
  77. self.ClearDictionary()
  78.  
  79. self.__Initialize()
  80. print " -------------------------------------- DESTROY GAME OPTION DIALOG"
  81.  
  82. def __Load_LoadScript(self, fileName):
  83. try:
  84. pyScriptLoader = ui.PythonScriptLoader()
  85. pyScriptLoader.LoadScriptFile(self, fileName)
  86. except:
  87. import exception
  88. exception.Abort("OptionDialog.__Load_LoadScript")
  89.  
  90. def __Load_BindObject(self):
  91. try:
  92. GetObject = self.GetChild
  93. self.titleBar = GetObject("titlebar")
  94. self.setbonus0 = GetObject("Ok_button")
  95. self.bonus0 = GetObject("Bonus0_List")
  96. self.chooseBonus0 = GetObject("ChooseBonus0")
  97. self.cancel = GetObject("stop_button")
  98. except:
  99. import exception
  100. exception.Abort("OptionDialog.__Load_BindObject")
  101.  
  102. def __Load(self):
  103. self.__Load_LoadScript("UIscript/boniliste.py")
  104.  
  105. self.__Load_BindObject()
  106.  
  107. self.SetCenterPosition()
  108.  
  109. self.titleBar.SetCloseEvent(ui.__mem_func__(self.Close))
  110.  
  111. self.setbonus0.SetEvent(ui.__mem_func__(self.__Setbonus0))
  112. self.cancel.SetEvent(ui.__mem_func__(self.__Cancelbonus0))
  113.  
  114. def __Cancelbonus0(self):
  115. self.Hide()
  116.  
  117. def __Setbonus0(self):
  118. race = net.GetMainActorRace()
  119. group = net.GetMainActorSkillGroup()
  120. getIndex = self.bonus0.GetSelectedItem()
  121. if getIndex == 1 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  122. uiSwitchBonus.Bonus0 = 1
  123. uiSwitchBonus.Presswish0 = 0
  124. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Max. HP")
  125. elif getIndex == 1 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  126. uiSwitchBonus.Bonus1 = 1
  127. uiSwitchBonus.Presswish1 = 0
  128. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Max. HP")
  129. elif getIndex == 1 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  130. uiSwitchBonus.Bonus2 = 1
  131. uiSwitchBonus.Presswish2 = 0
  132. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Max. HP")
  133. elif getIndex == 1 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  134. uiSwitchBonus.Bonus3 = 1
  135. uiSwitchBonus.Presswish3 = 0
  136. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Max. HP")
  137. elif getIndex == 1 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  138. uiSwitchBonus.Bonus4 = 1
  139. uiSwitchBonus.Presswish4 = 0
  140. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Max. HP")
  141. elif getIndex == 1 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  142. uiSwitchBonus.Bonus0 = 1
  143. uiSwitchBonus.Presswish0 = 0
  144. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Max. HP")
  145. elif getIndex == 1 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  146. uiSwitchBonus.Presswish1 = 0
  147. uiSwitchBonus.Bonus1 = 1
  148. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Max. HP")
  149. elif getIndex == 1 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  150. uiSwitchBonus.Presswish2 = 0
  151. uiSwitchBonus.Bonus2 = 1
  152. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Max. HP")
  153. elif getIndex == 1 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  154. uiSwitchBonus.Presswish3 = 0
  155. uiSwitchBonus.Bonus3 = 1
  156. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Max. HP")
  157. elif getIndex == 1 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  158. uiSwitchBonus.Presswish4 = 0
  159. uiSwitchBonus.Bonus4 = 1
  160. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Max. HP")
  161. elif getIndex == 2 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  162. uiSwitchBonus.Bonus0 = 29
  163. uiSwitchBonus.Presswish0 = 0
  164. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Aparare Sabie")
  165. elif getIndex == 2 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  166. uiSwitchBonus.Bonus1 = 29
  167. uiSwitchBonus.Presswish1 = 0
  168. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Aparare Sabie")
  169. elif getIndex == 2 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  170. uiSwitchBonus.Bonus2 = 29
  171. uiSwitchBonus.Presswish2 = 0
  172. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Aparare Sabie")
  173. elif getIndex == 2 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  174. uiSwitchBonus.Bonus3 = 29
  175. uiSwitchBonus.Presswish3 = 0
  176. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Aparare Sabie")
  177. elif getIndex == 2 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  178. uiSwitchBonus.Bonus4 = 29
  179. uiSwitchBonus.Presswish4 = 0
  180. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Aparare Sabie")
  181. elif getIndex == 2 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  182. uiSwitchBonus.Bonus0 = 29
  183. uiSwitchBonus.Presswish0 = 0
  184. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Aparare Sabie")
  185. elif getIndex == 2 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  186. uiSwitchBonus.Presswish1 = 0
  187. uiSwitchBonus.Bonus1 = 29
  188. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Aparare Sabie")
  189. elif getIndex == 2 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  190. uiSwitchBonus.Presswish2 = 0
  191. uiSwitchBonus.Bonus2 = 29
  192. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Aparare Sabie")
  193. elif getIndex == 2 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  194. uiSwitchBonus.Presswish3 = 0
  195. uiSwitchBonus.Bonus3 = 29
  196. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Aparare Sabie")
  197. elif getIndex == 2 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  198. uiSwitchBonus.Presswish4 = 0
  199. uiSwitchBonus.Bonus4 = 29
  200. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Aparare Sabie")
  201. elif getIndex == 3 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  202. uiSwitchBonus.Bonus0 = 30
  203. uiSwitchBonus.Presswish0 = 0
  204. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Aparare 2 Maini")
  205. elif getIndex == 3 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  206. uiSwitchBonus.Bonus1 = 30
  207. uiSwitchBonus.Presswish1 = 0
  208. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Aparare 2 Maini")
  209. elif getIndex == 3 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  210. uiSwitchBonus.Bonus2 = 30
  211. uiSwitchBonus.Presswish2 = 0
  212. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Aparare 2 Maini")
  213. elif getIndex == 3 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  214. uiSwitchBonus.Bonus3 = 30
  215. uiSwitchBonus.Presswish3 = 0
  216. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Aparare 2 Maini")
  217. elif getIndex == 3 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  218. uiSwitchBonus.Bonus4 = 30
  219. uiSwitchBonus.Presswish4 = 0
  220. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Aparare 2 Maini")
  221. elif getIndex == 3 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  222. uiSwitchBonus.Bonus0 = 30
  223. uiSwitchBonus.Presswish0 = 0
  224. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Aparare 2 Maini")
  225. elif getIndex == 3 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  226. uiSwitchBonus.Presswish1 = 0
  227. uiSwitchBonus.Bonus1 = 30
  228. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Aparare 2 Maini")
  229. elif getIndex == 3 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  230. uiSwitchBonus.Presswish2 = 0
  231. uiSwitchBonus.Bonus2 = 30
  232. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Aparare 2 Maini")
  233. elif getIndex == 3 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  234. uiSwitchBonus.Presswish3 = 0
  235. uiSwitchBonus.Bonus3 = 30
  236. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Aparare 2 Maini")
  237. elif getIndex == 3 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  238. uiSwitchBonus.Presswish4 = 0
  239. uiSwitchBonus.Bonus4 = 30
  240. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Aparare 2 Maini")
  241. elif getIndex == 4 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  242. uiSwitchBonus.Bonus0 = 31
  243. uiSwitchBonus.Presswish0 = 0
  244. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Aparare Pumnal")
  245. elif getIndex == 4 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  246. uiSwitchBonus.Bonus1 = 31
  247. uiSwitchBonus.Presswish1 = 0
  248. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Aparare Pumnal")
  249. elif getIndex == 4 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  250. uiSwitchBonus.Bonus2 = 31
  251. uiSwitchBonus.Presswish2 = 0
  252. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Aparare Pumnal")
  253. elif getIndex == 4 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  254. uiSwitchBonus.Bonus3 = 31
  255. uiSwitchBonus.Presswish3 = 0
  256. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Aparare Pumnal")
  257. elif getIndex == 4 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  258. uiSwitchBonus.Bonus4 = 31
  259. uiSwitchBonus.Presswish4 = 0
  260. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Aparare Pumnal")
  261. elif getIndex == 4 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  262. uiSwitchBonus.Bonus0 = 31
  263. uiSwitchBonus.Presswish0 = 0
  264. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Aparare Pumnal")
  265. elif getIndex == 4 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  266. uiSwitchBonus.Presswish1 = 0
  267. uiSwitchBonus.Bonus1 = 31
  268. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Aparare Pumnal")
  269. elif getIndex == 4 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  270. uiSwitchBonus.Presswish2 = 0
  271. uiSwitchBonus.Bonus2 = 31
  272. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Aparare Pumnal")
  273. elif getIndex == 4 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  274. uiSwitchBonus.Presswish3 = 0
  275. uiSwitchBonus.Bonus3 = 31
  276. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Aparare Pumnal")
  277. elif getIndex == 4 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  278. uiSwitchBonus.Presswish4 = 0
  279. uiSwitchBonus.Bonus4 = 31
  280. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Aparare Pumnal")
  281. elif getIndex == 5 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  282. uiSwitchBonus.Bonus0 = 32
  283. uiSwitchBonus.Presswish0 = 0
  284. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Aparare Clopot")
  285. elif getIndex == 5 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  286. uiSwitchBonus.Bonus1 = 32
  287. uiSwitchBonus.Presswish1 = 0
  288. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Aparare Clopot")
  289. elif getIndex == 5 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  290. uiSwitchBonus.Bonus2 = 32
  291. uiSwitchBonus.Presswish2 = 0
  292. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Aparare Clopot")
  293. elif getIndex == 5 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  294. uiSwitchBonus.Bonus3 = 32
  295. uiSwitchBonus.Presswish3 = 0
  296. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Aparare Clopot")
  297. elif getIndex == 5 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  298. uiSwitchBonus.Bonus4 = 32
  299. uiSwitchBonus.Presswish4 = 0
  300. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Aparare Clopot")
  301. elif getIndex == 5 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  302. uiSwitchBonus.Bonus0 = 32
  303. uiSwitchBonus.Presswish0 = 0
  304. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Aparare Clopot")
  305. elif getIndex == 5 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  306. uiSwitchBonus.Presswish1 = 0
  307. uiSwitchBonus.Bonus1 = 32
  308. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Aparare Clopot")
  309. elif getIndex == 5 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  310. uiSwitchBonus.Presswish2 = 0
  311. uiSwitchBonus.Bonus2 = 32
  312. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Aparare Clopot")
  313. elif getIndex == 5 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  314. uiSwitchBonus.Presswish3 = 0
  315. uiSwitchBonus.Bonus3 = 32
  316. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Aparare Clopot")
  317. elif getIndex == 5 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  318. uiSwitchBonus.Presswish4 = 0
  319. uiSwitchBonus.Bonus4 = 32
  320. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Aparare Clopot")
  321. elif getIndex == 6 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  322. uiSwitchBonus.Bonus0 = 33
  323. uiSwitchBonus.Presswish0 = 0
  324. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Aparare Evantai")
  325. elif getIndex == 6 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  326. uiSwitchBonus.Bonus1 = 33
  327. uiSwitchBonus.Presswish1 = 0
  328. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Aparare Evantai")
  329. elif getIndex == 6 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  330. uiSwitchBonus.Bonus2 = 33
  331. uiSwitchBonus.Presswish2 = 0
  332. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Aparare Evantai")
  333. elif getIndex == 6 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  334. uiSwitchBonus.Bonus3 = 33
  335. uiSwitchBonus.Presswish3 = 0
  336. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Aparare Evantai")
  337. elif getIndex == 6 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  338. uiSwitchBonus.Bonus4 = 33
  339. uiSwitchBonus.Presswish4 = 0
  340. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Aparare Evantai")
  341. elif getIndex == 6 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  342. uiSwitchBonus.Bonus0 = 33
  343. uiSwitchBonus.Presswish0 = 0
  344. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Aparare Evantai")
  345. elif getIndex == 6 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  346. uiSwitchBonus.Presswish1 = 0
  347. uiSwitchBonus.Bonus1 = 33
  348. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Aparare Evantai")
  349. elif getIndex == 6 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  350. uiSwitchBonus.Presswish2 = 0
  351. uiSwitchBonus.Bonus2 = 33
  352. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Aparare Evantai")
  353. elif getIndex == 6 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  354. uiSwitchBonus.Presswish3 = 0
  355. uiSwitchBonus.Bonus3 = 33
  356. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Aparare Evantai")
  357. elif getIndex == 6 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  358. uiSwitchBonus.Presswish4 = 0
  359. uiSwitchBonus.Bonus4 = 33
  360. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Aparare Evantai")
  361. elif getIndex == 7 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  362. uiSwitchBonus.Bonus0 = 34
  363. uiSwitchBonus.Presswish0 = 0
  364. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Rez Sageti")
  365. elif getIndex == 7 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  366. uiSwitchBonus.Bonus1 = 34
  367. uiSwitchBonus.Presswish1 = 0
  368. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Rez Sageti")
  369. elif getIndex == 7 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  370. uiSwitchBonus.Bonus2 = 34
  371. uiSwitchBonus.Presswish2 = 0
  372. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Rez Sageti")
  373. elif getIndex == 7 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  374. uiSwitchBonus.Bonus3 = 34
  375. uiSwitchBonus.Presswish3 = 0
  376. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Rez Sageti")
  377. elif getIndex == 7 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  378. uiSwitchBonus.Bonus4 = 34
  379. uiSwitchBonus.Presswish4 = 0
  380. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Rez Sageti")
  381. elif getIndex == 7 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  382. uiSwitchBonus.Bonus0 = 34
  383. uiSwitchBonus.Presswish0 = 0
  384. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Rez Sageti")
  385. elif getIndex == 7 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  386. uiSwitchBonus.Presswish1 = 0
  387. uiSwitchBonus.Bonus1 = 34
  388. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Rez Sageti")
  389. elif getIndex == 7 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  390. uiSwitchBonus.Presswish2 = 0
  391. uiSwitchBonus.Bonus2 = 34
  392. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Rez Sageti")
  393. elif getIndex == 7 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  394. uiSwitchBonus.Presswish3 = 0
  395. uiSwitchBonus.Bonus3 = 34
  396. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Rez Sageti")
  397. elif getIndex == 7 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  398. uiSwitchBonus.Presswish4 = 0
  399. uiSwitchBonus.Bonus4 = 34
  400. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Rez Sageti")
  401. elif getIndex == 8 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  402. uiSwitchBonus.Bonus0 = 37
  403. uiSwitchBonus.Presswish0 = 0
  404. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Rez Magie")
  405. elif getIndex == 8 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  406. uiSwitchBonus.Bonus1 = 37
  407. uiSwitchBonus.Presswish1 = 0
  408. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Rez Magie")
  409. elif getIndex == 8 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  410. uiSwitchBonus.Bonus2 = 37
  411. uiSwitchBonus.Presswish2 = 0
  412. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Rez Magie")
  413. elif getIndex == 8 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  414. uiSwitchBonus.Bonus3 = 37
  415. uiSwitchBonus.Presswish3 = 0
  416. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Rez Magie")
  417. elif getIndex == 8 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  418. uiSwitchBonus.Bonus4 = 37
  419. uiSwitchBonus.Presswish4 = 0
  420. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Rez Magie")
  421. elif getIndex == 8 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  422. uiSwitchBonus.Bonus0 = 37
  423. uiSwitchBonus.Presswish0 = 0
  424. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Rez Magie")
  425. elif getIndex == 8 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  426. uiSwitchBonus.Presswish1 = 0
  427. uiSwitchBonus.Bonus1 = 37
  428. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Rez Magie")
  429. elif getIndex == 8 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  430. uiSwitchBonus.Presswish2 = 0
  431. uiSwitchBonus.Bonus2 = 37
  432. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Rez Magie")
  433. elif getIndex == 8 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  434. uiSwitchBonus.Presswish3 = 0
  435. uiSwitchBonus.Bonus3 = 37
  436. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Rez Magie")
  437. elif getIndex == 8 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  438. uiSwitchBonus.Presswish4 = 0
  439. uiSwitchBonus.Bonus4 = 37
  440. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Rez Magie")
  441. elif getIndex == 9 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  442. uiSwitchBonus.Bonus0 = 3
  443. uiSwitchBonus.Presswish0 = 0
  444. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Vitalitate")
  445. elif getIndex == 9 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  446. uiSwitchBonus.Bonus1 = 3
  447. uiSwitchBonus.Presswish1 = 0
  448. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Vitalitate")
  449. elif getIndex == 9 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  450. uiSwitchBonus.Bonus2 = 3
  451. uiSwitchBonus.Presswish2 = 0
  452. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Vitalitate")
  453. elif getIndex == 9 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  454. uiSwitchBonus.Bonus3 = 3
  455. uiSwitchBonus.Presswish3 = 0
  456. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Vitalitate")
  457. elif getIndex == 9 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  458. uiSwitchBonus.Bonus4 = 3
  459. uiSwitchBonus.Presswish4 = 0
  460. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Vitalitate")
  461. elif getIndex == 9 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  462. uiSwitchBonus.Bonus0 = 3
  463. uiSwitchBonus.Presswish0 = 0
  464. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Vitalitate")
  465. elif getIndex == 9 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  466. uiSwitchBonus.Presswish1 = 0
  467. uiSwitchBonus.Bonus1 = 3
  468. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Vitalitate")
  469. elif getIndex == 9 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  470. uiSwitchBonus.Presswish2 = 0
  471. uiSwitchBonus.Bonus2 = 3
  472. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Vitalitate")
  473. elif getIndex == 9 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  474. uiSwitchBonus.Presswish3 = 0
  475. uiSwitchBonus.Bonus3 = 3
  476. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Vitalitate")
  477. elif getIndex == 9 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  478. uiSwitchBonus.Presswish4 = 0
  479. uiSwitchBonus.Bonus4 = 3
  480. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Vitalitate")
  481. elif getIndex == 10 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  482. uiSwitchBonus.Bonus0 = 4
  483. uiSwitchBonus.Presswish0 = 0
  484. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Inteligenta")
  485. elif getIndex == 10 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  486. uiSwitchBonus.Bonus1 = 4
  487. uiSwitchBonus.Presswish1 = 0
  488. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Inteligenta")
  489. elif getIndex == 10 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  490. uiSwitchBonus.Bonus2 = 4
  491. uiSwitchBonus.Presswish2 = 0
  492. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Inteligenta")
  493. elif getIndex == 10 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  494. uiSwitchBonus.Bonus3 = 4
  495. uiSwitchBonus.Presswish3 = 0
  496. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Inteligenta")
  497. elif getIndex == 10 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  498. uiSwitchBonus.Bonus4 = 4
  499. uiSwitchBonus.Presswish4 = 0
  500. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Inteligenta")
  501. elif getIndex == 10 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  502. uiSwitchBonus.Bonus0 = 4
  503. uiSwitchBonus.Presswish0 = 0
  504. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Inteligenta")
  505. elif getIndex == 10 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  506. uiSwitchBonus.Presswish1 = 0
  507. uiSwitchBonus.Bonus1 = 4
  508. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Inteligenta")
  509. elif getIndex == 10 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  510. uiSwitchBonus.Presswish2 = 0
  511. uiSwitchBonus.Bonus2 = 4
  512. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Inteligenta")
  513. elif getIndex == 10 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  514. uiSwitchBonus.Presswish3 = 0
  515. uiSwitchBonus.Bonus3 = 4
  516. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Inteligenta")
  517. elif getIndex == 10 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  518. uiSwitchBonus.Presswish4 = 0
  519. uiSwitchBonus.Bonus4 = 4
  520. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Inteligenta")
  521. elif getIndex == 11 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  522. uiSwitchBonus.Bonus0 = 5
  523. uiSwitchBonus.Presswish0 = 0
  524. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Tarie")
  525. elif getIndex == 11 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  526. uiSwitchBonus.Bonus1 = 5
  527. uiSwitchBonus.Presswish1 = 0
  528. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Tarie")
  529. elif getIndex == 11 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  530. uiSwitchBonus.Bonus2 = 5
  531. uiSwitchBonus.Presswish2 = 0
  532. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Tarie")
  533. elif getIndex == 11 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  534. uiSwitchBonus.Bonus3 = 5
  535. uiSwitchBonus.Presswish3 = 0
  536. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Tarie")
  537. elif getIndex == 11 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  538. uiSwitchBonus.Bonus4 = 5
  539. uiSwitchBonus.Presswish4 = 0
  540. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Tarie")
  541. elif getIndex == 11 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  542. uiSwitchBonus.Bonus0 = 5
  543. uiSwitchBonus.Presswish0 = 0
  544. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Tarie")
  545. elif getIndex == 11 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  546. uiSwitchBonus.Presswish1 = 0
  547. uiSwitchBonus.Bonus1 = 5
  548. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Tarie")
  549. elif getIndex == 11 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  550. uiSwitchBonus.Presswish2 = 0
  551. uiSwitchBonus.Bonus2 = 5
  552. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Tarie")
  553. elif getIndex == 11 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  554. uiSwitchBonus.Presswish3 = 0
  555. uiSwitchBonus.Bonus3 = 5
  556. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Tarie")
  557. elif getIndex == 11 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  558. uiSwitchBonus.Presswish4 = 0
  559. uiSwitchBonus.Bonus4 = 5
  560. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Tarie")
  561. elif getIndex == 12 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  562. uiSwitchBonus.Bonus0 = 6
  563. uiSwitchBonus.Presswish0 = 0
  564. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Dex")
  565. elif getIndex == 12 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  566. uiSwitchBonus.Bonus1 = 6
  567. uiSwitchBonus.Presswish1 = 0
  568. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Dex")
  569. elif getIndex == 12 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  570. uiSwitchBonus.Bonus2 = 6
  571. uiSwitchBonus.Presswish2 = 0
  572. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Dex")
  573. elif getIndex == 12 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  574. uiSwitchBonus.Bonus3 = 6
  575. uiSwitchBonus.Presswish3 = 0
  576. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Dex")
  577. elif getIndex == 12 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  578. uiSwitchBonus.Bonus4 = 6
  579. uiSwitchBonus.Presswish4 = 0
  580. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Dex")
  581. elif getIndex == 12 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  582. uiSwitchBonus.Bonus0 = 6
  583. uiSwitchBonus.Presswish0 = 0
  584. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Dex")
  585. elif getIndex == 12 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  586. uiSwitchBonus.Presswish1 = 0
  587. uiSwitchBonus.Bonus1 = 6
  588. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Dex")
  589. elif getIndex == 12 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  590. uiSwitchBonus.Presswish2 = 0
  591. uiSwitchBonus.Bonus2 = 6
  592. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Dex")
  593. elif getIndex == 12 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  594. uiSwitchBonus.Presswish3 = 0
  595. uiSwitchBonus.Bonus3 = 6
  596. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Dex")
  597. elif getIndex == 12 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  598. uiSwitchBonus.Presswish4 = 0
  599. uiSwitchBonus.Bonus4 = 6
  600. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Dex")
  601. elif getIndex == 13 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  602. uiSwitchBonus.Bonus0 = 53
  603. uiSwitchBonus.Presswish0 = 0
  604. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Valoarea atacului")
  605. elif getIndex == 13 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  606. uiSwitchBonus.Bonus1 = 53
  607. uiSwitchBonus.Presswish1 = 0
  608. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Valoarea atacului")
  609. elif getIndex == 13 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  610. uiSwitchBonus.Bonus2 = 53
  611. uiSwitchBonus.Presswish2 = 0
  612. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Valoarea atacului")
  613. elif getIndex == 13 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  614. uiSwitchBonus.Bonus3 = 53
  615. uiSwitchBonus.Presswish3 = 0
  616. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Valoarea atacului")
  617. elif getIndex == 13 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  618. uiSwitchBonus.Bonus4 = 53
  619. uiSwitchBonus.Presswish4 = 0
  620. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Valoarea atacului")
  621. elif getIndex == 13 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  622. uiSwitchBonus.Bonus0 = 53
  623. uiSwitchBonus.Presswish0 = 0
  624. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Valoarea atacului")
  625. elif getIndex == 13 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  626. uiSwitchBonus.Presswish1 = 0
  627. uiSwitchBonus.Bonus1 = 53
  628. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Valoarea atacului")
  629. elif getIndex == 13 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  630. uiSwitchBonus.Presswish2 = 0
  631. uiSwitchBonus.Bonus2 = 53
  632. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Valoarea atacului")
  633. elif getIndex == 13 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  634. uiSwitchBonus.Presswish3 = 0
  635. uiSwitchBonus.Bonus3 = 53
  636. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Valoarea atacului")
  637. elif getIndex == 13 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  638. uiSwitchBonus.Presswish4 = 0
  639. uiSwitchBonus.Bonus4 = 53
  640. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Valoarea atacului")
  641. elif getIndex == 14 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  642. uiSwitchBonus.Bonus0 = 72
  643. uiSwitchBonus.Presswish0 = 0
  644. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Paguba Medie")
  645. elif getIndex == 14 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  646. uiSwitchBonus.Bonus1 = 72
  647. uiSwitchBonus.Presswish1 = 0
  648. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Paguba Medie")
  649. elif getIndex == 14 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  650. uiSwitchBonus.Bonus2 = 72
  651. uiSwitchBonus.Presswish2 = 0
  652. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Paguba Medie")
  653. elif getIndex == 14 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  654. uiSwitchBonus.Bonus3 = 72
  655. uiSwitchBonus.Presswish3 = 0
  656. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Paguba Medie")
  657. elif getIndex == 14 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  658. uiSwitchBonus.Bonus4 = 72
  659. uiSwitchBonus.Presswish4 = 0
  660. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Paguba Medie")
  661. elif getIndex == 14 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  662. uiSwitchBonus.Bonus0 = 72
  663. uiSwitchBonus.Presswish0 = 0
  664. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Paguba Medie")
  665. elif getIndex == 14 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  666. uiSwitchBonus.Presswish1 = 0
  667. uiSwitchBonus.Bonus1 = 72
  668. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Paguba Medie")
  669. elif getIndex == 14 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  670. uiSwitchBonus.Presswish2 = 0
  671. uiSwitchBonus.Bonus2 = 72
  672. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Paguba Medie")
  673. elif getIndex == 14 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  674. uiSwitchBonus.Presswish3 = 0
  675. uiSwitchBonus.Bonus3 = 72
  676. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Paguba Medie")
  677. elif getIndex == 14 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  678. uiSwitchBonus.Presswish4 = 0
  679. uiSwitchBonus.Bonus4 = 72
  680. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Paguba Medie")
  681. elif getIndex == 15 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  682. uiSwitchBonus.Bonus0 = 71
  683. uiSwitchBonus.Presswish0 = 0
  684. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Paguba Competenta")
  685. elif getIndex == 15 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  686. uiSwitchBonus.Bonus1 = 71
  687. uiSwitchBonus.Presswish1 = 0
  688. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Paguba Competenta")
  689. elif getIndex == 15 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  690. uiSwitchBonus.Bonus2 = 71
  691. uiSwitchBonus.Presswish2 = 0
  692. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Paguba Competenta")
  693. elif getIndex == 15 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  694. uiSwitchBonus.Bonus3 = 71
  695. uiSwitchBonus.Presswish3 = 0
  696. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Paguba Competenta")
  697. elif getIndex == 15 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  698. uiSwitchBonus.Bonus4 = 71
  699. uiSwitchBonus.Presswish4 = 0
  700. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Paguba Competenta")
  701. elif getIndex == 15 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  702. uiSwitchBonus.Bonus0 = 71
  703. uiSwitchBonus.Presswish0 = 0
  704. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Paguba Competenta")
  705. elif getIndex == 15 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  706. uiSwitchBonus.Presswish1 = 0
  707. uiSwitchBonus.Bonus1 = 71
  708. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Paguba Competenta")
  709. elif getIndex == 15 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  710. uiSwitchBonus.Presswish2 = 0
  711. uiSwitchBonus.Bonus2 = 71
  712. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Paguba Competenta")
  713. elif getIndex == 15 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  714. uiSwitchBonus.Presswish3 = 0
  715. uiSwitchBonus.Bonus3 = 71
  716. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Paguba Competenta")
  717. elif getIndex == 15 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  718. uiSwitchBonus.Presswish4 = 0
  719. uiSwitchBonus.Bonus4 = 71
  720. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Paguba Competenta")
  721. elif getIndex == 16 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  722. uiSwitchBonus.Bonus0 = 7
  723. uiSwitchBonus.Presswish0 = 0
  724. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Viteza de atac")
  725. elif getIndex == 16 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  726. uiSwitchBonus.Bonus1 = 7
  727. uiSwitchBonus.Presswish1 = 0
  728. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Viteza de atac")
  729. elif getIndex == 16 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  730. uiSwitchBonus.Bonus2 = 7
  731. uiSwitchBonus.Presswish2 = 0
  732. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Viteza de atac")
  733. elif getIndex == 16 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  734. uiSwitchBonus.Bonus3 = 7
  735. uiSwitchBonus.Presswish3 = 0
  736. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Viteza de atac")
  737. elif getIndex == 16 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  738. uiSwitchBonus.Bonus4 = 7
  739. uiSwitchBonus.Presswish4 = 0
  740. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Viteza de atac")
  741. elif getIndex == 16 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  742. uiSwitchBonus.Bonus0 = 7
  743. uiSwitchBonus.Presswish0 = 0
  744. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Viteza de atac")
  745. elif getIndex == 16 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  746. uiSwitchBonus.Presswish1 = 0
  747. uiSwitchBonus.Bonus1 = 7
  748. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Viteza de atac")
  749. elif getIndex == 16 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  750. uiSwitchBonus.Presswish2 = 0
  751. uiSwitchBonus.Bonus2 = 7
  752. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Viteza de atac")
  753. elif getIndex == 16 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  754. uiSwitchBonus.Presswish3 = 0
  755. uiSwitchBonus.Bonus3 = 7
  756. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Viteza de atac")
  757. elif getIndex == 16 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  758. uiSwitchBonus.Presswish4 = 0
  759. uiSwitchBonus.Bonus4 = 7
  760. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Viteza de atac")
  761. elif getIndex == 17 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  762. uiSwitchBonus.Bonus0 = 8
  763. uiSwitchBonus.Presswish0 = 0
  764. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Viteza de miscare")
  765. elif getIndex == 17 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  766. uiSwitchBonus.Bonus1 = 8
  767. uiSwitchBonus.Presswish1 = 0
  768. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Viteza de miscare")
  769. elif getIndex == 17 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  770. uiSwitchBonus.Bonus2 = 8
  771. uiSwitchBonus.Presswish2 = 0
  772. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Viteza de miscare")
  773. elif getIndex == 17 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  774. uiSwitchBonus.Bonus3 = 8
  775. uiSwitchBonus.Presswish3 = 0
  776. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Viteza de miscare")
  777. elif getIndex == 17 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  778. uiSwitchBonus.Bonus4 = 8
  779. uiSwitchBonus.Presswish4 = 0
  780. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Viteza de miscare")
  781. elif getIndex == 17 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  782. uiSwitchBonus.Bonus0 = 8
  783. uiSwitchBonus.Presswish0 = 0
  784. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Viteza de miscare")
  785. elif getIndex == 17 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  786. uiSwitchBonus.Presswish1 = 0
  787. uiSwitchBonus.Bonus1 = 8
  788. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Viteza de miscare")
  789. elif getIndex == 17 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  790. uiSwitchBonus.Presswish2 = 0
  791. uiSwitchBonus.Bonus2 = 8
  792. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Viteza de miscare")
  793. elif getIndex == 17 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  794. uiSwitchBonus.Presswish3 = 0
  795. uiSwitchBonus.Bonus3 = 8
  796. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Viteza de miscare")
  797. elif getIndex == 17 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  798. uiSwitchBonus.Presswish4 = 0
  799. uiSwitchBonus.Bonus4 = 8
  800. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Viteza de miscare")
  801. elif getIndex == 18 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  802. uiSwitchBonus.Bonus0 = 9
  803. uiSwitchBonus.Presswish0 = 0
  804. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Viteza farmecului")
  805. elif getIndex == 18 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  806. uiSwitchBonus.Bonus1 = 9
  807. uiSwitchBonus.Presswish1 = 0
  808. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Viteza farmecului")
  809. elif getIndex == 18 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  810. uiSwitchBonus.Bonus2 = 9
  811. uiSwitchBonus.Presswish2 = 0
  812. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Viteza farmecului")
  813. elif getIndex == 18 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  814. uiSwitchBonus.Bonus3 = 9
  815. uiSwitchBonus.Presswish3 = 0
  816. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Viteza farmecului")
  817. elif getIndex == 18 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  818. uiSwitchBonus.Bonus4 = 9
  819. uiSwitchBonus.Presswish4 = 0
  820. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Viteza farmecului")
  821. elif getIndex == 18 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  822. uiSwitchBonus.Bonus0 = 9
  823. uiSwitchBonus.Presswish0 = 0
  824. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Viteza farmecului")
  825. elif getIndex == 18 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  826. uiSwitchBonus.Presswish1 = 0
  827. uiSwitchBonus.Bonus1 = 9
  828. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Viteza farmecului")
  829. elif getIndex == 18 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  830. uiSwitchBonus.Presswish2 = 0
  831. uiSwitchBonus.Bonus2 = 9
  832. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Viteza farmecului")
  833. elif getIndex == 18 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  834. uiSwitchBonus.Presswish3 = 0
  835. uiSwitchBonus.Bonus3 = 9
  836. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Viteza farmecului")
  837. elif getIndex == 18 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  838. uiSwitchBonus.Presswish4 = 0
  839. uiSwitchBonus.Bonus4 = 9
  840. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Viteza farmecului")
  841. elif getIndex == 19 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  842. uiSwitchBonus.Bonus0 = 10
  843. uiSwitchBonus.Presswish0 = 0
  844. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Regenerare PV")
  845. elif getIndex == 19 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  846. uiSwitchBonus.Bonus1 = 10
  847. uiSwitchBonus.Presswish1 = 0
  848. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Regenerare PV")
  849. elif getIndex == 19 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  850. uiSwitchBonus.Bonus2 = 10
  851. uiSwitchBonus.Presswish2 = 0
  852. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Regenerare PV")
  853. elif getIndex == 19 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  854. uiSwitchBonus.Bonus3 = 10
  855. uiSwitchBonus.Presswish3 = 0
  856. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Regenerare PV")
  857. elif getIndex == 19 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  858. uiSwitchBonus.Bonus4 = 10
  859. uiSwitchBonus.Presswish4 = 0
  860. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Regenerare PV")
  861. elif getIndex == 19 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  862. uiSwitchBonus.Bonus0 = 10
  863. uiSwitchBonus.Presswish0 = 0
  864. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Regenerare PV")
  865. elif getIndex == 19 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  866. uiSwitchBonus.Presswish1 = 0
  867. uiSwitchBonus.Bonus1 = 10
  868. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Regenerare PV")
  869. elif getIndex == 19 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  870. uiSwitchBonus.Presswish2 = 0
  871. uiSwitchBonus.Bonus2 = 10
  872. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Regenerare PV")
  873. elif getIndex == 19 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  874. uiSwitchBonus.Presswish3 = 0
  875. uiSwitchBonus.Bonus3 = 10
  876. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Regenerare PV")
  877. elif getIndex == 19 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  878. uiSwitchBonus.Presswish4 = 0
  879. uiSwitchBonus.Bonus4 = 10
  880. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Regenerare PV")
  881. elif getIndex == 20 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  882. uiSwitchBonus.Bonus0 = 12
  883. uiSwitchBonus.Presswish0 = 0
  884. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa de otravire")
  885. elif getIndex == 20 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  886. uiSwitchBonus.Bonus1 = 12
  887. uiSwitchBonus.Presswish1 = 0
  888. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa de otravire")
  889. elif getIndex == 20 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  890. uiSwitchBonus.Bonus2 = 12
  891. uiSwitchBonus.Presswish2 = 0
  892. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa de otravire")
  893. elif getIndex == 20 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  894. uiSwitchBonus.Bonus3 = 12
  895. uiSwitchBonus.Presswish3 = 0
  896. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa de otravire")
  897. elif getIndex == 20 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  898. uiSwitchBonus.Bonus4 = 12
  899. uiSwitchBonus.Presswish4 = 0
  900. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa de otravire")
  901. elif getIndex == 20 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  902. uiSwitchBonus.Bonus0 = 12
  903. uiSwitchBonus.Presswish0 = 0
  904. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa de otravire")
  905. elif getIndex == 20 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  906. uiSwitchBonus.Presswish1 = 0
  907. uiSwitchBonus.Bonus1 = 12
  908. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa de otravire")
  909. elif getIndex == 20 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  910. uiSwitchBonus.Presswish2 = 0
  911. uiSwitchBonus.Bonus2 = 12
  912. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa de otravire")
  913. elif getIndex == 20 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  914. uiSwitchBonus.Presswish3 = 0
  915. uiSwitchBonus.Bonus3 = 12
  916. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa de otravire")
  917. elif getIndex == 20 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  918. uiSwitchBonus.Presswish4 = 0
  919. uiSwitchBonus.Bonus4 = 12
  920. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa de otravire")
  921. elif getIndex == 21 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  922. uiSwitchBonus.Bonus0 = 13
  923. uiSwitchBonus.Presswish0 = 0
  924. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa necunostintei")
  925. elif getIndex == 21 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  926. uiSwitchBonus.Bonus1 = 13
  927. uiSwitchBonus.Presswish1 = 0
  928. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa necunostintei")
  929. elif getIndex == 21 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  930. uiSwitchBonus.Bonus2 = 13
  931. uiSwitchBonus.Presswish2 = 0
  932. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa necunostintei")
  933. elif getIndex == 21 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  934. uiSwitchBonus.Bonus3 = 13
  935. uiSwitchBonus.Presswish3 = 0
  936. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa necunostintei")
  937. elif getIndex == 21 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  938. uiSwitchBonus.Bonus4 = 13
  939. uiSwitchBonus.Presswish4 = 0
  940. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa necunostintei")
  941. elif getIndex == 21 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  942. uiSwitchBonus.Bonus0 = 13
  943. uiSwitchBonus.Presswish0 = 0
  944. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa necunostintei")
  945. elif getIndex == 21 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  946. uiSwitchBonus.Presswish1 = 0
  947. uiSwitchBonus.Bonus1 = 13
  948. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa necunostintei")
  949. elif getIndex == 21 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  950. uiSwitchBonus.Presswish2 = 0
  951. uiSwitchBonus.Bonus2 = 13
  952. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa necunostintei")
  953. elif getIndex == 21 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  954. uiSwitchBonus.Presswish3 = 0
  955. uiSwitchBonus.Bonus3 = 13
  956. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa necunostintei")
  957. elif getIndex == 21 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  958. uiSwitchBonus.Presswish4 = 0
  959. uiSwitchBonus.Bonus4 = 13
  960. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa necunostintei")
  961. elif getIndex == 22 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  962. uiSwitchBonus.Bonus0 = 15
  963. uiSwitchBonus.Presswish0 = 0
  964. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa unei lovituri critice")
  965. elif getIndex == 22 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  966. uiSwitchBonus.Bonus1 = 15
  967. uiSwitchBonus.Presswish1 = 0
  968. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa unei lovituri critice")
  969. elif getIndex == 22 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  970. uiSwitchBonus.Bonus2 = 15
  971. uiSwitchBonus.Presswish2 = 0
  972. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa unei lovituri critice")
  973. elif getIndex == 22 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  974. uiSwitchBonus.Bonus3 = 15
  975. uiSwitchBonus.Presswish3 = 0
  976. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa unei lovituri critice")
  977. elif getIndex == 22 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  978. uiSwitchBonus.Bonus4 = 15
  979. uiSwitchBonus.Presswish4 = 0
  980. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa unei lovituri critice")
  981. elif getIndex == 22 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  982. uiSwitchBonus.Bonus0 = 15
  983. uiSwitchBonus.Presswish0 = 0
  984. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa unei lovituri critice")
  985. elif getIndex == 22 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  986. uiSwitchBonus.Presswish1 = 0
  987. uiSwitchBonus.Bonus1 = 15
  988. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa unei lovituri critice")
  989. elif getIndex == 22 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  990. uiSwitchBonus.Presswish2 = 0
  991. uiSwitchBonus.Bonus2 = 15
  992. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa unei lovituri critice")
  993. elif getIndex == 22 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  994. uiSwitchBonus.Presswish3 = 0
  995. uiSwitchBonus.Bonus3 = 15
  996. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa unei lovituri critice")
  997. elif getIndex == 22 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  998. uiSwitchBonus.Presswish4 = 0
  999. uiSwitchBonus.Bonus4 = 15
  1000. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa unei lovituri critice")
  1001. elif getIndex == 23 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1002. uiSwitchBonus.Bonus0 = 16
  1003. uiSwitchBonus.Presswish0 = 0
  1004. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa unei lovituri patrunzatoare")
  1005. elif getIndex == 23 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1006. uiSwitchBonus.Bonus1 = 16
  1007. uiSwitchBonus.Presswish1 = 0
  1008. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa unei lovituri patrunzatoare")
  1009. elif getIndex == 23 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1010. uiSwitchBonus.Bonus2 = 16
  1011. uiSwitchBonus.Presswish2 = 0
  1012. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa unei lovituri patrunzatoare")
  1013. elif getIndex == 23 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1014. uiSwitchBonus.Bonus3 = 16
  1015. uiSwitchBonus.Presswish3 = 0
  1016. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa unei lovituri patrunzatoare")
  1017. elif getIndex == 23 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1018. uiSwitchBonus.Bonus4 = 16
  1019. uiSwitchBonus.Presswish4 = 0
  1020. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa unei lovituri patrunzatoare")
  1021. elif getIndex == 23 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1022. uiSwitchBonus.Bonus0 = 16
  1023. uiSwitchBonus.Presswish0 = 0
  1024. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa unei lovituri patrunzatoare")
  1025. elif getIndex == 23 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1026. uiSwitchBonus.Presswish1 = 0
  1027. uiSwitchBonus.Bonus1 = 16
  1028. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa unei lovituri patrunzatoare")
  1029. elif getIndex == 23 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1030. uiSwitchBonus.Presswish2 = 0
  1031. uiSwitchBonus.Bonus2 = 16
  1032. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa unei lovituri patrunzatoare")
  1033. elif getIndex == 23 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1034. uiSwitchBonus.Presswish3 = 0
  1035. uiSwitchBonus.Bonus3 = 16
  1036. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa unei lovituri patrunzatoare")
  1037. elif getIndex == 23 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1038. uiSwitchBonus.Presswish4 = 0
  1039. uiSwitchBonus.Bonus4 = 16
  1040. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa unei lovituri patrunzatoare")
  1041. elif getIndex == 24 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1042. uiSwitchBonus.Bonus0 = 17
  1043. uiSwitchBonus.Presswish0 = 0
  1044. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Tare impotriva semi-oamenilor")
  1045. elif getIndex == 24 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1046. uiSwitchBonus.Bonus1 = 17
  1047. uiSwitchBonus.Presswish1 = 0
  1048. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Tare impotriva semi-oamenilor")
  1049. elif getIndex == 24 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1050. uiSwitchBonus.Bonus2 = 17
  1051. uiSwitchBonus.Presswish2 = 0
  1052. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Tare impotriva semi-oamenilor")
  1053. elif getIndex == 24 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1054. uiSwitchBonus.Bonus3 = 17
  1055. uiSwitchBonus.Presswish3 = 0
  1056. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Tare impotriva semi-oamenilor")
  1057. elif getIndex == 24 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1058. uiSwitchBonus.Bonus4 = 17
  1059. uiSwitchBonus.Presswish4 = 0
  1060. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Tare impotriva semi-oamenilor")
  1061. elif getIndex == 24 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1062. uiSwitchBonus.Bonus0 = 17
  1063. uiSwitchBonus.Presswish0 = 0
  1064. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Tare impotriva semi-oamenilor")
  1065. elif getIndex == 24 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1066. uiSwitchBonus.Presswish1 = 0
  1067. uiSwitchBonus.Bonus1 = 17
  1068. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Tare impotriva semi-oamenilor")
  1069. elif getIndex == 24 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1070. uiSwitchBonus.Presswish2 = 0
  1071. uiSwitchBonus.Bonus2 = 17
  1072. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Tare impotriva semi-oamenilor")
  1073. elif getIndex == 24 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1074. uiSwitchBonus.Presswish3 = 0
  1075. uiSwitchBonus.Bonus3 = 17
  1076. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Tare impotriva semi-oamenilor")
  1077. elif getIndex == 24 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1078. uiSwitchBonus.Presswish4 = 0
  1079. uiSwitchBonus.Bonus4 = 17
  1080. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Tare impotriva semi-oamenilor")
  1081. elif getIndex == 25 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1082. uiSwitchBonus.Bonus0 = 21
  1083. uiSwitchBonus.Presswish0 = 0
  1084. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Tare impotriva vampirilor")
  1085. elif getIndex == 25 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1086. uiSwitchBonus.Bonus1 = 21
  1087. uiSwitchBonus.Presswish1 = 0
  1088. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Tare impotriva vampirilor")
  1089. elif getIndex == 25 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1090. uiSwitchBonus.Bonus2 = 21
  1091. uiSwitchBonus.Presswish2 = 0
  1092. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Tare impotriva vampirilor")
  1093. elif getIndex == 25 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1094. uiSwitchBonus.Bonus3 = 21
  1095. uiSwitchBonus.Presswish3 = 0
  1096. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Tare impotriva vampirilor")
  1097. elif getIndex == 25 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1098. uiSwitchBonus.Bonus4 = 21
  1099. uiSwitchBonus.Presswish4 = 0
  1100. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Tare impotriva vampirilor")
  1101. elif getIndex == 25 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1102. uiSwitchBonus.Bonus0 = 21
  1103. uiSwitchBonus.Presswish0 = 0
  1104. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Tare impotriva vampirilor")
  1105. elif getIndex == 25 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1106. uiSwitchBonus.Presswish1 = 0
  1107. uiSwitchBonus.Bonus1 = 21
  1108. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Tare impotriva vampirilor")
  1109. elif getIndex == 25 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1110. uiSwitchBonus.Presswish2 = 0
  1111. uiSwitchBonus.Bonus2 = 21
  1112. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Tare impotriva vampirilor")
  1113. elif getIndex == 25 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1114. uiSwitchBonus.Presswish3 = 0
  1115. uiSwitchBonus.Bonus3 = 21
  1116. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Tare impotriva vampirilor")
  1117. elif getIndex == 25 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1118. uiSwitchBonus.Presswish4 = 0
  1119. uiSwitchBonus.Bonus4 = 21
  1120. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Tare impotriva vampirilor")
  1121. elif getIndex == 26 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1122. uiSwitchBonus.Bonus0 = 22
  1123. uiSwitchBonus.Presswish0 = 0
  1124. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Tare impotriva diavolului")
  1125. elif getIndex == 26 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1126. uiSwitchBonus.Bonus1 = 22
  1127. uiSwitchBonus.Presswish1 = 0
  1128. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Tare impotriva diavolului")
  1129. elif getIndex == 26 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1130. uiSwitchBonus.Bonus2 = 22
  1131. uiSwitchBonus.Presswish2 = 0
  1132. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Tare impotriva diavolului")
  1133. elif getIndex == 26 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1134. uiSwitchBonus.Bonus3 = 22
  1135. uiSwitchBonus.Presswish3 = 0
  1136. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Tare impotriva diavolului")
  1137. elif getIndex == 26 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1138. uiSwitchBonus.Bonus4 = 22
  1139. uiSwitchBonus.Presswish4 = 0
  1140. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Tare impotriva diavolului")
  1141. elif getIndex == 26 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1142. uiSwitchBonus.Bonus0 = 22
  1143. uiSwitchBonus.Presswish0 = 0
  1144. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Tare impotriva diavolului")
  1145. elif getIndex == 26 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1146. uiSwitchBonus.Presswish1 = 0
  1147. uiSwitchBonus.Bonus1 = 22
  1148. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Tare impotriva diavolului")
  1149. elif getIndex == 26 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1150. uiSwitchBonus.Presswish2 = 0
  1151. uiSwitchBonus.Bonus2 = 22
  1152. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Tare impotriva diavolului")
  1153. elif getIndex == 26 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1154. uiSwitchBonus.Presswish3 = 0
  1155. uiSwitchBonus.Bonus3 = 22
  1156. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Tare impotriva diavolului")
  1157. elif getIndex == 26 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1158. uiSwitchBonus.Presswish4 = 0
  1159. uiSwitchBonus.Bonus4 = 22
  1160. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Tare impotriva diavolului")
  1161. elif getIndex == 27 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1162. uiSwitchBonus.Bonus0 = 48
  1163. uiSwitchBonus.Presswish0 = 0
  1164. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Imun la necunostinta")
  1165. elif getIndex == 27 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1166. uiSwitchBonus.Bonus1 = 48
  1167. uiSwitchBonus.Presswish1 = 0
  1168. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Imun la necunostinta")
  1169. elif getIndex == 27 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1170. uiSwitchBonus.Bonus2 = 48
  1171. uiSwitchBonus.Presswish2 = 0
  1172. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Imun la necunostinta")
  1173. elif getIndex == 27 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1174. uiSwitchBonus.Bonus3 = 48
  1175. uiSwitchBonus.Presswish3 = 0
  1176. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Imun la necunostinta")
  1177. elif getIndex == 27 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1178. uiSwitchBonus.Bonus4 = 48
  1179. uiSwitchBonus.Presswish4 = 0
  1180. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Imun la necunostinta")
  1181. elif getIndex == 27 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1182. uiSwitchBonus.Bonus0 = 48
  1183. uiSwitchBonus.Presswish0 = 0
  1184. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Imun la necunostinta")
  1185. elif getIndex == 27 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1186. uiSwitchBonus.Presswish1 = 0
  1187. uiSwitchBonus.Bonus1 = 48
  1188. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Imun la necunostinta")
  1189. elif getIndex == 27 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1190. uiSwitchBonus.Presswish2 = 0
  1191. uiSwitchBonus.Bonus2 = 48
  1192. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Imun la necunostinta")
  1193. elif getIndex == 27 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1194. uiSwitchBonus.Presswish3 = 0
  1195. uiSwitchBonus.Bonus3 = 48
  1196. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Imun la necunostinta")
  1197. elif getIndex == 27 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1198. uiSwitchBonus.Presswish4 = 0
  1199. uiSwitchBonus.Bonus4 = 48
  1200. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Imun la necunostinta")
  1201. elif getIndex == 28 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1202. uiSwitchBonus.Bonus0 = 49
  1203. uiSwitchBonus.Presswish0 = 0
  1204. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Imun la incetinire")
  1205. elif getIndex == 28 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1206. uiSwitchBonus.Bonus1 = 49
  1207. uiSwitchBonus.Presswish1 = 0
  1208. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Imun la incetinire")
  1209. elif getIndex == 28 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1210. uiSwitchBonus.Bonus2 = 49
  1211. uiSwitchBonus.Presswish2 = 0
  1212. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Imun la incetinire")
  1213. elif getIndex == 28 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1214. uiSwitchBonus.Bonus3 = 49
  1215. uiSwitchBonus.Presswish3 = 0
  1216. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Imun la incetinire")
  1217. elif getIndex == 28 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1218. uiSwitchBonus.Bonus4 = 49
  1219. uiSwitchBonus.Presswish4 = 0
  1220. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Imun la incetinire")
  1221. elif getIndex == 28 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1222. uiSwitchBonus.Bonus0 = 49
  1223. uiSwitchBonus.Presswish0 = 0
  1224. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Imun la incetinire")
  1225. elif getIndex == 28 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1226. uiSwitchBonus.Presswish1 = 0
  1227. uiSwitchBonus.Bonus1 = 49
  1228. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Imun la incetinire")
  1229. elif getIndex == 28 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1230. uiSwitchBonus.Presswish2 = 0
  1231. uiSwitchBonus.Bonus2 = 49
  1232. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Imun la incetinire")
  1233. elif getIndex == 28 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1234. uiSwitchBonus.Presswish3 = 0
  1235. uiSwitchBonus.Bonus3 = 49
  1236. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Imun la incetinire")
  1237. elif getIndex == 28 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1238. uiSwitchBonus.Presswish4 = 0
  1239. uiSwitchBonus.Bonus4 = 49
  1240. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Imun la incetinire")
  1241. elif getIndex == 29 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1242. uiSwitchBonus.Bonus0 = 27
  1243. uiSwitchBonus.Presswish0 = 0
  1244. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa de a bloca atacul corporal")
  1245. elif getIndex == 29 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1246. uiSwitchBonus.Bonus1 = 27
  1247. uiSwitchBonus.Presswish1 = 0
  1248. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa de a bloca atacul corporal")
  1249. elif getIndex == 29 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1250. uiSwitchBonus.Bonus2 = 27
  1251. uiSwitchBonus.Presswish2 = 0
  1252. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa de a bloca atacul corporal")
  1253. elif getIndex == 29 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1254. uiSwitchBonus.Bonus3 = 27
  1255. uiSwitchBonus.Presswish3 = 0
  1256. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa de a bloca atacul corporal")
  1257. elif getIndex == 29 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1258. uiSwitchBonus.Bonus4 = 27
  1259. uiSwitchBonus.Presswish4 = 0
  1260. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa de a bloca atacul corporal")
  1261. elif getIndex == 29 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1262. uiSwitchBonus.Bonus0 = 27
  1263. uiSwitchBonus.Presswish0 = 0
  1264. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa de a bloca atacul corporal")
  1265. elif getIndex == 29 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1266. uiSwitchBonus.Presswish1 = 0
  1267. uiSwitchBonus.Bonus1 = 27
  1268. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa de a bloca atacul corporal")
  1269. elif getIndex == 29 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1270. uiSwitchBonus.Presswish2 = 0
  1271. uiSwitchBonus.Bonus2 = 27
  1272. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa de a bloca atacul corporal")
  1273. elif getIndex == 29 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1274. uiSwitchBonus.Presswish3 = 0
  1275. uiSwitchBonus.Bonus3 = 27
  1276. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa de a bloca atacul corporal")
  1277. elif getIndex == 29 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1278. uiSwitchBonus.Presswish4 = 0
  1279. uiSwitchBonus.Bonus4 = 27
  1280. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa de a bloca atacul corporal")
  1281. elif getIndex == 30 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1282. uiSwitchBonus.Bonus0 = 28
  1283. uiSwitchBonus.Presswish0 = 0
  1284. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa de a evita atacul cu sageti")
  1285. elif getIndex == 30 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1286. uiSwitchBonus.Bonus1 = 28
  1287. uiSwitchBonus.Presswish1 = 0
  1288. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa de a evita atacul cu sageti")
  1289. elif getIndex == 30 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1290. uiSwitchBonus.Bonus2 = 28
  1291. uiSwitchBonus.Presswish2 = 0
  1292. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa de a evita atacul cu sageti")
  1293. elif getIndex == 30 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1294. uiSwitchBonus.Bonus3 = 28
  1295. uiSwitchBonus.Presswish3 = 0
  1296. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa de a evita atacul cu sageti")
  1297. elif getIndex == 30 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1298. uiSwitchBonus.Bonus4 = 28
  1299. uiSwitchBonus.Presswish4 = 0
  1300. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa de a evita atacul cu sageti")
  1301. elif getIndex == 30 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1302. uiSwitchBonus.Bonus0 = 28
  1303. uiSwitchBonus.Presswish0 = 0
  1304. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa de a evita atacul cu sageti")
  1305. elif getIndex == 30 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1306. uiSwitchBonus.Presswish1 = 0
  1307. uiSwitchBonus.Bonus1 = 28
  1308. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa de a evita atacul cu sageti")
  1309. elif getIndex == 30 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1310. uiSwitchBonus.Presswish2 = 0
  1311. uiSwitchBonus.Bonus2 = 28
  1312. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa de a evita atacul cu sageti")
  1313. elif getIndex == 30 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1314. uiSwitchBonus.Presswish3 = 0
  1315. uiSwitchBonus.Bonus3 = 28
  1316. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa de a evita atacul cu sageti")
  1317. elif getIndex == 30 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1318. uiSwitchBonus.Presswish4 = 0
  1319. uiSwitchBonus.Bonus4 = 28
  1320. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa de a evita atacul cu sageti")
  1321. elif getIndex == 31 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1322. uiSwitchBonus.Bonus0 = 39
  1323. uiSwitchBonus.Presswish0 = 0
  1324. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa de a reflecta atacul corporal")
  1325. elif getIndex == 31 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1326. uiSwitchBonus.Bonus1 = 39
  1327. uiSwitchBonus.Presswish1 = 0
  1328. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa de a reflecta atacul corporal")
  1329. elif getIndex == 31 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1330. uiSwitchBonus.Bonus2 = 39
  1331. uiSwitchBonus.Presswish2 = 0
  1332. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa de a reflecta atacul corporal")
  1333. elif getIndex == 31 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1334. uiSwitchBonus.Bonus3 = 39
  1335. uiSwitchBonus.Presswish3 = 0
  1336. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa de a reflecta atacul corporal")
  1337. elif getIndex == 31 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1338. uiSwitchBonus.Bonus4 = 39
  1339. uiSwitchBonus.Presswish4 = 0
  1340. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa de a reflecta atacul corporal")
  1341. elif getIndex == 31 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1342. uiSwitchBonus.Bonus0 = 39
  1343. uiSwitchBonus.Presswish0 = 0
  1344. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa de a reflecta atacul corporal")
  1345. elif getIndex == 31 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1346. uiSwitchBonus.Presswish1 = 0
  1347. uiSwitchBonus.Bonus1 = 39
  1348. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa de a reflecta atacul corporal")
  1349. elif getIndex == 31 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1350. uiSwitchBonus.Presswish2 = 0
  1351. uiSwitchBonus.Bonus2 = 39
  1352. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa de a reflecta atacul corporal")
  1353. elif getIndex == 31 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1354. uiSwitchBonus.Presswish3 = 0
  1355. uiSwitchBonus.Bonus3 = 39
  1356. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa de a reflecta atacul corporal")
  1357. elif getIndex == 31 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1358. uiSwitchBonus.Presswish4 = 0
  1359. uiSwitchBonus.Bonus4 = 39
  1360. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa de a reflecta atacul corporal")
  1361. elif getIndex == 32 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1362. uiSwitchBonus.Bonus0 = 41
  1363. uiSwitchBonus.Presswish0 = 0
  1364. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Rezistenta la otrava")
  1365. elif getIndex == 32 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1366. uiSwitchBonus.Bonus1 = 41
  1367. uiSwitchBonus.Presswish1 = 0
  1368. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Rezistenta la otrava")
  1369. elif getIndex == 32 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1370. uiSwitchBonus.Bonus2 = 41
  1371. uiSwitchBonus.Presswish2 = 0
  1372. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Rezistenta la otrava")
  1373. elif getIndex == 32 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1374. uiSwitchBonus.Bonus3 = 41
  1375. uiSwitchBonus.Presswish3 = 0
  1376. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Rezistenta la otrava")
  1377. elif getIndex == 32 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1378. uiSwitchBonus.Bonus4 = 41
  1379. uiSwitchBonus.Presswish4 = 0
  1380. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Rezistenta la otrava")
  1381. elif getIndex == 32 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1382. uiSwitchBonus.Bonus0 = 41
  1383. uiSwitchBonus.Presswish0 = 0
  1384. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Rezistenta la otrava")
  1385. elif getIndex == 32 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1386. uiSwitchBonus.Presswish1 = 0
  1387. uiSwitchBonus.Bonus1 = 41
  1388. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Rezistenta la otrava")
  1389. elif getIndex == 32 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1390. uiSwitchBonus.Presswish2 = 0
  1391. uiSwitchBonus.Bonus2 = 41
  1392. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Rezistenta la otrava")
  1393. elif getIndex == 32 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1394. uiSwitchBonus.Presswish3 = 0
  1395. uiSwitchBonus.Bonus3 = 41
  1396. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Rezistenta la otrava")
  1397. elif getIndex == 32 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1398. uiSwitchBonus.Presswish4 = 0
  1399. uiSwitchBonus.Bonus4 = 41
  1400. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Rezistenta la otrava")
  1401. elif getIndex == 33 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1402. uiSwitchBonus.Bonus0 = 43
  1403. uiSwitchBonus.Presswish0 = 0
  1404. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Exp-Bonus")
  1405. elif getIndex == 33 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1406. uiSwitchBonus.Bonus1 = 43
  1407. uiSwitchBonus.Presswish1 = 0
  1408. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Exp-Bonus")
  1409. elif getIndex == 33 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1410. uiSwitchBonus.Bonus2 = 43
  1411. uiSwitchBonus.Presswish2 = 0
  1412. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Exp-Bonus")
  1413. elif getIndex == 33 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1414. uiSwitchBonus.Bonus3 = 43
  1415. uiSwitchBonus.Presswish3 = 0
  1416. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Exp-Bonus")
  1417. elif getIndex == 33 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1418. uiSwitchBonus.Bonus4 = 43
  1419. uiSwitchBonus.Presswish4 = 0
  1420. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Exp-Bonus")
  1421. elif getIndex == 33 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1422. uiSwitchBonus.Bonus0 = 43
  1423. uiSwitchBonus.Presswish0 = 0
  1424. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Exp-Bonus")
  1425. elif getIndex == 33 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1426. uiSwitchBonus.Presswish1 = 0
  1427. uiSwitchBonus.Bonus1 = 43
  1428. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Exp-Bonus")
  1429. elif getIndex == 33 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1430. uiSwitchBonus.Presswish2 = 0
  1431. uiSwitchBonus.Bonus2 = 43
  1432. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Exp-Bonus")
  1433. elif getIndex == 33 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1434. uiSwitchBonus.Presswish3 = 0
  1435. uiSwitchBonus.Bonus3 = 43
  1436. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Exp-Bonus")
  1437. elif getIndex == 33 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1438. uiSwitchBonus.Presswish4 = 0
  1439. uiSwitchBonus.Bonus4 = 43
  1440. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Exp-Bonus")
  1441. elif getIndex == 34 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1442. uiSwitchBonus.Bonus0 = 44
  1443. uiSwitchBonus.Presswish0 = 0
  1444. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Yangdrop")
  1445. elif getIndex == 34 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1446. uiSwitchBonus.Bonus1 = 44
  1447. uiSwitchBonus.Presswish1 = 0
  1448. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Yangdrop")
  1449. elif getIndex == 34 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1450. uiSwitchBonus.Bonus2 = 44
  1451. uiSwitchBonus.Presswish2 = 0
  1452. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Yangdrop")
  1453. elif getIndex == 34 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1454. uiSwitchBonus.Bonus3 = 44
  1455. uiSwitchBonus.Presswish3 = 0
  1456. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Yangdrop")
  1457. elif getIndex == 34 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1458. uiSwitchBonus.Bonus4 = 44
  1459. uiSwitchBonus.Presswish4 = 0
  1460. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Yangdrop")
  1461. elif getIndex == 34 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1462. uiSwitchBonus.Bonus0 = 44
  1463. uiSwitchBonus.Presswish0 = 0
  1464. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Yangdrop")
  1465. elif getIndex == 34 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1466. uiSwitchBonus.Presswish1 = 0
  1467. uiSwitchBonus.Bonus1 = 44
  1468. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Yangdrop")
  1469. elif getIndex == 34 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1470. uiSwitchBonus.Presswish2 = 0
  1471. uiSwitchBonus.Bonus2 = 44
  1472. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Yangdrop")
  1473. elif getIndex == 34 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1474. uiSwitchBonus.Presswish3 = 0
  1475. uiSwitchBonus.Bonus3 = 44
  1476. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Yangdrop")
  1477. elif getIndex == 34 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1478. uiSwitchBonus.Presswish4 = 0
  1479. uiSwitchBonus.Bonus4 = 44
  1480. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Yangdrop")
  1481. elif getIndex == 35 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
  1482. uiSwitchBonus.Bonus0 = 45
  1483. uiSwitchBonus.Presswish0 = 0
  1484. chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Itemdrop")
  1485. elif getIndex == 35 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
  1486. uiSwitchBonus.Bonus1 = 45
  1487. uiSwitchBonus.Presswish1 = 0
  1488. chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Itemdrop")
  1489. elif getIndex == 35 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
  1490. uiSwitchBonus.Bonus2 = 45
  1491. uiSwitchBonus.Presswish2 = 0
  1492. chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Itemdrop")
  1493. elif getIndex == 35 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
  1494. uiSwitchBonus.Bonus3 = 45
  1495. uiSwitchBonus.Presswish3 = 0
  1496. chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Itemdrop")
  1497. elif getIndex == 35 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
  1498. uiSwitchBonus.Bonus4 = 45
  1499. uiSwitchBonus.Presswish4 = 0
  1500. chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Itemdrop")
  1501. elif getIndex == 35 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
  1502. uiSwitchBonus.Bonus0 = 45
  1503. uiSwitchBonus.Presswish0 = 0
  1504. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Itemdrop")
  1505. elif getIndex == 35 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
  1506. uiSwitchBonus.Presswish1 = 0
  1507. uiSwitchBonus.Bonus1 = 45
  1508. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Itemdrop")
  1509. elif getIndex == 35 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
  1510. uiSwitchBonus.Presswish2 = 0
  1511. uiSwitchBonus.Bonus2 = 45
  1512. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Itemdrop")
  1513. elif getIndex == 35 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
  1514. uiSwitchBonus.Presswish3 = 0
  1515. uiSwitchBonus.Bonus3 = 45
  1516. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Itemdrop")
  1517. elif getIndex == 35 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
  1518. uiSwitchBonus.Presswish4 = 0
  1519. uiSwitchBonus.Bonus4 = 45
  1520. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Itemdrop")
  1521. else:
  1522. chat.AppendChat(chat.CHAT_TYPE_INFO, "Nici unul din bonus-uri nu a fost selectat")
  1523. self.Hide()
  1524.  
  1525. def OnCloseInputDialog(self):
  1526. self.inputDialog.Close()
  1527. self.inputDialog = None
  1528. return TRUE
  1529.  
  1530. def OnCloseQuestionDialog(self):
  1531. self.questionDialog.Close()
  1532. self.questionDialog = None
  1533. return TRUE
  1534.  
  1535. def OnPressEscapeKey(self):
  1536. self.Close()
  1537. return TRUE
  1538.  
  1539. def Show(self):
  1540. ui.ScriptWindow.Show(self)
  1541.  
  1542. def Close(self):
  1543. self.Hide()
Advertisement
Add Comment
Please, Sign In to add comment