Aller au contenu
PandiCore

[New]Rank Question

Messages recommandés

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

 

https://i.gyazo.com/830b1575b81b4afbbc3e602a42a50bdd.gif

 

 

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

 

 

​https://i.gyazo.com/39fd43021672976b458c4d3afef00a6f.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 :/

Partager ce message


Lien à poster
Partager sur d’autres sites

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 ?

Partager ce message


Lien à poster
Partager sur d’autres sites
Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.

A propos de nous

Funky-Emulation

© Funky Emulation est un forum d'entraide à l'émulation de différents jeux vidéo comme Metin 2, Dofus, World of Warcraft.

Rejoignez une communauté soudée et sympathique.

Réseaux Sociaux

Partenaires

Top Paradise

×

Information importante

By using this site, you agree to our Conditions d’utilisation.