Jump to content

joco1234

Member
  • Posts

    12
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by joco1234

  1. Hello there im just trying to figure out the solution and maybe if you use any check like this:

     

    Spoiler

        if (m_GraphicThingInstance.GetCurrentMotionIndex() < CRaceMotionData::NAME_CLAP || m_GraphicThingInstance.GetCurrentMotionIndex() == CRaceMotionData::NAME_DIG)
            if (eWeapon && eWeapon == m_GraphicThingInstance.GetPartItemID(CRaceData::PART_WEAPON))
                return;
        else
            if (eWeapon == m_GraphicThingInstance.GetPartItemID(CRaceData::PART_WEAPON))
                return;


    But maybe it's dump.

    • Metin2 Dev 2
  2. Hello guys so i just want to ask how can i make a locale_string_out.txt with my src ?

    so i have build_locale_string.py, merge file
    and build_locale_string.txt file is working but it doesn't have the numbers.

    and a merge file doesn't give me anything it not working.

    So if anyone has any information about this please share with me.

  3. I know this post is old but i figured out where was the problem.
    It was at the "ui.py" and inside the "class ImageBox(Window):"

    i just change the whole thing in this class just like this 

    #############################################

    class ImageBox(Window):
        def __init__(self, layer = "UI"):
            Window.__init__(self, layer)

            self.eventDict={}

        def __del__(self):
            Window.__del__(self)

        def RegisterWindow(self, layer):
            self.hWnd = wndMgr.RegisterImageBox(self, layer)

        def LoadImage(self, imageName):
            self.name=imageName
            wndMgr.LoadImage(self.hWnd, imageName)

            if len(self.eventDict)!=0:
                print "LOAD IMAGE", self, self.eventDict

        def SetAlpha(self, alpha):
            wndMgr.SetDiffuseColor(self.hWnd, 1.0, 1.0, 1.0, alpha)

        def GetWidth(self):
            return wndMgr.GetWidth(self.hWnd)

        def GetHeight(self):
            return wndMgr.GetHeight(self.hWnd)

        def OnMouseOverIn(self):
            try:
                self.eventDict["MOUSE_OVER_IN"]()
            except KeyError:
                pass

        def OnMouseOverOut(self):
            try:
                self.eventDict["MOUSE_OVER_OUT"]()
            except KeyError:
                pass

        def SAFE_SetStringEvent(self, event, func):
            self.eventDict[event]=__mem_func__(func)

     

    ############################################

    why am i writing this out?

    because I couldn't find a solution for this
    maybe someone found this post and make his life easier.
    peace out.

     

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