Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Problem - Hacki


Rekomendowane odpowiedzi

Opublikowano

Siema

 

chciałbym prosić o pomoc w lączeniu 2 kodów pytona

 

 

głowny

 

 

import app
import chat
import chr
import locale
import net
import player
import time
import ui
import interfacemodule
import background
import os

UpButton = ui.Button()
UpLine = ui.TextLine()
GhostModeButton = ui.Button()
GhostModeLine = ui.TextLine()
OpenSettingsButton = ui.Button()
OpenSettingsLine = ui.TextLine()

UpLabel = ui.TextLine()
UpgradeLabel = ui.TextLine()
GhostModLabel = ui.TextLine()

Refine = 0
MoveSpeed = 0
Combo = 0    
ZoomHack = 0
NoFog = 0
DayNight = 0
EnableSnow = 0

AutoRedPot = 0
AutoBluePot = 0
AutoAttack = 0
AutoPickup = 0
AutoRestart = 0

class MultihackDialog(ui.ThinBoard):
    def __init__(self):
        ui.ThinBoard.__init__(self)
        self.__Load_MessagebotDialog()
        
    def __del__(self):
        ui.ThinBoard.__del__(self)

    def Destroy(self):
        global SetBase
        SetBase = ""
        self.Hide()
        return TRUE
        
    def __Load_MessagebotDialog(self):
    
        self.SetPosition(100, 45)
        self.SetSize(250, 470)
        self.AddFlag("movable")
        self.AddFlag("float")
        self.Close()

        chat.AppendChat(chat.CHAT_TYPE_INFO, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Multi-Hack by Valkiria << ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
        chat.AppendChat(chat.CHAT_TYPE_INFO, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Stworzony na serwer: PandoraMT2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
        chat.AppendChat(chat.CHAT_TYPE_INFO, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Miłej zabawy  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
                                            
        self.LoadText()
        self.LoadButton()
        self.LoadEditLines()
        
    def Show(self):
        ui.ThinBoard.Show(self)
        
    def Close(self):
        self.Hide()
        return TRUE
        
    def OnPressEscapeKey(self):
        self.Hide()
        return TRUE
        
        
        
        
    def LoadText(self):
    
        self.MainLabel = ui.TextLine()
        self.MainLabel.SetParent(self)
        self.MainLabel.SetDefaultFontName()
        self.MainLabel.SetPosition(-50, 10)
        self.MainLabel.SetFeather()
        self.MainLabel.SetWindowHorizontalAlignCenter()
        self.MainLabel.SetText(" Multi-Hack by Valkiria")
        self.MainLabel.SetFontColor(0.0, 0.7, 1)
        self.MainLabel.SetOutline()
        self.MainLabel.Show()
        
        self.RefineLabel = ui.TextLine()
        self.RefineLabel.SetParent(self)
        self.RefineLabel.SetDefaultFontName()
        self.RefineLabel.SetPosition(-110, 40)
        self.RefineLabel.SetFeather()
        self.RefineLabel.SetWindowHorizontalAlignCenter()
        self.RefineLabel.SetText("Upgrade")
    #    self.RefineLabel.SetFontColor(1.0, 0.8, 0)
        self.RefineLabel.SetOutline()
        self.RefineLabel.Show()    
        
        self.MoveSpeedLabel = ui.TextLine()
        self.MoveSpeedLabel.SetParent(self)
        self.MoveSpeedLabel.SetDefaultFontName()
        self.MoveSpeedLabel.SetPosition(-110, 70)
        self.MoveSpeedLabel.SetFeather()
        self.MoveSpeedLabel.SetWindowHorizontalAlignCenter()
        self.MoveSpeedLabel.SetText("MoveSpeed:")
    #    self.MoveSpeedLabel.SetFontColor(1.0, 0.8, 0)
        self.MoveSpeedLabel.SetOutline()
        self.MoveSpeedLabel.Show()    
        
        self.MoveSpeedPerncentLabel = ui.TextLine()
        self.MoveSpeedPerncentLabel.SetParent(self)
        self.MoveSpeedPerncentLabel.SetDefaultFontName()
        self.MoveSpeedPerncentLabel.SetPosition(-10, 70)
        self.MoveSpeedPerncentLabel.SetFeather()
        self.MoveSpeedPerncentLabel.SetWindowHorizontalAlignCenter()
        self.MoveSpeedPerncentLabel.SetText("%")
        self.MoveSpeedPerncentLabel.SetFontColor(0.0, 0.7, 1)
        self.MoveSpeedPerncentLabel.SetOutline()
        self.MoveSpeedPerncentLabel.Show()    
        
        self.ComboLabel = ui.TextLine()
        self.ComboLabel.SetParent(self)
        self.ComboLabel.SetDefaultFontName()
        self.ComboLabel.SetPosition(-110, 100)
        self.ComboLabel.SetFeather()
        self.ComboLabel.SetWindowHorizontalAlignCenter()
        self.ComboLabel.SetText("Combo:")
    #    self.ComboLabel.SetFontColor(1.0, 0.8, 0)
        self.ComboLabel.SetOutline()
        self.ComboLabel.Show()    
        
        self.ZoomHackLabel = ui.TextLine()
        self.ZoomHackLabel.SetParent(self)
        self.ZoomHackLabel.SetDefaultFontName()
        self.ZoomHackLabel.SetPosition(-110, 130)
        self.ZoomHackLabel.SetFeather()
        self.ZoomHackLabel.SetWindowHorizontalAlignCenter()
        self.ZoomHackLabel.SetText("ZoomHack:")
    #    self.ZoomHackLabel.SetFontColor(1.0, 0.8, 0)
        self.ZoomHackLabel.SetOutline()
        self.ZoomHackLabel.Show()    
        
        self.NoFogLabel = ui.TextLine()
        self.NoFogLabel.SetParent(self)
        self.NoFogLabel.SetDefaultFontName()
        self.NoFogLabel.SetPosition(-110, 160)
        self.NoFogLabel.SetFeather()
        self.NoFogLabel.SetWindowHorizontalAlignCenter()
        self.NoFogLabel.SetText("NoFog:")
    #    self.NoFogLabel.SetFontColor(1.0, 0.8, 0)
        self.NoFogLabel.SetOutline()
        self.NoFogLabel.Show()    
        
        self.DayNightLabel = ui.TextLine()
        self.DayNightLabel.SetParent(self)
        self.DayNightLabel.SetDefaultFontName()
        self.DayNightLabel.SetPosition(-110, 190)
        self.DayNightLabel.SetFeather()
        self.DayNightLabel.SetWindowHorizontalAlignCenter()
        self.DayNightLabel.SetText("Day/Night:")
    #    self.DayNightLabel.SetFontColor(1.0, 0.8, 0)
        self.DayNightLabel.SetOutline()
        self.DayNightLabel.Show()    
        
        self.SnowLabel = ui.TextLine()
        self.SnowLabel.SetParent(self)
        self.SnowLabel.SetDefaultFontName()
        self.SnowLabel.SetPosition(-110, 220)
        self.SnowLabel.SetFeather()
        self.SnowLabel.SetWindowHorizontalAlignCenter()
        self.SnowLabel.SetText("Snow:")
    #    self.SnowLabel.SetFontColor(1.0, 0.8, 0)
        self.SnowLabel.SetOutline()
        self.SnowLabel.Show()    
        
        self.LineLabel = ui.TextLine()    
        self.LineLabel.SetParent(self)
        self.LineLabel.SetDefaultFontName()
        self.LineLabel.SetPosition(-110, 240)
        self.LineLabel.SetFeather()
        self.LineLabel.SetWindowHorizontalAlignCenter()
        self.LineLabel.SetText("____________________________________________")
        self.LineLabel.SetFontColor(1.0, 0.8, 0)
        self.LineLabel.SetOutline()
        self.LineLabel.Show()    
        
        self.AutoRedPotLabel = ui.TextLine()    
        self.AutoRedPotLabel.SetParent(self)
        self.AutoRedPotLabel.SetDefaultFontName()
        self.AutoRedPotLabel.SetPosition(-110, 270)
        self.AutoRedPotLabel.SetFeather()
        self.AutoRedPotLabel.SetWindowHorizontalAlignCenter()
        self.AutoRedPotLabel.SetText("RedPotting:")
        self.AutoRedPotLabel.SetFontColor(35.0, 0.0, 0.0)
        self.AutoRedPotLabel.SetOutline()
        self.AutoRedPotLabel.Show()    
        
        self.RedPotPercentLabel = ui.TextLine()    
        self.RedPotPercentLabel.SetParent(self)
        self.RedPotPercentLabel.SetDefaultFontName()
        self.RedPotPercentLabel.SetPosition(-12, 269)
        self.RedPotPercentLabel.SetFeather()
        self.RedPotPercentLabel.SetWindowHorizontalAlignCenter()
        self.RedPotPercentLabel.SetText("%")
        self.RedPotPercentLabel.SetFontColor(35.0, 0.0, 0.0)
        self.RedPotPercentLabel.SetOutline()
        self.RedPotPercentLabel.Show()    
        
        self.AutoBluePotLabel = ui.TextLine()    
        self.AutoBluePotLabel.SetParent(self)
        self.AutoBluePotLabel.SetDefaultFontName()
        self.AutoBluePotLabel.SetPosition(-110, 300)
        self.AutoBluePotLabel.SetFeather()
        self.AutoBluePotLabel.SetWindowHorizontalAlignCenter()
        self.AutoBluePotLabel.SetText("BluePotting:")
        self.AutoBluePotLabel.SetFontColor(0.0, 0.0, 1.0)
        self.AutoBluePotLabel.SetOutline()
        self.AutoBluePotLabel.Show()    
        
        self.BluePotPercentLabel = ui.TextLine()    
        self.BluePotPercentLabel.SetParent(self)
        self.BluePotPercentLabel.SetDefaultFontName()
        self.BluePotPercentLabel.SetPosition(-12, 300)
        self.BluePotPercentLabel.SetFeather()
        self.BluePotPercentLabel.SetWindowHorizontalAlignCenter()
        self.BluePotPercentLabel.SetText("%")
        self.BluePotPercentLabel.SetFontColor(0.0, 0.0, 1.0)
        self.BluePotPercentLabel.SetOutline()
        self.BluePotPercentLabel.Show()    
        
        self.AutoAttackLabel = ui.TextLine()    
        self.AutoAttackLabel.SetParent(self)
        self.AutoAttackLabel.SetDefaultFontName()
        self.AutoAttackLabel.SetPosition(-110, 330)
        self.AutoAttackLabel.SetFeather()
        self.AutoAttackLabel.SetWindowHorizontalAlignCenter()
        self.AutoAttackLabel.SetText("AutoAttack:")
    #    self.AutoAttackLabel.SetFontColor(1.0, 0.8, 0)
        self.AutoAttackLabel.SetOutline()
        self.AutoAttackLabel.Show()
        
        self.AutoPickLabel = ui.TextLine()    
        self.AutoPickLabel.SetParent(self)
        self.AutoPickLabel.SetDefaultFontName()
        self.AutoPickLabel.SetPosition(-110, 360)
        self.AutoPickLabel.SetFeather()
        self.AutoPickLabel.SetWindowHorizontalAlignCenter()
        self.AutoPickLabel.SetText("AutoPickup:")
    #    self.AutoPickLabel.SetFontColor(1.0, 0.8, 0)
        self.AutoPickLabel.SetOutline()
        self.AutoPickLabel.Show()
        
        self.AutoRestartLabel = ui.TextLine()    
        self.AutoRestartLabel.SetParent(self)
        self.AutoRestartLabel.SetDefaultFontName()
        self.AutoRestartLabel.SetPosition(-110, 390)
        self.AutoRestartLabel.SetFeather()
        self.AutoRestartLabel.SetWindowHorizontalAlignCenter()
        self.AutoRestartLabel.SetText("AutoRestart:")
    #    self.AutoRestartLabel.SetFontColor(1.0, 0.8, 0)
        self.AutoRestartLabel.SetOutline()
        self.AutoRestartLabel.Show()
        
        
        global GhostModLabel
        GhostModLabel = ui.TextLine()    
        GhostModLabel.SetDefaultFontName()
        GhostModLabel.SetPosition(-375, 45)                        
        GhostModLabel.SetFeather()
        GhostModLabel.SetWindowHorizontalAlignCenter()
        GhostModLabel.SetText("GhostMod")
        GhostModLabel.SetFontColor(1.0, 0.8, 0)
        GhostModLabel.SetOutline()
        GhostModLabel.Show()
        
        global UpgradeLabel
        UpgradeLabel = ui.TextLine()    
        UpgradeLabel.SetDefaultFontName()
        UpgradeLabel.SetPosition(-375, 65)
        UpgradeLabel.SetFeather()
        UpgradeLabel.SetWindowHorizontalAlignCenter()
        UpgradeLabel.SetText("Bonus-Switcher")
        UpgradeLabel.SetFontColor(0.0, 0.7, 1)
        UpgradeLabel.SetOutline()
        UpgradeLabel.Show()
        
        global OpenSettingsLabel
        OpenSettingsLabel = ui.TextLine()    
        OpenSettingsLabel.SetDefaultFontName()
        OpenSettingsLabel.SetPosition(-375, 85)
        OpenSettingsLabel.SetFeather()
        OpenSettingsLabel.SetWindowHorizontalAlignCenter()
        OpenSettingsLabel.SetText("Multi-Hack")
        OpenSettingsLabel.SetFontColor(1.0, 0.8, 0)
        OpenSettingsLabel.SetOutline()
        OpenSettingsLabel.Show()
        
    def LoadButton(self):
        
        self.CloseButton = ui.Button()
        self.CloseButton.SetParent(self)
        self.CloseButton.SetPosition(220, 10)
        self.CloseButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")
        self.CloseButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")
        self.CloseButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")
        self.CloseButton.SetToolTipText(locale.UI_CLOSE, 0, - 23)
        self.CloseButton.SetEvent(ui.__mem_func__(self.Hide))
        self.CloseButton.Show()
        
        
        self.SetRefineModeButton = ui.Button()
        self.SetRefineModeButton.SetParent(self)
        self.SetRefineModeButton.SetPosition(75, 37)
        self.SetRefineModeButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.SetRefineModeButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.SetRefineModeButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.SetRefineModeButton.SetEvent(ui.__mem_func__(self.RefineMode))
        self.SetRefineModeButton.SetText("DT")
        self.SetRefineModeButton.SetToolTipText("Swich between DT and normal Upgrading")
        self.SetRefineModeButton.Show()
        
        self.MoveSpeedButton = ui.Button()
        self.MoveSpeedButton.SetParent(self)
        self.MoveSpeedButton.SetPosition(140, 69)
        self.MoveSpeedButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.MoveSpeedButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.MoveSpeedButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.MoveSpeedButton.SetEvent(ui.__mem_func__(self.MoveSpeed))
        self.MoveSpeedButton.SetText("Of")
        self.MoveSpeedButton.Show()
        
        self.ComboTypeButton = ui.Button()
        self.ComboTypeButton.SetParent(self)
        self.ComboTypeButton.SetPosition(75, 97)
        self.ComboTypeButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.ComboTypeButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.ComboTypeButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.ComboTypeButton.SetEvent(ui.__mem_func__(self.Combo))
        self.ComboTypeButton.SetText("Off")
        self.ComboTypeButton.Show()
        
        self.ZoomHackButton = ui.Button()
        self.ZoomHackButton.SetParent(self)
        self.ZoomHackButton.SetPosition(75, 127)
        self.ZoomHackButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.ZoomHackButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.ZoomHackButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.ZoomHackButton.SetEvent(ui.__mem_func__(self.ZoomHack))
        self.ZoomHackButton.SetText("Off")
        self.ZoomHackButton.Show()
        
        self.NoFogButton = ui.Button()
        self.NoFogButton.SetParent(self)
        self.NoFogButton.SetPosition(75, 157)
        self.NoFogButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.NoFogButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.NoFogButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.NoFogButton.SetEvent(ui.__mem_func__(self.NoFog))
        self.NoFogButton.SetText("Off")
        self.NoFogButton.Show()
        
        self.DayNightButton = ui.Button()
        self.DayNightButton.SetParent(self)
        self.DayNightButton.SetPosition(75, 187)
        self.DayNightButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.DayNightButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.DayNightButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.DayNightButton.SetEvent(ui.__mem_func__(self.DayNight))
        self.DayNightButton.SetText("Day")
        self.DayNightButton.Show()
        
        self.SnowButton = ui.Button()
        self.SnowButton.SetParent(self)
        self.SnowButton.SetPosition(75, 217)
        self.SnowButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.SnowButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.SnowButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.SnowButton.SetEvent(ui.__mem_func__(self.EnableSnow))
        self.SnowButton.SetText("Off")
        self.SnowButton.Show()
        
        self.AutoRedPotButton = ui.Button()
        self.AutoRedPotButton.SetParent(self)
        self.AutoRedPotButton.SetPosition(140, 267)
        self.AutoRedPotButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.AutoRedPotButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.AutoRedPotButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.AutoRedPotButton.SetEvent(ui.__mem_func__(self.AutoRedPot))
        self.AutoRedPotButton.SetText("Off")
        self.AutoRedPotButton.Show()
        
        self.AutoBluePotButton = ui.Button()
        self.AutoBluePotButton.SetParent(self)
        self.AutoBluePotButton.SetPosition(140, 297)
        self.AutoBluePotButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.AutoBluePotButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.AutoBluePotButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.AutoBluePotButton.SetEvent(ui.__mem_func__(self.AutoBluePot))
        self.AutoBluePotButton.SetText("Off")
        self.AutoBluePotButton.Show()
        
        self.AutoAttackButton = ui.Button()
        self.AutoAttackButton.SetParent(self)
        self.AutoAttackButton.SetPosition(75, 327)
        self.AutoAttackButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.AutoAttackButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.AutoAttackButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.AutoAttackButton.SetEvent(ui.__mem_func__(self.AutoAttack))
        self.AutoAttackButton.SetText("Off")
        self.AutoAttackButton.Show()
        
        self.AutoPickupButton = ui.Button()
        self.AutoPickupButton.SetParent(self)
        self.AutoPickupButton.SetPosition(75, 357)
        self.AutoPickupButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.AutoPickupButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.AutoPickupButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.AutoPickupButton.SetEvent(ui.__mem_func__(self.AutoPickup))
        self.AutoPickupButton.SetText("Off")
        self.AutoPickupButton.Show()
        
        self.AutoRestartButton = ui.Button()
        self.AutoRestartButton.SetParent(self)
        self.AutoRestartButton.SetPosition(75, 387)
        self.AutoRestartButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.AutoRestartButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.AutoRestartButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.AutoRestartButton.SetEvent(ui.__mem_func__(self.AutoRestart))
        self.AutoRestartButton.SetText("Off")
        self.AutoRestartButton.Show()
        
        self.InstructionButton = ui.Button()
        self.InstructionButton.SetParent(self)
        self.InstructionButton.SetPosition(10, 427)
        self.InstructionButton.SetUpVisual("d:/ymir work/ui/public/large_button_01.sub")
        self.InstructionButton.SetOverVisual("d:/ymir work/ui/public/large_button_02.sub")
        self.InstructionButton.SetDownVisual("d:/ymir work/ui/public/large_button_03.sub")
        self.InstructionButton.SetEvent(ui.__mem_func__(self.Instruction))
        self.InstructionButton.SetText("Run Instructions")
        self.InstructionButton.SetToolTipText("Open the Thread for an instructions")
        self.InstructionButton.Show()
        
        self.CopyrightButton = ui.Button()
        self.CopyrightButton.SetParent(self)
        self.CopyrightButton.SetPosition(150, 427)
        self.CopyrightButton.SetUpVisual("d:/ymir work/ui/public/large_button_01.sub")
        self.CopyrightButton.SetOverVisual("d:/ymir work/ui/public/large_button_02.sub")
        self.CopyrightButton.SetDownVisual("d:/ymir work/ui/public/large_button_03.sub")
        self.CopyrightButton.SetEvent(ui.__mem_func__(self.MyEpvpProfile))
        self.CopyrightButton.SetText("©123klo E*PvP")
        self.CopyrightButton.SetToolTipText("Open my E*PvP Profile")
        self.CopyrightButton.Show()
        
        
        global GhostModeButton
        GhostModeButton.SetText("")
        GhostModeButton.SetPosition(2, 45)
        GhostModeButton.SetSize(88,21)
        GhostModeButton.SetEvent(self.GhostMod)
        GhostModeButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")
        GhostModeButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")
        GhostModeButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")
        GhostModeButton.Show()
        global GhostModeLine
        GhostModeLine.SetParent(GhostModeButton)
        GhostModeLine.SetPosition(23,10)
        GhostModeLine.SetVerticalAlignCenter()
        GhostModeLine.SetHorizontalAlignCenter()
        GhostModeLine.Show()
        
        global UpButton
        UpButton.SetText("")
        UpButton.SetPosition(2, 65)
        UpButton.SetSize(88,21)
        UpButton.SetEvent(self.RefineOneTime)
        UpButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")
        UpButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")
        UpButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")
        UpButton.Show()
        global UpLine
        UpLine.SetParent(UpButton)
        UpLine.SetPosition(23,10)
        UpLine.SetVerticalAlignCenter()
        UpLine.SetHorizontalAlignCenter()
        UpLine.Show()
        
        global OpenSettingsButton
        OpenSettingsButton.SetText("")
        OpenSettingsButton.SetPosition(2, 85)
        OpenSettingsButton.SetSize(88,21)
        OpenSettingsButton.SetEvent(self.Show)
        OpenSettingsButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")
        OpenSettingsButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")
        OpenSettingsButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")
        OpenSettingsButton.Show()
        global OpenSettingsLine
        OpenSettingsLine.SetParent(OpenSettingsButton)
        OpenSettingsLine.SetPosition(23,10)
        OpenSettingsLine.SetVerticalAlignCenter()
        OpenSettingsLine.SetHorizontalAlignCenter()
        OpenSettingsLine.Show()
        
    def LoadEditLines(self):
    
        self.SlotBarRedPotting = ui.SlotBar()
        self.SlotBarRedPotting.SetParent(self)
        self.SlotBarRedPotting.SetSize(30, 18)
        self.SlotBarRedPotting.SetPosition(-32, 268)
        self.SlotBarRedPotting.SetWindowHorizontalAlignCenter()
        self.SlotBarRedPotting.Show()
        
        self.EditLineRedPotting = ui.EditLine()
        self.EditLineRedPotting.SetParent(self.SlotBarRedPotting)
        self.EditLineRedPotting.SetSize(30, 17)
        self.EditLineRedPotting.SetPosition(8, 2)
        self.EditLineRedPotting.SetMax(2)
        self.EditLineRedPotting.SetNumberMode()
        self.EditLineRedPotting.SetText("90")
        self.EditLineRedPotting.SetFocus()
        self.EditLineRedPotting.Show()
        
        
        self.SlotBarBluePotting = ui.SlotBar()
        self.SlotBarBluePotting.SetParent(self)
        self.SlotBarBluePotting.SetSize(30, 18)
        self.SlotBarBluePotting.SetPosition(-32, 298)
        self.SlotBarBluePotting.SetWindowHorizontalAlignCenter()
        self.SlotBarBluePotting.Show()
        
        self.EditLineBluePotting = ui.EditLine()
        self.EditLineBluePotting.SetParent(self.SlotBarBluePotting)
        self.EditLineBluePotting.SetSize(30, 17)
        self.EditLineBluePotting.SetPosition(8, 2)
        self.EditLineBluePotting.SetMax(2)
        self.EditLineBluePotting.SetNumberMode()
        self.EditLineBluePotting.SetText("40")
        self.EditLineBluePotting.SetFocus()
        self.EditLineBluePotting.Show()
        
        
        self.SlotBarMoveSpeed = ui.SlotBar()
        self.SlotBarMoveSpeed.SetParent(self)
        self.SlotBarMoveSpeed.SetSize(30, 18)
        self.SlotBarMoveSpeed.SetPosition(-30, 70)
        self.SlotBarMoveSpeed.SetWindowHorizontalAlignCenter()
        self.SlotBarMoveSpeed.Show()
        
        self.EditLineMoveSpeed = ui.EditLine()
        self.EditLineMoveSpeed.SetParent(self.SlotBarMoveSpeed)
        self.EditLineMoveSpeed.SetSize(30, 17)
        self.EditLineMoveSpeed.SetPosition(8, 2)
        self.EditLineMoveSpeed.SetMax(3)
        self.EditLineMoveSpeed.SetNumberMode()
        self.EditLineMoveSpeed.SetText("200")
        self.EditLineMoveSpeed.SetFocus()
        self.EditLineMoveSpeed.Show()
    
    
    def MyEpvpProfile(self):
    
        os.system("start http://www.elitepvpers.com/forum/members/2581363-123klo.html")
        
    def Instruction(self):
    
        os.system("start http://www.elitepvpers.com/forum/newthread.php?do=postthread&f=405")
        
        
        
            
    def RefineMode(self):
        
        global Refine
        
        if Refine == 0:
            Refine = 1
            self.SetRefineModeButton.SetText("Normal")
        else:    
            Refine = 0
            self.SetRefineModeButton.SetText("DT")
            
    def RefineOneTime(self):
    
        global Refine
    
        if Refine == 0:
            Refine = 1
            net.SendRefinePacket(int(0), int(4))    
        else:    
            Refine = 0
            net.SendRefinePacket(int(0), int(0))
        
    def MoveSpeed(self):    
    
        global MoveSpeed
        
        if MoveSpeed == 0:
            MoveSpeed = 1
            self.MoveSpeedButton.SetText("On")
            self.EnableMoveSpeed()
        else:    
            MoveSpeed = 0
            self.MoveSpeedButton.SetText("Off")
            self.DisableMoveSpeed()
        
    def EnableMoveSpeed(self):

        MoveSpeed = self.EditLineMoveSpeed.GetText()
        NormalMoveSpeed = player.GetStatus(player.MOVING_SPEED)

        chr.SetMoveSpeed(int(NormalMoveSpeed))
        chr.SetMoveSpeed(int(MoveSpeed))
        
        self.delay = WaitingDialog()
        self.delay.Open(int(1.0))
        self.delay.SAFE_SetTimeOverEvent(self.EnableMoveSpeed)
        
    def DisableMoveSpeed(self):
    
        NormalMoveSpeed2 = player.GetStatus(player.MOVING_SPEED)
        chr.SetMoveSpeed(int(NormalMoveSpeed2))
        
        self.delay = WaitingDialog()
        self.delay.Open(int(99999999999999999))
        self.delay.SAFE_SetTimeOverEvent(self.DisableMoveSpeed)
        
    def GhostMod(self):
        
        chr.Revive()
        
    def Combo(self):
        
        global Combo
        
        if Combo == 0:
            Combo = 1
            self.ComboTypeButton.SetText("An")
            chr.testSetComboType(2)
        else:    
            Combo = 0
            self.ComboTypeButton.SetText("Aus")
            chr.testSetComboType(0)
    
    def ZoomHack(self):
        
        global ZoomHack
        
        if ZoomHack == 0:
            ZoomHack = 1
            self.ZoomHackButton.SetText("An")
            app.SetCameraMaxDistance(12000)    
        else:    
            ZoomHack = 0
            self.ZoomHackButton.SetText("Aus")
            app.SetCameraMaxDistance(2500)    
    
    def NoFog(self):
    
        global NoFog
        
        if NoFog == 0:
            NoFog = 1
            self.NoFogButton.SetText("An")
            app.SetMinFog(70000)
        else:    
            NoFog = 0
            self.NoFogButton.SetText("Aus")
            app.SetMinFog(2500)

    def DayNight(self):
    
        global DayNight
        
        if DayNight == 0:
            DayNight = 1
            self.DayNightButton.SetText("Night")
            background.SetEnvironmentData(1)
            background.RegisterEnvironmentData(1, constInfo.ENVIRONMENT_NIGHT)
            
        else:    
            DayNight = 0
            self.DayNightButton.SetText("Day")
            background.SetEnvironmentData(0)
            
    def EnableSnow(self):
        
        global EnableSnow
        
        if EnableSnow == 0:
            EnableSnow = 1
            self.SnowButton.SetText("Snow")
            background.EnableSnow(1)
        else:    
            EnableSnow = 0
            self.SnowButton.SetText("Off")
            background.EnableSnow(0)
            
            
            
            
######### Auto Potting Red #########    
            
    def AutoRedPot(self):

        global AutoRedPot
        
        if AutoRedPot == 0:
            AutoRedPot = 1
            self.AutoRedPotButton.SetText("On")
            self.EnableRedAutoPotting()
            
        else:    
            AutoRedPot = 0
            self.AutoRedPotButton.SetText("Off")
            self.DisableRedAutoPotting()
            
    def EnableRedAutoPotting(self):
        
        MaxTP = player.GetStatus(player.MAX_HP)
        ActualTP = player.GetStatus(player.HP)
        RedPercentValue = self.EditLineRedPotting.GetText()
        
        if (float(ActualTP) / (float(MaxTP)) * 100) < int(RedPercentValue):
            for i in xrange(player.INVENTORY_PAGE_SIZE*3):
                RedPott = player.GetItemIndex(i)
                if RedPott == 27001 or RedPott == 27002 or RedPott == 27003:
                    net.SendItemUsePacket(i)
                    break
                    
        self.delay = WaitingDialog()
        self.delay.Open(int(0.5))
        self.delay.SAFE_SetTimeOverEvent(self.EnableRedAutoPotting)
            
    def DisableRedAutoPotting(self):
        
        for i in xrange(player.INVENTORY_PAGE_SIZE*3):
                RedPott = player.GetItemIndex(i)
                if RedPott == 27001 or RedPott == 27002 or RedPott == 27003:
                    net.SendItemUsePacket(i)
                    break
                    
        self.delay = WaitingDialog()
        self.delay.Open(int(999999999999999999999))
        self.delay.SAFE_SetTimeOverEvent(self.DisableRedAutoPotting)
        
    
######### Auto Potting Blue #########

    def AutoBluePot(self):

        global AutoBluePot
        
        if AutoBluePot == 0:
            AutoBluePot = 1
            self.AutoBluePotButton.SetText("On")
            self.EnableBlueAutoPotting()
            
        else:    
            AutoBluePot = 0
            self.AutoBluePotButton.SetText("Off")
            self.DisableBlueAutoPotting()
            
    def EnableBlueAutoPotting(self):

        MaxSP = player.GetStatus(player.MAX_SP)
        ActualSP = player.GetStatus(player.SP)
        BluePercentValue = self.EditLineBluePotting.GetText()
        
        if (float(ActualSP) / (float(MaxSP)) * 100) < int(BluePercentValue):
            for i in xrange(player.INVENTORY_PAGE_SIZE*3):
                BluePott = player.GetItemIndex(i)
                if BluePott == 27004 or BluePott == 27005 or BluePott == 27006:
                    net.SendItemUsePacket(i)
                    break
                    
        self.delay = WaitingDialog()
        self.delay.Open(int(0.5))
        self.delay.SAFE_SetTimeOverEvent(self.EnableBlueAutoPotting)
            
    def DisableBlueAutoPotting(self):
        
        for i in xrange(player.INVENTORY_PAGE_SIZE*3):
                BluePott = player.GetItemIndex(i)
                if BluePott == 27004 or BluePott == 27005 or BluePott == 27006:
                #    net.SendItemUsePacket(i)
                    break
                    
        self.delay = WaitingDialog()
        self.delay.Open(int(999999999999999999999))
        self.delay.SAFE_SetTimeOverEvent(self.DisableBlueAutoPotting)    
        
        
        
        
    def AutoAttack(self):
        
        global AutoAttack
        
        if AutoAttack == 0:
            AutoAttack = 1
            self.AutoAttackButton.SetText("On")    
            self.EnableAutoAttack()
        else:    
            AutoAttack = 0
            self.AutoAttackButton.SetText("Off")
            self.DisableAutoAttack()
        
    def EnableAutoAttack(self):
    
        Direction = app.GetRandom(0,7)
        player.SetAttackKeyState(TRUE)
        chr.SetDirection(Direction)
        
        
        
        self.delay = WaitingDialog()
        self.delay.Open(int(1.0))
        self.delay.SAFE_SetTimeOverEvent(self.EnableAutoAttack)
            
    def DisableAutoAttack(self):
    
        player.SetAttackKeyState(FALSE)
        
        self.delay = WaitingDialog()
        self.delay.Open(int(99999999999999999))
        self.delay.SAFE_SetTimeOverEvent(self.DisableAutoAttack)

        
    def AutoPickup(self):

        global AutoPickup
        
        if AutoPickup == 0:
            AutoPickup = 1
            self.AutoPickupButton.SetText("On")    
            self.EnableAutoPickup()
        else:    
            AutoPickup = 0
            self.AutoPickupButton.SetText("Off")
            self.DisableAutoPickup()
        
    def EnableAutoPickup(self):
        
        
        
        player.PickCloseItem()
        
        self.delay = WaitingDialog()
        self.delay.Open(int(0.5))
        self.delay.SAFE_SetTimeOverEvent(self.EnableAutoPickup)
            
    def DisableAutoPickup(self):
        
        player.PickCloseItem()
        
        self.delay = WaitingDialog()
        self.delay.Open(int(999999999999999999999999999999))
        self.delay.SAFE_SetTimeOverEvent(self.DisableAutoPickup)
        

        
    
    def AutoRestart(self):

        global AutoRestart
        
        if AutoRestart == 0:
            AutoRestart = 1
            self.AutoRestartButton.SetText("On")    
            self.EnableRestart()
        else:    
            AutoRestart = 0
            self.AutoRestartButton.SetText("Off")
            self.DisableRestart()
        
    def EnableRestart(self):
        
        net.SendChatPacket("/restart_here")
    
        self.delay = WaitingDialog()
        self.delay.Open(int(2.5))
        self.delay.SAFE_SetTimeOverEvent(self.EnableRestart)
        

    
class WaitingDialog(ui.ScriptWindow):

    def __init__(self):
        ui.ScriptWindow.__init__(self)
        self.eventTimeOver = lambda *arg: None
        self.eventExit = lambda *arg: None

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

    def Open(self, waitTime):
        curTime = time.clock()
        self.endTime = curTime + waitTime

        self.Show()        

    def Close(self):
        self.Hide()

    def Destroy(self):
        self.Hide()

    def SAFE_SetTimeOverEvent(self, event):
        self.eventTimeOver = ui.__mem_func__(event)

    def SAFE_SetExitEvent(self, event):
        self.eventExit = ui.__mem_func__(event)
        
    
    def OnUpdate(self):
        lastTime = max(0, self.endTime - time.clock())
        if 0 == lastTime:
            self.Close()
            self.eventTimeOver()    
        else:
            return
        
    def OnPressExitKey(self):

        self.Close()
        return TRUE
        
Multi = MultihackDialog()
Multi.Close()
 

 

 

 

po odpaleniu go, wyskakują w metinie na górze 3 przyciski,

1 to ghost,

2 to upgrate

3 to multihack

i chciabym zeby ten 2 upgrate, odpalała sie maszynka z tego kodu

 

 

import chat
import item
import net
import player
import shop
import ui
import uiTip
import systemSetting
import app
import time
import chr
import chrmgr
import nonplayer

Bonus1 = (0, 0)
Bonus2 = (0, 0)
Bonus3 = (0, 0)
Bonus4 = (0, 0)
Bonus5 = (0, 0)
SwitchButton = 0
Boniswitchvalue = 71084
PRESSWISH = 0

class SwitchBotDialog(ui.ThinBoard):
    MAINBONUSES  = ["1. Bonus", "2. Bonus", "3. Bonus", "4. Bonus", "5. Bonus"]
    ALTERBONUSES = ["1. Bonus", "2. Bonus", "3. Bonus", "4. Bonus", "5. Bonus"]
    GUI = []
    def __init__(self):
        ui.ThinBoard.__init__(self)

        self.__Load_BindObject()
        self.UpdateInventoryList()

    def __del__(self):
        ui.ThinBoard.__del__(self)

    def Destroy(self):
        self.Hide()
        return TRUE

    def Bonuschangevalue(self):
        global Boniswitchvalue
        for i in xrange(player.INVENTORY_PAGE_SIZE*2):
            itemIndex = player.GetItemIndex(i)
            item.SelectItem(itemIndex)
            ItemValue = player.GetItemIndex(i)
            if item.IsAntiFlag(74112) and item.IsFlag(8196) and item.GetItemSubType() == 18:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "Megbűvölő tárgy kódja: " + str(ItemValue))
                Boniswitchvalue = int(ItemValue)
                break
            elif str(item.GetItemName()) == "Megbűvölő tárgy":
                chat.AppendChat(chat.CHAT_TYPE_INFO, "Megbűvölő tárgy kódja " + str(ItemValue))
                Boniswitchvalue = int(ItemValue)
                break

    def __CreateInvListBox(self):
        invListBox = ui.ListBoxEx()
        invListBox.SetParent(self)
        invListBox.SetPosition(15, 35)
        invListBox.Show()
        return invListBox

    def __Load_BindObject(self):
        self.AddFlag("movable")
        self.AddFlag("float")
        self.SetSize(470, 325)
        self.SetCenterPosition()
        self.Show()

        self.invListBox = self.__CreateInvListBox()
        self.LoadScrollBar()
        self.invListBox.SetScrollBar(self.ScrollBar)

        self.LoadTextLines()
        self.LoadButtons()
        self.LoadEditLines()
        self.LoadLine()
        self.Bonuschangevalue()

        self.BoardMessage = uiTip.BigBoard()

    def LoadEditLines(self):
        self.BonusValue10SlotBar = ui.SlotBar()
        self.BonusValue10SlotBar.SetParent(self)
        self.BonusValue10SlotBar.SetSize(29, 14)
        self.BonusValue10SlotBar.SetPosition(-27+95+131, 143)
        self.BonusValue10SlotBar.SetWindowHorizontalAlignCenter()
        self.BonusValue10SlotBar.Show()

        self.Bvalue10 = ui.EditLine()
        self.Bvalue10.SetParent(self.BonusValue10SlotBar)
        self.Bvalue10.SetSize(29, 18)
        self.Bvalue10.SetPosition(6, 0)
        self.Bvalue10.SetMax(4)
        self.Bvalue10.SetNumberMode()
        self.Bvalue10.SetText("0")
        self.Bvalue10.SetTabEvent(ui.__mem_func__(self.StartSwitchBot))
        self.Bvalue10.SetReturnEvent(ui.__mem_func__(self.StartSwitchBot))
        self.Bvalue10.Show()

        self.BonusValue9SlotBar = ui.SlotBar()
        self.BonusValue9SlotBar.SetParent(self)
        self.BonusValue9SlotBar.SetSize(29, 14)
        self.BonusValue9SlotBar.SetPosition(-27+95+131, 118)
        self.BonusValue9SlotBar.SetWindowHorizontalAlignCenter()
        self.BonusValue9SlotBar.Show()

        self.Bvalue9 = ui.EditLine()
        self.Bvalue9.SetParent(self.BonusValue9SlotBar)
        self.Bvalue9.SetSize(29, 18)
        self.Bvalue9.SetPosition(6, 0)
        self.Bvalue9.SetMax(4)
        self.Bvalue9.SetNumberMode()
        self.Bvalue9.SetFocus()
        self.Bvalue9.SetText("0")
        self.Bvalue9.SetTabEvent(ui.__mem_func__(self.Bvalue10.SetFocus))
        self.Bvalue9.SetReturnEvent(ui.__mem_func__(self.Bvalue10.SetFocus))
        self.Bvalue9.Show()

        self.BonusValue8SlotBar = ui.SlotBar()
        self.BonusValue8SlotBar.SetParent(self)
        self.BonusValue8SlotBar.SetSize(29, 14)
        self.BonusValue8SlotBar.SetPosition(-27+95+131, 93)
        self.BonusValue8SlotBar.SetWindowHorizontalAlignCenter()
        self.BonusValue8SlotBar.Show()

        self.Bvalue8 = ui.EditLine()
        self.Bvalue8.SetParent(self.BonusValue8SlotBar)
        self.Bvalue8.SetSize(29, 18)
        self.Bvalue8.SetPosition(6, 0)
        self.Bvalue8.SetMax(4)
        self.Bvalue8.SetNumberMode()
        self.Bvalue8.SetText("0")
        self.Bvalue8.SetTabEvent(ui.__mem_func__(self.Bvalue9.SetFocus))
        self.Bvalue8.SetReturnEvent(ui.__mem_func__(self.Bvalue9.SetFocus))
        self.Bvalue8.Show()

        self.BonusValue7SlotBar = ui.SlotBar()
        self.BonusValue7SlotBar.SetParent(self)
        self.BonusValue7SlotBar.SetSize(29, 14)
        self.BonusValue7SlotBar.SetPosition(-27+95+131, 68)
        self.BonusValue7SlotBar.SetWindowHorizontalAlignCenter()
        self.BonusValue7SlotBar.Show()

        self.Bvalue7 = ui.EditLine()
        self.Bvalue7.SetParent(self.BonusValue7SlotBar)
        self.Bvalue7.SetSize(29, 18)
        self.Bvalue7.SetPosition(6, 0)
        self.Bvalue7.SetMax(4)
        self.Bvalue7.SetNumberMode()
        self.Bvalue7.SetText("0")
        self.Bvalue7.SetTabEvent(ui.__mem_func__(self.Bvalue8.SetFocus))
        self.Bvalue7.SetReturnEvent(ui.__mem_func__(self.Bvalue8.SetFocus))
        self.Bvalue7.Show()

        self.BonusValue6SlotBar = ui.SlotBar()
        self.BonusValue6SlotBar.SetParent(self)
        self.BonusValue6SlotBar.SetSize(29, 14)
        self.BonusValue6SlotBar.SetPosition(-27+95+131, 44)
        self.BonusValue6SlotBar.SetWindowHorizontalAlignCenter()
        self.BonusValue6SlotBar.Show()

        self.Bvalue6 = ui.EditLine()
        self.Bvalue6.SetParent(self.BonusValue6SlotBar)
        self.Bvalue6.SetSize(29, 18)
        self.Bvalue6.SetPosition(6, 0)
        self.Bvalue6.SetMax(4)
        self.Bvalue6.SetNumberMode()
        self.Bvalue6.SetText("0")
        self.Bvalue6.SetFocus()
        self.Bvalue6.SetTabEvent(ui.__mem_func__(self.Bvalue7.SetFocus))
        self.Bvalue6.SetReturnEvent(ui.__mem_func__(self.Bvalue7.SetFocus))
        self.Bvalue6.Show()

        self.BonusValue5SlotBar = ui.SlotBar()
        self.BonusValue5SlotBar.SetParent(self)
        self.BonusValue5SlotBar.SetSize(29, 14)
        self.BonusValue5SlotBar.SetPosition(-27+95, 143)
        self.BonusValue5SlotBar.SetWindowHorizontalAlignCenter()
        self.BonusValue5SlotBar.Show()

        self.Bvalue5 = ui.EditLine()
        self.Bvalue5.SetParent(self.BonusValue5SlotBar)
        self.Bvalue5.SetSize(29, 18)
        self.Bvalue5.SetPosition(6, 0)
        self.Bvalue5.SetMax(4)
        self.Bvalue5.SetNumberMode()
        self.Bvalue5.SetText("0")
        self.Bvalue5.SetFocus()
        self.Bvalue5.SetTabEvent(ui.__mem_func__(self.Bvalue6.SetFocus))
        self.Bvalue5.SetReturnEvent(ui.__mem_func__(self.Bvalue6.SetFocus))
        self.Bvalue5.Show()

        self.BonusValue4SlotBar = ui.SlotBar()
        self.BonusValue4SlotBar.SetParent(self)
        self.BonusValue4SlotBar.SetSize(29, 14)
        self.BonusValue4SlotBar.SetPosition(-27+95, 118)
        self.BonusValue4SlotBar.SetWindowHorizontalAlignCenter()
        self.BonusValue4SlotBar.Show()

        self.Bvalue4 = ui.EditLine()
        self.Bvalue4.SetParent(self.BonusValue4SlotBar)
        self.Bvalue4.SetSize(29, 18)
        self.Bvalue4.SetPosition(6, 0)
        self.Bvalue4.SetMax(4)
        self.Bvalue4.SetNumberMode()
        self.Bvalue4.SetFocus()
        self.Bvalue4.SetText("0")
        self.Bvalue4.SetTabEvent(ui.__mem_func__(self.Bvalue5.SetFocus))
        self.Bvalue4.SetReturnEvent(ui.__mem_func__(self.Bvalue5.SetFocus))
        self.Bvalue4.Show()

        self.BonusValue3SlotBar = ui.SlotBar()
        self.BonusValue3SlotBar.SetParent(self)
        self.BonusValue3SlotBar.SetSize(29, 14)
        self.BonusValue3SlotBar.SetPosition(-27+95, 93)
        self.BonusValue3SlotBar.SetWindowHorizontalAlignCenter()
        self.BonusValue3SlotBar.Show()

        self.Bvalue3 = ui.EditLine()
        self.Bvalue3.SetParent(self.BonusValue3SlotBar)
        self.Bvalue3.SetSize(29, 18)
        self.Bvalue3.SetPosition(6, 0)
        self.Bvalue3.SetMax(4)
        self.Bvalue3.SetNumberMode()
        self.Bvalue3.SetText("0")
        self.Bvalue3.SetTabEvent(ui.__mem_func__(self.Bvalue4.SetFocus))
        self.Bvalue3.SetReturnEvent(ui.__mem_func__(self.Bvalue4.SetFocus))
        self.Bvalue3.Show()

        self.BonusValue2SlotBar = ui.SlotBar()
        self.BonusValue2SlotBar.SetParent(self)
        self.BonusValue2SlotBar.SetSize(29, 14)
        self.BonusValue2SlotBar.SetPosition(-27+95, 68)
        self.BonusValue2SlotBar.SetWindowHorizontalAlignCenter()
        self.BonusValue2SlotBar.Show()

        self.Bvalue2 = ui.EditLine()
        self.Bvalue2.SetParent(self.BonusValue2SlotBar)
        self.Bvalue2.SetSize(29, 18)
        self.Bvalue2.SetPosition(6, 0)
        self.Bvalue2.SetMax(4)
        self.Bvalue2.SetNumberMode()
        self.Bvalue2.SetText("0")
        self.Bvalue2.SetTabEvent(ui.__mem_func__(self.Bvalue3.SetFocus))
        self.Bvalue2.SetReturnEvent(ui.__mem_func__(self.Bvalue3.SetFocus))
        self.Bvalue2.Show()

        self.BonusValue1SlotBar = ui.SlotBar()
        self.BonusValue1SlotBar.SetParent(self)
        self.BonusValue1SlotBar.SetSize(29, 14)
        self.BonusValue1SlotBar.SetPosition(-27+95, 44)
        self.BonusValue1SlotBar.SetWindowHorizontalAlignCenter()
        self.BonusValue1SlotBar.Show()

        self.Bvalue1 = ui.EditLine()
        self.Bvalue1.SetParent(self.BonusValue1SlotBar)
        self.Bvalue1.SetSize(29, 18)
        self.Bvalue1.SetPosition(6, 0)
        self.Bvalue1.SetMax(4)
        self.Bvalue1.SetNumberMode()
        self.Bvalue1.SetText("0")
        self.Bvalue1.SetFocus()
        self.Bvalue1.SetTabEvent(ui.__mem_func__(self.Bvalue2.SetFocus))
        self.Bvalue1.SetReturnEvent(ui.__mem_func__(self.Bvalue2.SetFocus))
        self.Bvalue1.Show()

    def LoadButtons(self):
        self.CloseButton = ui.Button()
        self.CloseButton.SetParent(self)
        self.CloseButton.SetPosition(440, 15)
        self.CloseButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")
        self.CloseButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")
        self.CloseButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")
        self.CloseButton.SetToolTipText('Wyjście', 0, - 23)
        self.CloseButton.SetEvent(ui.__mem_func__(self.Close))
        self.CloseButton.Show()

        self.StartButton = ui.Button()
        self.StartButton.SetParent(self)
        self.StartButton.SetPosition(195 , 285)
        self.StartButton.SetUpVisual("d:/ymir work/ui/public/Large_Button_01.sub")
        self.StartButton.SetOverVisual("d:/ymir work/ui/public/Large_Button_02.sub")
        self.StartButton.SetDownVisual("d:/ymir work/ui/public/Large_Button_03.sub")
        self.StartButton.SetEvent(ui.__mem_func__(self.StartSwitchBot))
        self.StartButton.SetText("Rozpocznij")
        self.StartButton.Show()

        self.SwitchingBreakButton = ui.Button()
        self.SwitchingBreakButton.SetParent(self)
        self.SwitchingBreakButton.SetPosition(326, 285)
        self.SwitchingBreakButton.SetUpVisual("d:/ymir work/ui/public/Large_Button_01.sub")
        self.SwitchingBreakButton.SetOverVisual("d:/ymir work/ui/public/Large_Button_02.sub")
        self.SwitchingBreakButton.SetDownVisual("d:/ymir work/ui/public/Large_Button_03.sub")
        self.SwitchingBreakButton.SetEvent(ui.__mem_func__(self.__BreakSwitching))
        self.SwitchingBreakButton.SetText("Wyjście")
        self.SwitchingBreakButton.Show()

        self.RefreshInvListButton = ui.Button()
        self.RefreshInvListButton.SetParent(self)
        self.RefreshInvListButton.SetPosition(50, 285)
        self.RefreshInvListButton.SetUpVisual("d:/ymir work/ui/public/Large_Button_01.sub")
        self.RefreshInvListButton.SetOverVisual("d:/ymir work/ui/public/Large_Button_02.sub")
        self.RefreshInvListButton.SetDownVisual("d:/ymir work/ui/public/Large_Button_03.sub")
        self.RefreshInvListButton.SetEvent(ui.__mem_func__(self.UpdateInventoryList))
        self.RefreshInvListButton.SetText("Odśwież")
        self.RefreshInvListButton.Show()

        self.DelaySlide = ui.SliderBar()
        self.DelaySlide.SetParent(self)
        self.DelaySlide.SetPosition(217, 260)
        self.DelaySlide.SetEvent(ui.__mem_func__(self.SetDelay))
        self.DelaySlide.SetSliderPos(0.1)
        self.DelaySlide.Show()

        x = 195
        y = 40
        i = 0
        for Button in self.MAINBONUSES:
            ButtonList_1 = ui.Button()
            ButtonList_1.SetParent(self)
            ButtonList_1.SetPosition(x, y)
            ButtonList_1.SetUpVisual("d:/ymir work/ui/public/Large_button_01.sub")
            ButtonList_1.SetOverVisual("d:/ymir work/ui/public/Large_button_02.sub")
            ButtonList_1.SetDownVisual("d:/ymir work/ui/public/Large_button_03.sub")
            ButtonList_1.SetText(Button)
            ButtonList_1.Show()
            Mod = self.MAINBONUSES[i]
            ButtonList_1.SetEvent(lambda arg = Mod: self.ButtonList_1(arg))
            self.GUI.append(ButtonList_1)
            y += 25
            i += 1

        x = 326
        y = 40
        i = 0
        for Button in self.ALTERBONUSES:
            ButtonList_2 = ui.Button()
            ButtonList_2.SetParent(self)
            ButtonList_2.SetPosition(x, y)
            ButtonList_2.SetUpVisual("d:/ymir work/ui/public/Large_button_01.sub")
            ButtonList_2.SetOverVisual("d:/ymir work/ui/public/Large_button_02.sub")
            ButtonList_2.SetDownVisual("d:/ymir work/ui/public/Large_button_03.sub")
            ButtonList_2.SetText(Button)
            ButtonList_2.Show()
            Mod = self.ALTERBONUSES[i]
            ButtonList_2.SetEvent(lambda arg = Mod: self.ButtonList_2(arg))
            self.GUI.append(ButtonList_2)
            y += 25
            i += 1

    def LoadLine(self):
        self.LineForKaching = ui.Line()
        self.LineForKaching.SetParent(self)
        self.LineForKaching.SetPosition(198, 178)
        self.LineForKaching.SetSize(253, 0)
        self.LineForKaching.SetColor(0xff777777)
        self.LineForKaching.Show()

    def LoadTextLines(self):
    ####TitleName
        self.TitleName = ui.TextLine()
        self.TitleName.SetParent(self)
        self.TitleName.SetDefaultFontName()
        self.TitleName.SetPosition(235-44, 10)
        self.TitleName.SetFeather()
        self.TitleName.SetText("      ~~ Bonus-Switcher by >> Valkiria << ~~")
        self.TitleName.SetFontColor(0.0, 0.7, 1)
        self.TitleName.SetOutline()
        self.TitleName.Show()

    ####Main
        self.MainBonies = ui.TextLine()
        self.MainBonies.SetParent(self)
        self.MainBonies.SetDefaultFontName()
        self.MainBonies.SetPosition(198, 162)
        self.MainBonies.SetFeather()
        self.MainBonies.SetText("Pierwszorzędne:")
        self.MainBonies.SetFontColor(0.0, 0.7, 1)
        self.MainBonies.SetOutline()
        self.MainBonies.Show()

    ####MainBonusAttrs
        self.Bonus1Attr = ui.TextLine()
        self.Bonus1Attr.SetParent(self)
        self.Bonus1Attr.SetDefaultFontName()
        self.Bonus1Attr.SetPosition(198, 180 + 13*0)
        self.Bonus1Attr.SetFeather()
        self.Bonus1Attr.SetText("-")
        self.Bonus1Attr.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus1Attr.SetOutline()
        self.Bonus1Attr.Show()

        self.Bonus2Attr = ui.TextLine()
        self.Bonus2Attr.SetParent(self)
        self.Bonus2Attr.SetDefaultFontName()
        self.Bonus2Attr.SetPosition(198, 180 + 13*1)
        self.Bonus2Attr.SetFeather()
        self.Bonus2Attr.SetText("-")
        self.Bonus2Attr.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus2Attr.SetOutline()
        self.Bonus2Attr.Show()

        self.Bonus3Attr = ui.TextLine()
        self.Bonus3Attr.SetParent(self)
        self.Bonus3Attr.SetDefaultFontName()
        self.Bonus3Attr.SetPosition(198, 180 + 13*2)
        self.Bonus3Attr.SetFeather()
        self.Bonus3Attr.SetText("-")
        self.Bonus3Attr.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus3Attr.SetOutline()
        self.Bonus3Attr.Show()

        self.Bonus4Attr = ui.TextLine()
        self.Bonus4Attr.SetParent(self)
        self.Bonus4Attr.SetDefaultFontName()
        self.Bonus4Attr.SetPosition(198, 180 + 13*3)
        self.Bonus4Attr.SetFeather()
        self.Bonus4Attr.SetText("-")
        self.Bonus4Attr.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus4Attr.SetOutline()
        self.Bonus4Attr.Show()

        self.Bonus5Attr = ui.TextLine()
        self.Bonus5Attr.SetParent(self)
        self.Bonus5Attr.SetDefaultFontName()
        self.Bonus5Attr.SetPosition(198, 180 + 13*4)
        self.Bonus5Attr.SetFeather()
        self.Bonus5Attr.SetText("-")
        self.Bonus5Attr.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus5Attr.SetOutline()
        self.Bonus5Attr.Show()

    ####MainBonusVars
        self.Bonus1Var = ui.TextLine()
        self.Bonus1Var.SetParent(self)
        self.Bonus1Var.SetDefaultFontName()
        self.Bonus1Var.SetPosition(198+100, 180 + 13*0)
        self.Bonus1Var.SetFeather()
        self.Bonus1Var.SetText("0")
        self.Bonus1Var.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus1Var.SetOutline()
        self.Bonus1Var.Show()

        self.Bonus2Var = ui.TextLine()
        self.Bonus2Var.SetParent(self)
        self.Bonus2Var.SetDefaultFontName()
        self.Bonus2Var.SetPosition(198+100, 180 + 13*1)
        self.Bonus2Var.SetFeather()
        self.Bonus2Var.SetText("0")
        self.Bonus2Var.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus2Var.SetOutline()
        self.Bonus2Var.Show()

        self.Bonus3Var = ui.TextLine()
        self.Bonus3Var.SetParent(self)
        self.Bonus3Var.SetDefaultFontName()
        self.Bonus3Var.SetPosition(198+100, 180 + 13*2)
        self.Bonus3Var.SetFeather()
        self.Bonus3Var.SetText("0")
        self.Bonus3Var.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus3Var.SetOutline()
        self.Bonus3Var.Show()

        self.Bonus4Var = ui.TextLine()
        self.Bonus4Var.SetParent(self)
        self.Bonus4Var.SetDefaultFontName()
        self.Bonus4Var.SetPosition(198+100, 180 + 13*3)
        self.Bonus4Var.SetFeather()
        self.Bonus4Var.SetText("0")
        self.Bonus4Var.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus4Var.SetOutline()
        self.Bonus4Var.Show()

        self.Bonus5Var = ui.TextLine()
        self.Bonus5Var.SetParent(self)
        self.Bonus5Var.SetDefaultFontName()
        self.Bonus5Var.SetPosition(198+100, 180 + 13*4)
        self.Bonus5Var.SetFeather()
        self.Bonus5Var.SetText("0")
        self.Bonus5Var.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus5Var.SetOutline()
        self.Bonus5Var.Show()

    ####Alter
        self.AlterBonies = ui.TextLine()
        self.AlterBonies.SetParent(self)
        self.AlterBonies.SetDefaultFontName()
        self.AlterBonies.SetPosition(329, 162)
        self.AlterBonies.SetFeather()
        self.AlterBonies.SetText("Drugorzędne:")
        self.AlterBonies.SetFontColor(0.0, 0.7, 1)
        self.AlterBonies.SetOutline()
        self.AlterBonies.Show()

    ####AlterBonusAttrs
        self.Bonus6Attr = ui.TextLine()
        self.Bonus6Attr.SetParent(self)
        self.Bonus6Attr.SetDefaultFontName()
        self.Bonus6Attr.SetPosition(329, 180 + 13*0)
        self.Bonus6Attr.SetFeather()
        self.Bonus6Attr.SetText("-")
        self.Bonus6Attr.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus6Attr.SetOutline()
        self.Bonus6Attr.Show()

        self.Bonus7Attr = ui.TextLine()
        self.Bonus7Attr.SetParent(self)
        self.Bonus7Attr.SetDefaultFontName()
        self.Bonus7Attr.SetPosition(329, 180 + 13*1)
        self.Bonus7Attr.SetFeather()
        self.Bonus7Attr.SetText("-")
        self.Bonus7Attr.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus7Attr.SetOutline()
        self.Bonus7Attr.Show()

        self.Bonus8Attr = ui.TextLine()
        self.Bonus8Attr.SetParent(self)
        self.Bonus8Attr.SetDefaultFontName()
        self.Bonus8Attr.SetPosition(329, 180 + 13*2)
        self.Bonus8Attr.SetFeather()
        self.Bonus8Attr.SetText("-")
        self.Bonus8Attr.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus8Attr.SetOutline()
        self.Bonus8Attr.Show()

        self.Bonus9Attr = ui.TextLine()
        self.Bonus9Attr.SetParent(self)
        self.Bonus9Attr.SetDefaultFontName()
        self.Bonus9Attr.SetPosition(329, 180 + 13*3)
        self.Bonus9Attr.SetFeather()
        self.Bonus9Attr.SetText("-")
        self.Bonus9Attr.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus9Attr.SetOutline()
        self.Bonus9Attr.Show()

        self.Bonus10Attr = ui.TextLine()
        self.Bonus10Attr.SetParent(self)
        self.Bonus10Attr.SetDefaultFontName()
        self.Bonus10Attr.SetPosition(329, 180 + 13*4)
        self.Bonus10Attr.SetFeather()
        self.Bonus10Attr.SetText("-")
        self.Bonus10Attr.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus10Attr.SetOutline()
        self.Bonus10Attr.Show()

    ####AlterBonusVars
        self.Bonus6Var = ui.TextLine()
        self.Bonus6Var.SetParent(self)
        self.Bonus6Var.SetDefaultFontName()
        self.Bonus6Var.SetPosition(329+100, 180 + 13*0)
        self.Bonus6Var.SetFeather()
        self.Bonus6Var.SetText("0")
        self.Bonus6Var.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus6Var.SetOutline()
        self.Bonus6Var.Show()

        self.Bonus7Var = ui.TextLine()
        self.Bonus7Var.SetParent(self)
        self.Bonus7Var.SetDefaultFontName()
        self.Bonus7Var.SetPosition(329+100, 180 + 13*1)
        self.Bonus7Var.SetFeather()
        self.Bonus7Var.SetText("0")
        self.Bonus7Var.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus7Var.SetOutline()
        self.Bonus7Var.Show()

        self.Bonus8Var = ui.TextLine()
        self.Bonus8Var.SetParent(self)
        self.Bonus8Var.SetDefaultFontName()
        self.Bonus8Var.SetPosition(329+100, 180 + 13*2)
        self.Bonus8Var.SetFeather()
        self.Bonus8Var.SetText("0")
        self.Bonus8Var.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus8Var.SetOutline()
        self.Bonus8Var.Show()

        self.Bonus9Var = ui.TextLine()
        self.Bonus9Var.SetParent(self)
        self.Bonus9Var.SetDefaultFontName()
        self.Bonus9Var.SetPosition(329+100, 180 + 13*3)
        self.Bonus9Var.SetFeather()
        self.Bonus9Var.SetText("0")
        self.Bonus9Var.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus9Var.SetOutline()
        self.Bonus9Var.Show()

        self.Bonus10Var = ui.TextLine()
        self.Bonus10Var.SetParent(self)
        self.Bonus10Var.SetDefaultFontName()
        self.Bonus10Var.SetPosition(329+100, 180 + 13*4)
        self.Bonus10Var.SetFeather()
        self.Bonus10Var.SetText("0")
        self.Bonus10Var.SetFontColor(1.0, 1.0, 1.0)
        self.Bonus10Var.SetOutline()
        self.Bonus10Var.Show()

    ####Delay
        self.DelayText = ui.TextLine()
        self.DelayText.SetParent(self)
        self.DelayText.SetDefaultFontName()
        self.DelayText.SetPosition(198, 180 + 13*5)
        self.DelayText.SetFeather()
        self.DelayText.SetText("Przerwa w zmianie:")
        self.DelayText.SetFontColor(0.0, 0.7, 1)
        self.DelayText.SetOutline()
        self.DelayText.Show()

    ####DelayValue
        self.DelayValue = ui.TextLine()
        self.DelayValue.SetParent(self)
        self.DelayValue.SetDefaultFontName()
        self.DelayValue.SetPosition(297, 270)
        self.DelayValue.SetFeather()
        self.DelayValue.SetText("0.5 s")
        self.DelayValue.SetFontColor(0.0, 0.7, 1)
        self.DelayValue.SetOutline()
        self.DelayValue.Show()

    def LoadScrollBar(self):
        self.ScrollBar = ui.ScrollBar()
        self.ScrollBar.SetParent(self)
        self.ScrollBar.SetPosition(170, 35)
        self.ScrollBar.SetScrollBarSize(210)
        self.ScrollBar.Show()

    def SetDelay(self):
        Delay = self.DelayValue.GetText()
        if self.DelaySlide.GetSliderPos() * 5 != Delay:
            Delay = self.DelaySlide.GetSliderPos() * 5
            try:
                Tmp = str(Delay).split(".")
                if int(Delay) < 0.1:
                    Tmp = str(Delay).split(".")[0]+str(Delay).split(".")[1].replace('0','1')                
                Delay = str(Tmp[0]) + "." + Tmp[1][:1]
            except:
                pass

        self.DelayValue.SetText(str(Delay) + " s")

    def ButtonList_1(self, arg):
        global PRESSWISH

        if str(arg) == self.MAINBONUSES[0]:
            PRESSWISH = 1
        elif str(arg) == self.MAINBONUSES[1]:
            PRESSWISH = 2
        elif str(arg) == self.MAINBONUSES[2]:
            PRESSWISH = 3
        elif str(arg) == self.MAINBONUSES[3]:
            PRESSWISH = 4
        elif str(arg) == self.MAINBONUSES[4]:
            PRESSWISH = 5
        self.BonusListBox = FileListDialog()

    def ButtonList_2(self, arg):
        global PRESSWISH

        if str(arg) == self.ALTERBONUSES[0]:
            PRESSWISH = 6
        elif str(arg) == self.ALTERBONUSES[1]:
            PRESSWISH = 7
        elif str(arg) == self.ALTERBONUSES[2]:
            PRESSWISH = 8
        elif str(arg) == self.ALTERBONUSES[3]:
            PRESSWISH = 9
        elif str(arg) == self.ALTERBONUSES[4]:
            PRESSWISH = 10
        self.BonusListBox = FileListDialog()

    def UpdateInventoryList(self):
        self.invListBox.RemoveAllItems()
        for i in xrange(player.INVENTORY_PAGE_SIZE*2):
            ItemIndex = player.GetItemIndex(i)
            if not ItemIndex:
                continue
            if ItemIndex != 0:
                item.SelectItem(ItemIndex)
                item.GetItemName(ItemIndex)
                ItemName = item.GetItemName()
                self.invListBox.AppendItem(Item(str(i) + " | " + ItemName))

    def __BreakSwitching(self):
        global SwitchButton
        if SwitchButton == 1:
            self.SwitchingBreakButton.SetText("Wyjście")
            SwitchButton = 0
        else:
            self.Hide()

    def StartSwitchBot(self):
        global SwitchButton
        SwitchButton = 1
        self.SwitchingBreakButton.SetText("Stop")
        self.__Switchtingdialog()

    def __Switchtingdialog(self):
        global BoniSwitchvalue
        global Bonus1
        global Bonus2
        global Bonus3
        global Bonus4
        global Bonus5
        global SwitchButton

        Main1, Alter1 = Bonus1
        Main2, Alter2 = Bonus2
        Main3, Alter3 = Bonus3
        Main4, Alter4 = Bonus4
        Main5, Alter5 = Bonus5
        SelectedIndex = self.invListBox.GetSelectedItem()
        #If you do not select item on the inventory list, the slot will be 0.
        if not SelectedIndex:
            SelectedIndex = 0
        else:
            SelectedIndex = SelectedIndex.GetText().split(' | ')[0]
        Slot = SelectedIndex
        val0, bon0 = player.GetItemAttribute((int(Slot)), 0) #(itemposition, atrribute)
        val1, bon1 = player.GetItemAttribute((int(Slot)), 1) #(itemposition, atrribute)
        val2, bon2 = player.GetItemAttribute((int(Slot)), 2) #(itemposition, atrribute)
        val3, bon3 = player.GetItemAttribute((int(Slot)), 3) #(itemposition, atrribute)
        val4, bon4 = player.GetItemAttribute((int(Slot)), 4) #(itemposition, atrribute)
        Switchvalue = Boniswitchvalue
        Search1 = self.Bvalue1.GetText()
        Search2 = self.Bvalue2.GetText()
        Search3 = self.Bvalue3.GetText()
        Search4 = self.Bvalue4.GetText()
        Search5 = self.Bvalue5.GetText()
        Search6 = self.Bvalue6.GetText()
        Search7 = self.Bvalue7.GetText()
        Search8 = self.Bvalue8.GetText()
        Search9 = self.Bvalue9.GetText()
        Search10 = self.Bvalue10.GetText()
        DELAY_SEC = self.DelayValue.GetText().split(' s')[0]

        if SwitchButton == 1:
            #1 Bonus switchen:
            if ((int(Main2) == 0) and\
                (val0 == int(Main1) and bon0 >= int(Search1) or\
                (val1 == int(Main1) and bon1 >= int(Search1)) or\
                (val2 == int(Main1) and bon2 >= int(Search1)) or\
                (val3 == int(Main1) and bon3 >= int(Search1)) or\
                (val4 == int(Main1) and bon4 >= int(Search1))))\
                or\
                ((int(Alter2) == 0) and\
                (val0 == int(Alter1) and bon0 >= int(Search6) or\
                (val1 == int(Alter1) and bon1 >= int(Search6)) or\
                (val2 == int(Alter1) and bon2 >= int(Search6)) or\
                (val3 == int(Alter1) and bon3 >= int(Search6)) or\
                (val4 == int(Alter1) and bon4 >= int(Search6)))):
                self.BoardMessage.SetTip("Bonusy zostały zmienione!")
                self.BoardMessage.SetTop()
                self.__BreakSwitching()
            #2 Bonis switchen:
            elif ((int(Main3) == 0) and\
                (val0 == int(Main1) and bon0 >= int(Search1) or\
                (val1 == int(Main1) and bon1 >= int(Search1)) or\
                (val2 == int(Main1) and bon2 >= int(Search1)) or\
                (val3 == int(Main1) and bon3 >= int(Search1)) or\
                (val4 == int(Main1) and bon4 >= int(Search1))) and\
                ((val0 == int(Main2) and bon0 >= int(Search2)) or\
                (val1 == int(Main2) and bon1 >= int(Search2)) or\
                (val2 == int(Main2) and bon2 >= int(Search2)) or\
                (val3 == int(Main2) and bon3 >= int(Search2)) or\
                (val4 == int(Main2) and bon4 >= int(Search2)))) or\
                ((int(Alter3) == 0) and\
                (val0 == int(Alter1) and bon0 >= int(Search6) or\
                (val1 == int(Alter1) and bon1 >= int(Search6)) or\
                (val2 == int(Alter1) and bon2 >= int(Search6)) or\
                (val3 == int(Alter1) and bon3 >= int(Search6)) or\
                (val4 == int(Alter1) and bon4 >= int(Search6))) and\
                ((val0 == int(Alter2) and bon0 >= int(Search7)) or\
                (val1 == int(Alter2) and bon1 >= int(Search7)) or\
                (val2 == int(Alter2) and bon2 >= int(Search7)) or\
                (val3 == int(Alter2) and bon3 >= int(Search7)) or\
                (val4 == int(Alter2) and bon4 >= int(Search7)))):
                self.BoardMessage.SetTip("Bonusy zostały zmienione!")
                self.BoardMessage.SetTop()
                self.__BreakSwitching()
            #3 Bonis switchen:
            elif ((int(Main4) == 0) and\
                (val0 == int(Main1) and bon0 >= int(Search1) or\
                (val1 == int(Main1) and bon1 >= int(Search1)) or\
                (val2 == int(Main1) and bon2 >= int(Search1)) or\
                (val3 == int(Main1) and bon3 >= int(Search1)) or\
                (val4 == int(Main1) and bon4 >= int(Search1))) and\
                ((val0 == int(Main2) and bon0 >= int(Search2)) or\
                (val1 == int(Main2) and bon1 >= int(Search2)) or\
                (val2 == int(Main2) and bon2 >= int(Search2)) or\
                (val3 == int(Main2) and bon3 >= int(Search2)) or\
                (val4 == int(Main2) and bon4 >= int(Search2))) and\
                ((val0 == int(Main3) and bon0 >= int(Search3)) or\
                (val1 == int(Main3) and bon1 >= int(Search3)) or\
                (val2 == int(Main3) and bon2 >= int(Search3)) or\
                (val3 == int(Main3) and bon3 >= int(Search3)) or\
                (val4 == int(Main3) and bon4 >= int(Search3)))) or\
                ((int(Alter4) == 0) and\
                (val0 == int(Alter1) and bon0 >= int(Search6) or\
                (val1 == int(Alter1) and bon1 >= int(Search6)) or\
                (val2 == int(Alter1) and bon2 >= int(Search6)) or\
                (val3 == int(Alter1) and bon3 >= int(Search6)) or\
                (val4 == int(Alter1) and bon4 >= int(Search6))) and\
                ((val0 == int(Alter2) and bon0 >= int(Search7)) or\
                (val1 == int(Alter2) and bon1 >= int(Search7)) or\
                (val2 == int(Alter2) and bon2 >= int(Search7)) or\
                (val3 == int(Alter2) and bon3 >= int(Search7)) or\
                (val4 == int(Alter2) and bon4 >= int(Search7))) and\
                ((val0 == int(Alter3) and bon0 >= int(Search8)) or\
                (val1 == int(Alter3) and bon1 >= int(Search8)) or\
                (val2 == int(Alter3) and bon2 >= int(Search8)) or\
                (val3 == int(Alter3) and bon3 >= int(Search8)) or\
                (val4 == int(Alter3) and bon4 >= int(Search8)))):
                self.BoardMessage.SetTip("Bonusy zostały zmienione!")
                self.BoardMessage.SetTop()
                self.__BreakSwitching()
            #4 Bonis switchen:
            elif ((int(Main5) == 0) and\
                (val0 == int(Main1) and bon0 >= int(Search1) or\
                (val1 == int(Main1) and bon1 >= int(Search1)) or\
                (val2 == int(Main1) and bon2 >= int(Search1)) or\
                (val3 == int(Main1) and bon3 >= int(Search1)) or\
                (val4 == int(Main1) and bon4 >= int(Search1))) and\
                ((val0 == int(Main2) and bon0 >= int(Search2)) or\
                (val1 == int(Main2) and bon1 >= int(Search2)) or\
                (val2 == int(Main2) and bon2 >= int(Search2)) or\
                (val3 == int(Main2) and bon3 >= int(Search2)) or\
                (val4 == int(Main2) and bon4 >= int(Search2))) and\
                ((val0 == int(Main3) and bon0 >= int(Search3)) or\
                (val1 == int(Main3) and bon1 >= int(Search3)) or\
                (val2 == int(Main3) and bon2 >= int(Search3)) or\
                (val3 == int(Main3) and bon3 >= int(Search3)) or\
                (val4 == int(Main3) and bon4 >= int(Search3))) and\
                ((val0 == int(Main4) and bon0 >= int(Search4)) or\
                (val1 == int(Main4) and bon1 >= int(Search4)) or\
                (val2 == int(Main4) and bon2 >= int(Search4)) or\
                (val3 == int(Main4) and bon3 >= int(Search4)) or\
                (val4 == int(Main4) and bon4 >= int(Search4)))) or\
                ((int(Alter5) == 0) and\
                (val0 == int(Alter1) and bon0 >= int(Search6) or\
                (val1 == int(Alter1) and bon1 >= int(Search6)) or\
                (val2 == int(Alter1) and bon2 >= int(Search6)) or\
                (val3 == int(Alter1) and bon3 >= int(Search6)) or\
                (val4 == int(Alter1) and bon4 >= int(Search6))) and\
                ((val0 == int(Alter2) and bon0 >= int(Search7)) or\
                (val1 == int(Alter2) and bon1 >= int(Search7)) or\
                (val2 == int(Alter2) and bon2 >= int(Search7)) or\
                (val3 == int(Alter2) and bon3 >= int(Search7)) or\
                (val4 == int(Alter2) and bon4 >= int(Search7))) and\
                ((val0 == int(Alter3) and bon0 >= int(Search8)) or\
                (val1 == int(Alter3) and bon1 >= int(Search8)) or\
                (val2 == int(Alter3) and bon2 >= int(Search8)) or\
                (val3 == int(Alter3) and bon3 >= int(Search8)) or\
                (val4 == int(Alter3) and bon4 >= int(Search8))) and\
                ((val0 == int(Alter4) and bon0 >= int(Search9)) or\
                (val1 == int(Alter4) and bon1 >= int(Search9)) or\
                (val2 == int(Alter4) and bon2 >= int(Search9)) or\
                (val3 == int(Alter4) and bon3 >= int(Search9)) or\
                (val4 == int(Alter4) and bon4 >= int(Search9)))):
                self.BoardMessage.SetTip("Bonusy zostały zmienione!")
                self.BoardMessage.SetTop()
                self.__BreakSwitching()
            #5 Bonis switchen:
            elif ((int(Main5) != 0) and\
                (val0 == int(Main1) and bon0 >= int(Search1) or\
                (val1 == int(Main1) and bon1 >= int(Search1)) or\
                (val2 == int(Main1) and bon2 >= int(Search1)) or\
                (val3 == int(Main1) and bon3 >= int(Search1)) or\
                (val4 == int(Main1) and bon4 >= int(Search1))) and\
                ((val0 == int(Main2) and bon0 >= int(Search2)) or\
                (val1 == int(Main2) and bon1 >= int(Search2)) or\
                (val2 == int(Main2) and bon2 >= int(Search2)) or\
                (val3 == int(Main2) and bon3 >= int(Search2)) or\
                (val4 == int(Main2) and bon4 >= int(Search2))) and\
                ((val0 == int(Main3) and bon0 >= int(Search3)) or\
                (val1 == int(Main3) and bon1 >= int(Search3)) or\
                (val2 == int(Main3) and bon2 >= int(Search3)) or\
                (val3 == int(Main3) and bon3 >= int(Search3)) or\
                (val4 == int(Main3) and bon4 >= int(Search3))) and\
                ((val0 == int(Main4) and bon0 >= int(Search4)) or\
                (val1 == int(Main4) and bon1 >= int(Search4)) or\
                (val2 == int(Main4) and bon2 >= int(Search4)) or\
                (val3 == int(Main4) and bon3 >= int(Search4)) or\
                (val4 == int(Main4) and bon4 >= int(Search4))) and\
                ((val0 == int(Main5) and bon0 >= int(Search5)) or\
                (val1 == int(Main5) and bon1 >= int(Search5)) or\
                (val2 == int(Main5) and bon2 >= int(Search5)) or\
                (val3 == int(Main5) and bon3 >= int(Search5)) or\
                (val4 == int(Main5) and bon4 >= int(Search5)))) or\
                ((int(Alter5) != 0) and\
                (val0 == int(Alter1) and bon0 >= int(Search6) or\
                (val1 == int(Alter1) and bon1 >= int(Search6)) or\
                (val2 == int(Alter1) and bon2 >= int(Search6)) or\
                (val3 == int(Alter1) and bon3 >= int(Search6)) or\
                (val4 == int(Alter1) and bon4 >= int(Search6))) and\
                ((val0 == int(Alter2) and bon0 >= int(Search7)) or\
                (val1 == int(Alter2) and bon1 >= int(Search7)) or\
                (val2 == int(Alter2) and bon2 >= int(Search7)) or\
                (val3 == int(Alter2) and bon3 >= int(Search7)) or\
                (val4 == int(Alter2) and bon4 >= int(Search7))) and\
                ((val0 == int(Alter3) and bon0 >= int(Search8)) or\
                (val1 == int(Alter3) and bon1 >= int(Search8)) or\
                (val2 == int(Alter3) and bon2 >= int(Search8)) or\
                (val3 == int(Alter3) and bon3 >= int(Search8)) or\
                (val4 == int(Alter3) and bon4 >= int(Search8))) and\
                ((val0 == int(Alter4) and bon0 >= int(Search9)) or\
                (val1 == int(Alter4) and bon1 >= int(Search9)) or\
                (val2 == int(Alter4) and bon2 >= int(Search9)) or\
                (val3 == int(Alter4) and bon3 >= int(Search9)) or\
                (val4 == int(Alter4) and bon4 >= int(Search9))) and\
                ((val0 == int(Alter5) and bon0 >= int(Search10)) or\
                (val1 == int(Alter5) and bon1 >= int(Search10)) or\
                (val2 == int(Alter5) and bon2 >= int(Search10)) or\
                (val3 == int(Alter5) and bon3 >= int(Search10)) or\
                (val4 == int(Alter5) and bon4 >= int(Search10)))):
                self.BoardMessage.SetTip("Bonusy zostały zmienione!")
                self.BoardMessage.SetTop()
                self.__BreakSwitching()
            elif Main1 == 0 and Alter1 == 0:
                self.SwitchingBreakButton.SetText("Wyjście")
                chat.AppendChat(chat.CHAT_TYPE_INFO, "Jeśli nie wybierzesz chociaż 1 bonu, nie rozpoczniesz mieszania!")
                SwitchButton = 0
            else:
                self.WaitingDelay = WaitingDialog()
                self.WaitingDelay.Open(float(DELAY_SEC))
                self.WaitingDelay.SAFE_SetTimeOverEvent(self.__Switchtingdialog)
                for eachSlot in xrange(player.INVENTORY_PAGE_SIZE*2):
                    itemVNum = player.GetItemIndex(eachSlot)
                    if itemVNum == int(Switchvalue):
                        net.SendItemUseToItemPacket(eachSlot, (int(Slot)))
                        break

            if player.GetItemCountByVnum(int(Switchvalue)) <= 1:
                for eachSlot in xrange(shop.SHOP_SLOT_COUNT):
                    getShopItemID = shop.GetItemID(eachSlot)
                    if getShopItemID == int(Switchvalue) and not itemVNum == int(Switchvalue):
                        net.SendShopBuyPacket(eachSlot)

    def OnUpdate(self):
        global Bonus1
        global Bonus2
        global Bonus3
        global Bonus4
        global Bonus5
        
        Main1, Alter1 = Bonus1
        Main2, Alter2 = Bonus2
        Main3, Alter3 = Bonus3
        Main4, Alter4 = Bonus4
        Main5, Alter5 = Bonus5

        if self.Bonus1Attr.GetText() != str(BonusListe[int(Main1)]) and int(Main1) != 0:
            if len(str(BonusListe[int(Main1)])) > 18:
                self.Bonus1Attr.SetText(str(BonusListe[int(Main1)])[:18]+'...')
            else:
                self.Bonus1Attr.SetText(str(BonusListe[int(Main1)]))
        elif self.Bonus1Attr.GetText() != "" and int(Main1) == 0:
            self.Bonus1Attr.SetText("-")

        if self.Bonus2Attr.GetText() != str(BonusListe[int(Main2)]) and int(Main2) != 0:
            if len(str(BonusListe[int(Main2)])) > 18:
                self.Bonus2Attr.SetText(str(BonusListe[int(Main2)])[:18]+'...')
            else:
                self.Bonus2Attr.SetText(str(BonusListe[int(Main2)]))
        elif self.Bonus2Attr.GetText() != "" and int(Main2) == 0:
            self.Bonus2Attr.SetText("-")

        if self.Bonus3Attr.GetText() != str(BonusListe[int(Main3)]) and int(Main3) != 0:
            if len(str(BonusListe[int(Main3)])) > 18:
                self.Bonus3Attr.SetText(str(BonusListe[int(Main3)])[:18]+'...')
            else:
                self.Bonus3Attr.SetText(str(BonusListe[int(Main3)]))
        elif self.Bonus3Attr.GetText() != "" and int(Main3) == 0:
            self.Bonus3Attr.SetText("-")
            
        if self.Bonus4Attr.GetText() != str(BonusListe[int(Main4)]) and int(Main4) != 0:
            if len(str(BonusListe[int(Main4)])) > 18:
                self.Bonus4Attr.SetText(str(BonusListe[int(Main4)])[:18]+'...')
            else:
                self.Bonus4Attr.SetText(str(BonusListe[int(Main4)]))
        elif self.Bonus4Attr.GetText() != "" and int(Main4) == 0:
            self.Bonus4Attr.SetText("-")
            
        if self.Bonus5Attr.GetText() != str(BonusListe[int(Main5)]) and int(Main5) != 0:
            if len(str(BonusListe[int(Main5)])) > 18:
                self.Bonus5Attr.SetText(str(BonusListe[int(Main5)])[:18]+'...')
            else:
                self.Bonus5Attr.SetText(str(BonusListe[int(Main5)]))
        elif self.Bonus5Attr.GetText() != "" and int(Main5) == 0:
            self.Bonus5Attr.SetText("-")
            
        if self.Bonus6Attr.GetText() != str(BonusListe[int(Alter1)]) and int(Alter1) != 0:
            if len(str(BonusListe[int(Alter1)])) > 18:
                self.Bonus6Attr.SetText(str(BonusListe[int(Alter1)])[:18]+'...')
            else:
                self.Bonus6Attr.SetText(str(BonusListe[int(Alter1)]))
        elif self.Bonus6Attr.GetText() != "" and int(Alter1) == 0:
            self.Bonus6Attr.SetText("-")
            
        if self.Bonus7Attr.GetText() != str(BonusListe[int(Alter2)]) and int(Alter2) != 0:
            if len(str(BonusListe[int(Alter2)])) > 18:
                self.Bonus7Attr.SetText(str(BonusListe[int(Alter2)])[:18]+'...')
            else:
                self.Bonus7Attr.SetText(str(BonusListe[int(Alter2)]))
        elif self.Bonus7Attr.GetText() != "" and int(Alter2) == 0:
            self.Bonus7Attr.SetText("-")
            
        if self.Bonus8Attr.GetText() != str(BonusListe[int(Alter3)]) and int(Alter3) != 0:
            if len(str(BonusListe[int(Alter3)])) > 18:
                self.Bonus8Attr.SetText(str(BonusListe[int(Alter3)])[:18]+'...')
            else:
                self.Bonus8Attr.SetText(str(BonusListe[int(Alter3)]))
        elif self.Bonus8Attr.GetText() != "" and int(Alter3) == 0:
            self.Bonus8Attr.SetText("-")
            
        if self.Bonus9Attr.GetText() != str(BonusListe[int(Alter4)]) and int(Alter4) != 0:
            if len(str(BonusListe[int(Alter4)])) > 18:
                self.Bonus9Attr.SetText(str(BonusListe[int(Alter4)])[:18]+'...')
            else:
                self.Bonus9Attr.SetText(str(BonusListe[int(Alter4)]))
        elif self.Bonus9Attr.GetText() != "" and int(Alter4) == 0:
            self.Bonus9Attr.SetText("-")
            
        if self.Bonus10Attr.GetText() != str(BonusListe[int(Alter5)]) and int(Alter5) != 0:
            if len(str(BonusListe[int(Alter5)])) > 18:
                self.Bonus10Attr.SetText(str(BonusListe[int(Alter5)])[:18]+'...')
            else:
                self.Bonus10Attr.SetText(str(BonusListe[int(Alter5)]))
        elif self.Bonus10Attr.GetText() != "" and int(Alter5) == 0:
            self.Bonus10Attr.SetText("-")

        if self.Bonus1Var.GetText() != self.Bvalue1.GetText():
            self.Bonus1Var.SetText(str(self.Bvalue1.GetText()))
        if self.Bonus2Var.GetText() != self.Bvalue2.GetText():
            self.Bonus2Var.SetText(str(self.Bvalue2.GetText()))
        if self.Bonus3Var.GetText() != self.Bvalue3.GetText():
            self.Bonus3Var.SetText(str(self.Bvalue3.GetText()))
        if self.Bonus4Var.GetText() != self.Bvalue4.GetText():
            self.Bonus4Var.SetText(str(self.Bvalue4.GetText()))
        if self.Bonus5Var.GetText() != self.Bvalue5.GetText():
            self.Bonus5Var.SetText(str(self.Bvalue5.GetText()))
        if self.Bonus6Var.GetText() != self.Bvalue6.GetText():
            self.Bonus6Var.SetText(str(self.Bvalue6.GetText()))
        if self.Bonus7Var.GetText() != self.Bvalue7.GetText():
            self.Bonus7Var.SetText(str(self.Bvalue7.GetText()))
        if self.Bonus8Var.GetText() != self.Bvalue8.GetText():
            self.Bonus8Var.SetText(str(self.Bvalue8.GetText()))
        if self.Bonus9Var.GetText() != self.Bvalue9.GetText():
            self.Bonus9Var.SetText(str(self.Bvalue9.GetText()))
        if self.Bonus10Var.GetText() != self.Bvalue10.GetText():
            self.Bonus10Var.SetText(str(self.Bvalue10.GetText()))

    def Show(self):
        ui.ThinBoard.Show(self)
        
    def Close(self):
        self.Hide()
        return TRUE
        
    def OnPressEscapeKey(self):
        self.Hide()
        return TRUE

BonusListe = (
    "",
    "Max. PŻ",
    "Max. PE",
    "Energia Życiowa",
    "Inteligencja",
    "Siła",
    "Zręczność",
    "Szybkość Ataku",
    "Szybkość Ruchu",
    "Szybkość Magii",
    "Regeneracja PŻ",
    "Regeneracja PE",
    "Szansa na Otrucie",
    "Szansa na Omdlenie",
    "Szansa na Spowolnienie",
    "Szansa na Krytyczne uderzenie",
    "Szansa na Przeszywające uderzenie",
    "Silny Przeciwko Ludziom",
    "Silny Przeciwko Zwierzętom",
    "Silny Przeciwko Orkom",
    "Silny Przeciwko Mistykom",
    "Silny Przeciwko Nieumarłym",
    "Silny Przeciwko Diabłom",
    "Obrażena do PŻ",
    "Obrażena do PE",
    "Kradzież PE",
    "Szansa na Uniknięcie Strzały",
    "Odporność na Miecze",
    "Odporność na Broń Dwuręczną",
    "Odporność na Sztylety",
    "Odporność na Dzwony",
    "Odporność na Wachlarze",
    "Odporność na Strzały",
    "Odporność na Ogień",
    "Odporność na Błyskawice",
    "Odporność na Magie",
    "Odporność na Wiatr",
    "Szansa na blok ciosów",
    "Szansa na odbicie ciosów",
    "Odporność na Trucizny",
    "Szansa na bonus EXP",
    "Szansa na podwójna ilość Yang",
    "Szansa na podwójna ilość Przedmiotów",
    "Niewrażliwy na Omdlenia",
    "Niewrażliwy na Spowolnienia",
    "-",
    "Atak",
    "Obrona",
    "-",
    "Obrażenia Umiejętnośći",
    "Średnie Obrażenia",

)

BonusIDListe = {
    "" : 0,
    "Max. PŻ" : 1,
    "Max. PE" : 2,
    "Energia Życiowa" : 3,
    "Inteligencja" : 4,
    "Siła" : 5,
    "Zręczność" : 6,
    "Szybkość Ataku" : 7,
    "Szybkość Ruchu" : 8,
    "Szybkość Magii" : 9,
    "Regeneracja PŻ" : 10,
    "Regeneracja PE" : 11,
    "Szansa na Otrucie" : 12,
    "Szansa na Omdlenie" : 13,
    "Szansa na Spowolnienie" : 14,
    "Szansa na Krytyczne uderzenie" : 15,
    "Szansa na Przeszywające uderzenie" : 16,
    "Silny Przeciwko Ludziom" : 17,
    "Silny Przeciwko Zwierzętom" : 18,
    "Silny Przeciwko Orkom" : 19,
    "Silny Przeciwko Mistykom" : 20,
    "Silny Przeciwko Nieumarłym" : 21,
    "Silny Przeciwko Diabłom" : 22,
    "Obrażena do PŻ" : 23,
    "Obrażena do PE" : 24,
    "Kradzież PE" : 25,
    "Szansa na Uniknięcie Strzały" : 28,
    "Odporność na Miecze" : 29,
    "Odporność na Broń Dwuręczną" : 30,
    "Odporność na Sztylety" : 31,
    "Odporność na Dzwony" : 32,
    "Odporność na Wachlarze" : 33,
    "Odporność na Strzały" : 34,
    "Odporność na Ogień" : 35,
    "Odporność na Błyskawice" : 36,
    "Odporność na Magie" : 37,
    "Odporność na Wiatr" : 38,
    "Szansa na blok ciosów" : 39,
    "Szansa na odbicie ciosów" : 40,
    "Odporność na Trucizny" : 41,
    "Szansa na Bonus EXP" : 43,
    "Szansa na podwójna ilość Yang" : 44,
    "Szansa na podwójna ilość Przedmiotów" : 45,
    "Niewrażliwy na Omdlenia" : 48,
    "Niewrażliwy na Spowolnienia" : 49,
    "-" : 51,
    "Atak" : 53,
    "Obrona" : 54,
    "-" : 57,
    "Obrażenia Umiejętnośći" : 71,
    "Średnie Obrażenia" : 72,
}

class FileListDialog(ui.Board):
    def __init__(self):
        ui.Board.__init__(self)
        self.isLoaded = 0
        self.selectEvent = None
        self.fileListBox = None
        self.SetCenterPosition()
        self.SetSize(190, 305)
        self.Show()
        self.AddFlag("movable")
        self.AddFlag("float")

    def __del__(self):
        ui.Board.__del__(self)

    def Show(self):
        if self.isLoaded == 0:
            self.isLoaded = 1
            self.__Load()
        ui.Board.Show(self)

    def Open(self):
        self.Show()
        self.SetCenterPosition()
        self.SetTop()
        self.UpdateFileList()

    def Close(self):
        self.Hide()

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

    def __CreateFileListBox(self):
        fileListBox = ui.ListBoxEx()
        fileListBox.SetParent(self)
        fileListBox.SetPosition(15, 50)
        fileListBox.Show()
        return fileListBox

    def __Load(self):
        self.__Load_BindObject()
        self.UpdateFileList()

    def __Load_BindObject(self):
        self.fileListBox = self.__CreateFileListBox()
        self.LoadFuckingScrollBar()
        self.LoadTextLines()
        self.fileListBox.SetScrollBar(self.ScrollBar)

        self.UpdateButton = ui.Button()
        self.UpdateButton.SetParent(self)
        self.UpdateButton.SetUpVisual("d:/ymir work/ui/public/Large_button_01.sub")
        self.UpdateButton.SetOverVisual("d:/ymir work/ui/public/Large_button_02.sub")
        self.UpdateButton.SetDownVisual("d:/ymir work/ui/public/Large_button_03.sub")
        self.UpdateButton.SetText("Aktualizál")
        self.UpdateButton.SetPosition(15, 265)
        self.UpdateButton.SetEvent(ui.__mem_func__(self.UpdateFileList))
        self.UpdateButton.Show()
        self.UpdateButton.Hide()

        self.SelectBonus = ui.Button()
        self.SelectBonus.SetParent(self)
        self.SelectBonus.SetPosition(19, 265)
        self.SelectBonus.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")
        self.SelectBonus.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")
        self.SelectBonus.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")
        self.SelectBonus.SetText("OK")
        self.SelectBonus.SetEvent(ui.__mem_func__(self.SetBonis))
        self.SelectBonus.Show()

        self.CancelBonus = ui.Button()
        self.CancelBonus.SetParent(self)
        self.CancelBonus.SetPosition(109, 265)
        self.CancelBonus.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")
        self.CancelBonus.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")
        self.CancelBonus.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")
        self.CancelBonus.SetText("Wyjście")
        self.CancelBonus.SetEvent(ui.__mem_func__(self.Close))
        self.CancelBonus.Show()

    def LoadTextLines(self):
        self.copyright = ui.TextLine()
        self.copyright.SetParent(self)
        self.copyright.SetDefaultFontName()
        self.copyright.SetPosition(60, 29)
        self.copyright.SetFeather()
        self.copyright.SetText("Wybierz Bony:")
        self.copyright.SetFontColor(1, 1, 0.0)
        self.copyright.SetOutline()
        self.copyright.Show()

    def LoadFuckingScrollBar(self):
        self.ScrollBar = ui.ScrollBar()
        self.ScrollBar.SetParent(self)
        self.ScrollBar.SetPosition(160, 40)
        self.ScrollBar.SetScrollBarSize(220)
        self.ScrollBar.Show()

    def CancelGuildName(self):
        self.guildNameBoard.Close()
        self.guildNameBoard = None
        return TRUE

    def UpdateFileList(self):
        self.__RefreshFileList()
        for BonusType in BonusListe:
            if BonusType == "":
                self.fileListBox.AppendItem(Item("~Brak~"))
            elif BonusType != "":
                self.fileListBox.AppendItem(Item(BonusType))
            # chat.AppendChat(chat.CHAT_TYPE_INFO, str(BonusIDListe[BonusType]))

    def __RefreshFileList(self):
        self.fileListBox.RemoveAllItems()

    def SetBonis(self):
        global Bonus1
        global Bonus2
        global Bonus3
        global Bonus4
        global Bonus5
        global PRESSWISH
        
        Main1, Alter1 = Bonus1
        Main2, Alter2 = Bonus2
        Main3, Alter3 = Bonus3
        Main4, Alter4 = Bonus4
        Main5, Alter5 = Bonus5
        SelectedIndex = self.fileListBox.GetSelectedItem()
        if not SelectedIndex:
            return TRUE
        SelectedIndex = SelectedIndex.GetText()
        if str(SelectedIndex) != "~Brak~" and str(SelectedIndex) != "":
            if PRESSWISH == 1:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "1. Bonus : " + str(SelectedIndex))
                Bonus1 = (int(BonusIDListe[str(SelectedIndex)]), Alter1)
                PRESSWISH = 0
            elif PRESSWISH == 2:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "2. Bonus : " + str(SelectedIndex))
                Bonus2 = (int(BonusIDListe[SelectedIndex]), Alter2)
                PRESSWISH = 0
            elif PRESSWISH == 3:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "3. Bonus : " + str(SelectedIndex))
                Bonus3 = (int(BonusIDListe[SelectedIndex]), Alter3)
                PRESSWISH = 0
            elif PRESSWISH == 4:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "4. Bonus : " + str(SelectedIndex))
                Bonus4 = (int(BonusIDListe[SelectedIndex]), Alter4)
                PRESSWISH = 0
            elif PRESSWISH == 5:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "5. Bonus : " + str(SelectedIndex))
                Bonus5 = (int(BonusIDListe[SelectedIndex]), Alter5)
                PRESSWISH = 0
            elif PRESSWISH == 6:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "1.Alternatywny Bonus : " + str(SelectedIndex))
                Bonus1 = (Main1, int(BonusIDListe[str(SelectedIndex)]))
                PRESSWISH = 0
            elif PRESSWISH == 7:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "2.Alternatywny Bonus : " + str(SelectedIndex))
                Bonus2 = (Main2, int(BonusIDListe[str(SelectedIndex)]))
                PRESSWISH = 0
            elif PRESSWISH == 8:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "3.Alternatywny Bonus : " + str(SelectedIndex))
                Bonus3 = (Main3, int(BonusIDListe[str(SelectedIndex)]))
                PRESSWISH = 0
            elif PRESSWISH == 9:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "4.Alternatywny Bonus : " + str(SelectedIndex))
                Bonus4 = (Main4, int(BonusIDListe[str(SelectedIndex)]))
                PRESSWISH = 0
            elif PRESSWISH == 10:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "5.Alternatywny Bonus : " + str(SelectedIndex))
                Bonus5 = (Main5, int(BonusIDListe[str(SelectedIndex)]))
                PRESSWISH = 0
        elif str(SelectedIndex) == "~Brak~" and str(SelectedIndex) != "":
            if PRESSWISH == 1:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "1. Bonus usunięty")
                Bonus1 = (0, Alter1)
                PRESSWISH = 0
            elif PRESSWISH == 2:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "2. Bonus usunięty")
                Bonus2 = (0, Alter2)
                PRESSWISH = 0
            elif PRESSWISH == 3:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "3. Bonus usunięty")
                Bonus3 = (0, Alter3)
                PRESSWISH = 0
            elif PRESSWISH == 4:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "4. Bonus usunięty")
                Bonus4 = (0, Alter4)
                PRESSWISH = 0
            elif PRESSWISH == 5:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "5. Bonus usunięty")
                Bonus5 = (0, Alter5)
                PRESSWISH = 0
            elif PRESSWISH == 6:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "1. Alternatywny bonus usunięty")
                Bonus1 = (Main1, 0)
                PRESSWISH = 0
            elif PRESSWISH == 7:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "2. Alternatywny bonus usunięty")
                Bonus2 = (Main2, 0)
                PRESSWISH = 0
            elif PRESSWISH == 8:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "3. Alternatywny bonus usunięty")
                Bonus3 = (Main3, 0)
                PRESSWISH = 0
            elif PRESSWISH == 9:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "4. Alternatywny bonus usunięty")
                Bonus4 = (Main4, 0)
                PRESSWISH = 0
            elif PRESSWISH == 10:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "5. Alternatywny bonus usunięty")
                Bonus5 = (Main5, 0)
                PRESSWISH = 0
        else:
            chat.AppendChat(chat.CHAT_TYPE_INFO, "Nie wybrałeś bonusów!")
        self.Close()

