Vous devez être connecté et donner une réaction ( Like ) au sujet pour débloquer les liens de téléchargements...
  • 0
Sign in to follow this  

en cours [New]Rank Question


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





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







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 :/

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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.





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

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this