• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

Solved Bug HP PLAYER BAR AND MOB TARGET INFO

Member
Jan
Threads
2
39
0
6
HubMoney
294
First bug: When i press click on player it shows me all the buttons but i can press only those who are seen in the bar because the bar it's half on how it supposed to be, but when i press double click on player it's look normal.
4uHC2rU


Second bug: It's shows the mob_target_info button on the player...
aXD7Q84
 
Metin2Hub Bot
M2Hub Bot
Feb
Threads
66
2,354
2
1,284
113
HubMoney
1,669
First bug: When i press click on player it shows me all the buttons but i can press only those who are seen in the bar because the bar it's half on how it supposed to be, but when i press double click on player it's look normal.
4uHC2rU


Second bug: It's shows the mob_target_info button on the player...
aXD7Q84

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
Member
Jan
Threads
2
39
0
6
HubMoney
294
Fix for button "?" mob_target_info on player
root/uitarget.py must add a new function like if vnum >= 101 then...

Solve:

Search: def SetEnemyVID(self, vid):

And replace with this or just add the function if vnum >= 101
Python:
    def SetEnemyVID(self, vid):
        self.SetTargetVID(vid)

        if app.ENABLE_SEND_TARGET_INFO:
            vnum = nonplayer.GetRaceNumByVID(vid)
        name = chr.GetNameByVID(vid)
        level = nonplayer.GetLevelByVID(vid)
        grade = nonplayer.GetGradeByVID(vid)

        nameFront = ""
        if -1 != level:
            nameFront += "Lv." + str(level) + " "
        if self.GRADE_NAME.has_key(grade):
            nameFront += "(" + self.GRADE_NAME[grade] + ") "

        self.SetTargetName(nameFront + name)
        
        if app.ENABLE_SEND_TARGET_INFO:
            if vnum >= 101:
                (textWidth, textHeight) = self.name.GetTextSize()

                self.infoButton.SetPosition(textWidth + 25, 12)
                self.infoButton.SetWindowHorizontalAlignLeft()

                self.vnum = vnum
                self.infoButton.Show()