Jump to content

WhiteWorld

Inactive Member
  • Posts

    32
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by WhiteWorld

  1. I continue to get clients syserr. Something solution?

    
    0220 10:07:36306 :: Traceback (most recent call last):
    
    0220 10:07:36306 ::   File "uiswitch.py", line 161, in OnUpdate
    
    0220 10:07:36306 ::   File "uiswitch.py", line 152, in refresh
    
    0220 10:07:36306 :: IndexError
    0220 10:07:36306 :: : 
    0220 10:07:36306 :: list index out of range
    0220 10:07:36306 :: 

     

  2. I have a problem OfflineShop

    client syserr

    0731 17:21:26806 :: Cannot find item by 1634169902
    0731 17:21:26806 :: Cannot find item by 1634169902
    0731 17:21:26807 :: Cannot find item by 784591
    0731 17:21:26807 :: Cannot find item by 784591
    0731 17:21:26807 :: Cannot find item by 655949480
    0731 17:21:26807 :: Cannot find item by 655949480
    0731 17:21:26807 :: Cannot find item by 939838206
    0731 17:21:26807 :: Cannot find item by 939838206
    0731 17:21:26807 :: Cannot find item by 1764716143
    0731 17:21:26807 :: Cannot find item by 1764716143
    0731 17:21:26807 :: Cannot find item by 842151219
    0731 17:21:26807 :: Cannot find item by 842151219
    0731 17:21:26807 :: Cannot find item by 79230464
    0731 17:21:26807 :: Cannot find item by 79230464
    0731 17:21:26807 :: Cannot find item by 3328
    0731 17:21:26807 :: Cannot find item by 3328
    0731 17:21:26807 :: Cannot find item by 16797096
    0731 17:21:26807 :: Cannot find item by 16797096
    0731 17:21:26807 :: Cannot find item by 1667825664
    0731 17:21:26807 :: Cannot find item by 1667825664

  3. IISkillzII

    Spoiler

     

    constinfo.py open

    add

     
    Code:
    
    karaca425event = 0
    game.py open

    game.py uppermost add

     
    Code:
    
    class Component:
    	def Button(self, parent, buttonName, tooltipText, x, y, func, UpVisual, OverVisual, DownVisual):
    		button = ui.Button()
    		if parent != None:
    			button.SetParent(parent)
    		button.SetPosition(x, y)
    		button.SetUpVisual(UpVisual)
    		button.SetOverVisual(OverVisual)
    		button.SetDownVisual(DownVisual)
    		button.SetText(buttonName)
    		button.SetToolTipText(tooltipText)
    		button.Show()
    		button.SetEvent(func)
    		return button
    
    	def ToggleButton(self, parent, buttonName, tooltipText, x, y, funcUp, funcDown, UpVisual, OverVisual, DownVisual):
    		button = ui.ToggleButton()
    		if parent != None:
    			button.SetParent(parent)
    		button.SetPosition(x, y)
    		button.SetUpVisual(UpVisual)
    		button.SetOverVisual(OverVisual)
    		button.SetDownVisual(DownVisual)
    		button.SetText(buttonName)
    		button.SetToolTipText(tooltipText)
    		button.Show()
    		button.SetToggleUpEvent(funcUp)
    		button.SetToggleDownEvent(funcDown)
    		return button
    
    	def EditLine(self, parent, editlineText, x, y, width, heigh, max):
    		SlotBar = ui.SlotBar()
    		if parent != None:
    			SlotBar.SetParent(parent)
    		SlotBar.SetSize(width, heigh)
    		SlotBar.SetPosition(x, y)
    		SlotBar.Show()
    		Value = ui.EditLine()
    		Value.SetParent(SlotBar)
    		Value.SetSize(width, heigh)
    		Value.SetPosition(1, 1)
    		Value.SetMax(max)
    		Value.SetLimitWidth(width)
    		Value.SetMultiLine()
    		Value.SetText(editlineText)
    		Value.Show()
    		return SlotBar, Value
    		
    	def EditLine2(self, parent, editlineText, x, y, width, heigh, max):
    		SlotBar = ui.SlotBar()
    		if parent != None:
    			SlotBar.SetParent(parent)
    		SlotBar.SetSize(width, heigh)
    		SlotBar.SetPosition(x, y)
    		SlotBar.Show()
    		Value = ui.EditLine()
    		Value.SetParent(SlotBar)
    		Value.SetSize(width, heigh)
    		Value.SetPosition(2, 2)
    		Value.SetMax(210)
    		Value.SetLimitWidth(width)
    		Value.SetMultiLine()
    		Value.SetText(editlineText)
    		Value.Show()
    		return SlotBar, Value
    
    	def TextLine(self, parent, textlineText, x, y, color):
    		textline = ui.TextLine()
    		if parent != None:
    			textline.SetParent(parent)
    		textline.SetPosition(x, y)
    		if color != None:
    			textline.SetFontColor(color[0], color[1], color[2])
    		textline.SetText(textlineText)
    		textline.Show()
    		return textline
    
    	def RGB(self, r, g, b):
    		return (r*255, g*255, b*255)
    
    	def SliderBar(self, parent, sliderPos, func, x, y):
    		Slider = ui.SliderBar()
    		if parent != None:
    			Slider.SetParent(parent)
    		Slider.SetPosition(x, y)
    		Slider.SetSliderPos(sliderPos / 100)
    		Slider.Show()
    		Slider.SetEvent(func)
    		return Slider
    
    	def ExpandedImage(self, parent, x, y, img):
    		image = ui.ExpandedImageBox()
    		if parent != None:
    			image.SetParent(parent)
    		image.SetPosition(x, y)
    		image.LoadImage(img)
    		image.Show()
    		return image
    
    	def ComboBox(self, parent, text, x, y, width):
    		combo = ui.ComboBox()
    		if parent != None:
    			combo.SetParent(parent)
    		combo.SetPosition(x, y)
    		combo.SetSize(width, 15)
    		combo.SetCurrentItem(text)
    		combo.Show()
    		return combo
    
    	def ThinBoard(self, parent, moveable, x, y, width, heigh, center):
    		thin = ui.ThinBoard()
    		if parent != None:
    			thin.SetParent(parent)
    		if moveable == TRUE:
    			thin.AddFlag('movable')
    			thin.AddFlag('float')
    		thin.SetSize(width, heigh)
    		thin.SetPosition(x, y)
    		if center == TRUE:
    			thin.SetCenterPosition()
    		thin.Show()
    		return thin
    
    	def Gauge(self, parent, width, color, x, y):
    		gauge = ui.Gauge()
    		if parent != None:
    			gauge.SetParent(parent)
    		gauge.SetPosition(x, y)
    		gauge.MakeGauge(width, color)
    		gauge.Show()
    		return gauge
    
    	def ListBoxEx(self, parent, x, y, width, heigh):
    		bar = ui.Bar()
    		if parent != None:
    			bar.SetParent(parent)
    		bar.SetPosition(x, y)
    		bar.SetSize(width, heigh)
    		bar.SetColor(0x77000000)
    		bar.Show()
    		ListBox=ui.ListBoxEx()
    		ListBox.SetParent(bar)
    		ListBox.SetPosition(0, 0)
    		ListBox.SetSize(width, heigh)
    		ListBox.Show()
    		scroll = ui.ScrollBar()
    		scroll.SetParent(ListBox)
    		scroll.SetPosition(width-15, 0)
    		scroll.SetScrollBarSize(heigh)
    		scroll.Show()
    		ListBox.SetScrollBar(scroll)
    		return bar, ListBox
    search
     
    Code:
    
    def Open(self):
    app.SetFrameSkip(1)
    
    self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight())
    under add
     
    Code:
    
    self.karaca425eventac = ui.Button()
    self.karaca425eventac.SetPosition(700, 30)
    self.karaca425eventac.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
    self.karaca425eventac.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
    self.karaca425eventac.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
    self.karaca425eventac.SetText("Event Bilgi")
    self.karaca425eventac.SetEvent(ui.__mem_func__(self.__karaca425event))
    self.karaca425eventac.Show()
            
    self.karaca425eventkapat = ui.Button()
    self.karaca425eventkapat.SetPosition(700, 30)
    self.karaca425eventkapat.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
    self.karaca425eventkapat.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
    self.karaca425eventkapat.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
    self.karaca425eventkapat.SetText("Kapat")
    self.karaca425eventkapat.SetEvent(ui.__mem_func__(self.__karaca425event))
    self.karaca425eventkapat.Hide()
    
    self.karaca425event = ui.BoardWithTitleBar()
    self.karaca425event.SetSize(200, 220)
    self.karaca425event.SetPosition(630, 45)
    self.karaca425event.AddFlag('float')
    self.karaca425event.SetTitleName("Event Bilgi Sistemi")
    self.karaca425event.Hide()
    self.comp2 = Component()
            
    self.text = self.comp2.TextLine(self.karaca425event, 'Tarih', 25, 34, self.comp2.RGB(255, 255, 0))
    self.text2 = self.comp2.TextLine(self.karaca425event, 'Event İsmi', 140, 34, self.comp2.RGB(255, 255, 0))
    self.text3 = self.comp2.TextLine(self.karaca425event, 'Saat', 87, 34, self.comp2.RGB(255, 255, 0))
    self.text4 = self.comp2.TextLine(self.karaca425event, 'Pazartesi', 19, 64, self.comp2.RGB(255, 0, 0))
    self.text5 = self.comp2.TextLine(self.karaca425event, 'Salı', 19, 94, self.comp2.RGB(255, 0, 0))
    self.text6 = self.comp2.TextLine(self.karaca425event, 'Çarşamba', 19, 124, self.comp2.RGB(255, 0, 0))
    self.text7 = self.comp2.TextLine(self.karaca425event, 'Perşembe', 19, 154, self.comp2.RGB(255, 0, 0))
    self.text8 = self.comp2.TextLine(self.karaca425event, 'Cuma', 19, 184, self.comp2.RGB(255, 0, 0))
    self.saat1 = self.comp2.TextLine(self.karaca425event, '15:00-16:00', 79, 64, self.comp2.RGB(245, 245, 220))
    self.saat2 = self.comp2.TextLine(self.karaca425event, '17:00-18:00', 79, 94, self.comp2.RGB(245, 245, 220))
    self.saat3 = self.comp2.TextLine(self.karaca425event, '13:00-14:00', 79, 124, self.comp2.RGB(245, 245, 220))
    self.saat4 = self.comp2.TextLine(self.karaca425event, '19:00-20:00', 79, 154, self.comp2.RGB(245, 245, 220))
    self.saat5 = self.comp2.TextLine(self.karaca425event, '19:00-20:00', 79, 184, self.comp2.RGB(245, 245, 220))
    self.resim1 = self.comp2.ExpandedImage(self.karaca425event, 145, 54, 'karaca425/ayisigi.tga')
    self.resim2 = self.comp2.ExpandedImage(self.karaca425event, 145, 84, 'karaca425/corap.tga')
    self.resim3 = self.comp2.ExpandedImage(self.karaca425event, 145, 114, 'karaca425/top.tga')
    self.resim4 = self.comp2.ExpandedImage(self.karaca425event, 145, 144, 'karaca425/yumurta.tga')
    self.resim5 = self.comp2.ExpandedImage(self.karaca425event, 145, 174, 'karaca425/simit.tga')
    game.py last add
     
    Code:
    
    def __karaca425event(self):
    if constInfo.karaca425event == 0:
    constInfo.karaca425event = 1
    self.karaca425event.Show()
    else:
    constInfo.karaca425event = 0
    self.karaca425event.Hide()
    ui.py open

    search

     
    Code:
    
    self.ButtonText.SetText(text)
    under add
     
    Code:
    
    def GetText(self):
    if not self.ButtonText:
    return# ""
    return self.ButtonText.GetText()

     

     
    • Love 1
  4. I also fault the solution?

     


    0614 15:13:10930 :: Traceback (most recent call last):

    0614 15:13:10930 ::   File "uiswitch.py", line 160, in OnUpdate

    0614 15:13:10930 ::   File "uiswitch.py", line 140, in refresh

    0614 15:13:10930 :: TypeError
    0614 15:13:10930 :: :
    0614 15:13:10930 :: an integer is required
    0614 15:13:10930 ::

     

  5. so I have residential and work

    3x

        case APPLY_MOV_SPEED:
        case APPLY_ATT_SPEED:

    1,

                                    case APPLY_MOV_SPEED:
                                        AddAffect(AFFECT_UNIQUE_ABILITY, POINT_MOV_SPEED, item->GetValue(2), AFF_MOV_SPEED_POTION, item->GetValue(1), 0, true, true);
                                        EffectPacket(SE_DXUP_PURPLE); //purple potion
                                        break;

                                    case APPLY_ATT_SPEED:
                                        AddAffect(AFFECT_UNIQUE_ABILITY, POINT_ATT_SPEED, item->GetValue(2), AFF_ATT_SPEED_POTION, item->GetValue(1), 0, true, true);
                                        EffectPacket(SE_SPEEDUP_GREEN); //green potion
                                        break;

    2,

                                        case APPLY_MOV_SPEED:
                                            AddAffect(affect_type, apply_type, apply_value, AFF_MOV_SPEED_POTION, apply_duration, 0, true, true);
                                            EffectPacket(SE_DXUP_PURPLE); //purple potion
                                            break;

                                        case APPLY_ATT_SPEED:
                                            AddAffect(affect_type, apply_type, apply_value, AFF_ATT_SPEED_POTION, apply_duration, 0, true, true);
                                            EffectPacket(SE_SPEEDUP_GREEN); //green potion
                                            break;

    3,

                                    case APPLY_MOV_SPEED:
                                        AddAffect(AFFECT_MOV_SPEED, POINT_MOV_SPEED, item->GetValue(2), AFF_MOV_SPEED_POTION, item->GetValue(1), 0, true);
                                        EffectPacket(SE_DXUP_PURPLE); //purple potion
                                        break;

                                    case APPLY_ATT_SPEED:
                                        AddAffect(AFFECT_ATT_SPEED, POINT_ATT_SPEED, item->GetValue(2), AFF_ATT_SPEED_POTION, item->GetValue(1), 0, true);
                                        EffectPacket(SE_SPEEDUP_GREEN); //green potion
                                        break;

     

    and 1x

    AddAffect(AFFECT_NOG_ABILITY, POINT_MOV_SPEED, moveSpeedPer, AFF_MOV_SPEED_POTION, time, 0, true, true);

                                        AddAffect(AFFECT_NOG_ABILITY, POINT_MOV_SPEED, moveSpeedPer, AFF_MOV_SPEED_POTION, time, 0, true, true);
                                        EffectPacket(SE_DXUP_PURPLE); //purple potion
                                        AddAffect(AFFECT_NOG_ABILITY, POINT_MALL_ATTBONUS, attPer, AFF_NONE, time, 0, true, true);
                                        AddAffect(AFFECT_NOG_ABILITY, POINT_MALL_EXPBONUS, expPer, AFF_NONE, time, 0, true, true);

    it works, thank you

    • Love 2
  6. yes but ther is one erro on guild then on me it's coming 

    Unknown packet header: 102, last: 75 75

    any one know too fix this ? 

    I wrote,


    0808 04:49:38376 :: Unknown packet header: 166, last: 75 75

    solution

    it was a good character with no guild

    I apologize in English google :D

    • Love 1
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.