Register for your free account! | Forgot your password?
Rust Cheats

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 14:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Python] Need help pls

Discussion on [Python] Need help pls within the Metin2 forum part of the Popular Games category.

Reply
 
Old   #1
 
kaynanas's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 20
Received Thanks: 0
[Python] Need help pls (Switchbot/Syserr)

0526 03:19:15675 :: Traceback (most recent call last):

0526 03:19:15676 :: File "<string>", line 1824, in <module>

0526 03:19:15676 :: File "<string>", line 147, in __init__

0526 03:19:15676 :: File "<string>", line 211, in AddGui

0526 03:19:15676 :: IndexError
0526 03:19:15676 :: :
0526 03:19:15676 :: list index out of range
0526 03:19:15676 ::

Edit: I need 7 slots switchbot,

Example:

PHP Code:
import ui
import player
import item
import chat
import net
import shop
import uiRefine
import dbg
import net
import app
import serverInfo
import interfaceModule
import constInfo
TabNumber 
0

class efsunbot(ui.ScriptWindow):
    
Gui = []
    
BoniGui = []
    
BoniGui2 = []
    
BoniGui3 = []
    
BoniGui4 = []
    
BoniGui5 = []
    
Delay 1.0
    BonusIDListe 
= [['Seçilmedi'0],
     [
'Max HP.'1],
     [
'Max SP.'2],
     [
'Güç'5],
     [
'Zeka'4],
     [
'Çeviklik'6],
     [
'Canlılık'3],
     [
'Saldırı Hızı'7],
     [
'Hareket Hızı'8],
     [
'Büyü Hızı'9],
     [
'Hp Üretimi'10],
     [
'SP Üretimi'11],
     [
'Zehirleme Değişimi'12],
     [
'Sersemletme Şansı'13],
     [
'Yavaşlatma Şansı'14],
     [
'Kritik Vuruş'15],
     [
'Delici Vuruş'16],
     [
'Yarı İnsanlara Karşı Güçlü'17],
     [
'Ölümsüzlere Karşı Güçlü'21],
     [
'Şeytanlara Karşı Güçlü'22],
     [
'Mistiklere Karşı Güçlü'20],
     [
'Hayvanlara Karşı Güçlü'18],
     [
'Orklara Karşı Güçlü'19],
     [
'HP Absorbe'23],
     [
'SP Absorbe'24],
     [
'SP Çalma Şansı'25],
     [
'Beden K. Atakların Blok.'27],
     [
'Vücut D. Yansıtması'39],
     [
'Kılıç Savunması'29],
     [
'Bıçak Savunması'31],
     [
'Çift El Savunması'30],
     [
'Çan Savunması'32],
     [
'Yelpaze Savunması'33],
     [
'Ok K. Dayanıklılık'34],
     [
'Oklardan Korunma Şansı'28],
     [
'Büyüye K. Dayanıklılık'37],
     [
'Ateşe Karşı Dayanıklılık'35],
     [
'Şimşeğe Karşı Dayanıklılık'36],
     [
'Rüzgara K. Dayanıklılık'38],
     [
'Sersemlik K. Bağışıklılık'48],
     [
'Yavaşlama K. Bağışıklılık'49],
     [
'Zehre Karşı Koyma'41],
     [
'Exp-Bonus'43],
     [
'İki Kat Yang'44],
     [
'İki Kat İtem'45],
     [
'Saldırı Değeri'53],
     [
'Beceri Hasarı'71],
     [
'Ortalama Hasar'72]]
    
State 'Stop'
    
State2 'Stop'
    
State3 'Stop'
    
State4 'Stop'
    
State5 'Stop'
    
SearchBoni = []
    
SearchBoniValues = [[00],
     [
00],
     [
00],
     [
00],
     [
00]]
    
SearchBoni2 = []
    
SearchBoniValues2 = [[00],
     [
00],
     [
00],
     [
00],
     [
00]]
    
SearchBoni3 = []
    
SearchBoniValues3 = [[00],
     [
00],
     [
00],
     [
00],
     [
00]]
    
SearchBoni4 = []
    
SearchBoniValues4 = [[00],
     [
00],
     [
00],
     [
00],
     [
00]]
    
SearchBoni5 = []
    
SearchBoniValues5 = [[00],
     [
00],
     [
00],
     [
00],
     [
00]]
    
Values = []
    
Boni = []
    
Count 0
    Slot 
0
    Startmode 
0
    Values2 
= []
    
Boni2 = []
    
Count2 0
    Slot2 
0
    Startmode2 
0
    Values3 
= []
    
Boni3 = []
    
Count3 0
    Slot3 
0
    Startmode3 
0
    Values4 
= []
    
Boni4 = []
    
Count4 0
    Slot4 
0
    Startmode4 
0
    Values5 
= []
    
Boni5 = []
    
Count5 0
    Slot5 
0
    Startmode5 
0
    LastProcessTimeStamp 
0
    SlotStack 
= [00]
    
SwitchValue 71084
    LastProcessTimeStamp2 
0
    SlotStack2 
= [00]
    
LastProcessTimeStamp3 0
    SlotStack3 
= [00]
    
LastProcessTimeStamp4 0
    SlotStack4 
= [00]
    
LastProcessTimeStamp5 0
    SlotStack5 
= [00]

    
def __init__(self):
        
self.Gui = []
        
ui.ScriptWindow.__init__(self)
        
self.AddGui()
        
chat.AppendChat(1'Efsun Botu Açıldı!')

    
def __del__(self):
        
self.Gui[0].Hide()
        
ui.ScriptWindow.__del__(self)
        
chat.AppendChat(1'Efsun Botu Kapatıldı!')
        if 
== interfaceModule.efsunbotacik:
            
interfaceModule.efsunbotacik 0

    def AddGui
(self):
        
Gui = [[[ui.ThinBoard''],
          [
500330],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
47515],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.__del__()]]],
          []],
         [[
ui.SlotBar0],
          [
465230],
          [
1580],
          [],
          []],
         [[
ui.Line0],
          [
4350],
          [
30260],
          [[
'SetColor', [4286019447L]]],
          []],
         [[
ui.Button0],
          [
00],
          [
240160],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
           [
'SetText', ['Sıfırla']],
           [
'SetEvent', [lambda self.DeleteAll(TabNumber)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
159280],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Başlat']],
           [
'SetEvent', [lambda self.ChangeState('Start')]]],
          []],
         [[
ui.Button0],
          [
00],
          [
252280],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Durdur']],
           [
'SetEvent', [lambda self.ChangeState('Stop')]]],
          []]]
        
GuiParser(Guiself.Gui)
        
self.Gui[6].Hide()
        
self.Gui[7].Hide()
        
self.Gui[5].Hide()
        
tmp = []
        
20
        
for i in xrange(5):
            
