Jump to content
×
×
  • Create New...
  • 0

see players life in general python


angelGamer

Question

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

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 : http://i.imgur.com/Avvbr4x.png

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

Spoiler

 

import uiHealth

Your file should look like this : http://i.imgur.com/J8PIMLd.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 : http://i.imgur.com/gnp17jI.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 : http://i.imgur.com/ibU9RxI.png

 

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

and add : 

import uiHealth

Your file should look like this : http://i.imgur.com/HGfnWX4.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 : http://i.imgur.com/1lEM3Qr.png

Add this in the root folder : 

Hidden Content

    Give reaction to this post to see the hidden content.

And run this quest : 

Hidden Content

    Give reaction to this post to see the hidden content.

 

Good luck.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 6
    2. 9

      Help in implementing a switch bot

    3. 0

      Special Inventory System Can't Sell To Npc's

    4. 0

      ROV2.GLOBAL | International | Server start 14.05.2022

    5. 75

      Services - System Ard [C ++ / Python / Lua]

    6. 76

      Chatting Window Renewal (Mini Version)

    7. 2

      ItemShop GM ZONE TAB

    8. 9

      Help in implementing a switch bot

  • Recently Browsing

    • No registered users viewing this page.

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.