Jump to content

see players life in general python


Recommended Posts

I've been looking for this system but customer python 34k 

 

https://metin2.download/picture/tC7zdId33FVWHXGLVOm8V4ThfH0eK4gD/.png

there will be such a system? but python? I have long been looking for him and not even as it is called.

help me please :C

excuse my bad English

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 2 months later...

Go to pack folder and decrypt root.eix/root.epk.
Open costinfo.py and go down and add :
 

Spoiler

INPUT_IGNORE = 0
 
VID = 0
STHX = 0
HPXD = 0
 
PLAYER_HP = 0
PLAYER_MAX_HP = 0
PLAYER_SP = 0
PLAYER_MAX_SP = 0
PLAYER_NAME = ""

Your file should look like this : https://metin2.download/picture/Y5KIL1gC9x2sI8xxi9JgL2x2dz0fGAgt/.png

Now, open game.py and ui character.py and add : 
 

Spoiler

 

import uiHealth

Your file should look like this : https://metin2.download/picture/HRDjPPpZaAIRl4x66WECoq95wkRxPbi1/.png

Now, in game.py , under this line 

sub (seflf. __PlayMusic

you add this thing 

Spoiler

                        #hp
                        "super_quest"                           : self.Tabulejtor,
                        "pvp_zdruwko"                           : self.Mozart,
                       
                        #hp
                        "get_input_value"                               : self.GetInputValue,
                        "get_input_start"                               : self.GetInputOn,
                        "get_input_end"                                 : self.GetInputOff,

Now your file should look like this : https://metin2.download/picture/vGo7PL4432674jQ9U28h3StWp4Sp0dP9/.png
 

In game.py under this line :  (def OpenQuestWindow(self, skin, idx)

Paste this : 

Spoiler

        def Mozart(self, data):
                dane = data.split("|")
                constInfo.PLAYER_NAME = str(dane[0])
                constInfo.PLAYER_HP = int(dane[1])
                constInfo.PLAYER_MAX_HP = int(dane[2])
                constInfo.PLAYER_SP = int(dane[3])
                constInfo.PLAYER_MAX_SP = int(dane[4])
 
        def Tabulejtor(self, id):
                constInfo.STHX = int(id)
 
        def GetInputOn(self):
                constInfo.INPUT_IGNORE = 1
 
        def GetInputOff(self):
                constInfo.INPUT_IGNORE = 0
 
        def GetInputValue(self):
                net.SendQuestInputStringPacket(str(constInfo.VID))
 
        def OpenQuestWindow(self, skin, idx):
                if constInfo.INPUT_IGNORE == 1:
                        return
                else:
                        self.interface.OpenQuestWindow(skin, idx)

Your file should look like this : https://metin2.download/picture/r583ObTZWhDEX78c0hwk7DyMJOpES1Qn/.png

 

In uitarget.py search this line :  (def Close(self) 

and add : 

import uiHealth

Your file should look like this : https://metin2.download/picture/I6g3yFNO3Yn77SZ08dJQruevOcW9BKms/.png

 

In uitarget.py in def OnUpdate structure you add this : 

Spoiler

        def OnUpdate(self):
                if self.isShowButton:
 
                        exchangeButton = self.buttonDict[locale.TARGET_BUTTON_EXCHANGE]
                        distance = player.GetCharacterDistance(self.vid)
 
                        if distance < 0:
                                return
 
                        if exchangeButton.IsShow():
                                if distance > self.EXCHANGE_LIMIT_RANGE:
                                        self.RefreshButton()
 
                        else:
                                if distance < self.EXCHANGE_LIMIT_RANGE:
                                        self.RefreshButton()
 
                        if exchangeButton.IsShow():
                                if distance > self.EXCHANGE_LIMIT_RANGE:
                                        self.RefreshButton()
 
                        else:
                                if distance < self.EXCHANGE_LIMIT_RANGE:
                                        self.RefreshButton()
               
                import event
                import constInfo
                if player.IsPVPInstance(self.vid):
                        constInfo.VID = self.vid
                        event.QuestButtonClick(constInfo.STHX)
                        if not self.healthBoard.IsShow() and self.vid != 0:
                                self.healthBoard.Show()
                else:
                        self.healthBoard.Hide()
                if self.isShowButton:
                        exchangeButton = self.buttonDict[locale.TARGET_BUTTON_EXCHANGE]
                        distance = player.GetCharacterDistance(self.vid)
                        if distance < 0:
                                return

It should look like this : https://metin2.download/picture/26TSOtF3B9V97ztjfaJI82jvj2fyaMn4/.png

Add this in the root folder : 

This is the hidden content, please

And run this quest : 

This is the hidden content, please

 

Good luck.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 2

      Feeding game source to LLM

    2. 0

      Target Information System

    3. 2

      Feeding game source to LLM

    4. 2

      anti exp explanation pls

    5. 2

      Feeding game source to LLM

    6. 2

      anti exp explanation pls

    7. 0

      [GR2] Positioning an object added with "Attach"

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.