Jump to content

asterix2

Inactive Member
  • Posts

    124
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    0%

Posts posted by asterix2

  1. 9 minutes ago, vladbos35 said:

    1122 22:50:20184 :: Traceback (most recent call last):

    1122 22:50:20184 ::   File "game.py", line 1253, in OnKeyDown

    1122 22:50:20184 ::   File "game.py", line 354, in <lambda>

    1122 22:50:20184 ::   File "game.py", line 2269, in __switch_channel

    1122 22:50:20184 ::   File "uiChannel.py", line 18, in __init__

    1122 22:50:20184 ::   File "uiChannel.py", line 125, in __Fill_Up_ChannelList

    1122 22:50:20184 ::   File "uiChannel.py", line 131, in __RequestServerStateList

    1122 22:50:20184 ::   File "uiChannel.py", line 122, in __GetServerID

    1122 22:50:20184 :: UnboundLocalError
    1122 22:50:20184 :: : 
    1122 22:50:20184 :: local variable 'serverID' referenced before assignment
    1122 22:50:20184 :: 

    Okay. Taskbar button.

    root.eix/epk --> constinfo.py

    Add:  switchbutton = 0

    locale_hu.eix/epk --> taskbar.py

    add:

    ##SwitchButton
    {
    "name" : "SwitchButton",
    "type" : "button",

    "x" : 114, # írd át
    "y" : 90, # írd át

    "tooltip_text" : "Csatorna választó ",

    "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
    "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
    "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
    },


    root.eix/epk --> uitaskbar.py

    Search: toggleButtonDict = {}

    Add under:
    toggleButtonDict[TaskBar.BUTTON_SWITCH]=self.GetChild("SwitchButton")

    Search:
     class TaskBar(ui.ScriptWindow):

    Under: BUTTON_SWITCH = 5

    root.eix/epk --> interfacemodule.py

    Search:  self.wndTaskBar.SetToggleButtonEvent(uiTaskBar.TaskBar.BUTTON_SYSTEM, ui.__mem_func__(self.ToggleSystemDialog))

    Add under:
    self.wndTaskBar.SetToggleButtonEvent(uiTaskBar.TaskBar.BUTTON_SWITCH, ui.__mem_func__(self.ToggleSwitch))

    File end write:

    def ToggleSwitch(self):
    import uiChannel
    if constInfo.switchbutton == 0:
    constInfo.switchbutton = 1
    a = uiChannel.ChannelChanger()
    a.Show()
    elif constInfo.switchbutton == 1:
    constInfo.switchbutton = 0
    a = uiChannel.ChannelChanger()
    a.Hide()

    uichannel.py put your root.

    Sorry my english.

    Server port:

    ch1: 13002
    ch2: 13102
    ch3: 13202
    ch4: 13302

    #Python code make: pisti95

  2. Just now, vladbos35 said:

    Port is 13002, 13102. 

    My port is in intrologin.py

        def ChannelPort(self, ch="CH1", value=0):
            channel = {
                "CH1"    :    [13002, "SERVER", "CH 1"],
                "CH2"    :    [13102, "SERVER", "CH 2"],

            
            if ch == "LOGIN":
                return 11004
            elif ch == "LOGO":
                return channel["CH1"][0]
            elif value == 2:
                return "%s, %s" % (channel[ch][1], channel[ch][2])
            else:
                return channel[ch][value]
                    

    hm

  3.                                     "name" : "Target_Money_Value",
                                        "type" : "text",

                                        "x" : 59,
                                        "y" : 2,


    Uscript / exchangedialog



  4. This is the hidden content, please
     download and overwrite file  include_stuff/python-2.2

     

    Userinterface/Userinterface.cpp

    #pragma comment( lib, "python22.lib" )

    Replace
    #pragma comment( lib, "python27.lib" )

    ScriptLib/PythonUtils.cpp

    Add incule under


    #define PyLong_AsLong PyLong_AsLongLong
    #define PyLong_AsUnsignedLong PyLong_AsUnsignedLongLong
     

    scriptlib/python 2.2 overwrite again file with Visualstudio2013 not need overwrite.

    This is the hidden content, please


    Client side:

    This is the hidden content, please



    Sorry my english.

    • Metin2 Dev 22
    • Cry 1
    • Good 11
    • Love 2
    • Love 12
  5.  

     

     

    40k interface module.py:

     

    		if localeInfo.IsSINGAPORE() or localeInfo.IsEUROPE():
    			if name[0] == '*':
    				btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_blue.tga")
    				btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_blue.tga")
    				btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_blue.tga")
    				name = name[1:]
    			elif name[0] == '~':
    				btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_golden.tga")
    				btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_golden.tga")
    				btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_golden.tga")
    				name = name[1:]
    			elif name[0] == '&':
    				btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_green.tga")
    				btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_green.tga")
    				btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_green.tga")
    				name = name[1:]
    			elif name[0] == '+':
    				btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_purple.tga")
    				btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_purple.tga")
    				btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_purple.tga")
    				name = name[1:]
    			else:
    				btn.SetUpVisual(localeInfo.GetLetterCloseImageName())
    				btn.SetOverVisual(localeInfo.GetLetterOpenImageName())
    				btn.SetDownVisual(localeInfo.GetLetterOpenImageName())
    		else:
    			btn.SetUpVisual(buttonImageFileName)
    			btn.SetOverVisual(buttonImageFileName)
    			btn.SetDownVisual(buttonImageFileName)
    			btn.Flash()
    		# END_OF_QUEST_LETTER_IMAGE

     

    • 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.