Jump to content

Kronzu

Inactive Member
  • Posts

    64
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Kronzu

  1. Hello. Hello. I would like to buy Metin2 systems.

    4. Increase the maximum experience
    e35a0683c617f3dd23cc91966467ac3e.png
    904c90fa5ef9c88d94d659d838084d64.png

    is: int -> 2.500.000.000 (2.147.483.647)
    has to be: long long -> 9.000.000.000.000.000 (9.223.372.036.854.775.807)

    4. Repair search items by korey
    78a3c2007bb9bc4199dc8271c6fe6e42.png

    or buy system from metin2global:


    pw or skype: kronzu.mpc

  2. Now i can't close the window for button.


    only Esc.
    sysser:
    Traceback (most recent call last):
      File "ui.py", line 1372, in CallEvent
      File "game.py", line 1468, in <lambda>
      File "game.py", line 1510, in RequestDestroyItem1
    NameError: global name 'attachedType' is not defined

        def RequestDestroyItem1(self, answer):
            if answer:
                dropType = self.itemDropQuestionDialog.dropType
                dropNumber = self.itemDropQuestionDialog.dropNumber
    	            itemDropQuestionDialog = uiCommon.QuestionDialogItem2()
                itemDropQuestionDialog.SetText(localeInfo.DESTROY2)
                itemDropQuestionDialog.SetDestroyEvent(lambda arg=TRUE: self.RequestDestroyItem(arg))
                itemDropQuestionDialog.SetCancelEvent(lambda arg=FALSE: self.RequestDropItem(arg))
                itemDropQuestionDialog.Open()
                itemDropQuestionDialog.dropType = attachedType
                itemDropQuestionDialog.dropNumber = attachedItemSlotPos
                itemDropQuestionDialog.dropCount = attachedItemCount
                self.itemDropQuestionDialog = itemDropQuestionDialog
    	            constInfo.SET_ITEM_DROP_QUESTION_DIALOG_STATUS(1)
    

    b08426fcc0252d6cfd656641712e9b9f.gif

  3. Hi, I want a little change because someone might accidentally click the Remove button.
    I tried to do as gif: a8790a968532eb4289aa991823f20435.gif

    But as you can see when you click "Usuń" does not remove the object and does not close the window.
    I did this: http://pastebin.com/4afZVsei


     
    	sysser:
    Traceback (most recent call last):
      File "ui.py", line 1372, in CallEvent
      File "game.py", line 1507, in <lambda>
      File "game.py", line 1541, in RequestDestroyItem
    AttributeError: 'QuestionDialogItem2' object has no attribute 'dropType'
    	game.py:
    	on def __DropItem(self, attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount):                itemDropQuestionDialog = uiCommon.QuestionDialogItem()
    	...
                    itemDropQuestionDialog.SetText(questionText)
                    itemDropQuestionDialog.SetAcceptEvent(lambda arg=TRUE: self.RequestDropItem(arg))
                    itemDropQuestionDialog.SetDestroyEvent(lambda arg=TRUE: self.RequestDestroyItem1(arg))
                    itemDropQuestionDialog.SetCancelEvent(lambda arg=FALSE: self.RequestDropItem(arg))
                    itemDropQuestionDialog.Open()
                    itemDropQuestionDialog.dropType = attachedType
                    itemDropQuestionDialog.dropNumber = attachedItemSlotPos
                    itemDropQuestionDialog.dropCount = attachedItemCount
                    self.itemDropQuestionDialog = itemDropQuestionDialog
    	                constInfo.SET_ITEM_DROP_QUESTION_DIALOG_STATUS(1)
    ...
    	    def RequestDestroyItem1(self, answer):
            if answer:
                dropType = self.itemDropQuestionDialog.dropType
                dropNumber = self.itemDropQuestionDialog.dropNumber
    	            itemDropQuestionDialog = uiCommon.QuestionDialogItem2()
                itemDropQuestionDialog.SetText(localeInfo.DESTROY2)
                itemDropQuestionDialog.SetDestroyEvent(lambda arg=TRUE: self.RequestDestroyItem(arg))
                itemDropQuestionDialog.SetCancelEvent(lambda arg=FALSE: self.RequestDropItem(arg))
                itemDropQuestionDialog.Open()
                self.itemDropQuestionDialog = itemDropQuestionDialog
    	            constInfo.SET_ITEM_DROP_QUESTION_DIALOG_STATUS(1)
    	uicommon.py:
    class QuestionDialogItem2(ui.ScriptWindow):
        def __init__(self):
            ui.ScriptWindow.__init__(self)
            self.__CreateDialog()
    	    def __del__(self):
            ui.ScriptWindow.__del__(self)
    	    def __CreateDialog(self):
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, "uiscript/questiondialogitem2.py")
    	        self.board = self.GetChild("board")
            self.textLine = self.GetChild("message")
            self.destroyButton = self.GetChild("destroy")
            self.cancelButton = self.GetChild("cancel")
    	    def Open(self):
            self.SetCenterPosition()
            self.SetTop()
            self.Show()
    	    def Close(self):
            self.Hide()
    	    def SetWidth(self, width):
            height = self.GetHeight()
            self.SetSize(width, height)
            self.board.SetSize(width, height)
            self.SetCenterPosition()
            self.UpdateRect()
    	    def SAFE_SetCancelEvent(self, event):
            self.cancelButton.SAFE_SetEvent(event)
    	    def SetDestroyEvent(self, event):
            self.destroyButton.SetEvent(event)
    	    def SetCancelEvent(self, event):
            self.cancelButton.SetEvent(event)
    	    def SetText(self, text):
            self.textLine.SetText(text)
    	    def SetCancelText(self, text):
            self.cancelButton.SetText(text)
    	    def OnPressEscapeKey(self):
            self.Close()
            return TRUE
    	questiondialogitem2.py:
    	import uiScriptLocale
    	window = {
        "name" : "QuestionDialog",
        "style" : ("movable", "float",),
    	    "x" : SCREEN_WIDTH/2 - 125,
        "y" : SCREEN_HEIGHT/2 - 52,
    	    "width" : 340,
        "height" : 105,
    	    "children" :
        (
            {
                "name" : "board",
                "type" : "board",
    	            "x" : 0,
                "y" : 0,
    	            "width" : 340,
                "height" : 105,
    	            "children" :
                (
                    {
                        "name" : "message",
                        "type" : "text",
    	                    "x" : 0,
                        "y" : 38,
    	                    "horizontal_align" : "center",
                        "text" : uiScriptLocale.MESSAGE,
    	                    "text_horizontal_align" : "center",
                        "text_vertical_align" : "center",
                    },
                    {
                        "name" : "destroy",
                        "type" : "button",
    	                    "x" : -60,
                        "y" : 63,
    	                    "width" : 61,
                        "height" : 21,
    	                    "horizontal_align" : "center",
                        "text" : uiScriptLocale.DESTROY,
    	                    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                        "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                        "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                    },
                    {
                        "name" : "cancel",
                        "type" : "button",
    	                    "x" : 60,
                        "y" : 63,
    	                    "width" : 61,
                        "height" : 21,
    	                    "horizontal_align" : "center",
                        "text" : uiScriptLocale.NO,
    	                    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                        "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                        "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                    },
                ),
            },
        ),
    }
    


    Could someone take a look something, advise or something?

    • Metin2 Dev 1
    • Love 1
  4. Hello, when i add to blend.txt this:

    section
        item_vnum    50827
        apply_type    MAX_HP
        apply_value    5000    5000    5000    5000    5000
        apply_duration    600    600    600    600    600
    end
    section
        item_vnum    50828
        apply_type    ATT_BONUS_TO_MONSTER
        apply_value    15    15    15    15    15
        apply_duration    600    600    600    600    600
    end
    section
        item_vnum    50829
        apply_type    ATTBONUS_DEVIL
        apply_value    15    15    15    15    15
        apply_duration    600    600    600    600    600
    end
    section
        item_vnum    50830
        apply_type    ATTBONUS_MILGYO
        apply_value    15    15    15    15    15
        apply_duration    600    600    600    600    600
    end
    section
        item_vnum    50831
        apply_type    ATTBONUS_UNDEAD
        apply_value    15    15    15    15    15
        apply_duration    600    600    600    600    600
    end
    section
        item_vnum    50832
        apply_type    ATTBONUS_ORC
        apply_value    15    15    15    15    15
        apply_duration    600    600    600    600    600
    end
    section
        item_vnum    50833
        apply_type    ATTBONUS_HUMAN
        apply_value    15    15    15    15    15
        apply_duration    600    600    600    600    600
    end
    section
        item_vnum    50834
        apply_type    STR
        apply_value    15    15    15    15    15
        apply_duration    600    600    600    600    600
    end
    section
        item_vnum    50835
        apply_type    CON
        apply_value    15    15    15    15    15
        apply_duration    600    600    600    600    600
    end
    section
        item_vnum    50836
        apply_type    DEX
        apply_value    15    15    15    15    15
        apply_duration    600    600    600    600    600
    end
    

    this 2 no work:

    section
        item_vnum    50830
        apply_type    ATTBONUS_MILGYO
        apply_value    15    15    15    15    15
        apply_duration    600    600    600    600    600
    end
    section
        item_vnum    50832
        apply_type    ATTBONUS_ORC
        apply_value    15    15    15    15    15
        apply_duration    600    600    600    600    600
    end
    

    Maybe someone knows why?

    error:
    screen: 30ac1ffe27baafbab4dc81cfab01e2f8.jpega764157c0db3b279582ded7df1e613fe.jpeg
    video: 

     

  5. 2 hours ago, hachiwari said:

    hehe

    My tip:

    in offline_shop.cpp,offlineshop_manager.cpp and char.cpp everywhere where have you

     

    
    attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4................
    
    
     

    you have to change to

     

    
    ,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalue6,applytype0,applyvalue0,applytype1,applyvalue1,applytype2,applyvalue2,applytype3,applyvalue3,applytype4,applyvalue4,applytype5,applyvalue5,applytype6,applyvalue6,applytype7,applyvalue7
    
    
     

    and adapt code to change. :)

    good luck. 

     

    Ps. I had this bug today XD

    i try thanks.
    ---fix
    char.cpp and offlineshop_manager.cpp:
    http://wklej.to/KFteh
    offlineshop_manager.cpp:
    http://wklej.to/NZ0IA
    offlineshop_shop.cpp:
    http://wklej.to/boFtZ
    NAVICAT:
    http://wklej.to/oRp6t
    ---end_fix

    WORK!!! @fix thanks.

    • Love 1
  6. cheak
    85001    "xxx"    "ITEM_COSTUME"    "COSTUME_ACCE"    1    "ANTI_STACK"    "NONE"    "NONE"    "NONE"    0    0    0    0    0    "LEVEL"    25    "LIMIT_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    1    85002    0    1    0    0    100    0    0
    85002    "xxx"    "ITEM_COSTUME"    "COSTUME_ACCE"    1    "ANTI_STACK"    "NONE"    "NONE"    "NONE"    0    0    0    0    0    "LEVEL"    50    "LIMIT_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    2    85003    0    2    0    0    100    0    0
    85003    "xxx"    "ITEM_COSTUME"    "COSTUME_ACCE"    1    "ANTI_STACK"    "NONE"    "NONE"    "NONE"    0    0    0    0    0    "LEVEL"    75    "LIMIT_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    3    85004    0    3    0    0    100    0    0
    85004    "xxx"    "ITEM_COSTUME"    "COSTUME_ACCE"    1    "ANTI_STACK"    "NONE"    "NONE"    "NONE"    0    0    0    0    0    "LEVEL"    100    "LIMIT_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    4    0    0    4    0    0    100    0    0
    85005    "xxx"    "ITEM_COSTUME"    "COSTUME_ACCE"    1    "ANTI_STACK"    "NONE"    "NONE"    "NONE"    0    0    0    0    0    "LEVEL"    25    "LIMIT_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    1    85006    0    5    0    0    100    0    0
    85006    "xxx"    "ITEM_COSTUME"    "COSTUME_ACCE"    1    "ANTI_STACK"    "NONE"    "NONE"    "NONE"    0    0    0    0    0    "LEVEL"    50    "LIMIT_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    2    85007    0    6    0    0    100    0    0
    85007    "xxx"    "ITEM_COSTUME"    "COSTUME_ACCE"    1    "ANTI_STACK"    "NONE"    "NONE"    "NONE"    0    0    0    0    0    "LEVEL"    75    "LIMIT_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    3    85008    0    7    0    0    100    0    0
    85008    "xxx"    "ITEM_COSTUME"    "COSTUME_ACCE"    1    "ANTI_STACK"    "NONE"    "NONE"    "NONE"    0    0    0    0    0    "LEVEL"    100    "LIMIT_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    4    0    0    8    0    0    100    0    0

     

    See Value0 to Value5 in item_proto
    mine is different.

    0    Value1   2    3    4    5
    1    85002    0    1    0    0

     

    85000    ETC    icon/item/85000.tga
    85001    ETC    icon/item/85001.tga
    85002    ETC    icon/item/85002.tga
    85003    ETC    icon/item/85003.tga
    85004    ETC    icon/item/85004.tga
    85005    ETC    icon/item/85005.tga
    85006    ETC    icon/item/85006.tga
    85007    ETC    icon/item/85007.tga
    85008    ETC    icon/item/85008.tga
    85009    ETC    icon/item/85009.tga

    http://www.gg.pl/dysk/1DVWKxrowBdt1TVWKxrqBm0/root.rar
    http://www.gg.pl/dysk/b-H05r-iqmFtbuH05r-gbBs/wing.rar
    http://www.gg.pl/dysk/UPptfYLCSyFtUfptfYLAjVs/item.rar

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