Register for your free account! | Forgot your password?

You last visited: Today at 03:45

  • Please register to post and access all features, it's quick, easy and FREE!

 

About Master/Hero and Legend icons.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 947
Received Thanks: 153
About Master/Hero and Legend icons.

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



No Rebirth



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.



raventh1984 is offline  
Old   #2
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 463
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.


Mognakor is offline  
Thanks
1 User
Old   #3
 
elite*gold: 0
Join Date: Oct 2012
Posts: 947
Received Thanks: 153
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.
raventh1984 is offline  
Old   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 463
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?


Mognakor is offline  
Old   #5
 
elite*gold: 0
Join Date: Oct 2012
Posts: 947
Received Thanks: 153
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.
raventh1984 is offline  
Old   #6
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 463
Move it to the top under #ifdef Worldserver
Mognakor is offline  
Old   #7
 
elite*gold: 0
Join Date: Oct 2012
Posts: 947
Received Thanks: 153
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.
raventh1984 is offline  
Old   #8
 
elite*gold: 0
Join Date: Oct 2010
Posts: 9
Received Thanks: 3
laber

lllllaber
nunzio1992 is offline  
Old   #9
 
elite*gold: 0
Join Date: Oct 2012
Posts: 947
Received Thanks: 153
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?
raventh1984 is offline  
Old   #10
 
elite*gold: 0
Join Date: Oct 2012
Posts: 947
Received Thanks: 153
Bringing my post up
raventh1984 is offline  
Old   #11
 
elite*gold: 10
Join Date: Feb 2011
Posts: 1,768
Received Thanks: 497
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.
Velmore is offline  
Old   #12
 
elite*gold: 0
Join Date: Oct 2012
Posts: 947
Received Thanks: 153
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.
raventh1984 is offline  
Old   #13
 
elite*gold: 0
Join Date: Oct 2012
Posts: 947
Received Thanks: 153
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:
Char that is looking at the char with rebirth:


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 


raventh1984 is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Release]Legend Icons
So mir war heute morgen langeweilig deswegen hab ich nen paar legend icons gemacht da fast jeder server das hero icon benutzt Ich hab das League of...
49 Replies - Flyff PServer Guides & Releases
legend icons
hi guys...i just want to know..where shoul i fixed this icons?? http://imageshack.us/photo/my-images/256/74627891.jpg/
3 Replies - Flyff PServer - Discussions / Questions
Hero/Master Icons
Sehr geehrte Elitepvpers Ich habe ein Problem auf meinem privaten Server, wenn ich Levelaufstieg und Do the Hero Quest Ich werde nicht den...
7 Replies - Flyff PServer - Discussions / Questions
Verkaufe Hero Slayer/Hero Force Master [Steamwalker]
Nicht mehr aktuell.
3 Replies - Fly For Fun Trading
[ K ] Master/Hero +
Hallo, ich suche nach einem Blade Hero oder nach einem Slayer. Auerdem suche ich einen Master Ringmaster / Hero Ringmaster oder einem Seraph. ...
4 Replies - Fly For Fun Trading



All times are GMT +2. The time now is 03:45.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.