import ui
import snd
import systemSetting
import net
import chat
import app
import locale
import chrmgr
import player
import chr
import game
import background
import uiPhaseCurtain
import interfaceModule
import shop
import uiSwitchBonus

class OptionDialog(ui.ScriptWindow):

	def __init__(self):
		ui.ScriptWindow.__init__(self)
		self.__Initialize()
		self.__Load()
		self.curtain = uiPhaseCurtain.PhaseCurtain()
		self.curtain.speed = 0.01
		self.curtain.Hide()
		race = net.GetMainActorRace()
		if race != 1000:
			self.bonus0.InsertItem(1, "Max HP")
			self.bonus0.InsertItem(2, "Aparare Sabie")
			self.bonus0.InsertItem(3, "Aparare 2 Maini")
			self.bonus0.InsertItem(4, "Aparare Pumnal")
			self.bonus0.InsertItem(5, "Aparare Clopot")
			self.bonus0.InsertItem(6, "Aparare Evantai")
			self.bonus0.InsertItem(7, "Rez Sageti")
			self.bonus0.InsertItem(8, "Rez Magie")
			self.bonus0.InsertItem(9, "Vitalitate")
			self.bonus0.InsertItem(10, "Inteligenta")
			self.bonus0.InsertItem(11, "Tarie")
			self.bonus0.InsertItem(12, "Dex")
			self.bonus0.InsertItem(13, "Valoarea atacului")
			self.bonus0.InsertItem(14, "Paguba Medie")
			self.bonus0.InsertItem(15, "Paguba Competenta")
			self.bonus0.InsertItem(16, "Viteza de atac")
			self.bonus0.InsertItem(17, "Viteza de miscare")
			self.bonus0.InsertItem(18, "Viteza farmecului")
			self.bonus0.InsertItem(19, "Regenerare HP")
			self.bonus0.InsertItem(20, "Sansa de otravire")
			self.bonus0.InsertItem(21, "Sansa necunostintei")
			self.bonus0.InsertItem(22, "Sansa unei lovituri critice")
			self.bonus0.InsertItem(23, "Sansa unei lovituri patrunzatoare")
			self.bonus0.InsertItem(24, "Tare Impotriva semi oamenilor")
			self.bonus0.InsertItem(25, "Tare Impotriva vampirilor")
			self.bonus0.InsertItem(26, "Tare Impotriva diavolului")
			self.bonus0.InsertItem(27, "Imun la necunostinta")
			self.bonus0.InsertItem(28, "Imun la incetinire")
			self.bonus0.InsertItem(29, "Sansa de a bloca atacul corporal")
			self.bonus0.InsertItem(30, "Sansa de a evita atacul cu sageti")
			self.bonus0.InsertItem(31, "Sansa de a reflecta atacul corporal")
			self.bonus0.InsertItem(32, "Rezistenta la otrava")
			self.bonus0.InsertItem(33, "Exp-Bonus")
			self.bonus0.InsertItem(34, "Yang drop")
			self.bonus0.InsertItem(35, "Item drop")
		else:		
			self.chooseBonus0.SetText("Niciun Bonus Disponibil.")

	def __del__(self):
		ui.ScriptWindow.__del__(self)
		print " -------------------------------------- DELETE GAME OPTION DIALOG"

	def __Initialize(self):
		self.titleBar = 0

	def Destroy(self):
		self.ClearDictionary()

		self.__Initialize()
		print " -------------------------------------- DESTROY GAME OPTION DIALOG"
	
	def __Load_LoadScript(self, fileName):
		try:
			pyScriptLoader = ui.PythonScriptLoader()
			pyScriptLoader.LoadScriptFile(self, fileName)
		except:
			import exception
			exception.Abort("OptionDialog.__Load_LoadScript")

	def __Load_BindObject(self):
		try:
			GetObject = self.GetChild
			self.titleBar = GetObject("titlebar")
			self.setbonus0			= GetObject("Ok_button")
			self.bonus0			= GetObject("Bonus0_List")
			self.chooseBonus0			= GetObject("ChooseBonus0")
			self.cancel			= GetObject("stop_button")
		except:
			import exception
			exception.Abort("OptionDialog.__Load_BindObject")

	def __Load(self):
		self.__Load_LoadScript("UIscript/boniliste.py")

		self.__Load_BindObject()

		self.SetCenterPosition()

		self.titleBar.SetCloseEvent(ui.__mem_func__(self.Close))

		self.setbonus0.SetEvent(ui.__mem_func__(self.__Setbonus0))
		self.cancel.SetEvent(ui.__mem_func__(self.__Cancelbonus0))
		
	def __Cancelbonus0(self):
		self.Hide()
		
	def __Setbonus0(self):
		race = net.GetMainActorRace()
		group = net.GetMainActorSkillGroup()
		getIndex = self.bonus0.GetSelectedItem()
		if getIndex == 1 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 1
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Max. HP")
		elif getIndex == 1 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 1
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Max. HP")
		elif getIndex == 1 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 1
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Max. HP")
		elif getIndex == 1 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 1
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Max. HP")
		elif getIndex == 1 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 1
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Max. HP")
		elif getIndex == 1 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 1
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Max. HP")
		elif getIndex == 1 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 1
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Max. HP")
		elif getIndex == 1 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 1
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Max. HP")
		elif getIndex == 1 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 1
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Max. HP")
		elif getIndex == 1 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 1
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Max. HP")
		elif getIndex == 2 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 29
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Aparare Sabie")
		elif getIndex == 2 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 29
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Aparare Sabie")
		elif getIndex == 2 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 29
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Aparare Sabie")
		elif getIndex == 2 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 29
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Aparare Sabie")
		elif getIndex == 2 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 29
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Aparare Sabie")
		elif getIndex == 2 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 29
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Aparare Sabie")
		elif getIndex == 2 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 29
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Aparare Sabie")
		elif getIndex == 2 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 29
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Aparare Sabie")
		elif getIndex == 2 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 29
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Aparare Sabie")
		elif getIndex == 2 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 29
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Aparare Sabie")
		elif getIndex == 3 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 30
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Aparare 2 Maini")
		elif getIndex == 3 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 30
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Aparare 2 Maini")
		elif getIndex == 3 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 30
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Aparare 2 Maini")
		elif getIndex == 3 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 30
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Aparare 2 Maini")
		elif getIndex == 3 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 30
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Aparare 2 Maini")
		elif getIndex == 3 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 30
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Aparare 2 Maini")
		elif getIndex == 3 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 30
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Aparare 2 Maini")
		elif getIndex == 3 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 30
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Aparare 2 Maini")
		elif getIndex == 3 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 30
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Aparare 2 Maini")
		elif getIndex == 3 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 30
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Aparare 2 Maini")
		elif getIndex == 4 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 31
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Aparare Pumnal")
		elif getIndex == 4 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 31
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Aparare Pumnal")
		elif getIndex == 4 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 31
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Aparare Pumnal")
		elif getIndex == 4 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 31
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Aparare Pumnal")
		elif getIndex == 4 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 31
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Aparare Pumnal")
		elif getIndex == 4 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 31
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Aparare Pumnal")
		elif getIndex == 4 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 31
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Aparare Pumnal")
		elif getIndex == 4 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 31
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Aparare Pumnal")
		elif getIndex == 4 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 31
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Aparare Pumnal")
		elif getIndex == 4 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 31
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Aparare Pumnal")
		elif getIndex == 5 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 32
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Aparare Clopot")
		elif getIndex == 5 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 32
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Aparare Clopot")
		elif getIndex == 5 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 32
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Aparare Clopot")
		elif getIndex == 5 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 32
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Aparare Clopot")
		elif getIndex == 5 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 32
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Aparare Clopot")
		elif getIndex == 5 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 32
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Aparare Clopot")
		elif getIndex == 5 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 32
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Aparare Clopot")
		elif getIndex == 5 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 32
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Aparare Clopot")
		elif getIndex == 5 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 32
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Aparare Clopot")
		elif getIndex == 5 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 32
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Aparare Clopot")
		elif getIndex == 6 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 33
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Aparare Evantai")
		elif getIndex == 6 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 33
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Aparare Evantai")
		elif getIndex == 6 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 33
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Aparare Evantai")
		elif getIndex == 6 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 33
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Aparare Evantai")
		elif getIndex == 6 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 33
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Aparare Evantai")
		elif getIndex == 6 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 33
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Aparare Evantai")
		elif getIndex == 6 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 33
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Aparare Evantai")
		elif getIndex == 6 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 33
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Aparare Evantai")
		elif getIndex == 6 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 33
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Aparare Evantai")
		elif getIndex == 6 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 33
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Aparare Evantai")
		elif getIndex == 7 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 34
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Rez Sageti")
		elif getIndex == 7 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 34
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Rez Sageti")
		elif getIndex == 7 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 34
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Rez Sageti")
		elif getIndex == 7 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 34
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Rez Sageti")
		elif getIndex == 7 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 34
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Rez Sageti")
		elif getIndex == 7 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 34
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Rez Sageti")
		elif getIndex == 7 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 34
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Rez Sageti")
		elif getIndex == 7 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 34
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Rez Sageti")
		elif getIndex == 7 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 34
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Rez Sageti")
		elif getIndex == 7 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 34
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Rez Sageti")
		elif getIndex == 8 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 37
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Rez Magie")
		elif getIndex == 8 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 37
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Rez Magie")
		elif getIndex == 8 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 37
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Rez Magie")
		elif getIndex == 8 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 37
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Rez Magie")
		elif getIndex == 8 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 37
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Rez Magie")
		elif getIndex == 8 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 37
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Rez Magie")
		elif getIndex == 8 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 37
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Rez Magie")
		elif getIndex == 8 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 37
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Rez Magie")
		elif getIndex == 8 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 37
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Rez Magie")
		elif getIndex == 8 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 37
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Rez Magie")
		elif getIndex == 9 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 3
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Vitalitate")
		elif getIndex == 9 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 3
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Vitalitate")
		elif getIndex == 9 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 3
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Vitalitate")
		elif getIndex == 9 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 3
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Vitalitate")
		elif getIndex == 9 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 3
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Vitalitate")
		elif getIndex == 9 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 3
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Vitalitate")
		elif getIndex == 9 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 3
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Vitalitate")
		elif getIndex == 9 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 3
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Vitalitate")
		elif getIndex == 9 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 3
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Vitalitate")
		elif getIndex == 9 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 3
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Vitalitate")
		elif getIndex == 10 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 4
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Inteligenta")
		elif getIndex == 10 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 4
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Inteligenta")
		elif getIndex == 10 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 4
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Inteligenta")
		elif getIndex == 10 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 4
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Inteligenta")
		elif getIndex == 10 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 4
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Inteligenta")
		elif getIndex == 10 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 4
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Inteligenta")
		elif getIndex == 10 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 4
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Inteligenta")
		elif getIndex == 10 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 4
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Inteligenta")
		elif getIndex == 10 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 4
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Inteligenta")
		elif getIndex == 10 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 4
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Inteligenta")
		elif getIndex == 11 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 5
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Tarie")
		elif getIndex == 11 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 5
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Tarie")
		elif getIndex == 11 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 5
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Tarie")
		elif getIndex == 11 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 5
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Tarie")
		elif getIndex == 11 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 5
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Tarie")
		elif getIndex == 11 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 5
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Tarie")
		elif getIndex == 11 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 5
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Tarie")
		elif getIndex == 11 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 5
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Tarie")
		elif getIndex == 11 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 5
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Tarie")
		elif getIndex == 11 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 5
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Tarie")
		elif getIndex == 12 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 6
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Dex")
		elif getIndex == 12 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 6
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Dex")
		elif getIndex == 12 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 6
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Dex")
		elif getIndex == 12 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 6
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Dex")
		elif getIndex == 12 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 6
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Dex")
		elif getIndex == 12 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 6
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Dex")
		elif getIndex == 12 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 6
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Dex")
		elif getIndex == 12 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 6
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Dex")
		elif getIndex == 12 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 6
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Dex")
		elif getIndex == 12 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 6
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Dex")
		elif getIndex == 13 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 53
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Valoarea atacului")
		elif getIndex == 13 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 53
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Valoarea atacului")
		elif getIndex == 13 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 53
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Valoarea atacului")
		elif getIndex == 13 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 53
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Valoarea atacului")
		elif getIndex == 13 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 53
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Valoarea atacului")
		elif getIndex == 13 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 53
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Valoarea atacului")
		elif getIndex == 13 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 53
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Valoarea atacului")
		elif getIndex == 13 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 53
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Valoarea atacului")
		elif getIndex == 13 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 53
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Valoarea atacului")
		elif getIndex == 13 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 53
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Valoarea atacului")
		elif getIndex == 14 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 72
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Paguba Medie")
		elif getIndex == 14 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 72
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Paguba Medie")
		elif getIndex == 14 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 72
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Paguba Medie")
		elif getIndex == 14 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 72
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Paguba Medie")
		elif getIndex == 14 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 72
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Paguba Medie")
		elif getIndex == 14 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 72
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Paguba Medie")
		elif getIndex == 14 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 72
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Paguba Medie")
		elif getIndex == 14 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 72
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Paguba Medie")
		elif getIndex == 14 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 72
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Paguba Medie")
		elif getIndex == 14 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 72
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Paguba Medie")
		elif getIndex == 15 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 71
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Paguba Competenta")
		elif getIndex == 15 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 71
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Paguba Competenta")
		elif getIndex == 15 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 71
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Paguba Competenta")
		elif getIndex == 15 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 71
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Paguba Competenta")
		elif getIndex == 15 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 71
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Paguba Competenta")
		elif getIndex == 15 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 71
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Paguba Competenta")
		elif getIndex == 15 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 71
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Paguba Competenta")
		elif getIndex == 15 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 71
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Paguba Competenta")
		elif getIndex == 15 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 71
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Paguba Competenta")
		elif getIndex == 15 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 71
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Paguba Competenta")
		elif getIndex == 16 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 7
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Viteza de atac")
		elif getIndex == 16 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 7
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Viteza de atac")
		elif getIndex == 16 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 7
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Viteza de atac")
		elif getIndex == 16 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 7
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Viteza de atac")
		elif getIndex == 16 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 7
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Viteza de atac")
		elif getIndex == 16 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 7
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Viteza de atac")
		elif getIndex == 16 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 7
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Viteza de atac")
		elif getIndex == 16 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 7
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Viteza de atac")
		elif getIndex == 16 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 7
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Viteza de atac")
		elif getIndex == 16 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 7
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Viteza de atac")
		elif getIndex == 17 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 8
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Viteza de miscare")
		elif getIndex == 17 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 8
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Viteza de miscare")
		elif getIndex == 17 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 8
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Viteza de miscare")
		elif getIndex == 17 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 8
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Viteza de miscare")
		elif getIndex == 17 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 8
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Viteza de miscare")
		elif getIndex == 17 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 8
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Viteza de miscare")
		elif getIndex == 17 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 8
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Viteza de miscare")
		elif getIndex == 17 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 8
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Viteza de miscare")
		elif getIndex == 17 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 8
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Viteza de miscare")
		elif getIndex == 17 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 8
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Viteza de miscare")
		elif getIndex == 18 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 9
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Viteza farmecului")
		elif getIndex == 18 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 9
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Viteza farmecului")
		elif getIndex == 18 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 9
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Viteza farmecului")
		elif getIndex == 18 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 9
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Viteza farmecului")
		elif getIndex == 18 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 9
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Viteza farmecului")
		elif getIndex == 18 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 9
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Viteza farmecului")
		elif getIndex == 18 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 9
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Viteza farmecului")
		elif getIndex == 18 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 9
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Viteza farmecului")
		elif getIndex == 18 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 9
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Viteza farmecului")
		elif getIndex == 18 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 9
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Viteza farmecului")
		elif getIndex == 19 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 10
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Regenerare HP")
		elif getIndex == 19 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 10
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Regenerare HP")
		elif getIndex == 19 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 10
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Regenerare HP")
		elif getIndex == 19 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 10
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Regenerare HP")
		elif getIndex == 19 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 10
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Regenerare HP")
		elif getIndex == 19 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 10
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Regenerare HP")
		elif getIndex == 19 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 10
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Regenerare HP")
		elif getIndex == 19 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 10
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Regenerare HP")
		elif getIndex == 19 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 10
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Regenerare HP")
		elif getIndex == 19 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 10
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Regenerare HP")
		elif getIndex == 20 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 12
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa de otravire")
		elif getIndex == 20 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 12
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa de otravire")
		elif getIndex == 20 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 12
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa de otravire")
		elif getIndex == 20 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 12
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa de otravire")
		elif getIndex == 20 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 12
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa de otravire")
		elif getIndex == 20 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 12
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa de otravire")
		elif getIndex == 20 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 12
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa de otravire")
		elif getIndex == 20 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 12
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa de otravire")
		elif getIndex == 20 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 12
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa de otravire")
		elif getIndex == 20 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 12
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa de otravire")
		elif getIndex == 21 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 13
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa necunostintei")
		elif getIndex == 21 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 13
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa necunostintei")
		elif getIndex == 21 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 13
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa necunostintei")
		elif getIndex == 21 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 13
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa necunostintei")
		elif getIndex == 21 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 13
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa necunostintei")
		elif getIndex == 21 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 13
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa necunostintei")
		elif getIndex == 21 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 13
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa necunostintei")
		elif getIndex == 21 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 13
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa necunostintei")
		elif getIndex == 21 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 13
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa necunostintei")
		elif getIndex == 21 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 13
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa necunostintei")
		elif getIndex == 22 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 15
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa unei lovituri critice")
		elif getIndex == 22 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 15
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa unei lovituri critice")
		elif getIndex == 22 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 15
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa unei lovituri critice")
		elif getIndex == 22 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 15
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa unei lovituri critice")
		elif getIndex == 22 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 15
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa unei lovituri critice")
		elif getIndex == 22 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 15
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa unei lovituri critice")
		elif getIndex == 22 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 15
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa unei lovituri critice")
		elif getIndex == 22 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 15
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa unei lovituri critice")
		elif getIndex == 22 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 15
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa unei lovituri critice")
		elif getIndex == 22 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 15
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa unei lovituri critice")
		elif getIndex == 23 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 16
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa unei lovituri patrunzatoare")
		elif getIndex == 23 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 16
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa unei lovituri patrunzatoare")
		elif getIndex == 23 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 16
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa unei lovituri patrunzatoare")
		elif getIndex == 23 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 16
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa unei lovituri patrunzatoare")
		elif getIndex == 23 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 16
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa unei lovituri patrunzatoare")
		elif getIndex == 23 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 16
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa unei lovituri patrunzatoare")
		elif getIndex == 23 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 16
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa unei lovituri patrunzatoare")
		elif getIndex == 23 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 16
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa unei lovituri patrunzatoare")
		elif getIndex == 23 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 16
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa unei lovituri patrunzatoare")
		elif getIndex == 23 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 16
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa unei lovituri patrunzatoare")
		elif getIndex == 24 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 17
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Tare impotriva semi-oamenilor")
		elif getIndex == 24 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 17
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Tare impotriva semi-oamenilor")
		elif getIndex == 24 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 17
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Tare impotriva semi-oamenilor")
		elif getIndex == 24 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 17
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Tare impotriva semi-oamenilor")
		elif getIndex == 24 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 17
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Tare impotriva semi-oamenilor")
		elif getIndex == 24 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 17
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Tare impotriva semi-oamenilor")
		elif getIndex == 24 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 17
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Tare impotriva semi-oamenilor")
		elif getIndex == 24 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 17
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Tare impotriva semi-oamenilor")
		elif getIndex == 24 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 17
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Tare impotriva semi-oamenilor")
		elif getIndex == 24 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 17
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Tare impotriva semi-oamenilor")
		elif getIndex == 25 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 21
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Tare impotriva vampirilor")
		elif getIndex == 25 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 21
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Tare impotriva vampirilor")
		elif getIndex == 25 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 21
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Tare impotriva vampirilor")
		elif getIndex == 25 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 21
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Tare impotriva vampirilor")
		elif getIndex == 25 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 21
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Tare impotriva vampirilor")
		elif getIndex == 25 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 21
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Tare impotriva vampirilor")
		elif getIndex == 25 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 21
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Tare impotriva vampirilor")
		elif getIndex == 25 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 21
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Tare impotriva vampirilor")
		elif getIndex == 25 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 21
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Tare impotriva vampirilor")
		elif getIndex == 25 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 21
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Tare impotriva vampirilor")
		elif getIndex == 26 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 22
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Tare impotriva diavolului")
		elif getIndex == 26 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 22
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Tare impotriva diavolului")
		elif getIndex == 26 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 22
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Tare impotriva diavolului")
		elif getIndex == 26 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 22
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Tare impotriva diavolului")
		elif getIndex == 26 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 22
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Tare impotriva diavolului")
		elif getIndex == 26 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 22
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Tare impotriva diavolului")
		elif getIndex == 26 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 22
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Tare impotriva diavolului")
		elif getIndex == 26 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 22
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Tare impotriva diavolului")
		elif getIndex == 26 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 22
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Tare impotriva diavolului")
		elif getIndex == 26 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 22
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Tare impotriva diavolului")
		elif getIndex == 27 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 48
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Imun la necunostinta")
		elif getIndex == 27 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 48
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Imun la necunostinta")
		elif getIndex == 27 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 48
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Imun la necunostinta")
		elif getIndex == 27 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 48
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Imun la necunostinta")
		elif getIndex == 27 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 48
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Imun la necunostinta")
		elif getIndex == 27 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 48
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Imun la necunostinta")
		elif getIndex == 27 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 48
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Imun la necunostinta")
		elif getIndex == 27 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 48
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Imun la necunostinta")
		elif getIndex == 27 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 48
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Imun la necunostinta")
		elif getIndex == 27 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 48
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Imun la necunostinta")
		elif getIndex == 28 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 49
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Imun la incetinire")
		elif getIndex == 28 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 49
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Imun la incetinire")
		elif getIndex == 28 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 49
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Imun la incetinire")
		elif getIndex == 28 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 49
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Imun la incetinire")
		elif getIndex == 28 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 49
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Imun la incetinire")
		elif getIndex == 28 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 49
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Imun la incetinire")
		elif getIndex == 28 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 49
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Imun la incetinire")
		elif getIndex == 28 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 49
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Imun la incetinire")
		elif getIndex == 28 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 49
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Imun la incetinire")
		elif getIndex == 28 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 49
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Imun la incetinire")
		elif getIndex == 29 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 27
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa de a bloca atacul corporal")
		elif getIndex == 29 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 27
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa de a bloca atacul corporal")
		elif getIndex == 29 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 27
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa de a bloca atacul corporal")
		elif getIndex == 29 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 27
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa de a bloca atacul corporal")
		elif getIndex == 29 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 27
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa de a bloca atacul corporal")
		elif getIndex == 29 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 27
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa de a bloca atacul corporal")
		elif getIndex == 29 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 27
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa de a bloca atacul corporal")
		elif getIndex == 29 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 27
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa de a bloca atacul corporal")
		elif getIndex == 29 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 27
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa de a bloca atacul corporal")
		elif getIndex == 29 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 27
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa de a bloca atacul corporal")
		elif getIndex == 30 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 28
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa de a evita atacul cu sageti")
		elif getIndex == 30 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 28
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa de a evita atacul cu sageti")
		elif getIndex == 30 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 28
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa de a evita atacul cu sageti")
		elif getIndex == 30 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 28
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa de a evita atacul cu sageti")
		elif getIndex == 30 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 28
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa de a evita atacul cu sageti")
		elif getIndex == 30 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 28
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa de a evita atacul cu sageti")
		elif getIndex == 30 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 28
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa de a evita atacul cu sageti")
		elif getIndex == 30 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 28
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa de a evita atacul cu sageti")
		elif getIndex == 30 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 28
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa de a evita atacul cu sageti")
		elif getIndex == 30 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 28
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa de a evita atacul cu sageti")
		elif getIndex == 31 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 39
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Sansa de a reflecta atacul corporal")
		elif getIndex == 31 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 39
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Sansa de a reflecta atacul corporal")
		elif getIndex == 31 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 39
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Sansa de a reflecta atacul corporal")
		elif getIndex == 31 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 39
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Sansa de a reflecta atacul corporal")
		elif getIndex == 31 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 39
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Sansa de a reflecta atacul corporal")
		elif getIndex == 31 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 39
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Sansa de a reflecta atacul corporal")
		elif getIndex == 31 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 39
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Sansa de a reflecta atacul corporal")
		elif getIndex == 31 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 39
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Sansa de a reflecta atacul corporal")
		elif getIndex == 31 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 39
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Sansa de a reflecta atacul corporal")
		elif getIndex == 31 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 39
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Sansa de a reflecta atacul corporal")
		elif getIndex == 32 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 41
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Rezistenta la otrava")
		elif getIndex == 32 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 41
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Rezistenta la otrava")
		elif getIndex == 32 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 41
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Rezistenta la otrava")
		elif getIndex == 32 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 41
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Rezistenta la otrava")
		elif getIndex == 32 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 41
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Rezistenta la otrava")
		elif getIndex == 32 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 41
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Rezistenta la otrava")
		elif getIndex == 32 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 41
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Rezistenta la otrava")
		elif getIndex == 32 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 41
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Rezistenta la otrava")
		elif getIndex == 32 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 41
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Rezistenta la otrava")
		elif getIndex == 32 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 41
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Rezistenta la otrava")
		elif getIndex == 33 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 43
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Exp-Bonus")
		elif getIndex == 33 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 43
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Exp-Bonus")
		elif getIndex == 33 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 43
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Exp-Bonus")
		elif getIndex == 33 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 43
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Exp-Bonus")
		elif getIndex == 33 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 43
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Exp-Bonus")
		elif getIndex == 33 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 43
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Exp-Bonus")
		elif getIndex == 33 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 43
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Exp-Bonus")
		elif getIndex == 33 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 43
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Exp-Bonus")
		elif getIndex == 33 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 43
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Exp-Bonus")
		elif getIndex == 33 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 43
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Exp-Bonus")
		elif getIndex == 34 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 44
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Yangdrop")
		elif getIndex == 34 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 44
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Yangdrop")
		elif getIndex == 34 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 44
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Yangdrop")
		elif getIndex == 34 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 44
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Yangdrop")
		elif getIndex == 34 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 44
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Yangdrop")
		elif getIndex == 34 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 44
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Yangdrop")
		elif getIndex == 34 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 44
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Yangdrop")
		elif getIndex == 34 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 44
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Yangdrop")
		elif getIndex == 34 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 44
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Yangdrop")
		elif getIndex == 34 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 44
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Yangdrop")
		elif getIndex == 35 and uiSwitchBonus.Bonus0 == 0 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 45
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Bonus Itemdrop")
		elif getIndex == 35 and uiSwitchBonus.Bonus1 == 0 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Bonus1 = 45
			uiSwitchBonus.Presswish1 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Bonus Itemdrop")
		elif getIndex == 35 and uiSwitchBonus.Bonus2 == 0 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Bonus2 = 45
			uiSwitchBonus.Presswish2 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Bonus Itemdrop")
		elif getIndex == 35 and uiSwitchBonus.Bonus3 == 0 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Bonus3 = 45
			uiSwitchBonus.Presswish3 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Bonus Itemdrop")
		elif getIndex == 35 and uiSwitchBonus.Bonus4 == 0 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Bonus4 = 45
			uiSwitchBonus.Presswish4 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Bonus Itemdrop")
		elif getIndex == 35 and uiSwitchBonus.Overwrite0 == 1 and uiSwitchBonus.Presswish0 == 1:
			uiSwitchBonus.Bonus0 = 45
			uiSwitchBonus.Presswish0 = 0
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 1.Bonus Itemdrop")
		elif getIndex == 35 and uiSwitchBonus.Overwrite1 == 1 and uiSwitchBonus.Presswish1 == 1:
			uiSwitchBonus.Presswish1 = 0
			uiSwitchBonus.Bonus1 = 45
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 2.Bonus Itemdrop")
		elif getIndex == 35 and uiSwitchBonus.Overwrite2 == 1 and uiSwitchBonus.Presswish2 == 1:
			uiSwitchBonus.Presswish2 = 0
			uiSwitchBonus.Bonus2 = 45
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 3.Bonus Itemdrop")
		elif getIndex == 35 and uiSwitchBonus.Overwrite3 == 1 and uiSwitchBonus.Presswish3 == 1:
			uiSwitchBonus.Presswish3 = 0
			uiSwitchBonus.Bonus3 = 45
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 4.Bonus Itemdrop")
		elif getIndex == 35 and uiSwitchBonus.Overwrite4 == 1 and uiSwitchBonus.Presswish4 == 1:
			uiSwitchBonus.Presswish4 = 0
			uiSwitchBonus.Bonus4 = 45
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nou 5.Bonus Itemdrop")
		else:
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Nici unul din bonus-uri nu a fost selectat")		
		self.Hide()
	
	def OnCloseInputDialog(self):
		self.inputDialog.Close()
		self.inputDialog = None
		return TRUE

	def OnCloseQuestionDialog(self):
		self.questionDialog.Close()
		self.questionDialog = None
		return TRUE

	def OnPressEscapeKey(self):
		self.Close()
		return TRUE

	def Show(self):
		ui.ScriptWindow.Show(self)

	def Close(self):
		self.Hide()