button = [[ui.Button0],
             [
00],
             [
x50],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Middle_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Middle_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Middle_button_03.sub']],
              [
'SetText', ['Sekme ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectTab(Index)]]],
             []]
            
tmp.append(button)
            
+= 65

        y 
100
        texty 
200
        
for i in xrange(3):
            
button = [[ui.Button0],
             [
00],
             [
40y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
140y],
             [],
             []]
            
editline = [[ui.EditLine14 4],
             [
3517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
45texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(35):
            
button = [[ui.Button0],
             [
00],
             [
240y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
340y],
             [],
             []]
            
editline = [[ui.EditLine26 + (3) * 4],
             [
23517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
245texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(3):
            
button = [[ui.Button0],
             [
00],
             [
40y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus2(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
140y],
             [],
             []]
            
editline = [[ui.EditLine34 4],
             [
3517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
45texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(35):
            
button = [[ui.Button0],
             [
00],
             [
240y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus2(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
340y],
             [],
             []]
            
editline = [[ui.EditLine46 + (3) * 4],
             [
23517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
245texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(3):
            
button = [[ui.Button0],
             [
00],
             [
40y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus3(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
140y],
             [],
             []]
            
editline = [[ui.EditLine54 4],
             [
3517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
45texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(35):
            
button = [[ui.Button0],
             [
00],
             [
240y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus3(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
340y],
             [],
             []]
            
editline = [[ui.EditLine66 + (3) * 4],
             [
23517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
245texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(3):
            
button = [[ui.Button0],
             [
00],
             [
40y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus4(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
140y],
             [],
             []]
            
editline = [[ui.EditLine74 4],
             [
3517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
45texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(35):
            
button = [[ui.Button0],
             [
00],
             [
240y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus4(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
340y],
             [],
             []]
            
editline = [[ui.EditLine86 + (3) * 4],
             [
23517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
245texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(3):
            
button = [[ui.Button0],
             [
00],
             [
40y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus5(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
140y],
             [],
             []]
            
editline = [[ui.EditLine94 4],
             [
3517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
45texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(35):
            
button = [[ui.Button0],
             [
00],
             [
240y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus5(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
340y],
             [],
             []]
            
editline = [[ui.EditLine106 + (3) * 4],
             [
23517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
245texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        GuiParser
(tmpself.Gui)
        for 
i in xrange(33113):
            
self.Gui[int(i)].Hide()

        
self.StartOrStop(0)

    
def StartOrStop(selfIndex):
        
tmpstarter = [[[ui.Button0],
          [
00],
          [
159280],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/Middle_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/Middle_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/Middle_button_03.sub']],
           [
'SetText', ['Başlat']],
           [
'SetEvent', [lambda self.WhichOneWillStart(Index)]]],
          []], [[
ui.Button0],
          [
00],
          [
252280],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/Middle_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/Middle_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/Middle_button_03.sub']],
           [
'SetText', ['Durdur']],
           [
'SetEvent', [lambda self.WhichOneWillStop(Index)]]],
          []]]
        
GuiParser(tmpstarterself.Gui)

    
def SelectTab(selfIndex):
        global 
TabNumber
        TabNumber 
Index
        self
.StartOrStop(Index)
        if 
Index == 0:
            for 
iy in xrange(33113):
                
self.Gui[int(iy)].Hide()

            for 
iy in xrange(1233):
                
self.Gui[int(iy)].Show()

        
elif Index == 1:
            for 
iy in xrange(13113):
                
self.Gui[int(iy)].Hide()

            for 
iy in xrange(3353):
                
self.Gui[int(iy)].Show()

        
elif Index == 2:
            for 
iy in xrange(13113):
                
self.Gui[int(iy)].Hide()

            for 
iy in xrange(5373):
                
self.Gui[int(iy)].Show()

        
elif Index == 3:
            for 
iy in xrange(13113):
                
self.Gui[int(iy)].Hide()

            for 
iy in xrange(7393):
                
self.Gui[int(iy)].Show()

        
elif Index == 4:
            for 
iy in xrange(13113):
                
self.Gui[int(iy)].Hide()

            for 
iy in xrange(93113):
                
self.Gui[int(iy)].Show()

    
def WhichOneWillStart(selfIndex):
        if 
Index == 0:
            
self.ChangeState('Start')
            
chat.AppendChat(1str(int(Index 1)) + '. bot başlayacak.')
        
elif Index == 1:
            
self.ChangeState2('Start')
            
chat.AppendChat(1str(int(Index 1)) + '. bot başlayacak.')
        
elif Index == 2:
            
self.ChangeState3('Start')
            
chat.AppendChat(1str(int(Index 1)) + '. bot başlayacak.')
        
elif Index == 3:
            
self.ChangeState4('Start')
            
chat.AppendChat(1str(int(Index 1)) + '. bot başlayacak.')
        
elif Index == 4:
            
self.ChangeState5('Start')
            
chat.AppendChat(1str(int(Index 1)) + '. bot başlayacak.')

    
def WhichOneWillStop(selfIndex):
        if 
Index == 0:
            
self.ChangeState('Stop')
        
elif Index == 1:
            
self.ChangeState2('Stop')
        
elif Index == 2:
            
self.ChangeState3('Stop')
        
elif Index == 3:
            
self.ChangeState4('Stop')
        
elif Index == 4:
            
self.ChangeState5('Stop')

    
def DeleteAll(selftabnumber):
        if 
tabnumber == 0:
            
del self.SearchBoni[0]

    
def SelectBonus(selfIndex):
        
self.BoniGui = []
        
Gui = [[[ui.ThinBoard''],
          [
223323],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
18318],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.HideBonusList()]]],
          []],
         [[
ui.SlotBar0],
          [
190227],
          [
1535],
          [],
          []],
         [[
ui.ListBoxEx0],
          [
00],
          [
2060],
          [],
          []],
         [[
ui.ScrollBar0],
          [
00],
          [
18550],
          [[
'SetScrollBarSize', [200]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2039],
          [[
'SetDefaultFontName', ['']], ['SetText', ['ID:\t\t\tBonus:']], ['SetFontColor', [0.20.61.0]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2015],
          [[
'SetText', ['Efsun ' str(Index 1)]], ['SetFontColor', [0.40.60.8]]],
          []],
         [[
ui.Button0],
          [
00],
          [
20275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Seç']],
           [
'SetEvent', [lambda index Indexself.AddBonus(Index)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
113275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Kapat']],
           [
'SetEvent', [lambda self.HideBonusList()]]],
          []]]
        
GuiParser(Guiself.BoniGui)
        
self.BoniGui[3].SetScrollBar(self.BoniGui[4])
        
self.SetBonusList()

    
def SelectBonus2(selfIndex):
        
self.BoniGui2 = []
        
Gui = [[[ui.ThinBoard''],
          [
223323],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
18318],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.HideBonusList2()]]],
          []],
         [[
ui.SlotBar0],
          [
190227],
          [
1535],
          [],
          []],
         [[
ui.ListBoxEx0],
          [
00],
          [
2060],
          [],
          []],
         [[
ui.ScrollBar0],
          [
00],
          [
18550],
          [[
'SetScrollBarSize', [200]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2039],
          [[
'SetDefaultFontName', ['']], ['SetText', ['ID:\t\t\tBonus:']], ['SetFontColor', [0.20.61.0]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2015],
          [[
'SetText', ['Efsun ' str(Index 1)]], ['SetFontColor', [0.40.60.8]]],
          []],
         [[
ui.Button0],
          [
00],
          [
20275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Seç']],
           [
'SetEvent', [lambda index Indexself.AddBonus2(Index)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
113275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Kapat']],
           [
'SetEvent', [lambda self.HideBonusList2()]]],
          []]]
        
GuiParser(Guiself.BoniGui2)
        
self.BoniGui2[3].SetScrollBar(self.BoniGui2[4])
        
self.SetBonusList2()

    
def SelectBonus3(selfIndex):
        
self.BoniGui3 = []
        
Gui = [[[ui.ThinBoard''],
          [
223323],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
18318],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.HideBonusList3()]]],
          []],
         [[
ui.SlotBar0],
          [
190227],
          [
1535],
          [],
          []],
         [[
ui.ListBoxEx0],
          [
00],
          [
2060],
          [],
          []],
         [[
ui.ScrollBar0],
          [
00],
          [
18550],
          [[
'SetScrollBarSize', [200]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2039],
          [[
'SetDefaultFontName', ['']], ['SetText', ['ID:\t\t\tBonus:']], ['SetFontColor', [0.20.61.0]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2015],
          [[
'SetText', ['Efsun ' str(Index 1)]], ['SetFontColor', [0.40.60.8]]],
          []],
         [[
ui.Button0],
          [
00],
          [
20275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Seç']],
           [
'SetEvent', [lambda index Indexself.AddBonus3(Index)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
113275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Kapat']],
           [
'SetEvent', [lambda self.HideBonusList3()]]],
          []]]
        
GuiParser(Guiself.BoniGui3)
        
self.BoniGui3[3].SetScrollBar(self.BoniGui3[4])
        
self.SetBonusList3()

    
def SelectBonus4(selfIndex):
        
self.BoniGui4 = []
        
Gui = [[[ui.ThinBoard''],
          [
223323],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
18318],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.HideBonusList4()]]],
          []],
         [[
ui.SlotBar0],
          [
190227],
          [
1535],
          [],
          []],
         [[
ui.ListBoxEx0],
          [
00],
          [
2060],
          [],
          []],
         [[
ui.ScrollBar0],
          [
00],
          [
18550],
          [[
'SetScrollBarSize', [200]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2039],
          [[
'SetDefaultFontName', ['']], ['SetText', ['ID:\t\t\tBonus:']], ['SetFontColor', [0.20.61.0]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2015],
          [[
'SetText', ['Efsun ' str(Index 1)]], ['SetFontColor', [0.40.60.8]]],
          []],
         [[
ui.Button0],
          [
00],
          [
20275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Seç']],
           [
'SetEvent', [lambda index Indexself.AddBonus4(Index)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
113275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Kapat']],
           [
'SetEvent', [lambda self.HideBonusList4()]]],
          []]]
        
GuiParser(Guiself.BoniGui4)
        
self.BoniGui4[3].SetScrollBar(self.BoniGui4[4])
        
self.SetBonusList4()

    
def SelectBonus5(selfIndex):
        
self.BoniGui5 = []
        
Gui = [[[ui.ThinBoard''],
          [
223323],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
18318],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.HideBonusList5()]]],
          []],
         [[
ui.SlotBar0],
          [
190227],
          [
1535],
          [],
          []],
         [[
ui.ListBoxEx0],
          [
00],
          [
2060],
          [],
          []],
         [[
ui.ScrollBar0],
          [
00],
          [
18550],
          [[
'SetScrollBarSize', [200]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2039],
          [[
'SetDefaultFontName', ['']], ['SetText', ['ID:\t\t\tBonus:']], ['SetFontColor', [0.20.61.0]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2015],
          [[
'SetText', ['Efsun ' str(Index 1)]], ['SetFontColor', [0.40.60.8]]],
          []],
         [[
ui.Button0],
          [
00],
          [
20275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Seç']],
           [
'SetEvent', [lambda index Indexself.AddBonus5(Index)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
113275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Kapat']],
           [
'SetEvent', [lambda self.HideBonusList5()]]],
          []]]
        
GuiParser(Guiself.BoniGui5)
        
self.BoniGui5[3].SetScrollBar(self.BoniGui5[4])
        
self.SetBonusList5()

    
def SetBonusList(self):
        
self.BoniGui[3].RemoveAllItems()
        for 
Bonus in self.BonusIDListe:
            
self.BoniGui[3].AppendItem(Item(str(Bonus[1]) + '\t\t\t' Bonus[0]))

    
def SetBonusList2(self):
        
self.BoniGui2[3].RemoveAllItems()
        for 
Bonus in self.BonusIDListe:
            
self.BoniGui2[3].AppendItem(Item(str(Bonus[1]) + '\t\t\t' Bonus[0]))

    
def SetBonusList3(self):
        
self.BoniGui3[3].RemoveAllItems()
        for 
Bonus in self.BonusIDListe:
            
self.BoniGui3[3].AppendItem(Item(str(Bonus[1]) + '\t\t\t' Bonus[0]))

    
def SetBonusList4(self):
        
self.BoniGui4[3].RemoveAllItems()
        for 
Bonus in self.BonusIDListe:
            
self.BoniGui4[3].AppendItem(Item(str(Bonus[1]) + '\t\t\t' Bonus[0]))

    
def SetBonusList5(self):
        
self.BoniGui5[3].RemoveAllItems()
        for 
Bonus in self.BonusIDListe:
            
self.BoniGui5[3].AppendItem(Item(str(Bonus[1]) + '\t\t\t' Bonus[0]))

    
def HideBonusList(self):
        
self.BoniGui[0].Hide()

    
def HideBonusList2(self):
        
self.BoniGui2[0].Hide()

    
def HideBonusList3(self):
        
self.BoniGui3[0].Hide()

    
def HideBonusList4(self):
        
self.BoniGui4[0].Hide()

    
def HideBonusList5(self):
        
self.BoniGui5[0].Hide()

    
def AddBonus(selfIndex):
        
ItemIndex self.BoniGui[3].GetSelectedItem()
        if 
ItemIndex:
            
pass
        
else:
            
chat.AppendChat(chat.CHAT_TYPE_INFO'Hiçbir şey seçilmemiş!')
            return
        
BonusValue ItemIndex.GetText().split('\t\t\t')
        if 
int(BonusValue[0]) == 0:
            try:
                
BackUp self.SearchBoni[Index]
                if 
BackUp[1] == 0:
                    
self.SearchBoni.remove(self.SearchBoni[Index])
                else:
                    
self.SearchBoni[Index] = [0BackUp[1]]
            
except:
                
pass

        
else:
            try:
                try:
                    
BackUp self.SearchBoni[Index]
                    
self.SearchBoni.remove(self.SearchBoni[Index])
                
except:
                    
Backup = [00]

                
self.SearchBoni.insert(Index, [int(BonusValue[0]), BackUp[1]])
            
except:
                
self.SearchBoni.append([int(BonusValue[0]), 0])

        
self.UpdateBonusList()
        
self.HideBonusList()

    
def AddBonus2(selfIndex):
        
ItemIndex self.BoniGui2[3].GetSelectedItem()
        if 
ItemIndex:
            
pass
        
else:
            
chat.AppendChat(chat.CHAT_TYPE_INFO'Hiçbir şey seçilmemiş!')
            return
        
BonusValue ItemIndex.GetText().split('\t\t\t')
        if 
int(BonusValue[0]) == 0:
            try:
                
BackUp2 self.SearchBoni2[Index]
                if 
BackUp2[1] == 0:
                    
self.SearchBoni2.remove(self.SearchBoni2[Index])
                else:
                    
self.SearchBoni2[Index] = [0BackUp2[1]]
            
except:
                
pass

        
else:
            try:
                try:
                    
BackUp2 self.SearchBoni2[Index]
                    
self.SearchBoni2.remove(self.SearchBoni2[Index])
                
except:
                    
Backup2 = [00]

                
self.SearchBoni2.insert(Index, [int(BonusValue[0]), BackUp2[1]])
            
except:
                
self.SearchBoni2.append([int(BonusValue[0]), 0])

        
self.UpdateBonusList2()
        
self.HideBonusList2()

    
def AddBonus3(selfIndex):
        
ItemIndex self.BoniGui3[3].GetSelectedItem()
        if 
ItemIndex:
            
pass
        
else:
            
chat.AppendChat(chat.CHAT_TYPE_INFO'Hiçbir şey seçilmemiş!')
            return
        
BonusValue ItemIndex.GetText().split('\t\t\t')
        if 
int(BonusValue[0]) == 0:
            try:
                
BackUp3 self.SearchBoni3[Index]
                if 
BackUp3[1] == 0:
                    
self.SearchBoni3.remove(self.SearchBoni3[Index])
                else:
                    
self.SearchBoni3[Index] = [0BackUp3[1]]
            
except:
                
pass

        
else:
            try:
                try:
                    
BackUp3 self.SearchBoni3[Index]
                    
self.SearchBoni3.remove(self.SearchBoni3[Index])
                
except:
                    
Backup3 = [00]

                
self.SearchBoni3.insert(Index, [int(BonusValue[0]), BackUp3[1]])
            
except:
                
self.SearchBoni3.append([int(BonusValue[0]), 0])

        
self.UpdateBonusList3()
        
self.HideBonusList3()

    
def AddBonus4(selfIndex):
        
ItemIndex self.BoniGui4[3].GetSelectedItem()
        if 
ItemIndex:
            
pass
        
else:
            
chat.AppendChat(chat.CHAT_TYPE_INFO'Hiçbir şey seçilmemiş!')
            return
        
BonusValue ItemIndex.GetText().split('\t\t\t')
        if 
int(BonusValue[0]) == 0:
            try:
                
BackUp4 self.SearchBoni4[Index]
                if 
BackUp4[1] == 0:
                    
self.SearchBoni4.remove(self.SearchBoni4[Index])
                else:
                    
self.SearchBoni4[Index] = [0BackUp4[1]]
            
except:
                
pass

        
else:
            try:
                try:
                    
BackUp4 self.SearchBoni4[Index]
                    
self.SearchBoni4.remove(self.SearchBoni4[Index])
                
except:
                    
Backup4 = [00]

                
self.SearchBoni4.insert(Index, [int(BonusValue[0]), BackUp4[1]])
            
except:
                
self.SearchBoni4.append([int(BonusValue[0]), 0])

        
self.UpdateBonusList4()
        
self.HideBonusList4()

    
def AddBonus5(selfIndex):
        
ItemIndex self.BoniGui5[3].GetSelectedItem()
        if 
ItemIndex:
            
pass
        
else:
            
chat.AppendChat(chat.CHAT_TYPE_INFO'Hiçbir şey seçilmemiş!')
            return
        
BonusValue ItemIndex.GetText().split('\t\t\t')
        if 
int(BonusValue[0]) == 0:
            try:
                
BackUp5 self.SearchBoni5[Index]
                if 
BackUp5[1] == 0:
                    
self.SearchBoni5.remove(self.SearchBoni5[Index])
                else:
                    
self.SearchBoni5[Index] = [0BackUp5[1]]
            
except:
                
pass

        
else:
            try:
                try:
                    
BackUp5 self.SearchBoni5[Index]
                    
self.SearchBoni5.remove(self.SearchBoni5[Index])
                
except:
                    
Backup5 = [00]

                
self.SearchBoni5.insert(Index, [int(BonusValue[0]), BackUp5[1]])
            
except:
                
self.SearchBoni5.append([int(BonusValue[0]), 0])

        
self.UpdateBonusList5()
        
self.HideBonusList5()

    
def UpdateBonusList(self):
        
tmp = {}
        for 
Bonus in self.BonusIDListe:
            
tmp[Bonus[1]] = Bonus[0]

        for 
Index in xrange(5):
            
self.Gui[15 Index 4].SetText('Seçilmedi')

        for 
Bonus in self.SearchBoni:
            
Index self.SearchBoni.index(Bonus)
            
self.Gui[15 Index 4].SetText(tmp[Bonus[0]])

    
def UpdateBonusList2(self):
        
tmp = {}
        for 
Bonus in self.BonusIDListe:
            
tmp[Bonus[1]] = Bonus[0]

        for 
Index in xrange(5):
            
self.Gui[35 Index 4].SetText('Seçilmedi')

        for 
Bonus in self.SearchBoni2:
            
Index self.SearchBoni2.index(Bonus)
            
self.Gui[35 Index 4].SetText(tmp[Bonus[0]])

    
def UpdateBonusList3(self):
        
tmp = {}
        for 
Bonus in self.BonusIDListe:
            
tmp[Bonus[1]] = Bonus[0]

        for 
Index in xrange(5):
            
self.Gui[55 Index 4].SetText('Seçilmedi')

        for 
Bonus in self.SearchBoni3:
            
Index self.SearchBoni3.index(Bonus)
            
self.Gui[55 Index 4].SetText(tmp[Bonus[0]])

    
def UpdateBonusList4(self):
        
tmp = {}
        for 
Bonus in self.BonusIDListe:
            
tmp[Bonus[1]] = Bonus[0]

        for 
Index in xrange(5):
            
self.Gui[75 Index 4].SetText('Seçilmedi')

        for 
Bonus in self.SearchBoni4:
            
Index self.SearchBoni4.index(Bonus)
            
self.Gui[75 Index 4].SetText(tmp[Bonus[0]])

    
def UpdateBonusList5(self):
        
tmp = {}
        for 
Bonus in self.BonusIDListe:
            
tmp[Bonus[1]] = Bonus[0]

        for 
Index in xrange(5):
            
self.Gui[95 Index 4].SetText('Seçilmedi')

        for 
Bonus in self.SearchBoni5:
            
Index self.SearchBoni5.index(Bonus)
            
self.Gui[95 Index 4].SetText(tmp[Bonus[0]])

    
def OnUpdate(self):
        
self.UpdateBonusValues()
        
self.UpdateBoni()
        
self.UpdateBonusValues2()
        
self.UpdateBoni2()
        
self.UpdateBonusValues3()
        
self.UpdateBoni3()
        
self.UpdateBonusValues4()
        
self.UpdateBoni4()
        
self.UpdateBonusValues5()
        
self.UpdateBoni5()

    
def UpdateBonusValues(self):
        
TmpValues = []
        for 
Index in xrange(5):
            try:
                
SearchValue int(self.Gui[16 Index 4].GetText())
            
except:
                
SearchValue 0

            TmpValues
.append([SearchValue0])

        if 
TmpValues != self.SearchBoniValues:
            
self.SearchBoniValues TmpValues

    def UpdateBonusValues2
(self):
        
TmpValues2 = []
        for 
Index in xrange(5):
            try:
                
SearchValue int(self.Gui[36 Index 4].GetText())
            
except:
                
SearchValue 0

            TmpValues2
.append([SearchValue0])

        if 
TmpValues2 != self.SearchBoniValues2:
            
self.SearchBoniValues2 TmpValues2

    def UpdateBonusValues3
(self):
        
TmpValues3 = []
        for 
Index in xrange(5):
            try:
                
SearchValue int(self.Gui[56 Index 4].GetText())
            
except:
                
SearchValue 0

            TmpValues3
.append([SearchValue0])

        if 
TmpValues3 != self.SearchBoniValues3:
            
self.SearchBoniValues3 TmpValues3

    def UpdateBonusValues4
(self):
        
TmpValues4 = []
        for 
Index in xrange(5):
            try:
                
SearchValue int(self.Gui[76 Index 4].GetText())
            
except:
                
SearchValue 0

            TmpValues4
.append([SearchValue0])

        if 
TmpValues4 != self.SearchBoniValues4:
            
self.SearchBoniValues4 TmpValues4

    def UpdateBonusValues5
(self):
        
TmpValues5 = []
        for 
Index in xrange(5):
            try:
                
SearchValue int(self.Gui[96 Index 4].GetText())
            
except:
                
SearchValue 0

            TmpValues5
.append([SearchValue0])

        if 
TmpValues5 != self.SearchBoniValues5:
            
self.SearchBoniValues5 TmpValues5

    def UpdateBoni
(self):
        if 
self.State == 'Stop':
            return
        
Values = []
        
Boni = []
        
Count 0
        
for AttributeIndex in xrange(self.Count):
            
BonusValue player.GetItemAttribute(self.SlotAttributeIndex)
            if 
Bonus == 0:
                return
            
Count += 1
            Values
.append(Value)
            
Boni.append(Bonus)

        if 
player.GetItemCount(self.SlotStack[0]) <= and (self.Boni != Boni or self.Values != Values) or self.Boni != Boni or self.Values != Values or app.GetTime() >= self.LastProcessTimeStamp 0.8:
            
self.LastProcessTimeStamp app.GetTime()
            
self.Boni Boni
            self
.Values Values
            self
.ControllBoni(BoniValues)

    
def UpdateBoni2(self):
        if 
self.State2 == 'Stop':
            return
        
Values2 = []
        
Boni2 = []
        
Count2 0
        
for AttributeIndex in xrange(self.Count2):
            
Bonus2Value2 player.GetItemAttribute(self.Slot2AttributeIndex)
            if 
Bonus2 == 0:
                return
            
Count2 += 1
            Values2
.append(Value2)
            
Boni2.append(Bonus2)

        if 
player.GetItemCount(self.SlotStack2[0]) <= and (self.Boni2 != Boni2 or self.Values2 != Values2) or self.Boni2 != Boni2 or self.Values2 != Values2 or app.GetTime() >= self.LastProcessTimeStamp2 0.8:
            
self.LastProcessTimeStamp2 app.GetTime()
            
self.Boni2 Boni2
            self
.Values2 Values2
            self
.ControllBoni2(Boni2Values2)

    
def UpdateBoni3(self):
        if 
self.State3 == 'Stop':
            return
        
Values3 = []
        
Boni3 = []
        
Count3 0
        
for AttributeIndex in xrange(self.Count3):
            
Bonus3Value3 player.GetItemAttribute(self.Slot3AttributeIndex)
            if 
Bonus3 == 0:
                return
            
Count3 += 1
            Values3
.append(Value3)
            
Boni3.append(Bonus3)

        if 
player.GetItemCount(self.SlotStack3[0]) <= and (self.Boni3 != Boni3 or self.Values3 != Values3) or self.Boni3 != Boni3 or self.Values3 != Values3 or app.GetTime() >= self.LastProcessTimeStamp3 0.8:
            
self.LastProcessTimeStamp3 app.GetTime()
            
self.Boni3 Boni3
            self
.Values3 Values3
            self
.ControllBoni3(Boni3Values3)

    
def UpdateBoni4(self):
        if 
self.State4 == 'Stop':
            return
        
Values4 = []
        
Boni4 = []
        
Count4 0
        
for AttributeIndex in xrange(self.Count4):
            
Bonus4Value4 player.GetItemAttribute(self.Slot4AttributeIndex)
            if 
Bonus4 == 0:
                return
            
Count4 += 1
            Values4
.append(Value4)
            
Boni4.append(Bonus4)

        if 
player.GetItemCount(self.SlotStack4[0]) <= and (self.Boni4 != Boni4 or self.Values4 != Values4) or self.Boni4 != Boni4 or self.Values4 != Values4 or app.GetTime() >= self.LastProcessTimeStamp4 0.8:
            
self.LastProcessTimeStamp4 app.GetTime()
            
self.Boni4 Boni4
            self
.Values4 Values4
            self
.ControllBoni4(Boni4Values4)

    
def UpdateBoni5(self):
        if 
self.State5 == 'Stop':
            return
        
Values5 = []
        
Boni5 = []
        
Count5 0
        
for AttributeIndex in xrange(self.Count5):
            
Bonus5Value5 player.GetItemAttribute(self.Slot5AttributeIndex)
            if 
Bonus5 == 0:
                return
            
Count5 += 1
            Values5
.append(Value5)
            
Boni5.append(Bonus5)

        if 
player.GetItemCount(self.SlotStack5[0]) <= and (self.Boni5 != Boni5 or self.Values5 != Values5) or self.Boni5 != Boni5 or self.Values5 != Values5 or app.GetTime() >= self.LastProcessTimeStamp5 0.8:
            
self.LastProcessTimeStamp5 app.GetTime()
            
self.Boni5 Boni5
            self
.Values5 Values5
            self
.ControllBoni5(Boni5Values5)

    
def ControllBoni(selfBoniValues):
        try:
            for 
i in xrange(len(self.SearchBoni)):
                try:
                    
Index Boni.index(self.SearchBoni[i][0])
                    if 
Values[Index] < self.SearchBoniValues[i][0]:
                        
Boni.index('-1')
                
except:
                    
Index Boni.index(self.SearchBoni[i][1])
                    if 
Values[Index] < self.SearchBoniValues[i][1]:
                        
Boni.index('-1')

            
self.State 'Stop'
            
chat.AppendChat(1'Efsun Sayısı: ' str(self.Count))
            
chat.AppendChat(1'Efsunlar: ' str(Boni))
            
chat.AppendChat(1'Efsun Değerleri: ' str(Values))
        
except:
            if 
player.GetItemCountByVnum(self.SwitchValue) < 3:
                if 
shop.IsOpen():
                    for 
EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):
                        
ShopItemValue shop.GetItemID(EachShopSlot)
                        if 
ShopItemValue == int(self.SwitchValue):
                            
net.SendShopBuyPacket(EachShopSlot)

                else:
                    
chat.AppendChat(1'Efsun değiştirme nesnesi kalmadı.')
                    
self.State 'Stop'
                    
return
            for 
Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
ItemValue player.GetItemIndex(Slot)
                if 
ItemValue == self.SwitchValue:
                    if 
self.State == 'Stop':
                        return
                    
self.SlotStack = [Slotplayer.GetItemCount(Slot)]
                    
net.SendItemUseToItemPacket(Slotself.Slot)
                    break

    
def ControllBoni2(selfBoniValues):
        try:
            for 
i in xrange(len(self.SearchBoni2)):
                try:
                    
Index Boni.index(self.SearchBoni2[i][0])
                    if 
Values[Index] < self.SearchBoniValues2[i][0]:
                        
Boni.index('-1')
                
except:
                    
Index Boni.index(self.SearchBoni2[i][1])
                    if 
Values[Index] < self.SearchBoniValues2[i][1]:
                        
Boni.index('-1')

            
self.State2 'Stop'
            
chat.AppendChat(1'Efsun Sayısı: ' str(self.Count2))
            
chat.AppendChat(1'Efsunlar: ' str(Boni))
            
chat.AppendChat(1'Efsun Değerleri: ' str(Values))
        
except:
            if 
player.GetItemCountByVnum(self.SwitchValue) < 3:
                if 
shop.IsOpen():
                    for 
EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):
                        
ShopItemValue shop.GetItemID(EachShopSlot)
                        if 
ShopItemValue == int(self.SwitchValue):
                            
net.SendShopBuyPacket(EachShopSlot)

                else:
                    
chat.AppendChat(1'Efsun değiştirme nesnesi kalmadı.')
                    
self.State2 'Stop'
                    
return
            for 
Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
ItemValue player.GetItemIndex(Slot)
                if 
ItemValue == self.SwitchValue:
                    if 
self.State2 == 'Stop':
                        return
                    
self.SlotStack2 = [Slotplayer.GetItemCount(Slot)]
                    
net.SendItemUseToItemPacket(Slotself.Slot2)
                    break

    
def ControllBoni3(selfBoniValues):
        try:
            for 
i in xrange(len(self.SearchBoni3)):
                try:
                    
Index Boni.index(self.SearchBoni3[i][0])
                    if 
Values[Index] < self.SearchBoniValues3[i][0]:
                        
Boni.index('-1')
                
except:
                    
Index Boni.index(self.SearchBoni3[i][1])
                    if 
Values[Index] < self.SearchBoniValues3[i][1]:
                        
Boni.index('-1')

            
self.State3 'Stop'
            
chat.AppendChat(1'Efsun Sayısı: ' str(self.Count3))
            
chat.AppendChat(1'Efsunlar: ' str(Boni))
            
chat.AppendChat(1'Efsun Değerleri: ' str(Values))
        
except:
            if 
player.GetItemCountByVnum(self.SwitchValue) < 3:
                if 
shop.IsOpen():
                    for 
EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):
                        
ShopItemValue shop.GetItemID(EachShopSlot)
                        if 
ShopItemValue == int(self.SwitchValue):
                            
net.SendShopBuyPacket(EachShopSlot)

                else:
                    
chat.AppendChat(1'Efsun değiştirme nesnesi kalmadı.')
                    
self.State3 'Stop'
                    
return
            for 
Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
ItemValue player.GetItemIndex(Slot)
                if 
ItemValue == self.SwitchValue:
                    if 
self.State3 == 'Stop':
                        return
                    
self.SlotStack3 = [Slotplayer.GetItemCount(Slot)]
                    
net.SendItemUseToItemPacket(Slotself.Slot3)
                    break

    
def ControllBoni4(selfBoniValues):
        try:
            for 
i in xrange(len(self.SearchBoni4)):
                try:
                    
Index Boni.index(self.SearchBoni4[i][0])
                    if 
Values[Index] < self.SearchBoniValues4[i][0]:
                        
Boni.index('-1')
                
except:
                    
Index Boni.index(self.SearchBoni4[i][1])
                    if 
Values[Index] < self.SearchBoniValues4[i][1]:
                        
Boni.index('-1')

            
self.State4 'Stop'
            
chat.AppendChat(1'Efsun Sayısı: ' str(self.Count4))
            
chat.AppendChat(1'Efsunlar: ' str(Boni))
            
chat.AppendChat(1'Efsun Değerleri: ' str(Values))
        
except:
            if 
player.GetItemCountByVnum(self.SwitchValue) < 3:
                if 
shop.IsOpen():
                    for 
EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):
                        
ShopItemValue shop.GetItemID(EachShopSlot)
                        if 
ShopItemValue == int(self.SwitchValue):
                            
net.SendShopBuyPacket(EachShopSlot)

                else:
                    
chat.AppendChat(1'Efsun değiştirme nesnesi kalmadı.')
                    
self.State4 'Stop'
                    
return
            for 
Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
ItemValue player.GetItemIndex(Slot)
                if 
ItemValue == self.SwitchValue:
                    if 
self.State4 == 'Stop':
                        return
                    
self.SlotStack4 = [Slotplayer.GetItemCount(Slot)]
                    
net.SendItemUseToItemPacket(Slotself.Slot4)
                    break

    
def ControllBoni5(selfBoniValues):
        try:
            for 
i in xrange(len(self.SearchBoni5)):
                try:
                    
Index Boni.index(self.SearchBoni5[i][0])
                    if 
Values[Index] < self.SearchBoniValues5[i][0]:
                        
Boni.index('-1')
                
except:
                    
Index Boni.index(self.SearchBoni5[i][1])
                    if 
Values[Index] < self.SearchBoniValues5[i][1]:
                        
Boni.index('-1')

            
self.State5 'Stop'
            
chat.AppendChat(1'Efsun Sayısı: ' str(self.Count5))
            
chat.AppendChat(1'Efsunlar: ' str(Boni))
            
chat.AppendChat(1'Efsun Değerleri: ' str(Values))
        
except:
            if 
player.GetItemCountByVnum(self.SwitchValue) < 3:
                if 
shop.IsOpen():
                    for 
EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):
                        
ShopItemValue shop.GetItemID(EachShopSlot)
                        if 
ShopItemValue == int(self.SwitchValue):
                            
net.SendShopBuyPacket(EachShopSlot)

                else:
                    
chat.AppendChat(1'Efsun değiştirme nesnesi kalmadı.')
                    
self.State5 'Stop'
                    
return
            for 
Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
ItemValue player.GetItemIndex(Slot)
                if 
ItemValue == self.SwitchValue:
                    if 
self.State5 == 'Stop':
                        return
                    
self.SlotStack5 = [Slotplayer.GetItemCount(Slot)]
                    
net.SendItemUseToItemPacket(Slotself.Slot5)
                    break

    
def DefineBoni(self):
        
self.Values = []
        
self.Boni = []
        
self.Count 0
        
for AttributeIndex in xrange(5):
            
BonusValue player.GetItemAttribute(self.SlotAttributeIndex)
            if 
Bonus != 0:
                
self.Count += 1
                self
.Boni.append(Bonus)
                
self.Values.append(Value)

        
self.ControllBoni(self.Boniself.Values)

    
def DefineBoni2(self):
        
self.Values2 = []
        
self.Boni2 = []
        
self.Count2 0
        
for AttributeIndex in xrange(5):
            
Bonus2Value2 player.GetItemAttribute(self.Slot2AttributeIndex)
            if 
Bonus2 != 0:
                
self.Count2 += 1
                self
.Boni2.append(Bonus2)
                
self.Values2.append(Value2)

        
self.ControllBoni2(self.Boni2self.Values2)

    
def DefineBoni3(self):
        
self.Values3 = []
        
self.Boni3 = []
        
self.Count3 0
        
for AttributeIndex in xrange(5):
            
Bonus3Value3 player.GetItemAttribute(self.Slot3AttributeIndex)
            if 
Bonus3 != 0:
                
self.Count3 += 1
                self
.Boni3.append(Bonus3)
                
self.Values3.append(Value3)

        
self.ControllBoni3(self.Boni3self.Values3)

    
def DefineBoni4(self):
        
self.Values4 = []
        
self.Boni4 = []
        
self.Count4 0
        
for AttributeIndex in xrange(5):
            
Bonus4Value4 player.GetItemAttribute(self.Slot4AttributeIndex)
            if 
Bonus4 != 0:
                
self.Count4 += 1
                self
.Boni4.append(Bonus4)
                
self.Values4.append(Value4)

        
self.ControllBoni4(self.Boni4self.Values4)

    
def DefineBoni5(self):
        
self.Values5 = []
        
self.Boni5 = []
        
self.Count5 0
        
for AttributeIndex in xrange(5):
            
Bonus5Value5 player.GetItemAttribute(self.Slot5AttributeIndex)
            if 
Bonus5 != 0:
                
self.Count5 += 1
                self
.Boni5.append(Bonus5)
                
self.Values5.append(Value5)

        
self.ControllBoni5(self.Boni5self.Values5)

    
def ChangeState(selfstate):
        if 
state == 'Start':
            if 
self.SearchBoni == []:
                
chat.AppendChat(1'Lütfen bir efsun seçin.')
            
self.Slot 0
            self
.Startmode 1
            
for Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
itemVNum player.GetItemIndex(Slot)
                if 
itemVNum == self.SwitchValue:
                    
self.SlotStack = [Slotplayer.GetItemCount(Slot)]
                    break

            
self.DefineBoni()
            
self.State 'Start'
        
else:
            
self.State 'Stop'
            
chat.AppendChat(1'Bot durdu.')

    
def ChangeState2(selfstate):
        if 
state == 'Start':
            if 
self.SearchBoni2 == []:
                
chat.AppendChat(1'Lütfen bir efsun seçin.')
            
self.Slot2 1
            self
.Startmode2 1
            
for Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
itemVNum player.GetItemIndex(Slot)
                if 
itemVNum == self.SwitchValue:
                    
self.SlotStack2 = [Slotplayer.GetItemCount(Slot)]
                    break

            
self.DefineBoni2()
            
self.State2 'Start'
        
else:
            
self.State2 'Stop'
            
chat.AppendChat(1'Bot durdu.')

    
def ChangeState3(selfstate):
        if 
state == 'Start':
            if 
self.SearchBoni3 == []:
                
chat.AppendChat(1'Lütfen bir efsun seçin.')
            
self.Slot3 2
            self
.Startmode3 1
            
for Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
itemVNum player.GetItemIndex(Slot)
                if 
itemVNum == self.SwitchValue:
                    
self.SlotStack3 = [Slotplayer.GetItemCount(Slot)]
                    break

            
self.DefineBoni3()
            
self.State3 'Start'
        
else:
            
self.State3 'Stop'
            
chat.AppendChat(1'Bot durdu.')

    
def ChangeState4(selfstate):
        if 
state == 'Start':
            if 
self.SearchBoni4 == []:
                
chat.AppendChat(1'Lütfen bir efsun seçin.')
            
self.Slot4 3
            self
.Startmode1 1
            
for Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
itemVNum player.GetItemIndex(Slot)
                if 
itemVNum == self.SwitchValue:
                    
self.SlotStack4 = [Slotplayer.GetItemCount(Slot)]
                    break

            
self.DefineBoni4()
            
self.State4 'Start'
        
else:
            
self.State4 'Stop'
            
chat.AppendChat(1'Bot durdu.')

    
def ChangeState5(selfstate):
        if 
state == 'Start':
            if 
self.SearchBoni5 == []:
                
chat.AppendChat(1'Lütfen bir efsun seçin.')
            
self.Slot5 4
            self
.Startmode5 1
            
for Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
itemVNum player.GetItemIndex(Slot)
                if 
itemVNum == self.SwitchValue:
                    
self.SlotStack5 = [Slotplayer.GetItemCount(Slot)]
                    break

            
self.DefineBoni5()
            
self.State5 'Start'
        
else:
            
self.State5 'Stop'
            
chat.AppendChat(1'Bot durdu.')


def GuiParser(guiobjects, list):
    for 
object in guiobjects:
        
Object object[0][0]()
        if 
object[0][1] != '':
            
Object.SetParent(list[object[0][1]])
        if 
object[1][0] + object[1][1] != 0:
            
Object.SetSize(object[1][0], object[1][1])
        if 
object[2][0] + object[2][1] != 0:
            
Object.SetPosition(object[2][0], object[2][1])
        for 
command in object[3]:
            
cmd command[0]
            
attr getattr(Objectcmd)
            if callable(
attr):
                
argument command[1]
                
lenght len(argument)
                if 
lenght == 1:
                    if 
argument[0] == '':
                        
attr()
                    else:
                        
attr(argument[0])
                
elif lenght == 2:
                    
attr(argument[0], argument[1])
                
elif lenght == 3:
                    
attr(argument[0], argument[1], argument[2])
                
elif lenght == 4:
                    
attr(argument[0], argument[1], argument[2], argument[3])

        for 
flag in object[4]:
            
Object.AddFlag(str(flag))

        
Object.Show()
        list.
append(Object)


class 
Item(ui.ListBoxEx.Item):

    
def __init__(selffileName):
        
ui.ListBoxEx.Item.__init__(self)
        
self.canLoad 0
        self
.text fileName
        self
.textLine self.__CreateTextLine(fileName)

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

    
def GetText(self):
        return 
self.text

    def SetSize
(selfwidthheight):
        
ui.ListBoxEx.Item.SetSize(selflen(self.textLine.GetText()) + 4height)

    
def __CreateTextLine(selffileName):
        
textLine ui.TextLine()
        
textLine.SetParent(self)
        
textLine.SetPosition(00)
        
textLine.SetText(fileName)
        
textLine.Show()
        return 
textLine


efsunbot
().Show() 
kaynanas is offline  
Old 05/28/2019, 02:27   #2
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,902
Received Thanks: 3,342
Quote:
Originally Posted by kaynanas View Post
0526 03:19:15675 :: Traceback (most recent call last):

0526 03:19:15676 :: File "<string>", line 1824, in <module>

0526 03:19:15676 :: File "<string>", line 147, in __init__

0526 03:19:15676 :: File "<string>", line 211, in AddGui

0526 03:19:15676 :: IndexError
0526 03:19:15676 :: :
0526 03:19:15676 :: list index out of range
0526 03:19:15676 ::

Edit: I need 7 slots switchbot,

Example:

PHP Code:
import ui
import player
import item
import chat
import net
import shop
import uiRefine
import dbg
import net
import app
import serverInfo
import interfaceModule
import constInfo
TabNumber 
0

class efsunbot(ui.ScriptWindow):
    
Gui = []
    
BoniGui = []
    
BoniGui2 = []
    
BoniGui3 = []
    
BoniGui4 = []
    
BoniGui5 = []
    
Delay 1.0
    BonusIDListe 
= [['Seçilmedi'0],
     [
'Max HP.'1],
     [
'Max SP.'2],
     [
'Güç'5],
     [
'Zeka'4],
     [
'Çeviklik'6],
     [
'Canlılık'3],
     [
'Saldırı Hızı'7],
     [
'Hareket Hızı'8],
     [
'Büyü Hızı'9],
     [
'Hp Üretimi'10],
     [
'SP Üretimi'11],
     [
'Zehirleme Değişimi'12],
     [
'Sersemletme Şansı'13],
     [
'Yavaşlatma Şansı'14],
     [
'Kritik Vuruş'15],
     [
'Delici Vuruş'16],
     [
'Yarı İnsanlara Karşı Güçlü'17],
     [
'Ölümsüzlere Karşı Güçlü'21],
     [
'Şeytanlara Karşı Güçlü'22],
     [
'Mistiklere Karşı Güçlü'20],
     [
'Hayvanlara Karşı Güçlü'18],
     [
'Orklara Karşı Güçlü'19],
     [
'HP Absorbe'23],
     [
'SP Absorbe'24],
     [
'SP Çalma Şansı'25],
     [
'Beden K. Atakların Blok.'27],
     [
'Vücut D. Yansıtması'39],
     [
'Kılıç Savunması'29],
     [
'Bıçak Savunması'31],
     [
'Çift El Savunması'30],
     [
'Çan Savunması'32],
     [
'Yelpaze Savunması'33],
     [
'Ok K. Dayanıklılık'34],
     [
'Oklardan Korunma Şansı'28],
     [
'Büyüye K. Dayanıklılık'37],
     [
'Ateşe Karşı Dayanıklılık'35],
     [
'Şimşeğe Karşı Dayanıklılık'36],
     [
'Rüzgara K. Dayanıklılık'38],
     [
'Sersemlik K. Bağışıklılık'48],
     [
'Yavaşlama K. Bağışıklılık'49],
     [
'Zehre Karşı Koyma'41],
     [
'Exp-Bonus'43],
     [
'İki Kat Yang'44],
     [
'İki Kat İtem'45],
     [
'Saldırı Değeri'53],
     [
'Beceri Hasarı'71],
     [
'Ortalama Hasar'72]]
    
State 'Stop'
    
State2 'Stop'
    
State3 'Stop'
    
State4 'Stop'
    
State5 'Stop'
    
SearchBoni = []
    
SearchBoniValues = [[00],
     [
00],
     [
00],
     [
00],
     [
00]]
    
SearchBoni2 = []
    
SearchBoniValues2 = [[00],
     [
00],
     [
00],
     [
00],
     [
00]]
    
SearchBoni3 = []
    
SearchBoniValues3 = [[00],
     [
00],
     [
00],
     [
00],
     [
00]]
    
SearchBoni4 = []
    
SearchBoniValues4 = [[00],
     [
00],
     [
00],
     [
00],
     [
00]]
    
SearchBoni5 = []
    
SearchBoniValues5 = [[00],
     [
00],
     [
00],
     [
00],
     [
00]]
    
Values = []
    
Boni = []
    
Count 0
    Slot 
0
    Startmode 
0
    Values2 
= []
    
Boni2 = []
    
Count2 0
    Slot2 
0
    Startmode2 
0
    Values3 
= []
    
Boni3 = []
    
Count3 0
    Slot3 
0
    Startmode3 
0
    Values4 
= []
    
Boni4 = []
    
Count4 0
    Slot4 
0
    Startmode4 
0
    Values5 
= []
    
Boni5 = []
    
Count5 0
    Slot5 
0
    Startmode5 
0
    LastProcessTimeStamp 
0
    SlotStack 
= [00]
    
SwitchValue 71084
    LastProcessTimeStamp2 
0
    SlotStack2 
= [00]
    
LastProcessTimeStamp3 0
    SlotStack3 
= [00]
    
LastProcessTimeStamp4 0
    SlotStack4 
= [00]
    
LastProcessTimeStamp5 0
    SlotStack5 
= [00]

    
def __init__(self):
        
self.Gui = []
        
ui.ScriptWindow.__init__(self)
        
self.AddGui()
        
chat.AppendChat(1'Efsun Botu Açıldı!')

    
def __del__(self):
        
self.Gui[0].Hide()
        
ui.ScriptWindow.__del__(self)
        
chat.AppendChat(1'Efsun Botu Kapatıldı!')
        if 
== interfaceModule.efsunbotacik:
            
interfaceModule.efsunbotacik 0

    def AddGui
(self):
        
Gui = [[[ui.ThinBoard''],
          [
500330],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
47515],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.__del__()]]],
          []],
         [[
ui.SlotBar0],
          [
465230],
          [
1580],
          [],
          []],
         [[
ui.Line0],
          [
4350],
          [
30260],
          [[
'SetColor', [4286019447L]]],
          []],
         [[
ui.Button0],
          [
00],
          [
240160],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
           [
'SetText', ['Sıfırla']],
           [
'SetEvent', [lambda self.DeleteAll(TabNumber)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
159280],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Başlat']],
           [
'SetEvent', [lambda self.ChangeState('Start')]]],
          []],
         [[
ui.Button0],
          [
00],
          [
252280],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Durdur']],
           [
'SetEvent', [lambda self.ChangeState('Stop')]]],
          []]]
        
GuiParser(Guiself.Gui)
        
self.Gui[6].Hide()
        
self.Gui[7].Hide()
        
self.Gui[5].Hide()
        
tmp = []
        
20
        
for i in xrange(5):
            
button = [[ui.Button0],
             [
00],
             [
x50],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Middle_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Middle_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Middle_button_03.sub']],
              [
'SetText', ['Sekme ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectTab(Index)]]],
             []]
            
tmp.append(button)
            
+= 65

        y 
100
        texty 
200
        
for i in xrange(3):
            
button = [[ui.Button0],
             [
00],
             [
40y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
140y],
             [],
             []]
            
editline = [[ui.EditLine14 4],
             [
3517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
45texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(35):
            
button = [[ui.Button0],
             [
00],
             [
240y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
340y],
             [],
             []]
            
editline = [[ui.EditLine26 + (3) * 4],
             [
23517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
245texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(3):
            
button = [[ui.Button0],
             [
00],
             [
40y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus2(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
140y],
             [],
             []]
            
editline = [[ui.EditLine34 4],
             [
3517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
45texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(35):
            
button = [[ui.Button0],
             [
00],
             [
240y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus2(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
340y],
             [],
             []]
            
editline = [[ui.EditLine46 + (3) * 4],
             [
23517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
245texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(3):
            
button = [[ui.Button0],
             [
00],
             [
40y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus3(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
140y],
             [],
             []]
            
editline = [[ui.EditLine54 4],
             [
3517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
45texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(35):
            
button = [[ui.Button0],
             [
00],
             [
240y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus3(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
340y],
             [],
             []]
            
editline = [[ui.EditLine66 + (3) * 4],
             [
23517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
245texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(3):
            
button = [[ui.Button0],
             [
00],
             [
40y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus4(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
140y],
             [],
             []]
            
editline = [[ui.EditLine74 4],
             [
3517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
45texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(35):
            
button = [[ui.Button0],
             [
00],
             [
240y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus4(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
340y],
             [],
             []]
            
editline = [[ui.EditLine86 + (3) * 4],
             [
23517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
245texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(3):
            
button = [[ui.Button0],
             [
00],
             [
40y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus5(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
140y],
             [],
             []]
            
editline = [[ui.EditLine94 4],
             [
3517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
45texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        y 
100
        texty 
200
        
for i in xrange(35):
            
button = [[ui.Button0],
             [
00],
             [
240y],
             [[
'SetUpVisual', ['d:/ymir work/ui/public/Large_button_01.sub']],
              [
'SetOverVisual', ['d:/ymir work/ui/public/Large_button_02.sub']],
              [
'SetDownVisual', ['d:/ymir work/ui/public/Large_button_03.sub']],
              [
'SetText', ['Efsun ' str(1)]],
              [
'SetEvent', [lambda Index iself.SelectBonus5(Index)]]],
             []]
            
slotbar = [[ui.SlotBar0],
             [
3518],
             [
340y],
             [],
             []]
            
editline = [[ui.EditLine106 + (3) * 4],
             [
23517],
             [
62],
             [[
'SetMax', [4]], ['SetNumberMode', ['']], ['SetText', ['0']]],
             []]
            
textline = [[ui.TextLine0],
             [
00],
             [
245texty],
             [[
'SetText', ['Seçilmedi']]],
             []]
            
tmp.append(button)
            
tmp.append(slotbar)
            
tmp.append(textline)
            
tmp.append(editline)
            
+= 30
            texty 
+= 20

        GuiParser
(tmpself.Gui)
        for 
i in xrange(33113):
            
self.Gui[int(i)].Hide()

        
self.StartOrStop(0)

    
def StartOrStop(selfIndex):
        
tmpstarter = [[[ui.Button0],
          [
00],
          [
159280],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/Middle_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/Middle_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/Middle_button_03.sub']],
           [
'SetText', ['Başlat']],
           [
'SetEvent', [lambda self.WhichOneWillStart(Index)]]],
          []], [[
ui.Button0],
          [
00],
          [
252280],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/Middle_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/Middle_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/Middle_button_03.sub']],
           [
'SetText', ['Durdur']],
           [
'SetEvent', [lambda self.WhichOneWillStop(Index)]]],
          []]]
        
GuiParser(tmpstarterself.Gui)

    
def SelectTab(selfIndex):
        global 
TabNumber
        TabNumber 
Index
        self
.StartOrStop(Index)
        if 
Index == 0:
            for 
iy in xrange(33113):
                
self.Gui[int(iy)].Hide()

            for 
iy in xrange(1233):
                
self.Gui[int(iy)].Show()

        
elif Index == 1:
            for 
iy in xrange(13113):
                
self.Gui[int(iy)].Hide()

            for 
iy in xrange(3353):
                
self.Gui[int(iy)].Show()

        
elif Index == 2:
            for 
iy in xrange(13113):
                
self.Gui[int(iy)].Hide()

            for 
iy in xrange(5373):
                
self.Gui[int(iy)].Show()

        
elif Index == 3:
            for 
iy in xrange(13113):
                
self.Gui[int(iy)].Hide()

            for 
iy in xrange(7393):
                
self.Gui[int(iy)].Show()

        
elif Index == 4:
            for 
iy in xrange(13113):
                
self.Gui[int(iy)].Hide()

            for 
iy in xrange(93113):
                
self.Gui[int(iy)].Show()

    
def WhichOneWillStart(selfIndex):
        if 
Index == 0:
            
self.ChangeState('Start')
            
chat.AppendChat(1str(int(Index 1)) + '. bot başlayacak.')
        
elif Index == 1:
            
self.ChangeState2('Start')
            
chat.AppendChat(1str(int(Index 1)) + '. bot başlayacak.')
        
elif Index == 2:
            
self.ChangeState3('Start')
            
chat.AppendChat(1str(int(Index 1)) + '. bot başlayacak.')
        
elif Index == 3:
            
self.ChangeState4('Start')
            
chat.AppendChat(1str(int(Index 1)) + '. bot başlayacak.')
        
elif Index == 4:
            
self.ChangeState5('Start')
            
chat.AppendChat(1str(int(Index 1)) + '. bot başlayacak.')

    
def WhichOneWillStop(selfIndex):
        if 
Index == 0:
            
self.ChangeState('Stop')
        
elif Index == 1:
            
self.ChangeState2('Stop')
        
elif Index == 2:
            
self.ChangeState3('Stop')
        
elif Index == 3:
            
self.ChangeState4('Stop')
        
elif Index == 4:
            
self.ChangeState5('Stop')

    
def DeleteAll(selftabnumber):
        if 
tabnumber == 0:
            
del self.SearchBoni[0]

    
def SelectBonus(selfIndex):
        
self.BoniGui = []
        
Gui = [[[ui.ThinBoard''],
          [
223323],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
18318],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.HideBonusList()]]],
          []],
         [[
ui.SlotBar0],
          [
190227],
          [
1535],
          [],
          []],
         [[
ui.ListBoxEx0],
          [
00],
          [
2060],
          [],
          []],
         [[
ui.ScrollBar0],
          [
00],
          [
18550],
          [[
'SetScrollBarSize', [200]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2039],
          [[
'SetDefaultFontName', ['']], ['SetText', ['ID:\t\t\tBonus:']], ['SetFontColor', [0.20.61.0]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2015],
          [[
'SetText', ['Efsun ' str(Index 1)]], ['SetFontColor', [0.40.60.8]]],
          []],
         [[
ui.Button0],
          [
00],
          [
20275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Seç']],
           [
'SetEvent', [lambda index Indexself.AddBonus(Index)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
113275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Kapat']],
           [
'SetEvent', [lambda self.HideBonusList()]]],
          []]]
        
GuiParser(Guiself.BoniGui)
        
self.BoniGui[3].SetScrollBar(self.BoniGui[4])
        
self.SetBonusList()

    
def SelectBonus2(selfIndex):
        
self.BoniGui2 = []
        
Gui = [[[ui.ThinBoard''],
          [
223323],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
18318],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.HideBonusList2()]]],
          []],
         [[
ui.SlotBar0],
          [
190227],
          [
1535],
          [],
          []],
         [[
ui.ListBoxEx0],
          [
00],
          [
2060],
          [],
          []],
         [[
ui.ScrollBar0],
          [
00],
          [
18550],
          [[
'SetScrollBarSize', [200]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2039],
          [[
'SetDefaultFontName', ['']], ['SetText', ['ID:\t\t\tBonus:']], ['SetFontColor', [0.20.61.0]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2015],
          [[
'SetText', ['Efsun ' str(Index 1)]], ['SetFontColor', [0.40.60.8]]],
          []],
         [[
ui.Button0],
          [
00],
          [
20275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Seç']],
           [
'SetEvent', [lambda index Indexself.AddBonus2(Index)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
113275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Kapat']],
           [
'SetEvent', [lambda self.HideBonusList2()]]],
          []]]
        
GuiParser(Guiself.BoniGui2)
        
self.BoniGui2[3].SetScrollBar(self.BoniGui2[4])
        
self.SetBonusList2()

    
def SelectBonus3(selfIndex):
        
self.BoniGui3 = []
        
Gui = [[[ui.ThinBoard''],
          [
223323],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
18318],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.HideBonusList3()]]],
          []],
         [[
ui.SlotBar0],
          [
190227],
          [
1535],
          [],
          []],
         [[
ui.ListBoxEx0],
          [
00],
          [
2060],
          [],
          []],
         [[
ui.ScrollBar0],
          [
00],
          [
18550],
          [[
'SetScrollBarSize', [200]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2039],
          [[
'SetDefaultFontName', ['']], ['SetText', ['ID:\t\t\tBonus:']], ['SetFontColor', [0.20.61.0]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2015],
          [[
'SetText', ['Efsun ' str(Index 1)]], ['SetFontColor', [0.40.60.8]]],
          []],
         [[
ui.Button0],
          [
00],
          [
20275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Seç']],
           [
'SetEvent', [lambda index Indexself.AddBonus3(Index)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
113275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Kapat']],
           [
'SetEvent', [lambda self.HideBonusList3()]]],
          []]]
        
GuiParser(Guiself.BoniGui3)
        
self.BoniGui3[3].SetScrollBar(self.BoniGui3[4])
        
self.SetBonusList3()

    
def SelectBonus4(selfIndex):
        
self.BoniGui4 = []
        
Gui = [[[ui.ThinBoard''],
          [
223323],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
18318],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.HideBonusList4()]]],
          []],
         [[
ui.SlotBar0],
          [
190227],
          [
1535],
          [],
          []],
         [[
ui.ListBoxEx0],
          [
00],
          [
2060],
          [],
          []],
         [[
ui.ScrollBar0],
          [
00],
          [
18550],
          [[
'SetScrollBarSize', [200]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2039],
          [[
'SetDefaultFontName', ['']], ['SetText', ['ID:\t\t\tBonus:']], ['SetFontColor', [0.20.61.0]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2015],
          [[
'SetText', ['Efsun ' str(Index 1)]], ['SetFontColor', [0.40.60.8]]],
          []],
         [[
ui.Button0],
          [
00],
          [
20275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Seç']],
           [
'SetEvent', [lambda index Indexself.AddBonus4(Index)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
113275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Kapat']],
           [
'SetEvent', [lambda self.HideBonusList4()]]],
          []]]
        
GuiParser(Guiself.BoniGui4)
        
self.BoniGui4[3].SetScrollBar(self.BoniGui4[4])
        
self.SetBonusList4()

    
def SelectBonus5(selfIndex):
        
self.BoniGui5 = []
        
Gui = [[[ui.ThinBoard''],
          [
223323],
          [
00],
          [[
'SetCenterPosition', ['']]],
          [
'movable''float']],
         [[
ui.Button0],
          [
00],
          [
18318],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/close_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/close_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/close_button_03.sub']],
           [
'SetToolTipText', ['Kapat'0, -23]],
           [
'SetEvent', [lambda self.HideBonusList5()]]],
          []],
         [[
ui.SlotBar0],
          [
190227],
          [
1535],
          [],
          []],
         [[
ui.ListBoxEx0],
          [
00],
          [
2060],
          [],
          []],
         [[
ui.ScrollBar0],
          [
00],
          [
18550],
          [[
'SetScrollBarSize', [200]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2039],
          [[
'SetDefaultFontName', ['']], ['SetText', ['ID:\t\t\tBonus:']], ['SetFontColor', [0.20.61.0]]],
          []],
         [[
ui.TextLine0],
          [
00],
          [
2015],
          [[
'SetText', ['Efsun ' str(Index 1)]], ['SetFontColor', [0.40.60.8]]],
          []],
         [[
ui.Button0],
          [
00],
          [
20275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Seç']],
           [
'SetEvent', [lambda index Indexself.AddBonus5(Index)]]],
          []],
         [[
ui.Button0],
          [
00],
          [
113275],
          [[
'SetUpVisual', ['d:/ymir work/ui/public/large_button_01.sub']],
           [
'SetOverVisual', ['d:/ymir work/ui/public/large_button_02.sub']],
           [
'SetDownVisual', ['d:/ymir work/ui/public/large_button_03.sub']],
           [
'SetText', ['Kapat']],
           [
'SetEvent', [lambda self.HideBonusList5()]]],
          []]]
        
GuiParser(Guiself.BoniGui5)
        
self.BoniGui5[3].SetScrollBar(self.BoniGui5[4])
        
self.SetBonusList5()

    
def SetBonusList(self):
        
self.BoniGui[3].RemoveAllItems()
        for 
Bonus in self.BonusIDListe:
            
self.BoniGui[3].AppendItem(Item(str(Bonus[1]) + '\t\t\t' Bonus[0]))

    
def SetBonusList2(self):
        
self.BoniGui2[3].RemoveAllItems()
        for 
Bonus in self.BonusIDListe:
            
self.BoniGui2[3].AppendItem(Item(str(Bonus[1]) + '\t\t\t' Bonus[0]))

    
def SetBonusList3(self):
        
self.BoniGui3[3].RemoveAllItems()
        for 
Bonus in self.BonusIDListe:
            
self.BoniGui3[3].AppendItem(Item(str(Bonus[1]) + '\t\t\t' Bonus[0]))

    
def SetBonusList4(self):
        
self.BoniGui4[3].RemoveAllItems()
        for 
Bonus in self.BonusIDListe:
            
self.BoniGui4[3].AppendItem(Item(str(Bonus[1]) + '\t\t\t' Bonus[0]))

    
def SetBonusList5(self):
        
self.BoniGui5[3].RemoveAllItems()
        for 
Bonus in self.BonusIDListe:
            
self.BoniGui5[3].AppendItem(Item(str(Bonus[1]) + '\t\t\t' Bonus[0]))

    
def HideBonusList(self):
        
self.BoniGui[0].Hide()

    
def HideBonusList2(self):
        
self.BoniGui2[0].Hide()

    
def HideBonusList3(self):
        
self.BoniGui3[0].Hide()

    
def HideBonusList4(self):
        
self.BoniGui4[0].Hide()

    
def HideBonusList5(self):
        
self.BoniGui5[0].Hide()

    
def AddBonus(selfIndex):
        
ItemIndex self.BoniGui[3].GetSelectedItem()
        if 
ItemIndex:
            
pass
        
else:
            
chat.AppendChat(chat.CHAT_TYPE_INFO'Hiçbir şey seçilmemiş!')
            return
        
BonusValue ItemIndex.GetText().split('\t\t\t')
        if 
int(BonusValue[0]) == 0:
            try:
                
BackUp self.SearchBoni[Index]
                if 
BackUp[1] == 0:
                    
self.SearchBoni.remove(self.SearchBoni[Index])
                else:
                    
self.SearchBoni[Index] = [0BackUp[1]]
            
except:
                
pass

        
else:
            try:
                try:
                    
BackUp self.SearchBoni[Index]
                    
self.SearchBoni.remove(self.SearchBoni[Index])
                
except:
                    
Backup = [00]

                
self.SearchBoni.insert(Index, [int(BonusValue[0]), BackUp[1]])
            
except:
                
self.SearchBoni.append([int(BonusValue[0]), 0])

        
self.UpdateBonusList()
        
self.HideBonusList()

    
def AddBonus2(selfIndex):
        
ItemIndex self.BoniGui2[3].GetSelectedItem()
        if 
ItemIndex:
            
pass
        
else:
            
chat.AppendChat(chat.CHAT_TYPE_INFO'Hiçbir şey seçilmemiş!')
            return
        
BonusValue ItemIndex.GetText().split('\t\t\t')
        if 
int(BonusValue[0]) == 0:
            try:
                
BackUp2 self.SearchBoni2[Index]
                if 
BackUp2[1] == 0:
                    
self.SearchBoni2.remove(self.SearchBoni2[Index])
                else:
                    
self.SearchBoni2[Index] = [0BackUp2[1]]
            
except:
                
pass

        
else:
            try:
                try:
                    
BackUp2 self.SearchBoni2[Index]
                    
self.SearchBoni2.remove(self.SearchBoni2[Index])
                
except:
                    
Backup2 = [00]

                
self.SearchBoni2.insert(Index, [int(BonusValue[0]), BackUp2[1]])
            
except:
                
self.SearchBoni2.append([int(BonusValue[0]), 0])

        
self.UpdateBonusList2()
        
self.HideBonusList2()

    
def AddBonus3(selfIndex):
        
ItemIndex self.BoniGui3[3].GetSelectedItem()
        if 
ItemIndex:
            
pass
        
else:
            
chat.AppendChat(chat.CHAT_TYPE_INFO'Hiçbir şey seçilmemiş!')
            return
        
BonusValue ItemIndex.GetText().split('\t\t\t')
        if 
int(BonusValue[0]) == 0:
            try:
                
BackUp3 self.SearchBoni3[Index]
                if 
BackUp3[1] == 0:
                    
self.SearchBoni3.remove(self.SearchBoni3[Index])
                else:
                    
self.SearchBoni3[Index] = [0BackUp3[1]]
            
except:
                
pass

        
else:
            try:
                try:
                    
BackUp3 self.SearchBoni3[Index]
                    
self.SearchBoni3.remove(self.SearchBoni3[Index])
                
except:
                    
Backup3 = [00]

                
self.SearchBoni3.insert(Index, [int(BonusValue[0]), BackUp3[1]])
            
except:
                
self.SearchBoni3.append([int(BonusValue[0]), 0])

        
self.UpdateBonusList3()
        
self.HideBonusList3()

    
def AddBonus4(selfIndex):
        
ItemIndex self.BoniGui4[3].GetSelectedItem()
        if 
ItemIndex:
            
pass
        
else:
            
chat.AppendChat(chat.CHAT_TYPE_INFO'Hiçbir şey seçilmemiş!')
            return
        
BonusValue ItemIndex.GetText().split('\t\t\t')
        if 
int(BonusValue[0]) == 0:
            try:
                
BackUp4 self.SearchBoni4[Index]
                if 
BackUp4[1] == 0:
                    
self.SearchBoni4.remove(self.SearchBoni4[Index])
                else:
                    
self.SearchBoni4[Index] = [0BackUp4[1]]
            
except:
                
pass

        
else:
            try:
                try:
                    
BackUp4 self.SearchBoni4[Index]
                    
self.SearchBoni4.remove(self.SearchBoni4[Index])
                
except:
                    
Backup4 = [00]

                
self.SearchBoni4.insert(Index, [int(BonusValue[0]), BackUp4[1]])
            
except:
                
self.SearchBoni4.append([int(BonusValue[0]), 0])

        
self.UpdateBonusList4()
        
self.HideBonusList4()

    
def AddBonus5(selfIndex):
        
ItemIndex self.BoniGui5[3].GetSelectedItem()
        if 
ItemIndex:
            
pass
        
else:
            
chat.AppendChat(chat.CHAT_TYPE_INFO'Hiçbir şey seçilmemiş!')
            return
        
BonusValue ItemIndex.GetText().split('\t\t\t')
        if 
int(BonusValue[0]) == 0:
            try:
                
BackUp5 self.SearchBoni5[Index]
                if 
BackUp5[1] == 0:
                    
self.SearchBoni5.remove(self.SearchBoni5[Index])
                else:
                    
self.SearchBoni5[Index] = [0BackUp5[1]]
            
except:
                
pass

        
else:
            try:
                try:
                    
BackUp5 self.SearchBoni5[Index]
                    
self.SearchBoni5.remove(self.SearchBoni5[Index])
                
except:
                    
Backup5 = [00]

                
self.SearchBoni5.insert(Index, [int(BonusValue[0]), BackUp5[1]])
            
except:
                
self.SearchBoni5.append([int(BonusValue[0]), 0])

        
self.UpdateBonusList5()
        
self.HideBonusList5()

    
def UpdateBonusList(self):
        
tmp = {}
        for 
Bonus in self.BonusIDListe:
            
tmp[Bonus[1]] = Bonus[0]

        for 
Index in xrange(5):
            
self.Gui[15 Index 4].SetText('Seçilmedi')

        for 
Bonus in self.SearchBoni:
            
Index self.SearchBoni.index(Bonus)
            
self.Gui[15 Index 4].SetText(tmp[Bonus[0]])

    
def UpdateBonusList2(self):
        
tmp = {}
        for 
Bonus in self.BonusIDListe:
            
tmp[Bonus[1]] = Bonus[0]

        for 
Index in xrange(5):
            
self.Gui[35 Index 4].SetText('Seçilmedi')

        for 
Bonus in self.SearchBoni2:
            
Index self.SearchBoni2.index(Bonus)
            
self.Gui[35 Index 4].SetText(tmp[Bonus[0]])

    
def UpdateBonusList3(self):
        
tmp = {}
        for 
Bonus in self.BonusIDListe:
            
tmp[Bonus[1]] = Bonus[0]

        for 
Index in xrange(5):
            
self.Gui[55 Index 4].SetText('Seçilmedi')

        for 
Bonus in self.SearchBoni3:
            
Index self.SearchBoni3.index(Bonus)
            
self.Gui[55 Index 4].SetText(tmp[Bonus[0]])

    
def UpdateBonusList4(self):
        
tmp = {}
        for 
Bonus in self.BonusIDListe:
            
tmp[Bonus[1]] = Bonus[0]

        for 
Index in xrange(5):
            
self.Gui[75 Index 4].SetText('Seçilmedi')

        for 
Bonus in self.SearchBoni4:
            
Index self.SearchBoni4.index(Bonus)
            
self.Gui[75 Index 4].SetText(tmp[Bonus[0]])

    
def UpdateBonusList5(self):
        
tmp = {}
        for 
Bonus in self.BonusIDListe:
            
tmp[Bonus[1]] = Bonus[0]

        for 
Index in xrange(5):
            
self.Gui[95 Index 4].SetText('Seçilmedi')

        for 
Bonus in self.SearchBoni5:
            
Index self.SearchBoni5.index(Bonus)
            
self.Gui[95 Index 4].SetText(tmp[Bonus[0]])

    
def OnUpdate(self):
        
self.UpdateBonusValues()
        
self.UpdateBoni()
        
self.UpdateBonusValues2()
        
self.UpdateBoni2()
        
self.UpdateBonusValues3()
        
self.UpdateBoni3()
        
self.UpdateBonusValues4()
        
self.UpdateBoni4()
        
self.UpdateBonusValues5()
        
self.UpdateBoni5()

    
def UpdateBonusValues(self):
        
TmpValues = []
        for 
Index in xrange(5):
            try:
                
SearchValue int(self.Gui[16 Index 4].GetText())
            
except:
                
SearchValue 0

            TmpValues
.append([SearchValue0])

        if 
TmpValues != self.SearchBoniValues:
            
self.SearchBoniValues TmpValues

    def UpdateBonusValues2
(self):
        
TmpValues2 = []
        for 
Index in xrange(5):
            try:
                
SearchValue int(self.Gui[36 Index 4].GetText())
            
except:
                
SearchValue 0

            TmpValues2
.append([SearchValue0])

        if 
TmpValues2 != self.SearchBoniValues2:
            
self.SearchBoniValues2 TmpValues2

    def UpdateBonusValues3
(self):
        
TmpValues3 = []
        for 
Index in xrange(5):
            try:
                
SearchValue int(self.Gui[56 Index 4].GetText())
            
except:
                
SearchValue 0

            TmpValues3
.append([SearchValue0])

        if 
TmpValues3 != self.SearchBoniValues3:
            
self.SearchBoniValues3 TmpValues3

    def UpdateBonusValues4
(self):
        
TmpValues4 = []
        for 
Index in xrange(5):
            try:
                
SearchValue int(self.Gui[76 Index 4].GetText())
            
except:
                
SearchValue 0

            TmpValues4
.append([SearchValue0])

        if 
TmpValues4 != self.SearchBoniValues4:
            
self.SearchBoniValues4 TmpValues4

    def UpdateBonusValues5
(self):
        
TmpValues5 = []
        for 
Index in xrange(5):
            try:
                
SearchValue int(self.Gui[96 Index 4].GetText())
            
except:
                
SearchValue 0

            TmpValues5
.append([SearchValue0])

        if 
TmpValues5 != self.SearchBoniValues5:
            
self.SearchBoniValues5 TmpValues5

    def UpdateBoni
(self):
        if 
self.State == 'Stop':
            return
        
Values = []
        
Boni = []
        
Count 0
        
for AttributeIndex in xrange(self.Count):
            
BonusValue player.GetItemAttribute(self.SlotAttributeIndex)
            if 
Bonus == 0:
                return
            
Count += 1
            Values
.append(Value)
            
Boni.append(Bonus)

        if 
player.GetItemCount(self.SlotStack[0]) <= and (self.Boni != Boni or self.Values != Values) or self.Boni != Boni or self.Values != Values or app.GetTime() >= self.LastProcessTimeStamp 0.8:
            
self.LastProcessTimeStamp app.GetTime()
            
self.Boni Boni
            self
.Values Values
            self
.ControllBoni(BoniValues)

    
def UpdateBoni2(self):
        if 
self.State2 == 'Stop':
            return
        
Values2 = []
        
Boni2 = []
        
Count2 0
        
for AttributeIndex in xrange(self.Count2):
            
Bonus2Value2 player.GetItemAttribute(self.Slot2AttributeIndex)
            if 
Bonus2 == 0:
                return
            
Count2 += 1
            Values2
.append(Value2)
            
Boni2.append(Bonus2)

        if 
player.GetItemCount(self.SlotStack2[0]) <= and (self.Boni2 != Boni2 or self.Values2 != Values2) or self.Boni2 != Boni2 or self.Values2 != Values2 or app.GetTime() >= self.LastProcessTimeStamp2 0.8:
            
self.LastProcessTimeStamp2 app.GetTime()
            
self.Boni2 Boni2
            self
.Values2 Values2
            self
.ControllBoni2(Boni2Values2)

    
def UpdateBoni3(self):
        if 
self.State3 == 'Stop':
            return
        
Values3 = []
        
Boni3 = []
        
Count3 0
        
for AttributeIndex in xrange(self.Count3):
            
Bonus3Value3 player.GetItemAttribute(self.Slot3AttributeIndex)
            if 
Bonus3 == 0:
                return
            
Count3 += 1
            Values3
.append(Value3)
            
Boni3.append(Bonus3)

        if 
player.GetItemCount(self.SlotStack3[0]) <= and (self.Boni3 != Boni3 or self.Values3 != Values3) or self.Boni3 != Boni3 or self.Values3 != Values3 or app.GetTime() >= self.LastProcessTimeStamp3 0.8:
            
self.LastProcessTimeStamp3 app.GetTime()
            
self.Boni3 Boni3
            self
.Values3 Values3
            self
.ControllBoni3(Boni3Values3)

    
def UpdateBoni4(self):
        if 
self.State4 == 'Stop':
            return
        
Values4 = []
        
Boni4 = []
        
Count4 0
        
for AttributeIndex in xrange(self.Count4):
            
Bonus4Value4 player.GetItemAttribute(self.Slot4AttributeIndex)
            if 
Bonus4 == 0:
                return
            
Count4 += 1
            Values4
.append(Value4)
            
Boni4.append(Bonus4)

        if 
player.GetItemCount(self.SlotStack4[0]) <= and (self.Boni4 != Boni4 or self.Values4 != Values4) or self.Boni4 != Boni4 or self.Values4 != Values4 or app.GetTime() >= self.LastProcessTimeStamp4 0.8:
            
self.LastProcessTimeStamp4 app.GetTime()
            
self.Boni4 Boni4
            self
.Values4 Values4
            self
.ControllBoni4(Boni4Values4)

    
def UpdateBoni5(self):
        if 
self.State5 == 'Stop':
            return
        
Values5 = []
        
Boni5 = []
        
Count5 0
        
for AttributeIndex in xrange(self.Count5):
            
Bonus5Value5 player.GetItemAttribute(self.Slot5AttributeIndex)
            if 
Bonus5 == 0:
                return
            
Count5 += 1
            Values5
.append(Value5)
            
Boni5.append(Bonus5)

        if 
player.GetItemCount(self.SlotStack5[0]) <= and (self.Boni5 != Boni5 or self.Values5 != Values5) or self.Boni5 != Boni5 or self.Values5 != Values5 or app.GetTime() >= self.LastProcessTimeStamp5 0.8:
            
self.LastProcessTimeStamp5 app.GetTime()
            
self.Boni5 Boni5
            self
.Values5 Values5
            self
.ControllBoni5(Boni5Values5)

    
def ControllBoni(selfBoniValues):
        try:
            for 
i in xrange(len(self.SearchBoni)):
                try:
                    
Index Boni.index(self.SearchBoni[i][0])
                    if 
Values[Index] < self.SearchBoniValues[i][0]:
                        
Boni.index('-1')
                
except:
                    
Index Boni.index(self.SearchBoni[i][1])
                    if 
Values[Index] < self.SearchBoniValues[i][1]:
                        
Boni.index('-1')

            
self.State 'Stop'
            
chat.AppendChat(1'Efsun Sayısı: ' str(self.Count))
            
chat.AppendChat(1'Efsunlar: ' str(Boni))
            
chat.AppendChat(1'Efsun Değerleri: ' str(Values))
        
except:
            if 
player.GetItemCountByVnum(self.SwitchValue) < 3:
                if 
shop.IsOpen():
                    for 
EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):
                        
ShopItemValue shop.GetItemID(EachShopSlot)
                        if 
ShopItemValue == int(self.SwitchValue):
                            
net.SendShopBuyPacket(EachShopSlot)

                else:
                    
chat.AppendChat(1'Efsun değiştirme nesnesi kalmadı.')
                    
self.State 'Stop'
                    
return
            for 
Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
ItemValue player.GetItemIndex(Slot)
                if 
ItemValue == self.SwitchValue:
                    if 
self.State == 'Stop':
                        return
                    
self.SlotStack = [Slotplayer.GetItemCount(Slot)]
                    
net.SendItemUseToItemPacket(Slotself.Slot)
                    break

    
def ControllBoni2(selfBoniValues):
        try:
            for 
i in xrange(len(self.SearchBoni2)):
                try:
                    
Index Boni.index(self.SearchBoni2[i][0])
                    if 
Values[Index] < self.SearchBoniValues2[i][0]:
                        
Boni.index('-1')
                
except:
                    
Index Boni.index(self.SearchBoni2[i][1])
                    if 
Values[Index] < self.SearchBoniValues2[i][1]:
                        
Boni.index('-1')

            
self.State2 'Stop'
            
chat.AppendChat(1'Efsun Sayısı: ' str(self.Count2))
            
chat.AppendChat(1'Efsunlar: ' str(Boni))
            
chat.AppendChat(1'Efsun Değerleri: ' str(Values))
        
except:
            if 
player.GetItemCountByVnum(self.SwitchValue) < 3:
                if 
shop.IsOpen():
                    for 
EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):
                        
ShopItemValue shop.GetItemID(EachShopSlot)
                        if 
ShopItemValue == int(self.SwitchValue):
                            
net.SendShopBuyPacket(EachShopSlot)

                else:
                    
chat.AppendChat(1'Efsun değiştirme nesnesi kalmadı.')
                    
self.State2 'Stop'
                    
return
            for 
Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
ItemValue player.GetItemIndex(Slot)
                if 
ItemValue == self.SwitchValue:
                    if 
self.State2 == 'Stop':
                        return
                    
self.SlotStack2 = [Slotplayer.GetItemCount(Slot)]
                    
net.SendItemUseToItemPacket(Slotself.Slot2)
                    break

    
def ControllBoni3(selfBoniValues):
        try:
            for 
i in xrange(len(self.SearchBoni3)):
                try:
                    
Index Boni.index(self.SearchBoni3[i][0])
                    if 
Values[Index] < self.SearchBoniValues3[i][0]:
                        
Boni.index('-1')
                
except:
                    
Index Boni.index(self.SearchBoni3[i][1])
                    if 
Values[Index] < self.SearchBoniValues3[i][1]:
                        
Boni.index('-1')

            
self.State3 'Stop'
            
chat.AppendChat(1'Efsun Sayısı: ' str(self.Count3))
            
chat.AppendChat(1'Efsunlar: ' str(Boni))
            
chat.AppendChat(1'Efsun Değerleri: ' str(Values))
        
except:
            if 
player.GetItemCountByVnum(self.SwitchValue) < 3:
                if 
shop.IsOpen():
                    for 
EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):
                        
ShopItemValue shop.GetItemID(EachShopSlot)
                        if 
ShopItemValue == int(self.SwitchValue):
                            
net.SendShopBuyPacket(EachShopSlot)

                else:
                    
chat.AppendChat(1'Efsun değiştirme nesnesi kalmadı.')
                    
self.State3 'Stop'
                    
return
            for 
Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
ItemValue player.GetItemIndex(Slot)
                if 
ItemValue == self.SwitchValue:
                    if 
self.State3 == 'Stop':
                        return
                    
self.SlotStack3 = [Slotplayer.GetItemCount(Slot)]
                    
net.SendItemUseToItemPacket(Slotself.Slot3)
                    break

    
def ControllBoni4(selfBoniValues):
        try:
            for 
i in xrange(len(self.SearchBoni4)):
                try:
                    
Index Boni.index(self.SearchBoni4[i][0])
                    if 
Values[Index] < self.SearchBoniValues4[i][0]:
                        
Boni.index('-1')
                
except:
                    
Index Boni.index(self.SearchBoni4[i][1])
                    if 
Values[Index] < self.SearchBoniValues4[i][1]:
                        
Boni.index('-1')

            
self.State4 'Stop'
            
chat.AppendChat(1'Efsun Sayısı: ' str(self.Count4))
            
chat.AppendChat(1'Efsunlar: ' str(Boni))
            
chat.AppendChat(1'Efsun Değerleri: ' str(Values))
        
except:
            if 
player.GetItemCountByVnum(self.SwitchValue) < 3:
                if 
shop.IsOpen():
                    for 
EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):
                        
ShopItemValue shop.GetItemID(EachShopSlot)
                        if 
ShopItemValue == int(self.SwitchValue):
                            
net.SendShopBuyPacket(EachShopSlot)

                else:
                    
chat.AppendChat(1'Efsun değiştirme nesnesi kalmadı.')
                    
self.State4 'Stop'
                    
return
            for 
Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
ItemValue player.GetItemIndex(Slot)
                if 
ItemValue == self.SwitchValue:
                    if 
self.State4 == 'Stop':
                        return
                    
self.SlotStack4 = [Slotplayer.GetItemCount(Slot)]
                    
net.SendItemUseToItemPacket(Slotself.Slot4)
                    break

    
def ControllBoni5(selfBoniValues):
        try:
            for 
i in xrange(len(self.SearchBoni5)):
                try:
                    
Index Boni.index(self.SearchBoni5[i][0])
                    if 
Values[Index] < self.SearchBoniValues5[i][0]:
                        
Boni.index('-1')
                
except:
                    
Index Boni.index(self.SearchBoni5[i][1])
                    if 
Values[Index] < self.SearchBoniValues5[i][1]:
                        
Boni.index('-1')

            
self.State5 'Stop'
            
chat.AppendChat(1'Efsun Sayısı: ' str(self.Count5))
            
chat.AppendChat(1'Efsunlar: ' str(Boni))
            
chat.AppendChat(1'Efsun Değerleri: ' str(Values))
        
except:
            if 
player.GetItemCountByVnum(self.SwitchValue) < 3:
                if 
shop.IsOpen():
                    for 
EachShopSlot in xrange(shop.SHOP_SLOT_COUNT):
                        
ShopItemValue shop.GetItemID(EachShopSlot)
                        if 
ShopItemValue == int(self.SwitchValue):
                            
net.SendShopBuyPacket(EachShopSlot)

                else:
                    
chat.AppendChat(1'Efsun değiştirme nesnesi kalmadı.')
                    
self.State5 'Stop'
                    
return
            for 
Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
ItemValue player.GetItemIndex(Slot)
                if 
ItemValue == self.SwitchValue:
                    if 
self.State5 == 'Stop':
                        return
                    
self.SlotStack5 = [Slotplayer.GetItemCount(Slot)]
                    
net.SendItemUseToItemPacket(Slotself.Slot5)
                    break

    
def DefineBoni(self):
        
self.Values = []
        
self.Boni = []
        
self.Count 0
        
for AttributeIndex in xrange(5):
            
BonusValue player.GetItemAttribute(self.SlotAttributeIndex)
            if 
Bonus != 0:
                
self.Count += 1
                self
.Boni.append(Bonus)
                
self.Values.append(Value)

        
self.ControllBoni(self.Boniself.Values)

    
def DefineBoni2(self):
        
self.Values2 = []
        
self.Boni2 = []
        
self.Count2 0
        
for AttributeIndex in xrange(5):
            
Bonus2Value2 player.GetItemAttribute(self.Slot2AttributeIndex)
            if 
Bonus2 != 0:
                
self.Count2 += 1
                self
.Boni2.append(Bonus2)
                
self.Values2.append(Value2)

        
self.ControllBoni2(self.Boni2self.Values2)

    
def DefineBoni3(self):
        
self.Values3 = []
        
self.Boni3 = []
        
self.Count3 0
        
for AttributeIndex in xrange(5):
            
Bonus3Value3 player.GetItemAttribute(self.Slot3AttributeIndex)
            if 
Bonus3 != 0:
                
self.Count3 += 1
                self
.Boni3.append(Bonus3)
                
self.Values3.append(Value3)

        
self.ControllBoni3(self.Boni3self.Values3)

    
def DefineBoni4(self):
        
self.Values4 = []
        
self.Boni4 = []
        
self.Count4 0
        
for AttributeIndex in xrange(5):
            
Bonus4Value4 player.GetItemAttribute(self.Slot4AttributeIndex)
            if 
Bonus4 != 0:
                
self.Count4 += 1
                self
.Boni4.append(Bonus4)
                
self.Values4.append(Value4)

        
self.ControllBoni4(self.Boni4self.Values4)

    
def DefineBoni5(self):
        
self.Values5 = []
        
self.Boni5 = []
        
self.Count5 0
        
for AttributeIndex in xrange(5):
            
Bonus5Value5 player.GetItemAttribute(self.Slot5AttributeIndex)
            if 
Bonus5 != 0:
                
self.Count5 += 1
                self
.Boni5.append(Bonus5)
                
self.Values5.append(Value5)

        
self.ControllBoni5(self.Boni5self.Values5)

    
def ChangeState(selfstate):
        if 
state == 'Start':
            if 
self.SearchBoni == []:
                
chat.AppendChat(1'Lütfen bir efsun seçin.')
            
self.Slot 0
            self
.Startmode 1
            
for Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
itemVNum player.GetItemIndex(Slot)
                if 
itemVNum == self.SwitchValue:
                    
self.SlotStack = [Slotplayer.GetItemCount(Slot)]
                    break

            
self.DefineBoni()
            
self.State 'Start'
        
else:
            
self.State 'Stop'
            
chat.AppendChat(1'Bot durdu.')

    
def ChangeState2(selfstate):
        if 
state == 'Start':
            if 
self.SearchBoni2 == []:
                
chat.AppendChat(1'Lütfen bir efsun seçin.')
            
self.Slot2 1
            self
.Startmode2 1
            
for Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
itemVNum player.GetItemIndex(Slot)
                if 
itemVNum == self.SwitchValue:
                    
self.SlotStack2 = [Slotplayer.GetItemCount(Slot)]
                    break

            
self.DefineBoni2()
            
self.State2 'Start'
        
else:
            
self.State2 'Stop'
            
chat.AppendChat(1'Bot durdu.')

    
def ChangeState3(selfstate):
        if 
state == 'Start':
            if 
self.SearchBoni3 == []:
                
chat.AppendChat(1'Lütfen bir efsun seçin.')
            
self.Slot3 2
            self
.Startmode3 1
            
for Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
itemVNum player.GetItemIndex(Slot)
                if 
itemVNum == self.SwitchValue:
                    
self.SlotStack3 = [Slotplayer.GetItemCount(Slot)]
                    break

            
self.DefineBoni3()
            
self.State3 'Start'
        
else:
            
self.State3 'Stop'
            
chat.AppendChat(1'Bot durdu.')

    
def ChangeState4(selfstate):
        if 
state == 'Start':
            if 
self.SearchBoni4 == []:
                
chat.AppendChat(1'Lütfen bir efsun seçin.')
            
self.Slot4 3
            self
.Startmode1 1
            
for Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
itemVNum player.GetItemIndex(Slot)
                if 
itemVNum == self.SwitchValue:
                    
self.SlotStack4 = [Slotplayer.GetItemCount(Slot)]
                    break

            
self.DefineBoni4()
            
self.State4 'Start'
        
else:
            
self.State4 'Stop'
            
chat.AppendChat(1'Bot durdu.')

    
def ChangeState5(selfstate):
        if 
state == 'Start':
            if 
self.SearchBoni5 == []:
                
chat.AppendChat(1'Lütfen bir efsun seçin.')
            
self.Slot5 4
            self
.Startmode5 1
            
for Slot in xrange(player.INVENTORY_PAGE_SIZE 5):
                
itemVNum player.GetItemIndex(Slot)
                if 
itemVNum == self.SwitchValue:
                    
self.SlotStack5 = [Slotplayer.GetItemCount(Slot)]
                    break

            
self.DefineBoni5()
            
self.State5 'Start'
        
else:
            
self.State5 'Stop'
            
chat.AppendChat(1'Bot durdu.')


def GuiParser(guiobjects, list):
    for 
object in guiobjects:
        
Object object[0][0]()
        if 
object[0][1] != '':
            
Object.SetParent(list[object[0][1]])
        if 
object[1][0] + object[1][1] != 0:
            
Object.SetSize(object[1][0], object[1][1])
        if 
object[2][0] + object[2][1] != 0:
            
Object.SetPosition(object[2][0], object[2][1])
        for 
command in object[3]:
            
cmd command[0]
            
attr getattr(Objectcmd)
            if callable(
attr):
                
argument command[1]
                
lenght len(argument)
                if 
lenght == 1:
                    if 
argument[0] == '':
                        
attr()
                    else:
                        
attr(argument[0])
                
elif lenght == 2:
                    
attr(argument[0], argument[1])
                
elif lenght == 3:
                    
attr(argument[0], argument[1], argument[2])
                
elif lenght == 4:
                    
attr(argument[0], argument[1], argument[2], argument[3])

        for 
flag in object[4]:
            
Object.AddFlag(str(flag))

        
Object.Show()
        list.
append(Object)


class 
Item(ui.ListBoxEx.Item):

    
def __init__(selffileName):
        
ui.ListBoxEx.Item.__init__(self)
        
self.canLoad 0
        self
.text fileName
        self
.textLine self.__CreateTextLine(fileName)

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

    
def GetText(self):
        return 
self.text

    def SetSize
(selfwidthheight):
        
ui.ListBoxEx.Item.SetSize(selflen(self.textLine.GetText()) + 4height)

    
def __CreateTextLine(selffileName):
        
textLine ui.TextLine()
        
textLine.SetParent(self)
        
textLine.SetPosition(00)
        
textLine.SetText(fileName)
        
textLine.Show()
        return 
textLine


efsunbot
().Show() 
Is it possible for you to translate the Turkish or whatever texts to english?
Like i see, you added self.Gui[7].Hide() but that asumes a button more after the "Durdur" button that you dont have.
All over this is some of the worst Code, i have ever seen ...
xCPx is offline  
Old 05/28/2019, 03:01   #3
 
kaynanas's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 20
Received Thanks: 0
Quote:
Originally Posted by xCPx View Post
Is it possible for you to translate the Turkish or whatever texts to english?
Like i see, you added self.Gui[7].Hide() but that asumes a button more after the "Durdur" button that you dont have.
All over this is some of the worst Code, i have ever seen ...
Well, is there a 5 or 7-slot *.py switchbot that you can recommend and run?
kaynanas is offline  
Reply


Similar Threads Similar Threads
Help my pls ! Help my pls ! Help my pls !
11/03/2010 - S4 League - 7 Replies
Hey Leute ich weis man darf keine Fragen hier stellen aber pls kann mich niemand reporten weil vll könnte mir hier jemand weiter helfen ! Also ich habe einen Hack und der funktioniert ich muss nur Xtrap suspenden und wenn ich mich mit einem Acc einlogge kommt gleich dein Acc wurde gebannt ! :mad: ! Und könnte jemand da so einen hack erstellen das man nicht gebannt wird oder gibt es da eine Lösung ? Pls help my ! :handsdown: :handsdown: :handsdown: !



All times are GMT +1. The time now is 14:26.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.