Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Name Tags 1.5

Mocro.net
Joined
Feb 3, 2008
Messages
690
Reaction score
96
Somthing small i used switch for the staff and donate tags dead tags is used with if command:
Mocro - Name Tags 1.5 - RaGEZONE Forums

Mocro - Name Tags 1.5 - RaGEZONE Forums


For Lobby and gameroom tag:
ZGameclient.cpp find:

Code:
wsprintf(szText, "%s : %s", sp_name , szChat);

Code:
        switch(gid)
        {
        case 255 :
        wsprintf(szText, "[Staff]%s : %s", sp_name , szChat);
            break; 
        case 254:
        wsprintf(szText, "[Staff]%s : %s", sp_name , szChat);
            break;
        case 10:
        wsprintf(szText, "[Donate]%s : %s", sp_name , szChat);
            break;
        }

again search:

Code:
wsprintf(szText, "%s : %s", sp_name , szChat);

Replace with :
Code:
        switch(gid)
        {
        case 255 :
        wsprintf(szText, "[Staff]%s : %s", sp_name , szChat);
            break; 
        case 254:
        wsprintf(szText, "[Staff]%s : %s", sp_name , szChat);
            break;
        case 10:
        wsprintf(szText, "[Donate]%s : %s",sp_name , szChat);
            break;
        }

For Dead tag:
zgame.cpp find:
Code:
sprintf(szTemp, "%s : %s", pChar->GetProperty()->GetName(),szMsg);

replace with:

Code:
                        if(pChar->IsDie())
                            {
                                sprintf(szTemp, "^0(Dead)%s : %s", pChar->GetProperty()->GetName(),szMsg);
                            }else{
                            sprintf(szTemp, "%s : %s", pChar->GetProperty()->GetName(),szMsg);
                            }


Credits:

  • Duluxe (unmask 100%)
  • sahar042 (dead tag)
 
Good Guy George
Member
Joined
Apr 12, 2009
Messages
1,260
Reaction score
239
That's cool instead of rewritting character name, and why only in lobby/stage? You can do it in game too, ZGame.cpp, where the [DEAD] tag ;)
 
Mocro.net
Joined
Feb 3, 2008
Messages
690
Reaction score
96
That's cool instead of rewritting character name, and why only in lobby/stage? You can do it in game too, ZGame.cpp, where the [DEAD] tag ;)

i know but dont want to use tags i dont like it :p
 
Custom Title Activated
Member
Joined
Feb 18, 2012
Messages
1,433
Reaction score
391
Nice release Mocro and thanks for adding me on the credits, wasnt expecting it ;P
 
Junior Spellweaver
Joined
Apr 28, 2012
Messages
114
Reaction score
22
Code:
if((gid == MMUG_DEVELOPER))
wsprintf(szText, "[DEV]%s : %s", sp_name , szChat);
else if((gid == MMUG_ADMIN))
wsprintf(szText, "[ADM]%s : %s", sp_name , szChat);
 
Last edited:
Good Guy George
Member
Joined
Apr 12, 2009
Messages
1,260
Reaction score
239
Code sucks..

Code:
if((gid == MMUG_DEVELOPER))
wsprintf(szText, "[DEV]%s : %s", sp_name , szChat);
else if((gid == MMUG_ADMIN))
wsprintf(szText, "[ADM]%s : %s", sp_name , szChat);
Actually,
case 255:
case 254:
case 252:
case X:
is shorter and same poop.

Great i had 666 Posts now you ruin it xd
 
Back
Top