class WaitingDialog(ui.ScriptWindow):
    def __init__(self):
        ui.ScriptWindow.__init__(self)
        self.eventTimeOver = lambda *arg: None
        self.eventExit = lambda *arg: None

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

    def Open(self, waitTime):
        curTime = time.clock()
        self.endTime = curTime + waitTime
        self.Show()

    def Close(self):
        self.Hide()

    def Destroy(self):
        self.Hide()

    def SAFE_SetTimeOverEvent(self, event):
        self.eventTimeOver = ui.__mem_func__(event)

    def SAFE_SetExitEvent(self, event):
        self.eventExit = ui.__mem_func__(event)

    def OnUpdate(self):
        lastTime = max(0, self.endTime - time.clock())
        if 0 == lastTime:
            self.Close()
            self.eventTimeOver()
        else:
            return

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

FILE_NAME_LEN = 40
class Item(ui.ListBoxEx.Item):
    def __init__(self, fileName):
        ui.ListBoxEx.Item.__init__(self)
        self.canLoad = 0
        self.text = fileName
        self.textLine = self.__CreateTextLine(fileName[:FILE_NAME_LEN])

    def __del__(self):
        ui.ListBoxEx.Item.__del__(self)

    def GetText(self):
        return self.text

    def SetSize(self, width, height):
        ui.ListBoxEx.Item.SetSize(self, 6*len(self.textLine.GetText()) + 4, height)

    def __CreateTextLine(self, fileName):
        textLine=ui.TextLine()
        textLine.SetParent(self)
        textLine.SetPosition(0, 0)
        textLine.SetText(fileName)
        textLine.Show()
        return textLine

