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

[New]Rank Question


PandiCore

Question

Hello I have a problem, I only show one grade and go only to the staff

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

 

And when I make a new normal account, that is, a player

 

 

​https://metin2.download/picture/RxeiK4MaD6gN94b5RKeUAGtpI1DF0h6N/.gif

 

 

 

The client gives me this error

 

 

 

0710 20:18:14204 :: Traceback (most recent call last):

 

 

 

0710 20:18:14204 :: File "game.py", line 673, in RefreshStatus

 

 

 

0710 20:18:14204 :: File "interfaceModule.py", line 549, in RefreshStatus

 

 

 

0710 20:18:14204 :: File "uiCharacter.py", line 553, in RefreshStatus

 

 

 

0710 20:18:14204 :: File "uiCharacter.py", line 656, in RefreshAlignment

 

 

 

0710 20:18:14205 :: IndexError

 

0710 20:18:14205 :: :

 

0710 20:18:14205 :: tuple index out of range

 

0710 20:18:14205 ::

 

 

 

Any solution :/

Modifié par Funky Emulation
Core X - External 2 Internal
Lien vers le commentaire
Partager sur d’autres sites

  • Réponses 1
  • Créé
  • Dernière réponse

Meilleurs contributeurs dans cette question

Meilleurs contributeurs dans cette question

1 réponse à cette question

Messages recommandés

  • 0
  • Robot

Well , I think you wanted to give a rank to the staff with the default system of rank.

Did you try to add this function in your client binary in InstanceBaseEffect.cpp :

 

Search this function :

 

static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f / 255.0f, 255.0f / 255.0f, 51.0f / 255.0f, 1.0f);char szText[256];sprintf(szText, "Lv. %d ", level);CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);

 

 

Add after the last line :

 

 

	if (IsGameMaster())	sprintf(szText, "Lv. %d |cFFFFCC00[sTAFF] |r ", level);	CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);

 

 

I tested and it is functionnal.

 

114146Sans-titre.jpg

 

 

Hmm after that, did you add a rank which use the function IsGameMaster or an other thing ? Can you show your code ?

french_banner.gif

Lien vers le commentaire
Partager sur d’autres sites

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.


  • brilliantdiscord_widget
  • Flux d'Activité

    1. 37
    2. 21

      Metin2 en 2020 peut-on en parler?

    3. 0

      METIN2Project

    4. 3

      Ressources - UnPack - Metin2 Client - Officiel

    5. 0

      Barre des tâches d'argent étendue

    6. 16

      Redémarrage automatique des channels

    7. 16

      Multi Logo GM / SGM / GA

  • En ligne récemment

    • Aucun utilisateur enregistré regarde cette page.

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.