*Problemă/Întrebare: Am si eu o mica problema nu imi arata descrierea la skilluri..
Tipologie server(PvM / PvP): n/a
*Resursă folosită: *Link exclusiv J4M*n/a
*ServerFiles utilizat:n/a
*Syserr:
0417 09:32:17758 :: Traceback (most recent call last):
0417 09:32:17758 :: File "ui.py", line 1987, in OnOverInItem
0417 09:32:17758 :: File "ui.py", line 88, in __call__
0417 09:32:17759 :: File "ui.py", line 79, in __call__
0417 09:32:17759 :: File "uiTaskBar.py", line 978, in OverInItem
0417 09:32:17759 :: File "uiToolTip.py", line 2679, in SetSkillNew
0417 09:32:17759 :: File "uiToolTip.py", line 2825, in AppendSkillDataNew
0417 09:32:17759 :: File "uiToolTip.py", line 2895, in AppendSkillLevelDescriptionNew
0417 09:32:17759 :: File "uiToolTip.py", line 3042, in AppendNeedSP
0417 09:32:17759 :: NameError
0417 09:32:17759 :: :
0417 09:32:17759 :: global name 'skillGrade' is not defined
0417 09:32:17759 ::
Problema skill-uri
- Fubuki.Atsuya
-

- Mesaje: 1968
- Membru din: 22 Iun 2015, 21:13
- Server: OldLegion2
- Regat: Shinsoo
- Aprecieri: 455
- Mulţumiri: 815
- Rezolvări prob.: 2
- Discord: Copiază ID
Mergi sus la inceputul fisierului si scrie import skillGrade,încearcă aşa..
- Pentru acest mesaj, Fubuki.Atsuya for the post:
- PandiCore
Ce naiba ...banuliciraul123 scrie: ↑20 Apr 2021, 10:47 Mergi sus la inceputul fisierului si scrie import skillGrade,încearcă aşa..
Vezi daca ai skillGrade = player.GetSkillGrade(slotIndex)
In Def SetSkill
- Pentru acest mesaj, Hunger a primit 2 (de) mulţumiri
- Fubuki.Atsuya • PandiCore
Exista...deja .Hunger scrie: ↑20 Apr 2021, 10:51Ce naiba ...banuliciraul123 scrie: ↑20 Apr 2021, 10:47 Mergi sus la inceputul fisierului si scrie import skillGrade,încearcă aşa..
Vezi daca ai skillGrade = player.GetSkillGrade(slotIndex)
In Def SetSkill
- Kidro
-

- Mesaje: 2487
- Membru din: 29 Aug 2019, 16:49
- Aprecieri: 331
- Mulţumiri: 5190
- Discord: Copiază ID
def AppendNeedSP(self, needSP, continuationSP, color):
inlocuieste cu
def AppendNeedSP(self, needSP, continuationSP, color, skillGrade):
dar dupa ce m am uitat mai atent ..
tu nu ai
def AppendPartySkillData(self, skillGrade, skillLevel):
care vine sub tot
def AppendNeedSP
def AppendNeedSP(self, needSP, continuationSP, color): si de ce naiba il ai de 2 ori..
sterge l pe asta de tot
def AppendNeedSP(self, needSP, continuationSP, color):
if -1 == needSP:
self.AppendTextLine(localeInfo.TOOLTIP_NEED_ALL_SP, color)
iar pe celalalt def AppendNeedSP inlocuieste-l cu
def AppendNeedSP(self, needSP, continuationSP, color):
if -1 == needSP:
self.AppendTextLine(localeInfo.TOOLTIP_NEED_ALL_SP, color)
else:
self.AppendTextLine(localeInfo.TOOLTIP_NEED_SP % (needSP), color)
if continuationSP > 0:
self.AppendTextLine(localeInfo.TOOLTIP_NEED_SP_PER_SEC % (continuationSP), color)
def AppendPartySkillData(self, skillGrade, skillLevel):
if 1 == skillGrade:
skillLevel += 19
elif 2 == skillGrade:
skillLevel += 29
elif 3 == skillGrade:
skillLevel = 40
if skillLevel <= 0:
return
skillIndex = player.SKILL_INDEX_TONGSOL
slotIndex = player.GetSkillSlotIndex(skillIndex)
skillPower = player.GetSkillCurrentEfficientPercentage(slotIndex)
if localeInfo.IsBRAZIL():
k = skillPower
else:
k = player.GetSkillLevel(skillIndex) / 100.0
self.AppendSpace(5)
self.AutoAppendTextLine(localeInfo.TOOLTIP_PARTY_SKILL_LEVEL % skillLevel, self.NORMAL_COLOR)
if skillLevel>=10:
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_ATTACKER % chop( 10 + 60 * k ))
if skillLevel>=20:
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_BERSERKER % chop(1 + 5 * k))
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_TANKER % chop(50 + 1450 * k))
if skillLevel>=25:
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_BUFFER % chop(5 + 45 * k ))
if skillLevel>=35:
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_SKILL_MASTER % chop(25 + 600 * k ))
if skillLevel>=40:
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_DEFENDER % chop( 5 + 30 * k ))
self.AlignHorizonalCenter()
inlocuieste cu
def AppendNeedSP(self, needSP, continuationSP, color, skillGrade):
dar dupa ce m am uitat mai atent ..
tu nu ai
def AppendPartySkillData(self, skillGrade, skillLevel):
care vine sub tot
def AppendNeedSP
def AppendNeedSP(self, needSP, continuationSP, color): si de ce naiba il ai de 2 ori..
sterge l pe asta de tot
def AppendNeedSP(self, needSP, continuationSP, color):
if -1 == needSP:
self.AppendTextLine(localeInfo.TOOLTIP_NEED_ALL_SP, color)
iar pe celalalt def AppendNeedSP inlocuieste-l cu
def AppendNeedSP(self, needSP, continuationSP, color):
if -1 == needSP:
self.AppendTextLine(localeInfo.TOOLTIP_NEED_ALL_SP, color)
else:
self.AppendTextLine(localeInfo.TOOLTIP_NEED_SP % (needSP), color)
if continuationSP > 0:
self.AppendTextLine(localeInfo.TOOLTIP_NEED_SP_PER_SEC % (continuationSP), color)
def AppendPartySkillData(self, skillGrade, skillLevel):
if 1 == skillGrade:
skillLevel += 19
elif 2 == skillGrade:
skillLevel += 29
elif 3 == skillGrade:
skillLevel = 40
if skillLevel <= 0:
return
skillIndex = player.SKILL_INDEX_TONGSOL
slotIndex = player.GetSkillSlotIndex(skillIndex)
skillPower = player.GetSkillCurrentEfficientPercentage(slotIndex)
if localeInfo.IsBRAZIL():
k = skillPower
else:
k = player.GetSkillLevel(skillIndex) / 100.0
self.AppendSpace(5)
self.AutoAppendTextLine(localeInfo.TOOLTIP_PARTY_SKILL_LEVEL % skillLevel, self.NORMAL_COLOR)
if skillLevel>=10:
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_ATTACKER % chop( 10 + 60 * k ))
if skillLevel>=20:
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_BERSERKER % chop(1 + 5 * k))
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_TANKER % chop(50 + 1450 * k))
if skillLevel>=25:
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_BUFFER % chop(5 + 45 * k ))
if skillLevel>=35:
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_SKILL_MASTER % chop(25 + 600 * k ))
if skillLevel>=40:
self.AutoAppendTextLine(localeInfo.PARTY_SKILL_DEFENDER % chop( 5 + 30 * k ))
self.AlignHorizonalCenter()
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 5 vizitatori


