Register for your free account! | Forgot your password?

You last visited: Today at 22:10

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

 

help

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2013
Posts: 13
Received Thanks: 0
help

wo diese Codes werden der root.eix hinzugefügt? Ausführliche Erklärung?

PHP Code:
import ui
import dbg
import app
import net
import constInfo
import chat


class GuiDialog(ui.Window):
    
LastContactTimeStamp app.GetTime() - 5
    WaitTime 
10
    State 
"Disabled"
    
def __init__(self):
        
ui.Window.__init__(self)
        
self.BuildWindow()
        
constInfo.channelgui 1

    def __del__
(self):
        
ui.Window.__del__(self)
        
constInfo.channelgui 0
    def BuildWindow
(self):
        
self.Board ui.BoardWithTitleBar()
        
self.Board.SetSize(164138)
        
self.Board.SetCenterPosition()
        
self.Board.AddFlag('movable')
        
self.Board.AddFlag('float')
        
self.Board.SetTitleName('Channel Wechsel')
        
self.Board.SetCloseEvent(self.Close)
        
self.Board.Show()
        
self.__BuildKeyDict()
        
self.comp Component()

        
self.Channel1 self.comp.Button(self.Board'Channel1'''5437self.Channel1_func'd:/ymir work/ui/public/middle_button_01.sub''d:/ymir work/ui/public/middle_button_02.sub''d:/ymir work/ui/public/middle_button_03.sub')
        
self.Channel2 self.comp.Button(self.Board'Channel2'''5467self.Channel2_func'd:/ymir work/ui/public/middle_button_01.sub''d:/ymir work/ui/public/middle_button_02.sub''d:/ymir work/ui/public/middle_button_03.sub')
        
self.Channe3 self.comp.Button(self.Board'Channel3'''5497self.Channe3_func'd:/ymir work/ui/public/middle_button_01.sub''d:/ymir work/ui/public/middle_button_02.sub''d:/ymir work/ui/public/middle_button_03.sub')
        
        
    
    
def Channel1_func(self):
        if 
self.State == "Disabled":
                
chat.AppendChat(chat.CHAT_TYPE_INFO"Warte noch " str(int(int(self.LastContactTimeStamp) + self.WaitTime) - int(app.GetTime())) + " Sekunden bevor du erneut den Channel Wechselst.")
                return
        
import linecache
        AccountID 
linecache.getline("save"1)
        
Password linecache.getline("save"2)
        
ChannelIndex 1
        ChannelPort 
87000
        AuthServerIP 
"185.5.174.17"
        
ChannelIP "185.5.174.17"
        
self.Board.Hide()
        
constInfo.channelgui 0
        AuthServerPort 
11002
        NewServerName 
"SERVERNAME-Ch1"
        
net.SetServerInfo(NewServerName)
        
net.SetLoginInfo(AccountIDPassword)
        
net.ConnectToAccountServer(ChannelIPChannelPortAuthServerIPAuthServerPort)
        
net.DirectEnter(0)
        
net.SendSelectCharacterPacket(0)
        
net.SendEnterGamePacket()    
        
        
self.State "Disabled"
        
self.LastContactTimeStamp app.GetTime()    
    
    
def Channel2_func(self):
        if 
self.State == "Disabled":
                
chat.AppendChat(chat.CHAT_TYPE_INFO"Warte noch " str(int(int(self.LastContactTimeStamp) + self.WaitTime) - int(app.GetTime())) + " Sekunden bevor du erneut den Channel Wechselst.")
                return
        
import linecache
        AccountID 
linecache.getline("save"1)
        
Password linecache.getline("save"2)
        
ChannelIndex 1
        ChannelPort 
87004
        AuthServerIP 
"185.5.174.17"
        
ChannelIP "185.5.174.17"
        
self.Board.Hide()
        
constInfo.channelgui 0
        AuthServerPort 
11002
        NewServerName 
"SERVERNAME-Ch2"
        
net.SetServerInfo(NewServerName)
        
net.SetLoginInfo(AccountIDPassword)
        
net.ConnectToAccountServer(ChannelIPChannelPortAuthServerIPAuthServerPort)
        
net.DirectEnter(0)
        
net.SendSelectCharacterPacket(0)
        
net.SendEnterGamePacket()    
        
        
self.State "Disabled"
        
self.LastContactTimeStamp app.GetTime()
    
    
def Channe3_func(self):
        if 
self.State == "Disabled":
                
chat.AppendChat(chat.CHAT_TYPE_INFO"Warte noch " str(int(int(self.LastContactTimeStamp) + self.WaitTime) - int(app.GetTime())) + " Sekunden bevor du erneut den Channel Wechselst.")
                return
        
import linecache
        AccountID 
linecache.getline("save"1)
        
Password linecache.getline("save"2)
        
ChannelIndex 1
        ChannelPort 
87008
        AuthServerIP 
"SERVERIP"
        
ChannelIP "SERVERIP"
        
self.Board.Hide()
        
constInfo.channelgui 0
        AuthServerPort 
11002
        NewServerName 
"SERVERNAME-Ch3"
        
net.SetServerInfo(NewServerName)
        
net.SetLoginInfo(AccountIDPassword)
        
net.ConnectToAccountServer(ChannelIPChannelPortAuthServerIPAuthServerPort)
        
net.DirectEnter(0)
        
net.SendSelectCharacterPacket(0)
        
net.SendEnterGamePacket()    
    
        
        
self.State "Disabled"
        
self.LastContactTimeStamp app.GetTime() 

    
def OnUpdate(self):
        if 
int(int(self.LastContactTimeStamp) + self.WaitTime) < int(app.GetTime()) and self.State == "Disabled":
            
