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!

ping for other team

Newbie Spellweaver
Joined
Dec 8, 2012
Messages
54
Reaction score
1
I have a problem in TDM
A player can not see the ping of the other player from the other team.
I do not know to compile something I can compile a neat problem (cluster says how to fix the problem)?
Please Helpppppp!!!!!
I know you have to do it this way:
ZCombatInterface.cpp
Code:
		//Wizkidz
		if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
			|| bClanGame
			|| ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
			|| ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
			|| ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
		{
fix

Code:
		//Wizkidz
		if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
			|| bClanGame
		{

But I do not know Please compile compile it to me!
Through the back with something that can get me the software it uses to compile and teach me so thanks: D
My Skype is: zavi22051
 
Last edited:
Newbie Spellweaver
Joined
Jul 2, 2011
Messages
78
Reaction score
21
ZCombatInterface.cpp
Code:
        //Wizkidz
        if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
            || bClanGame
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
        {
fix

Code:
        //Wizkidz
        if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
            || bClanGame
        {
is team mode to solve the exp problem.


how about this?
Code:
        /*//Wizkidz
        if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
            || bClanGame
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
        {
            bool bDraw = m_Observer.IsVisible();

            ZCharacterManager::iterator itor = ZGetGame()->m_CharacterManager.find( pItem->uidUID);
            //Gunz HP/AP Scoreboard
                        if ( itor != ZGetGame()->m_CharacterManager.end())
                        {
                                ZCharacter* pQuestPlayerInfo = (*itor).second;

                                if (pQuestPlayerInfo->GetTeamID() != ZGetGame()->m_pMyCharacter->GetTeamID()) {
                                    continue;
                                }
 
                                MCOLOR tmpColor = pDC->GetColor();
 
                                x=ITEM_XPOS[2];
                                bDraw = true;
 
                                if ( bDraw)
                                        pDC->SetColor( MCOLOR( 0x40FF0000));
                                else
                                        pDC->SetColor( MCOLOR( 0x30000000));
                                pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, 0.08*MGetWorkspaceWidth(), 7);
 
                                if ( bDraw)
                                {
                                        float nValue = 0.08 * pQuestPlayerInfo->GetHP() / pQuestPlayerInfo->GetMaxHP();
                                        pDC->SetColor( MCOLOR( 0x90FF0000));
                                        pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, nValue*MGetWorkspaceWidth(), 7);
                                }
 
                                if ( bDraw)
                                        pDC->SetColor( MCOLOR( 0x4000FF00));
                                else
                                        pDC->SetColor( MCOLOR( 0x30000000));
                                pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, 0.08*MGetWorkspaceWidth(), 3);
                                if ( bDraw)
                                {
                                        float nValue = 0.08 * pQuestPlayerInfo->GetAP() / pQuestPlayerInfo->GetMaxAP();
                                        pDC->SetColor( MCOLOR( 0x9000FF00));
                                        pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, nValue*MGetWorkspaceWidth(), 3);
                                }
 
                                pDC->SetColor( tmpColor);
 
                                x=ITEM_XPOS[3];
                                int nKills = 0;
                                ZModule_QuestStatus* pMod = (ZModule_QuestStatus*)pQuestPlayerInfo->GetModule(ZMID_QUESTSTATUS);
                                if (pMod)
                                        nKills = pMod->GetKills();
                                sprintf(szText,"%d", nKills);
                                TextRelative(pDC,x,texty,szText,true);
                        }
                }
        else
        {*/
 
Upvote 0
Initiate Mage
Joined
Jan 28, 2012
Messages
4
Reaction score
0
ZCombatInterface.cpp
Code:
        //Wizkidz
        if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
            || bClanGame
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
        {
fix

Code:
        //Wizkidz
        if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
            || bClanGame
        {
is team mode to solve the exp problem.


how about this?
Code:
        /*//Wizkidz
        if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
            || bClanGame
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
            || ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
        {
            bool bDraw = m_Observer.IsVisible();

            ZCharacterManager::iterator itor = ZGetGame()->m_CharacterManager.find( pItem->uidUID);
            //Gunz HP/AP Scoreboard
                        if ( itor != ZGetGame()->m_CharacterManager.end())
                        {
                                ZCharacter* pQuestPlayerInfo = (*itor).second;

                                if (pQuestPlayerInfo->GetTeamID() != ZGetGame()->m_pMyCharacter->GetTeamID()) {
                                    continue;
                                }
 
                                MCOLOR tmpColor = pDC->GetColor();
 
                                x=ITEM_XPOS[2];
                                bDraw = true;
 
                                if ( bDraw)
                                        pDC->SetColor( MCOLOR( 0x40FF0000));
                                else
                                        pDC->SetColor( MCOLOR( 0x30000000));
                                pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, 0.08*MGetWorkspaceWidth(), 7);
 
                                if ( bDraw)
                                {
                                        float nValue = 0.08 * pQuestPlayerInfo->GetHP() / pQuestPlayerInfo->GetMaxHP();
                                        pDC->SetColor( MCOLOR( 0x90FF0000));
                                        pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, nValue*MGetWorkspaceWidth(), 7);
                                }
 
                                if ( bDraw)
                                        pDC->SetColor( MCOLOR( 0x4000FF00));
                                else
                                        pDC->SetColor( MCOLOR( 0x30000000));
                                pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, 0.08*MGetWorkspaceWidth(), 3);
                                if ( bDraw)
                                {
                                        float nValue = 0.08 * pQuestPlayerInfo->GetAP() / pQuestPlayerInfo->GetMaxAP();
                                        pDC->SetColor( MCOLOR( 0x9000FF00));
                                        pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, nValue*MGetWorkspaceWidth(), 3);
                                }
 
                                pDC->SetColor( tmpColor);
 
                                x=ITEM_XPOS[3];
                                int nKills = 0;
                                ZModule_QuestStatus* pMod = (ZModule_QuestStatus*)pQuestPlayerInfo->GetModule(ZMID_QUESTSTATUS);
                                if (pMod)
                                        nKills = pMod->GetKills();
                                sprintf(szText,"%d", nKills);
                                TextRelative(pDC,x,texty,szText,true);
                        }
                }
        else
        {*/


i need compile Gunz.exe and the pings fix...
pliz help (I Zavi).
 
Upvote 0
Newbie Spellweaver
Joined
Sep 26, 2009
Messages
73
Reaction score
15
Line 2911 - line 2959

replace for:

//Wizkidz
if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType()))
{
bool bDraw = m_Observer.IsVisible();

ZCharacterManager::iterator itor = ZGetGame()->m_CharacterManager.find( pItem->uidUID);
if ( itor != ZGetGame()->m_CharacterManager.end())
{
ZCharacter* pQuestPlayerInfo = (*itor).second;

if (pQuestPlayerInfo->GetTeamID() != ZGetGame()->m_pMyCharacter->GetTeamID()) {
continue;
}

MCOLOR tmpColor = pDC->GetColor();

x=ITEM_XPOS[2];
bDraw = true;

pDC->SetColor( MCOLOR( 0x30000000));
pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, 0.08*MGetWorkspaceWidth(), 7);
float nValue = (0.08 * (pQuestPlayerInfo->GetHP() / pQuestPlayerInfo->GetMaxHP()));
pDC->SetColor( MCOLOR( 0xFFFF0000));
pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, nValue*MGetWorkspaceWidth(), 7);

pDC->SetColor( MCOLOR( 0x30000000));
pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, 0.08*MGetWorkspaceWidth(), 3);
float nValuee = (0.08 * (pQuestPlayerInfo->GetAP() / pQuestPlayerInfo->GetMaxAP()));
pDC->SetColor( MCOLOR( 0xFF00FF00));
pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, nValuee*MGetWorkspaceWidth(), 3);

pDC->SetColor( tmpColor);

x=ITEM_XPOS[3];
int nKills = 0;
ZModule_QuestStatus* pMod = (ZModule_QuestStatus*)pQuestPlayerInfo->GetModule(ZMID_QUESTSTATUS);
if (pMod)
nKills = pMod->GetKills();
sprintf(szText,"%d", nKills);
TextRelative(pDC,x,texty,szText,true);
}
}
else
{
x=ITEM_XPOS[2];
sprintf(szText, "%d",pItem->nExp);
TextRelative(pDC,x ,texty,szText,true);

MCOLOR color = pDC->GetColor();
 
Upvote 0
Junior Spellweaver
Joined
Dec 22, 2012
Messages
171
Reaction score
9
/*//Wizkidz
if ( ZGetGameTypeManager()->IsQuestDerived( ZGetGame()->GetMatch()->GetMatchType())
|| bClanGame
|| ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DEATHMATCH_TEAM
|| ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_GLADIATOR_TEAM
|| ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_CTF)
{
bool bDraw = m_Observer.IsVisible();

ZCharacterManager::iterator itor = ZGetGame()->m_CharacterManager.find( pItem->uidUID);
//Gunz HP/AP Scoreboard
if ( itor != ZGetGame()->m_CharacterManager.end())
{
ZCharacter* pQuestPlayerInfo = (*itor).second;

if (pQuestPlayerInfo->GetTeamID() != ZGetGame()->m_pMyCharacter->GetTeamID()) {
continue;
}

MCOLOR tmpColor = pDC->GetColor();

x=ITEM_XPOS[2];
bDraw = true;

if ( bDraw)
pDC->SetColor( MCOLOR( 0x40FF0000));
else
pDC->SetColor( MCOLOR( 0x30000000));
pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, 0.08*MGetWorkspaceWidth(), 7);

if ( bDraw)
{
float nValue = 0.08 * pQuestPlayerInfo->GetHP() / pQuestPlayerInfo->GetMaxHP();
pDC->SetColor( MCOLOR( 0x90FF0000));
pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+1, nValue*MGetWorkspaceWidth(), 7);
}

if ( bDraw)
pDC->SetColor( MCOLOR( 0x4000FF00));
else
pDC->SetColor( MCOLOR( 0x30000000));
pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, 0.08*MGetWorkspaceWidth(), 3);
if ( bDraw)
{
float nValue = 0.08 * pQuestPlayerInfo->GetAP() / pQuestPlayerInfo->GetMaxAP();
pDC->SetColor( MCOLOR( 0x9000FF00));
pDC->FillRectangleW( (x*MGetWorkspaceWidth()), texty*MGetWorkspaceHeight()+9, nValue*MGetWorkspaceWidth(), 3);
}

pDC->SetColor( tmpColor);

x=ITEM_XPOS[3];
int nKills = 0;
ZModule_QuestStatus* pMod = (ZModule_QuestStatus*)pQuestPlayerInfo->GetModule(ZMID_QUESTSTATUS);
if (pMod)
nKills = pMod->GetKills();
sprintf(szText,"%d", nKills);
TextRelative(pDC,x,texty,szText,true);
}
}
else
{*/


use this code its tested
 
Upvote 0
Back
Top