About Master/Hero and Legend icons.

01/27/2013 15:57 raventh1984#1
Hai epvpers,

Maybe one of you can help me with this. Cause i an seeing it anymore.

I am working on the Icons for master/hero/legend with rebirth system

Now what i want is that someone that have an rebirth1 is seeing master icon and rebirth1 icon.
Thats not an big of deal cause i have it done.

However when an user logs in and dont have an rebirth he is seeing only the master icon from the person who has rebirth.

Screens
Rebirth
[Only registered and activated users can see links. Click Here To Register...]


No Rebirth
[Only registered and activated users can see links. Click Here To Register...]


This is what my moverrender looks like

I also tried it with
g_pPlayer->m_nCampuspoint also no luck.

Any help will be appriciated.
With kind regards.
01/27/2013 18:46 Mognakor#2
Try this one:

Code:
if(checkhero == LEGEND_CLASS_MASTER && m_nLevel >= 60 && m_nLevel <= 120 )
{
  if( m_nLevel < 70 )
    pTexture = g_Neuz.m_pMasterIcon[0];
  else if( m_nLevel >= 70 && m_nLevel <80 )
    pTexture = g_Neuz.m_pMasterIcon[1];
  else if( m_nLevel >= 80 && m_nLevel < 90)
    pTexture = g_Neuz.m_pMasterIcon[2];
  else if( m_nLevel >= 90 && m_nLevel < 100 )
    pTexture = g_Neuz.m_pMasterIcon[3];
  else if( m_nLevel >= 100 && m_nLevel < 110 )
    pTexture = g_Neuz.m_pMasterIcon[4];
  else if( m_nLevel >= 110 && m_nLevel < 120 )
    pTexture = g_Neuz.m_pMasterIcon[5];
}
else if( checkhero == LEGEND_CLASS_HERO )
  pTexture = g_Neuz.m_pHeroIcon;
#ifdef __3RD_LEGEND16
else if( checkhero == LEGEND_CLASS_LEGENDHERO )
{
strPath = MakePath( DIR_ICON, "Legend_Mark.png");
pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
}
#endif //__3RD_LEGEND16

if(pTexture != NULL)
{
  point.y -= pTexture->m_size.cy + 5;
  pTexture->Render( &g_Neuz.m_2DRender, point );
}

if(m_nCampusPoint>0&&<=5)
{
  switch(m_nCampusPoint)
  {
    case 1: strPath = MakePath( DIR_ICON, "rebirth1.png");break;
    case 2: strPath = MakePath( DIR_ICON, "rebirth2.png");break;
    case 3: strPath = MakePath( DIR_ICON, "rebirth3.png");break;
    case 4: strPath = MakePath( DIR_ICON, "rebirth4.png");break;
    case 5: strPath = MakePath( DIR_ICON, "rebirth5.png");break;
  }
  pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );

  if(pTexture != NULL)
  {
    point.y -= pTexture->m_size.cy + 5;
    pTexture->Render( &g_Neuz.m_2DRender, point );
  }
}
You got to add the rebirth icons in your icon-directory without master/hero/legend-icons next to them for this version.

Not sure if it fixes the bug but it does the same thing as your code and is much easier to check for mistakes.
01/27/2013 20:01 raventh1984#3
Thank you for the short version of it. Its indead much easier to read and to change stuff.
How ever its not solving the problem. Also if i am at rebirth 1 and i am lvl 175 and i do an rebirth 2 only the Legend icon is changing to master. The rebirth stays at rebrith 1. And if i relog then i see the 2nd Rebirth icon. So i still need to figure out whats the cause of this. But it seems it does not read the m_nCampusPoint at rebirth.
01/27/2013 20:15 Mognakor#4
After:

Code:
#endif //__3RD_LEGEND16

if(pTexture != NULL)
{
  point.y -= pTexture->m_size.cy + 5;
  pTexture->Render( &g_Neuz.m_2DRender, point );
}
Add

Error("%s",m_nCampusPoint)


For the new error, do you increase the campus points before or after you change the level?
01/27/2013 21:14 raventh1984#5
I dont know for sure.
I thought it increases when i using the command.

This is the command

but i think you ment the one in Mover.cpp


As i see it look like i need to move the m_nCampusPoint = m_nCampusPoint + 1; to somehwere else. But dont know for sure atm.
01/27/2013 21:50 Mognakor#6
Move it to the top under #ifdef Worldserver
01/27/2013 23:55 raventh1984#7
Thanks for the tip. But also that one isn't working.

I think i am gonna redo the entire Rebirth system to see where i can do it correctly.
01/28/2013 00:06 nunzio1992#8
lllllaber
07/12/2013 15:47 raventh1984#9
Bumping this thread.

The main problem is still not solved.
I have tried everything to let it auto update the same way as the master/hero/legend icon.

This is how it is
When an player is max legend level and use the rebirth command the player is brought back to level 60 master. The Legend icon is changing to the master icon.
For the rebirth icon the player must relog to become visible. Also if an other player looks at that player he doesnt see that the rebirth icon is there.

Is there someone who has adresses this problem and have solved it.

With kind regards.

Update

Well i have figured something out.

It looks that m_nCampusPoint is not fetch like m_nLevel.

The way i checked it was with this simple code
PHP Code:
if( m_nLevel 70 && m_nCampusPoint >= && m_nCampusPoint 2)
                    
pTexture g_Neuz.m_pRebirth[0]; 
When i do an rebirth it will not show the icon. So that means that the m_nCampuspoint is not fetcht instantly like the m_nLevel.

Any one knows how to fix it? or can give an tip?
07/15/2013 11:21 raventh1984#10
Bringing my post up
07/15/2013 11:27 Velmore#11
Quote:
Originally Posted by raventh1984 View Post
PHP Code:
if( m_nLevel 70 && m_nCampusPoint >= && m_nCampusPoint 2)
                    
pTexture g_Neuz.m_pRebirth[0]; 
the icon will only show if you are under level 70 and if m_nCampusPoint = 1.

Set your level zu 40 and you m_nCampusPoint to 1. Then the icon will show.
07/15/2013 12:37 raventh1984#12
i know when i am Master i am level 60 so that is under level 70 and i have the m_nCampusPoint on 1. This is working when i relogg.

Bit it doesnt show instantly like the Master/Hero/Legend icons.
08/19/2013 04:58 raventh1984#13
Update.

Almost all problems are gone except for this one.

If an player has an rebirth then the other players cant see the rebirth icon.

Image:
Char with rebirth: [Only registered and activated users can see links. Click Here To Register...]
Char that is looking at the char with rebirth:
[Only registered and activated users can see links. Click Here To Register...]

Any help would be appriciated.

This is the part in moverrender.cpp
PHP Code:
#ifdef __REBIRTH
        
if( checkhero == LEGEND_CLASS_MASTER || checkhero == LEGEND_CLASS_HERO || checkhero == LEGEND_CLASS_LEGENDHERO )
        {
            if(
m_nCampusPoint && m_nCampusPoint )
            {
                switch(
m_nCampusPoint)
                {
                case 
1pTexture g_Neuz.m_pRebirth01; break;
                case 
2pTexture g_Neuz.m_pRebirth02; break;
                case 
3pTexture g_Neuz.m_pRebirth03; break;
                case 
4pTexture g_Neuz.m_pRebirth04; break;
                case 
5pTexture g_Neuz.m_pRebirth05; break;
                }

                if(
pTexture != NULL){
                    
point.+= 26;
                    
pTexture->Render( &g_Neuz.m_2DRenderpoint );
                }
            }
        }
#endif