self.State "Enabled"
    
    
def __BuildKeyDict(self):
        
onPressKeyDict = {}
        
onPressKeyDict[app.DIK_F5]    = lambda self.OpenWindow()
        
self.onPressKeyDict onPressKeyDict
    
    def OnKeyDown
(selfkey):
        try:
            
self.onPressKeyDict[key]()
        
except KeyError:
            
pass
        except
:
            
raise
        
return TRUE
    
    def OpenWindow
(self):
        if 
self.Board.IsShow():
            
self.Board.Hide()
        else:
            
self.Board.Show()
    
    
def Close(self):
        
self.Board.Hide()
        
constInfo.channelgui 0

class Component:
    
def Button(selfparentbuttonNametooltipTextxyfuncUpVisualOverVisualDownVisual):
        
button ui.Button()
        if 
parent != None:
            
button.SetParent(parent)
        
button.SetPosition(xy)
        
button.SetUpVisual(UpVisual)
        
button.SetOverVisual(OverVisual)
        
button.SetDownVisual(DownVisual)
        
button.SetText(buttonName)
        
button.SetToolTipText(tooltipText)
        
button.Show()
        
button.SetEvent(func)
        return 
button

    def ToggleButton
(selfparentbuttonNametooltipTextxyfuncUpfuncDownUpVisualOverVisualDownVisual):
        
button ui.ToggleButton()
        if 
parent != None:
            
button.SetParent(parent)
        
button.SetPosition(xy)
        
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
(selfparenteditlineTextxywidthheighmax):
        
SlotBar ui.SlotBar()
        if 
parent != None:
            
SlotBar.SetParent(parent)
        
SlotBar.SetSize(widthheigh)
        
SlotBar.SetPosition(xy)
        
SlotBar.Show()
        
Value ui.EditLine()
        
Value.SetParent(SlotBar)
        
Value.SetSize(widthheigh)
        
Value.SetPosition(11)
        
Value.SetMax(max)
        
Value.SetLimitWidth(width)
        
Value.SetMultiLine()
        
Value.SetText(editlineText)
        
Value.Show()
        return 
SlotBarValue

    def TextLine
(selfparenttextlineTextxycolor):
        
textline ui.TextLine()
        if 
parent != None:
            
textline.SetParent(parent)
        
textline.SetPosition(xy)
        if 
color != None:
            
textline.SetFontColor(color[0], color[1], color[2])
        
textline.SetText(textlineText)
        
textline.Show()
        return 
textline

    def RGB
(selfrgb):
        return (
r*255g*255b*255)

    
def SliderBar(selfparentsliderPosfuncxy):
        
Slider ui.SliderBar()
        if 
parent != None:
            
Slider.SetParent(parent)
        
Slider.SetPosition(xy)
        
Slider.SetSliderPos(sliderPos 100)
        
Slider.Show()
        
Slider.SetEvent(func)
        return 
Slider

    def ExpandedImage
(selfparentxyimg):
        
image ui.ExpandedImageBox()
        if 
parent != None:
            
image.SetParent(parent)
        
image.SetPosition(xy)
        
image.LoadImage(img)
        
image.Show()
        return 
image

    def ComboBox
(selfparenttextxywidth):
        
combo ui.ComboBox()
        if 
parent != None:
            
combo.SetParent(parent)
        
combo.SetPosition(xy)
        
combo.SetSize(width15)
        
combo.SetCurrentItem(text)
        
combo.Show()
        return 
combo

    def ThinBoard
(selfparentmoveablexywidthheighcenter):
        
thin ui.ThinBoard()
        if 
parent != None:
            
thin.SetParent(parent)
        if 
moveable == TRUE:
            
thin.AddFlag('movable')
            
thin.AddFlag('float')
        
thin.SetSize(widthheigh)
        
thin.SetPosition(xy)
        if 
center == TRUE:
            
thin.SetCenterPosition()
        
thin.Show()
        return 
thin

    def Gauge
(selfparentwidthcolorxy):
        
gauge ui.Gauge()
        if 
parent != None:
            
gauge.SetParent(parent)
        
gauge.SetPosition(xy)
        
gauge.MakeGauge(widthcolor)
        
gauge.Show()
        return 
gauge

    def ListBoxEx
(selfparentxywidthheigh):
        
bar ui.Bar()
        if 
parent != None:
            
bar.SetParent(parent)
        
bar.SetPosition(xy)
        
bar.SetSize(widthheigh)
        
bar.SetColor(0x77000000)
        
bar.Show()
        
ListBox=ui.ListBoxEx()
        
ListBox.SetParent(bar)
        
ListBox.SetPosition(00)
        
ListBox.SetSize(widthheigh)
        
ListBox.Show()
        
scroll ui.ScrollBar()
        
scroll.SetParent(ListBox)
        
scroll.SetPosition(width-150)
        
scroll.SetScrollBarSize(heigh)
        
scroll.Show()
        
ListBox.SetScrollBar(scroll)
        return 
barListBox 



doctor2244 is offline  
Old   #2
 
elite*gold: 182
Join Date: May 2010
Posts: 1,337
Received Thanks: 235
No help. Why? Dont use google translator.


Fever. is offline  
Old   #3
 
elite*gold: 0
Join Date: Apr 2013
Posts: 13
Received Thanks: 0
Quote:
Originally Posted by DerUnbekannte7 View Post
No help. Why? Dont use google translator.
Wo Codes hinzugefügt werden?
doctor2244 is offline  
Reply



« Previous Thread | Next Thread »



All times are GMT +1. The time now is 22:10.


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

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.