Aller au contenu
Top-Metin2.org - Vous êtes à la recherche d'un serveur Metin 2 ? ×
×
×
  • Créer...

Poseidon

Membre
  • Compteur de contenus

    5
  • Inscription

  • Dernière visite

À propos de Poseidon

Poseidon's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Réputation sur la communauté

  1. Super, les points disparaissent directement après avoir appuyé sur le +. Cependant, pour je ne sais quel raison, au bout du 6ème clique, l'actualisation ne survient pas et donc ça reste fixe, je suis obligé d'appuyé 2x. De plus, lorsque je passe de HP à INT par exemple, ça va pas s'actualiser directement, il faut que j'appuie plusieurs fois. Merci de ton aide
  2. def upstates(self,i): if i == 0: command = "/stat ht" elif i == 1: command = "/stat iq" elif i == 2: command = "/stat st" elif i == 3: command = "/stat dx" net.SendChatPacket(command) OnUpdate() Syserr: 0914 15:48:30487 :: Traceback (most recent call last): 0914 15:48:30487 :: File "ui.py", line 1532, in CallEvent 0914 15:48:30487 :: File "uiCharacter_new.py", line 422, in 0914 15:48:30487 :: File "uiCharacter_new.py", line 913, in upstates 0914 15:48:30487 :: NameError 0914 15:48:30487 :: : 0914 15:48:30487 :: global name 'OnUpdate' is not defined 0914 15:48:30487 ::
  3. Je n'ai pas de def __OnClickStatusPlusButton. Au pire vue que c'est que la première version du code, je veux bien te le montrer en entier:
  4. Lorsque j'appuie sur le bouton + le point de statistique est bien attribué mais je suis obligé de fermer et de ré-ouvrir la gui pour voir le changement pareils pour les pv,et les autres cases Je pense que c'est ce bout de code qui est concerné def OnUpdate(self): #self.RefreshSkillPlusPointLabel() #self.activeSkillPointValue.SetText("testt update" + str(player.GetStatus(player.SKILL_HORSE))) #import dbg #self.activeSkillPointValue.SetText("Puncte disponibile:" + str(player.GetStatus(player.SKILL_HORSE))) characterName = player.GetName() self.text[1].SetText(str(player.GetGuildName())) self.lv.SetText(str(player.GetStatus(player.LEVEL))) self.imgexp[1].SetPercentage(unsigned32(player.GetEXP()),unsigned32(player.GetStatus(player.NEXT_EXP))) curPoint = unsigned32(player.GetStatus(player.EXP)) maxPoint = unsigned32(player.GetStatus(player.NEXT_EXP)) curPoint = min(curPoint, maxPoint) curPoint = max(curPoint, 0) maxPoint = max(maxPoint, 0) self.percent.SetText("%s %.2f%%" % ("", float(curPoint) / max(1, float(maxPoint)) * 100)) # self.percent.SetText("%.2f%%" % (localeInfo.TASKBAR_EXP, float(curPoint) / max(1, float(maxPoint)) * 100)) self.exp.SetText("EXP: "+str(curPoint)+ " " +uiScriptLocale.CHARACTER_FROM +" "+str(maxPoint)) if self.page == 0: statusPlusPoint=player.GetStatus(player.STAT) self.points[0].SetText(str(player.GetStatus(player.HT))) self.points[1].SetText(str(player.GetStatus(player.IQ))) self.points[2].SetText(str(player.GetStatus(player.ST))) self.points[3].SetText(str(player.GetStatus(player.DX))) self.valori_chenare[0].SetText(str(player.GetStatus(player.HP)) + ' / ' + str(player.GetStatus(player.MAX_HP))) self.valori_chenare[1].SetText(str(player.GetStatus(player.SP)) + ' / ' + str(player.GetStatus(player.MAX_SP))) if statusPlusPoint>0: for i in xrange(4): self.btns[i].Show() else: for i in xrange(4): if self.btns[i] != None: self.btns[i].Hide() self.puncte.SetText(str(player.GetStatus(player.STAT))) elif self.page == 1: self.valor_t = { 0 : player.GetStatus(player.MOVING_SPEED), 1 : player.GetStatus(player.ATT_SPEED), 2 : player.GetStatus(player.CASTING_SPEED), 3 : self.__GetTotalMagAtkText(), 4 : self.__GetTotalAtkText(), 5 : player.GetStatus(player.MAG_DEF), 6 : self.__GetTotalDefText(), 7 : player.GetStatus(player.EVADE_RATE), } for i in xrange(8): self.valor[i].SetText(str(self.valor_t[i])) elif self.page == 2: self.array = { 0 : "Statistica Bonusuri*", 1 : localeInfo.TOOLTIP_HP_REGEN(player.GetStatus(32)), 2 : localeInfo.TOOLTIP_SP_REGEN(player.GetStatus(33)), 3 : localeInfo.TOOLTIP_APPLY_STEAL_HP(player.GetStatus(63)), 4 : localeInfo.TOOLTIP_APPLY_STEAL_SP(player.GetStatus(64)), 5 : localeInfo.TOOLTIP_NORMAL_HIT_DAMAGE_BONUS(player.GetStatus(player.POINT_NORMAL_HIT_DAMAGE_BONUS)), 6 : localeInfo.TOOLTIP_SKILL_DAMAGE_BONUS(player.GetStatus(player.POINT_SKILL_DAMAGE_BONUS)), 7 : localeInfo.TOOLTIP_APPLY_ATTBONUS_HUMAN(player.GetStatus(43)), 8 : localeInfo.TOOLTIP_APPLY_ATTBONUS_WARRIOR(player.GetStatus(54)), 9 : localeInfo.TOOLTIP_APPLY_ATTBONUS_ASSASSIN(player.GetStatus(55)), 10 : localeInfo.TOOLTIP_APPLY_ATTBONUS_SURA(player.GetStatus(56)), 11 : localeInfo.TOOLTIP_APPLY_ATTBONUS_SHAMAN(player.GetStatus(57)), 12 : localeInfo.TOOLTIP_APPLY_ATTBONUS_MONSTER(player.GetStatus(53)), 13 : localeInfo.TOOLTIP_APPLY_ATTBONUS_UNDEAD(player.GetStatus(47)), 14 : localeInfo.TOOLTIP_APPLY_ATTBONUS_DEVIL(player.GetStatus(48)), 15 : localeInfo.TOOLTIP_APPLY_POISON_PCT(player.GetStatus(37)), 16 : localeInfo.TOOLTIP_APPLY_STUN_PCT(player.GetStatus(38)), 17 : localeInfo.TOOLTIP_APPLY_SLOW_PCT(player.GetStatus(39)), 18 : localeInfo.TOOLTIP_APPLY_CRITICAL_PCT(player.GetStatus(40)), 19 : localeInfo.TOOLTIP_APPLY_PENETRATE_PCT(player.GetStatus(41)), 20 : localeInfo.TOOLTIP_APPLY_RESIST_WARRIOR(player.GetStatus(59)), 21 : localeInfo.TOOLTIP_APPLY_RESIST_ASSASSIN(player.GetStatus(60)), 22 : localeInfo.TOOLTIP_APPLY_RESIST_SURA(player.GetStatus(61)), 23 : localeInfo.TOOLTIP_APPLY_RESIST_SHAMAN(player.GetStatus(62)), 24 : localeInfo.TOOLTIP_APPLY_RESIST_SWORD(player.GetStatus(69)), 25 : localeInfo.TOOLTIP_APPLY_RESIST_TWOHAND(player.GetStatus(70)), 26 : localeInfo.TOOLTIP_APPLY_RESIST_DAGGER(player.GetStatus(71)), 27 : localeInfo.TOOLTIP_RESIST_BOW(player.GetStatus(74)), 28 : localeInfo.TOOLTIP_APPLY_RESIST_FAN(player.GetStatus(73)), 29 : localeInfo.TOOLTIP_APPLY_RESIST_BELL(player.GetStatus(72)), 30 : localeInfo.TOOLTIP_RESIST_MAGIC(player.GetStatus(77)), 31 : localeInfo.TOOLTIP_APPLY_BLOCK(player.GetStatus(67)), 32 : localeInfo.TOOLTIP_APPLY_REFLECT_MELEE(player.GetStatus(79)), 33 : localeInfo.TOOLTIP_APPLY_DODGE(player.GetStatus(68)), } if len(self.array) >= 8: self.obj_count = 8 else: self.obj_count = len(self.array) u = 0 pos = self.objPos for i in xrange(self.obj_count): realPos = pos+i cmd = self.array[int(realPos)] if cmd.find("*") > 0: cmd = cmd.replace("*","") self.bonus[i].SetFontColor(0.902, 0.816, 0.635) self.bonus[i].SetWindowHorizontalAlignCenter() self.bonus[i].SetHorizontalAlignCenter() self.bonus[i].SetPosition(0,50+u) self.bonus[i].SetText(cmd) u+=25 self.objPos = self.scrollbar.GetPos() * (len(self.array)-8) self.LoadScroll() elif self.page == 3: if self.is_over_in == 0: self.__RefreshSkillPage("SUPPORT", self.SUPPORT_PAGE_SLOT_COUNT) self.RefreshStatus() self.RefreshSkill() elif self.page == 6: self.__UpdateQuestClock() ################################ Page 4 ################################ ################################ Alignment Start ################################ if self.inputs[0].IsIn(): point, grade = player.GetAlignmentData() import colorInfo COLOR_DICT = { 0 : colorInfo.TITLE_RGB_GOOD_4, 1 : colorInfo.TITLE_RGB_GOOD_3, 2 : colorInfo.TITLE_RGB_GOOD_2, 3 : colorInfo.TITLE_RGB_GOOD_1, 4 : colorInfo.TITLE_RGB_NORMAL, 5 : colorInfo.TITLE_RGB_EVIL_1, 6 : colorInfo.TITLE_RGB_EVIL_2, 7 : colorInfo.TITLE_RGB_EVIL_3, 8 : colorInfo.TITLE_RGB_EVIL_4, } colorList = COLOR_DICT.get(grade, colorInfo.TITLE_RGB_NORMAL) gradeColor = ui.GenerateColor(colorList[0], colorList[1], colorList[2]) self.toolTipAlignment.ClearToolTip() self.toolTipAlignment.AutoAppendTextLine(localeInfo.TITLE_NAME_LIST[grade], gradeColor) self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGNMENT_NAME + str(point)) self.toolTipAlignment.AlignHorizonalCenter() self.toolTipAlignment.ShowToolTip() else: self.toolTipAlignment.HideToolTip()
  5. Bonjour à tous et à toute. Le soucis rencontré est la méthode refresh, j'aimerais que quand j'appuie sur le bouton "+", les caractéristiques s'actualisent automatiquement et pareil pour ce qui est de la mana, la vie etc... Bonne journée et merci.

Information importante

Conditions d’utilisation / Politique de confidentialité / Règles / Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.