Am încercat să bag un system de hp ( Să vezi hp-ul oponentului în duel )
Şi îmi dă eroarea asta în syserr client .
Cod: Selectaţi tot
0709 19:23:59839 :: Traceback (most recent call last):
0709 19:23:59840 :: File "uiTarget.py", line 483, in OnUpdate
0709 19:23:59840 :: AttributeError
0709 19:23:59840 :: :
0709 19:23:59849 :: 'TargetBoard' object has no attribute 'healthBoard'
0709 19:23:59849 ::
Aici este uiTarget.py :
Cod: Selectaţi tot
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()
import event
import constinfo
if player.IsPVPInstance(self.vid):
constInfo.VID = self.vid
event.QuestButtonClick(constInfo.STHX)
483 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