StartDialog = SwitchBotDialog()
StartDialog.Show()
chat.AppendChat(chat.CHAT_TYPE_INFO, "~~ Bonus-Switcher by >> Valkiria << ~~")
 

 

 

a zamiast 3 mutlihacka, zmienic oryginalnego multihacka, dac ten

 

 

import app
import chat
import chr
import locale
import net
import player
import time
import ui
import skill

UpButton = ui.Button()
UpLine = ui.TextLine()
GhostModeButton = ui.Button()
GhostModeLine = ui.TextLine()
OpenSettingsButton = ui.Button()
OpenSettingsLine = ui.TextLine()

UpLabel = ui.TextLine()
UpgradeLabel = ui.TextLine()
GhostModLabel = ui.TextLine()

Refine = 0
MoveSpeed = 0
Combo = 0    
ZoomHack = 0
NoFog = 0
DayNight = 0
EnableSnow = 0

AutoRedPot = 0
AutoBluePot = 0
AutoAttack = 0
AutoPickup = 0
AutoRestart = 0

class MultihackDialog(ui.ThinBoard):
    def __init__(self):
        ui.ThinBoard.__init__(self)
        self.__Load_MessagebotDialog()
        
    def __del__(self):
        ui.ThinBoard.__del__(self)

    def Destroy(self):
        global SetBase
        SetBase = ""
        self.Hide()
        return TRUE
        
    def __Load_MessagebotDialog(self):
    
        self.SetPosition(100, 45)
        self.SetSize(250, 470)
        self.AddFlag("movable")
        self.AddFlag("float")
        self.Close()

        chat.AppendChat(chat.CHAT_TYPE_INFO, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Multi-Hack by Valkiria << ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
        chat.AppendChat(chat.CHAT_TYPE_INFO, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Stworzony na serwer: PandoraMT2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
        chat.AppendChat(chat.CHAT_TYPE_INFO, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Miłej zabawy  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
                                            
        self.LoadText()
        self.LoadButton()
        self.LoadEditLines()
        
    def Show(self):
        ui.ThinBoard.Show(self)
        
    def Close(self):
        self.Hide()
        return TRUE
        
    def OnPressEscapeKey(self):
        self.Hide()
        return TRUE
        
        
        
        
    def LoadText(self):
    
        self.MainLabel = ui.TextLine()
        self.MainLabel.SetParent(self)
        self.MainLabel.SetDefaultFontName()
        self.MainLabel.SetPosition(-50, 10)
        self.MainLabel.SetFeather()
        self.MainLabel.SetWindowHorizontalAlignCenter()
        self.MainLabel.SetText(" Multi-Hack by Valkiria")
        self.MainLabel.SetFontColor(0.0, 0.7, 1)
        self.MainLabel.SetOutline()
        self.MainLabel.Show()
        
        self.RefineLabel = ui.TextLine()
        self.RefineLabel.SetParent(self)
        self.RefineLabel.SetDefaultFontName()
        self.RefineLabel.SetPosition(-110, 40)
        self.RefineLabel.SetFeather()
        self.RefineLabel.SetWindowHorizontalAlignCenter()
        self.RefineLabel.SetText("Upgrade")
    #    self.RefineLabel.SetFontColor(1.0, 0.8, 0)
        self.RefineLabel.SetOutline()
        self.RefineLabel.Show()    
        
        self.MoveSpeedLabel = ui.TextLine()
        self.MoveSpeedLabel.SetParent(self)
        self.MoveSpeedLabel.SetDefaultFontName()
        self.MoveSpeedLabel.SetPosition(-110, 70)
        self.MoveSpeedLabel.SetFeather()
        self.MoveSpeedLabel.SetWindowHorizontalAlignCenter()
        self.MoveSpeedLabel.SetText("MoveSpeed:")
    #    self.MoveSpeedLabel.SetFontColor(1.0, 0.8, 0)
        self.MoveSpeedLabel.SetOutline()
        self.MoveSpeedLabel.Show()    
        
        self.MoveSpeedPerncentLabel = ui.TextLine()
        self.MoveSpeedPerncentLabel.SetParent(self)
        self.MoveSpeedPerncentLabel.SetDefaultFontName()
        self.MoveSpeedPerncentLabel.SetPosition(-10, 70)
        self.MoveSpeedPerncentLabel.SetFeather()
        self.MoveSpeedPerncentLabel.SetWindowHorizontalAlignCenter()
        self.MoveSpeedPerncentLabel.SetText("%")
        self.MoveSpeedPerncentLabel.SetFontColor(0.0, 0.7, 1)
        self.MoveSpeedPerncentLabel.SetOutline()
        self.MoveSpeedPerncentLabel.Show()    
        
        self.ComboLabel = ui.TextLine()
        self.ComboLabel.SetParent(self)
        self.ComboLabel.SetDefaultFontName()
        self.ComboLabel.SetPosition(-110, 100)
        self.ComboLabel.SetFeather()
        self.ComboLabel.SetWindowHorizontalAlignCenter()
        self.ComboLabel.SetText("Combo:")
    #    self.ComboLabel.SetFontColor(1.0, 0.8, 0)
        self.ComboLabel.SetOutline()
        self.ComboLabel.Show()    
        
        self.ZoomHackLabel = ui.TextLine()
        self.ZoomHackLabel.SetParent(self)
        self.ZoomHackLabel.SetDefaultFontName()
        self.ZoomHackLabel.SetPosition(-110, 130)
        self.ZoomHackLabel.SetFeather()
        self.ZoomHackLabel.SetWindowHorizontalAlignCenter()
        self.ZoomHackLabel.SetText("ZoomHack:")
    #    self.ZoomHackLabel.SetFontColor(1.0, 0.8, 0)
        self.ZoomHackLabel.SetOutline()
        self.ZoomHackLabel.Show()    
        
        self.NoFogLabel = ui.TextLine()
        self.NoFogLabel.SetParent(self)
        self.NoFogLabel.SetDefaultFontName()
        self.NoFogLabel.SetPosition(-110, 160)
        self.NoFogLabel.SetFeather()
        self.NoFogLabel.SetWindowHorizontalAlignCenter()
        self.NoFogLabel.SetText("NoFog:")
    #    self.NoFogLabel.SetFontColor(1.0, 0.8, 0)
        self.NoFogLabel.SetOutline()
        self.NoFogLabel.Show()    
        
        self.DayNightLabel = ui.TextLine()
        self.DayNightLabel.SetParent(self)
        self.DayNightLabel.SetDefaultFontName()
        self.DayNightLabel.SetPosition(-110, 190)
        self.DayNightLabel.SetFeather()
        self.DayNightLabel.SetWindowHorizontalAlignCenter()
        self.DayNightLabel.SetText("Day/Night:")
    #    self.DayNightLabel.SetFontColor(1.0, 0.8, 0)
        self.DayNightLabel.SetOutline()
        self.DayNightLabel.Show()    
        
        self.SnowLabel = ui.TextLine()
        self.SnowLabel.SetParent(self)
        self.SnowLabel.SetDefaultFontName()
        self.SnowLabel.SetPosition(-110, 220)
        self.SnowLabel.SetFeather()
        self.SnowLabel.SetWindowHorizontalAlignCenter()
        self.SnowLabel.SetText("Snow:")
    #    self.SnowLabel.SetFontColor(1.0, 0.8, 0)
        self.SnowLabel.SetOutline()
        self.SnowLabel.Show()    
        
        self.LineLabel = ui.TextLine()    
        self.LineLabel.SetParent(self)
        self.LineLabel.SetDefaultFontName()
        self.LineLabel.SetPosition(-110, 240)
        self.LineLabel.SetFeather()
        self.LineLabel.SetWindowHorizontalAlignCenter()
        self.LineLabel.SetText("____________________________________________")
        self.LineLabel.SetFontColor(1.0, 0.8, 0)
        self.LineLabel.SetOutline()
        self.LineLabel.Show()    
        
        self.AutoRedPotLabel = ui.TextLine()    
        self.AutoRedPotLabel.SetParent(self)
        self.AutoRedPotLabel.SetDefaultFontName()
        self.AutoRedPotLabel.SetPosition(-110, 270)
        self.AutoRedPotLabel.SetFeather()
        self.AutoRedPotLabel.SetWindowHorizontalAlignCenter()
        self.AutoRedPotLabel.SetText("RedPotting:")
        self.AutoRedPotLabel.SetFontColor(35.0, 0.0, 0.0)
        self.AutoRedPotLabel.SetOutline()
        self.AutoRedPotLabel.Show()    
        
        self.RedPotPercentLabel = ui.TextLine()    
        self.RedPotPercentLabel.SetParent(self)
        self.RedPotPercentLabel.SetDefaultFontName()
        self.RedPotPercentLabel.SetPosition(-12, 269)
        self.RedPotPercentLabel.SetFeather()
        self.RedPotPercentLabel.SetWindowHorizontalAlignCenter()
        self.RedPotPercentLabel.SetText("%")
        self.RedPotPercentLabel.SetFontColor(35.0, 0.0, 0.0)
        self.RedPotPercentLabel.SetOutline()
        self.RedPotPercentLabel.Show()    
        
        self.AutoBluePotLabel = ui.TextLine()    
        self.AutoBluePotLabel.SetParent(self)
        self.AutoBluePotLabel.SetDefaultFontName()
        self.AutoBluePotLabel.SetPosition(-110, 300)
        self.AutoBluePotLabel.SetFeather()
        self.AutoBluePotLabel.SetWindowHorizontalAlignCenter()
        self.AutoBluePotLabel.SetText("BluePotting:")
        self.AutoBluePotLabel.SetFontColor(0.0, 0.0, 1.0)
        self.AutoBluePotLabel.SetOutline()
        self.AutoBluePotLabel.Show()    
        
        self.BluePotPercentLabel = ui.TextLine()    
        self.BluePotPercentLabel.SetParent(self)
        self.BluePotPercentLabel.SetDefaultFontName()
        self.BluePotPercentLabel.SetPosition(-12, 300)
        self.BluePotPercentLabel.SetFeather()
        self.BluePotPercentLabel.SetWindowHorizontalAlignCenter()
        self.BluePotPercentLabel.SetText("%")
        self.BluePotPercentLabel.SetFontColor(0.0, 0.0, 1.0)
        self.BluePotPercentLabel.SetOutline()
        self.BluePotPercentLabel.Show()    
        
        self.AutoAttackLabel = ui.TextLine()    
        self.AutoAttackLabel.SetParent(self)
        self.AutoAttackLabel.SetDefaultFontName()
        self.AutoAttackLabel.SetPosition(-110, 330)
        self.AutoAttackLabel.SetFeather()
        self.AutoAttackLabel.SetWindowHorizontalAlignCenter()
        self.AutoAttackLabel.SetText("AutoAttack:")
    #    self.AutoAttackLabel.SetFontColor(1.0, 0.8, 0)
        self.AutoAttackLabel.SetOutline()
        self.AutoAttackLabel.Show()
        
        self.AutoPickLabel = ui.TextLine()    
        self.AutoPickLabel.SetParent(self)
        self.AutoPickLabel.SetDefaultFontName()
        self.AutoPickLabel.SetPosition(-110, 360)
        self.AutoPickLabel.SetFeather()
        self.AutoPickLabel.SetWindowHorizontalAlignCenter()
        self.AutoPickLabel.SetText("AutoPickup:")
    #    self.AutoPickLabel.SetFontColor(1.0, 0.8, 0)
        self.AutoPickLabel.SetOutline()
        self.AutoPickLabel.Show()
        
        self.AutoRestartLabel = ui.TextLine()    
        self.AutoRestartLabel.SetParent(self)
        self.AutoRestartLabel.SetDefaultFontName()
        self.AutoRestartLabel.SetPosition(-110, 390)
        self.AutoRestartLabel.SetFeather()
        self.AutoRestartLabel.SetWindowHorizontalAlignCenter()
        self.AutoRestartLabel.SetText("AutoRestart:")
    #    self.AutoRestartLabel.SetFontColor(1.0, 0.8, 0)
        self.AutoRestartLabel.SetOutline()
        self.AutoRestartLabel.Show()
        
        
        global GhostModLabel
        GhostModLabel = ui.TextLine()    
        GhostModLabel.SetDefaultFontName()
        GhostModLabel.SetPosition(-375, 45)                        
        GhostModLabel.SetFeather()
        GhostModLabel.SetWindowHorizontalAlignCenter()
        GhostModLabel.SetText("GhostMod")
        GhostModLabel.SetFontColor(1.0, 0.8, 0)
        GhostModLabel.SetOutline()
        GhostModLabel.Show()
        
        global UpgradeLabel
        UpgradeLabel = ui.TextLine()    
        UpgradeLabel.SetDefaultFontName()
        UpgradeLabel.SetPosition(-375, 65)
        UpgradeLabel.SetFeather()
        UpgradeLabel.SetWindowHorizontalAlignCenter()
        UpgradeLabel.SetText("Bonus-Switcher")
        UpgradeLabel.SetFontColor(0.0, 0.7, 1)
        UpgradeLabel.SetOutline()
        UpgradeLabel.Show()
        
        global OpenSettingsLabel
        OpenSettingsLabel = ui.TextLine()    
        OpenSettingsLabel.SetDefaultFontName()
        OpenSettingsLabel.SetPosition(-375, 85)
        OpenSettingsLabel.SetFeather()
        OpenSettingsLabel.SetWindowHorizontalAlignCenter()
        OpenSettingsLabel.SetText("Multi-Hack")
        OpenSettingsLabel.SetFontColor(1.0, 0.8, 0)
        OpenSettingsLabel.SetOutline()
        OpenSettingsLabel.Show()
        
    def LoadButton(self):
        
        self.CloseButton = ui.Button()
        self.CloseButton.SetParent(self)
        self.CloseButton.SetPosition(220, 10)
        self.CloseButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")
        self.CloseButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")
        self.CloseButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")
        self.CloseButton.SetToolTipText(locale.UI_CLOSE, 0, - 23)
        self.CloseButton.SetEvent(ui.__mem_func__(self.Hide))
        self.CloseButton.Show()
        
        
        self.SetRefineModeButton = ui.Button()
        self.SetRefineModeButton.SetParent(self)
        self.SetRefineModeButton.SetPosition(75, 37)
        self.SetRefineModeButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.SetRefineModeButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.SetRefineModeButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.SetRefineModeButton.SetEvent(ui.__mem_func__(self.RefineMode))
        self.SetRefineModeButton.SetText("DT")
        self.SetRefineModeButton.SetToolTipText("Swich between DT and normal Upgrading")
        self.SetRefineModeButton.Show()
        
        self.MoveSpeedButton = ui.Button()
        self.MoveSpeedButton.SetParent(self)
        self.MoveSpeedButton.SetPosition(140, 69)
        self.MoveSpeedButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.MoveSpeedButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.MoveSpeedButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.MoveSpeedButton.SetEvent(ui.__mem_func__(self.MoveSpeed))
        self.MoveSpeedButton.SetText("Of")
        self.MoveSpeedButton.Show()
        
        self.ComboTypeButton = ui.Button()
        self.ComboTypeButton.SetParent(self)
        self.ComboTypeButton.SetPosition(75, 97)
        self.ComboTypeButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.ComboTypeButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.ComboTypeButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.ComboTypeButton.SetEvent(ui.__mem_func__(self.Combo))
        self.ComboTypeButton.SetText("Off")
        self.ComboTypeButton.Show()
        
        self.ZoomHackButton = ui.Button()
        self.ZoomHackButton.SetParent(self)
        self.ZoomHackButton.SetPosition(75, 127)
        self.ZoomHackButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.ZoomHackButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.ZoomHackButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.ZoomHackButton.SetEvent(ui.__mem_func__(self.ZoomHack))
        self.ZoomHackButton.SetText("Off")
        self.ZoomHackButton.Show()
        
        self.NoFogButton = ui.Button()
        self.NoFogButton.SetParent(self)
        self.NoFogButton.SetPosition(75, 157)
        self.NoFogButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.NoFogButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.NoFogButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.NoFogButton.SetEvent(ui.__mem_func__(self.NoFog))
        self.NoFogButton.SetText("Off")
        self.NoFogButton.Show()
        
        self.DayNightButton = ui.Button()
        self.DayNightButton.SetParent(self)
        self.DayNightButton.SetPosition(75, 187)
        self.DayNightButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.DayNightButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.DayNightButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.DayNightButton.SetEvent(ui.__mem_func__(self.DayNight))
        self.DayNightButton.SetText("Day")
        self.DayNightButton.Show()
        
        self.SnowButton = ui.Button()
        self.SnowButton.SetParent(self)
        self.SnowButton.SetPosition(75, 217)
        self.SnowButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.SnowButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.SnowButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.SnowButton.SetEvent(ui.__mem_func__(self.EnableSnow))
        self.SnowButton.SetText("Off")
        self.SnowButton.Show()
        
        self.AutoRedPotButton = ui.Button()
        self.AutoRedPotButton.SetParent(self)
        self.AutoRedPotButton.SetPosition(140, 267)
        self.AutoRedPotButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.AutoRedPotButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.AutoRedPotButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.AutoRedPotButton.SetEvent(ui.__mem_func__(self.AutoRedPot))
        self.AutoRedPotButton.SetText("Off")
        self.AutoRedPotButton.Show()
        
        self.AutoBluePotButton = ui.Button()
        self.AutoBluePotButton.SetParent(self)
        self.AutoBluePotButton.SetPosition(140, 297)
        self.AutoBluePotButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.AutoBluePotButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.AutoBluePotButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.AutoBluePotButton.SetEvent(ui.__mem_func__(self.AutoBluePot))
        self.AutoBluePotButton.SetText("Off")
        self.AutoBluePotButton.Show()
        
        self.AutoAttackButton = ui.Button()
        self.AutoAttackButton.SetParent(self)
        self.AutoAttackButton.SetPosition(75, 327)
        self.AutoAttackButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.AutoAttackButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.AutoAttackButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.AutoAttackButton.SetEvent(ui.__mem_func__(self.AutoAttack))
        self.AutoAttackButton.SetText("Off")
        self.AutoAttackButton.Show()
        
        self.AutoPickupButton = ui.Button()
        self.AutoPickupButton.SetParent(self)
        self.AutoPickupButton.SetPosition(75, 357)
        self.AutoPickupButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.AutoPickupButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.AutoPickupButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.AutoPickupButton.SetEvent(ui.__mem_func__(self.AutoPickup))
        self.AutoPickupButton.SetText("Off")
        self.AutoPickupButton.Show()
        
        self.AutoRestartButton = ui.Button()
        self.AutoRestartButton.SetParent(self)
        self.AutoRestartButton.SetPosition(75, 387)
        self.AutoRestartButton.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
        self.AutoRestartButton.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
        self.AutoRestartButton.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
        self.AutoRestartButton.SetEvent(ui.__mem_func__(self.AutoRestart))
        self.AutoRestartButton.SetText("Off")
        self.AutoRestartButton.Show()
        
        self.InstructionButton = ui.Button()
        self.InstructionButton.SetParent(self)
        self.InstructionButton.SetPosition(10, 427)
        self.InstructionButton.SetUpVisual("d:/ymir work/ui/public/large_button_01.sub")
        self.InstructionButton.SetOverVisual("d:/ymir work/ui/public/large_button_02.sub")
        self.InstructionButton.SetDownVisual("d:/ymir work/ui/public/large_button_03.sub")
        self.InstructionButton.SetEvent(ui.__mem_func__(self.Instruction))
        self.InstructionButton.SetText("Run Instructions")
        self.InstructionButton.SetToolTipText("Open the Thread for an instructions")
        self.InstructionButton.Show()
        
        self.CopyrightButton = ui.Button()
        self.CopyrightButton.SetParent(self)
        self.CopyrightButton.SetPosition(150, 427)
        self.CopyrightButton.SetUpVisual("d:/ymir work/ui/public/large_button_01.sub")
        self.CopyrightButton.SetOverVisual("d:/ymir work/ui/public/large_button_02.sub")
        self.CopyrightButton.SetDownVisual("d:/ymir work/ui/public/large_button_03.sub")
        self.CopyrightButton.SetEvent(ui.__mem_func__(self.MyEpvpProfile))
        self.CopyrightButton.SetText("©123klo E*PvP")
        self.CopyrightButton.SetToolTipText("Open my E*PvP Profile")
        self.CopyrightButton.Show()
        
        
        global GhostModeButton
        GhostModeButton.SetText("")
        GhostModeButton.SetPosition(2, 45)
        GhostModeButton.SetSize(88,21)
        GhostModeButton.SetEvent(self.GhostMod)
        GhostModeButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")
        GhostModeButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")
        GhostModeButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")
        GhostModeButton.Show()
        global GhostModeLine
        GhostModeLine.SetParent(GhostModeButton)
        GhostModeLine.SetPosition(23,10)
        GhostModeLine.SetVerticalAlignCenter()
        GhostModeLine.SetHorizontalAlignCenter()
        GhostModeLine.Show()
        
        global UpButton
        UpButton.SetText("")
        UpButton.SetPosition(2, 65)
        UpButton.SetSize(88,21)
        UpButton.SetEvent(self.RefineOneTime)
        UpButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")
        UpButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")
        UpButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")
        UpButton.Show()
        global UpLine
        UpLine.SetParent(UpButton)
        UpLine.SetPosition(23,10)
        UpLine.SetVerticalAlignCenter()
        UpLine.SetHorizontalAlignCenter()
        UpLine.Show()
        
        global OpenSettingsButton
        OpenSettingsButton.SetText("")
        OpenSettingsButton.SetPosition(2, 85)
        OpenSettingsButton.SetSize(88,21)
        OpenSettingsButton.SetEvent(self.Show)
        OpenSettingsButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")
        OpenSettingsButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")
        OpenSettingsButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")
        OpenSettingsButton.Show()
        global OpenSettingsLine
        OpenSettingsLine.SetParent(OpenSettingsButton)
        OpenSettingsLine.SetPosition(23,10)
        OpenSettingsLine.SetVerticalAlignCenter()
        OpenSettingsLine.SetHorizontalAlignCenter()
        OpenSettingsLine.Show()
        
    def LoadEditLines(self):
    
        self.SlotBarRedPotting = ui.SlotBar()
        self.SlotBarRedPotting.SetParent(self)
        self.SlotBarRedPotting.SetSize(30, 18)
        self.SlotBarRedPotting.SetPosition(-32, 268)
        self.SlotBarRedPotting.SetWindowHorizontalAlignCenter()
        self.SlotBarRedPotting.Show()
        
        self.EditLineRedPotting = ui.EditLine()
        self.EditLineRedPotting.SetParent(self.SlotBarRedPotting)
        self.EditLineRedPotting.SetSize(30, 17)
        self.EditLineRedPotting.SetPosition(8, 2)
        self.EditLineRedPotting.SetMax(2)
        self.EditLineRedPotting.SetNumberMode()
        self.EditLineRedPotting.SetText("90")
        self.EditLineRedPotting.SetFocus()
        self.EditLineRedPotting.Show()
        
        
        self.SlotBarBluePotting = ui.SlotBar()
        self.SlotBarBluePotting.SetParent(self)
        self.SlotBarBluePotting.SetSize(30, 18)
        self.SlotBarBluePotting.SetPosition(-32, 298)
        self.SlotBarBluePotting.SetWindowHorizontalAlignCenter()
        self.SlotBarBluePotting.Show()
        
        self.EditLineBluePotting = ui.EditLine()
        self.EditLineBluePotting.SetParent(self.SlotBarBluePotting)
        self.EditLineBluePotting.SetSize(30, 17)
        self.EditLineBluePotting.SetPosition(8, 2)
        self.EditLineBluePotting.SetMax(2)
        self.EditLineBluePotting.SetNumberMode()
        self.EditLineBluePotting.SetText("40")
        self.EditLineBluePotting.SetFocus()
        self.EditLineBluePotting.Show()
        
        
        self.SlotBarMoveSpeed = ui.SlotBar()
        self.SlotBarMoveSpeed.SetParent(self)
        self.SlotBarMoveSpeed.SetSize(30, 18)
        self.SlotBarMoveSpeed.SetPosition(-30, 70)
        self.SlotBarMoveSpeed.SetWindowHorizontalAlignCenter()
        self.SlotBarMoveSpeed.Show()
        
        self.EditLineMoveSpeed = ui.EditLine()
        self.EditLineMoveSpeed.SetParent(self.SlotBarMoveSpeed)
        self.EditLineMoveSpeed.SetSize(30, 17)
        self.EditLineMoveSpeed.SetPosition(8, 2)
        self.EditLineMoveSpeed.SetMax(3)
        self.EditLineMoveSpeed.SetNumberMode()
        self.EditLineMoveSpeed.SetText("200")
        self.EditLineMoveSpeed.SetFocus()
        self.EditLineMoveSpeed.Show()
    
    
    def MyEpvpProfile(self):
    
        os.system("start http://www.elitepvpers.com/forum/members/2581363-123klo.html")
        
    def Instruction(self):
    
        os.system("start http://www.elitepvpers.com/forum/newthread.php?do=postthread&f=405")
        
        
        
            
    def RefineMode(self):
        
        global Refine
        
        if Refine == 0:
            Refine = 1
            self.SetRefineModeButton.SetText("Normal")
        else:    
            Refine = 0
            self.SetRefineModeButton.SetText("DT")
            
    def RefineOneTime(self):
    
        global Refine
    
        if Refine == 0:
            Refine = 1
            net.SendRefinePacket(int(0), int(4))    
        else:    
            Refine = 0
            net.SendRefinePacket(int(0), int(0))
        
    def MoveSpeed(self):    
    
        global MoveSpeed
        
        if MoveSpeed == 0:
            MoveSpeed = 1
            self.MoveSpeedButton.SetText("On")
            self.EnableMoveSpeed()
        else:    
            MoveSpeed = 0
            self.MoveSpeedButton.SetText("Off")
            self.DisableMoveSpeed()
        
    def EnableMoveSpeed(self):

        MoveSpeed = self.EditLineMoveSpeed.GetText()
        NormalMoveSpeed = player.GetStatus(player.MOVING_SPEED)

        chr.SetMoveSpeed(int(NormalMoveSpeed))
        chr.SetMoveSpeed(int(MoveSpeed))
        
        self.delay = WaitingDialog()
        self.delay.Open(int(1.0))
        self.delay.SAFE_SetTimeOverEvent(self.EnableMoveSpeed)
        
    def DisableMoveSpeed(self):
    
        NormalMoveSpeed2 = player.GetStatus(player.MOVING_SPEED)
        chr.SetMoveSpeed(int(NormalMoveSpeed2))
        
        self.delay = WaitingDialog()
        self.delay.Open(int(99999999999999999))
        self.delay.SAFE_SetTimeOverEvent(self.DisableMoveSpeed)
        
    def GhostMod(self):
        
        chr.Revive()
        
    def Combo(self):
        
        global Combo
        
        if Combo == 0:
            Combo = 1
            self.ComboTypeButton.SetText("An")
            chr.testSetComboType(2)
        else:    
            Combo = 0
            self.ComboTypeButton.SetText("Aus")
            chr.testSetComboType(0)
    
    def ZoomHack(self):
        
        global ZoomHack
        
        if ZoomHack == 0:
            ZoomHack = 1
            self.ZoomHackButton.SetText("An")
            app.SetCameraMaxDistance(12000)    
        else:    
            ZoomHack = 0
            self.ZoomHackButton.SetText("Aus")
            app.SetCameraMaxDistance(2500)    
    
    def NoFog(self):
    
        global NoFog
        
        if NoFog == 0:
            NoFog = 1
            self.NoFogButton.SetText("An")
            app.SetMinFog(70000)
        else:    
            NoFog = 0
            self.NoFogButton.SetText("Aus")
            app.SetMinFog(2500)

    def DayNight(self):
    
        global DayNight
        
        if DayNight == 0:
            DayNight = 1
            self.DayNightButton.SetText("Night")
            background.SetEnvironmentData(1)
            background.RegisterEnvironmentData(1, constInfo.ENVIRONMENT_NIGHT)
            
        else:    
            DayNight = 0
            self.DayNightButton.SetText("Day")
            background.SetEnvironmentData(0)
            
    def EnableSnow(self):
        
        global EnableSnow
        
        if EnableSnow == 0:
            EnableSnow = 1
            self.SnowButton.SetText("Snow")
            background.EnableSnow(1)
        else:    
            EnableSnow = 0
            self.SnowButton.SetText("Off")
            background.EnableSnow(0)
            
            
            
            
######### Auto Potting Red #########    
            
    def AutoRedPot(self):

        global AutoRedPot
        
        if AutoRedPot == 0:
            AutoRedPot = 1
            self.AutoRedPotButton.SetText("On")
            self.EnableRedAutoPotting()
            
        else:    
            AutoRedPot = 0
            self.AutoRedPotButton.SetText("Off")
            self.DisableRedAutoPotting()
            
    def EnableRedAutoPotting(self):
        
        MaxTP = player.GetStatus(player.MAX_HP)
        ActualTP = player.GetStatus(player.HP)
        RedPercentValue = self.EditLineRedPotting.GetText()
        
        if (float(ActualTP) / (float(MaxTP)) * 100) < int(RedPercentValue):
            for i in xrange(player.INVENTORY_PAGE_SIZE*3):
                RedPott = player.GetItemIndex(i)
                if RedPott == 27001 or RedPott == 27002 or RedPott == 27003:
                    net.SendItemUsePacket(i)
                    break
                    
        self.delay = WaitingDialog()
        self.delay.Open(int(0.5))
        self.delay.SAFE_SetTimeOverEvent(self.EnableRedAutoPotting)
            
    def DisableRedAutoPotting(self):
        
        for i in xrange(player.INVENTORY_PAGE_SIZE*3):
                RedPott = player.GetItemIndex(i)
                if RedPott == 27001 or RedPott == 27002 or RedPott == 27003:
                    net.SendItemUsePacket(i)
                    break
                    
        self.delay = WaitingDialog()
        self.delay.Open(int(999999999999999999999))
        self.delay.SAFE_SetTimeOverEvent(self.DisableRedAutoPotting)
        
    
######### Auto Potting Blue #########

    def AutoBluePot(self):

        global AutoBluePot
        
        if AutoBluePot == 0:
            AutoBluePot = 1
            self.AutoBluePotButton.SetText("On")
            self.EnableBlueAutoPotting()
            
        else:    
            AutoBluePot = 0
            self.AutoBluePotButton.SetText("Off")
            self.DisableBlueAutoPotting()
            
    def EnableBlueAutoPotting(self):

        MaxSP = player.GetStatus(player.MAX_SP)
        ActualSP = player.GetStatus(player.SP)
        BluePercentValue = self.EditLineBluePotting.GetText()
        
        if (float(ActualSP) / (float(MaxSP)) * 100) < int(BluePercentValue):
            for i in xrange(player.INVENTORY_PAGE_SIZE*3):
                BluePott = player.GetItemIndex(i)
                if BluePott == 27004 or BluePott == 27005 or BluePott == 27006:
                    net.SendItemUsePacket(i)
                    break
                    
        self.delay = WaitingDialog()
        self.delay.Open(int(0.5))
        self.delay.SAFE_SetTimeOverEvent(self.EnableBlueAutoPotting)
            
    def DisableBlueAutoPotting(self):
        
        for i in xrange(player.INVENTORY_PAGE_SIZE*3):
                BluePott = player.GetItemIndex(i)
                if BluePott == 27004 or BluePott == 27005 or BluePott == 27006:
                #    net.SendItemUsePacket(i)
                    break
                    
        self.delay = WaitingDialog()
        self.delay.Open(int(999999999999999999999))
        self.delay.SAFE_SetTimeOverEvent(self.DisableBlueAutoPotting)    
        
        
        
        
    def AutoAttack(self):
        
        global AutoAttack
        
        if AutoAttack == 0:
            AutoAttack = 1
            self.AutoAttackButton.SetText("On")    
            self.EnableAutoAttack()
        else:    
            AutoAttack = 0
            self.AutoAttackButton.SetText("Off")
            self.DisableAutoAttack()
        
    def EnableAutoAttack(self):
    
        Direction = app.GetRandom(0,7)
        player.SetAttackKeyState(TRUE)
        chr.SetDirection(Direction)
        
        
        
        self.delay = WaitingDialog()
        self.delay.Open(int(1.0))
        self.delay.SAFE_SetTimeOverEvent(self.EnableAutoAttack)
            
    def DisableAutoAttack(self):
    
        player.SetAttackKeyState(FALSE)
        
        self.delay = WaitingDialog()
        self.delay.Open(int(99999999999999999))
        self.delay.SAFE_SetTimeOverEvent(self.DisableAutoAttack)

        
    def AutoPickup(self):

        global AutoPickup
        
        if AutoPickup == 0:
            AutoPickup = 1
            self.AutoPickupButton.SetText("On")    
            self.EnableAutoPickup()
        else:    
            AutoPickup = 0
            self.AutoPickupButton.SetText("Off")
            self.DisableAutoPickup()
        
    def EnableAutoPickup(self):
        
        
        
        player.PickCloseItem()
        
        self.delay = WaitingDialog()
        self.delay.Open(int(0.5))
        self.delay.SAFE_SetTimeOverEvent(self.EnableAutoPickup)
            
    def DisableAutoPickup(self):
        
        player.PickCloseItem()
        
        self.delay = WaitingDialog()
        self.delay.Open(int(999999999999999999999999999999))
        self.delay.SAFE_SetTimeOverEvent(self.DisableAutoPickup)
        

        
    
    def AutoRestart(self):

        global AutoRestart
        
        if AutoRestart == 0:
            AutoRestart = 1
            self.AutoRestartButton.SetText("On")    
            self.EnableRestart()
        else:    
            AutoRestart = 0
            self.AutoRestartButton.SetText("Off")
            self.DisableRestart()
        
    def EnableRestart(self):
        
        net.SendChatPacket("/restart_here")
    
        self.delay = WaitingDialog()
        self.delay.Open(int(2.5))
        self.delay.SAFE_SetTimeOverEvent(self.EnableRestart)
        

    
class WaitingDialog(ui.ScriptWindow):

    def __init__(self):
        ui.ScriptWindow.__init__(self)
        self.eventTimeOver = lambda *arg: None
        self.eventExit = lambda *arg: None

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

    def Open(self, waitTime):
        curTime = time.clock()
        self.endTime = curTime + waitTime

        self.Show()        

    def Close(self):
        self.Hide()

    def Destroy(self):
        self.Hide()

    def SAFE_SetTimeOverEvent(self, event):
        self.eventTimeOver = ui.__mem_func__(event)

    def SAFE_SetExitEvent(self, event):
        self.eventExit = ui.__mem_func__(event)
        
    
    def OnUpdate(self):
        lastTime = max(0, self.endTime - time.clock())
        if 0 == lastTime:
            self.Close()
            self.eventTimeOver()    
        else:
            return
        
    def OnPressExitKey(self):

        self.Close()
        return TRUE
        
Multi = MultihackDialog()
Multi.Close()
 

 

 

a zamiast 1 przycisku, ghost, dac object detector z tego tematu

http://www.mpcforum.pl/topic/834466-dl-metin2-python-object-detector-v2/

byłbym wdzieczny i nagradzam + ;d

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...