Welcome to the RaGEZONE - MMORPG development forums.

[HELP]How to enable Legend icon in source?

This is a discussion on [HELP]How to enable Legend icon in source? within the Flyff Archive forums, part of the Flyff category; fixed!...

Results 1 to 13 of 13
  1. #1
    Childish??<--
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    System
    Posts
    327
    Liked
    23

    [HELP]How to enable Legend icon in source?

    Click
    fixed!
    Last edited by Jansen; 31-10-11 at 01:50 PM.

  2. #2
    learning c++ :3
    Rank
    Member +
    Join Date
    Jun 2005
    Location
    from uuhh..
    Posts
    497
    Liked
    99

    Re: [HELP]How to enable Legend icon in source?

    Quote Originally Posted by FrenzyObz View Post
    hi guys..as title said..how to put or enable in source of Legend icon?because..when im level 150..it's still hero icon..i hope somebody will answer my quest..
    Find the line
    Code:
    else if(checkhero == LEGEND_CLASS_HERO) //¿µ¿õÀÏ °æ¿ì.


    and add below

    Code:
    #if    __VER >= 16 //__3RD_LEGEND16
            else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel >= 130 && m_nLevel < 140)
            {
                strPath = MakePath( DIR_ICON, "icon_Hero.dds");
                pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
    //            pTexture = g_Neuz.m_pLegendIcon[0];
                if(pTexture != NULL)
                {
                    point.y -= pTexture->m_size.cy + 5;
                    pTexture->Render( &g_Neuz.m_2DRender, point );
                }
            }
            
            else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel >= 140 && m_nLevel < 150)
            {
                strPath = MakePath( DIR_ICON, "name of your icon");
                pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
    //            pTexture = g_Neuz.m_pLegendIcon[1];
                if(pTexture != NULL)
                {
                    point.y -= pTexture->m_size.cy + 5;
                    pTexture->Render( &g_Neuz.m_2DRender, point );
                }
            }
    #endif // __3RD_LEGEND16
    Sorry For My Bad English ((=
    .

  3. #3
    Game Developer
    Rank
    Alpha Member
    Join Date
    Jun 2009
    Location
    Nederland
    Posts
    1,644
    Liked
    450

    Re: [HELP]How to enable Legend icon in source?

    Quote Originally Posted by trashee09 View Post
    Find the line
    Code:
    else if(checkhero == LEGEND_CLASS_HERO) //¿µ¿õÀÏ °æ¿ì.


    and add below

    Code:
    #if    __VER >= 16 //__3RD_LEGEND16
            else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel >= 130 && m_nLevel < 140)
            {
                strPath = MakePath( DIR_ICON, "icon_Hero.dds");
                pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
    //            pTexture = g_Neuz.m_pLegendIcon[0];
                if(pTexture != NULL)
                {
                    point.y -= pTexture->m_size.cy + 5;
                    pTexture->Render( &g_Neuz.m_2DRender, point );
                }
            }
            
            else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel >= 140 && m_nLevel < 150)
            {
                strPath = MakePath( DIR_ICON, "name of your icon");
                pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
    //            pTexture = g_Neuz.m_pLegendIcon[1];
                if(pTexture != NULL)
                {
                    point.y -= pTexture->m_size.cy + 5;
                    pTexture->Render( &g_Neuz.m_2DRender, point );
                }
            }
    #endif // __3RD_LEGEND16
    ...
    Didnt like everyone got that idea from iFlyff x.x?
    eFlyff doesnt have a icon for that lol.
    Need new img
    Watch the power of Aura!

    Like my facebook page and share https://www.facebook.com/EddyMeivogelProjects

  4. #4
    Flyff Developer
    Rank
    Moderator
    Join Date
    Apr 2009
    Posts
    1,902
    Liked
    403

    Re: [HELP]How to enable Legend icon in source?

    Quote Originally Posted by MisterKid View Post
    ...
    Didnt like everyone got that idea from iFlyff x.x?
    eFlyff doesnt have a icon for that lol.
    I didn't get that idea from anything o.o just came up with it.
    after looking through eFlyff's icons and finding nothing though, I made my own

  5. #5
    Childish??<--
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    System
    Posts
    327
    Liked
    23

    Re: [HELP]How to enable Legend icon in source?

    Quote Originally Posted by trashee09 View Post
    Find the line
    Code:
    else if(checkhero == LEGEND_CLASS_HERO) //¿µ¿õÀÏ °æ¿ì.


    and add below

    Code:
    #if    __VER >= 16 //__3RD_LEGEND16
            else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel >= 130 && m_nLevel < 140)
            {
                strPath = MakePath( DIR_ICON, "icon_Hero.dds");
                pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
    //            pTexture = g_Neuz.m_pLegendIcon[0];
                if(pTexture != NULL)
                {
                    point.y -= pTexture->m_size.cy + 5;
                    pTexture->Render( &g_Neuz.m_2DRender, point );
                }
            }
            
            else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel >= 140 && m_nLevel < 150)
            {
                strPath = MakePath( DIR_ICON, "name of your icon");
                pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
    //            pTexture = g_Neuz.m_pLegendIcon[1];
                if(pTexture != NULL)
                {
                    point.y -= pTexture->m_size.cy + 5;
                    pTexture->Render( &g_Neuz.m_2DRender, point );
                }
            }
    #endif // __3RD_LEGEND16


    not working trashee..

  6. #6
    Flyff Developer
    Rank
    Moderator
    Join Date
    Apr 2009
    Posts
    1,902
    Liked
    403

    Re: [HELP]How to enable Legend icon in source?

    copy/pasting that code won't make it work. you have to change the following line:
    Code:
    strPath = MakePath( DIR_ICON, "name of your icon");
    be sure to put the icon in your Icon folder

  7. #7
    Infraction Magnet
    Rank
    Member +
    Join Date
    Oct 2008
    Location
    Behind You !
    Posts
    424
    Liked
    62

    Re: [HELP]How to enable Legend icon in source?

    gives error when compiling

  8. #8
    Childish??<--
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    System
    Posts
    327
    Liked
    23

    Re: [HELP]How to enable Legend icon in source?

    MoverRender.cpp
    Spoiler:
    MoverRender.cpp
    \Documents and Settings\MrMallow\Desktop\BF Source\BF Source\Source\_Common\MoverRender.cpp(1680) : error C2065: 'LEGEND_CLASS_LEGENDHERO' : undeclared identifier
    \Documents and Settings\MrMallow\Desktop\BF Source\BF Source\Source\_Common\MoverRender.cpp(1692) : error C3861: 'LEGEND_CLASS_LEGENDHERO': identifier not found, even with argument-dependent lookup


    i change the name of icon to this..Legend_Mark.png..

  9. #9
    Flyff Developer
    Rank
    Moderator
    Join Date
    Apr 2009
    Posts
    1,902
    Liked
    403

    Re: [HELP]How to enable Legend icon in source?

    frenzy, try reading the error -.-*

    LEGEND_CLASS_LEGENDHERO is not defined. I don't know what source you're using, but that's not what my source uses. Mine is LEGEND_CLASS_LEGEND_HERO (notice the 3rd '_' character in it).

    Change all of those in the coding you added to that, and it might fix it. If not, then I don't know what to do.

  10. #10
    Monster
    Rank
    Member +
    Join Date
    Apr 2009
    Posts
    1,449
    Liked
    463

    Re: [HELP]How to enable Legend icon in source?

    Quote Originally Posted by MisterKid View Post
    ...
    Didnt like everyone got that idea from iFlyff x.x?
    eFlyff doesnt have a icon for that lol.
    iFlyff coded v16 after April 2011, Demon had it in October or November 2010(a few days after v16 OBT was released in Korea). It's also fairly natural for Legend to have its own icon as Master/Hero do.

  11. #11
    Childish??<--
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    System
    Posts
    327
    Liked
    23

    Re: [HELP]How to enable Legend icon in source?

    Quote Originally Posted by ShadowDragon42 View Post
    frenzy, try reading the error -.-*

    LEGEND_CLASS_LEGENDHERO is not defined. I don't know what source you're using, but that's not what my source uses. Mine is LEGEND_CLASS_LEGEND_HERO (notice the 3rd '_' character in it).

    Change all of those in the coding you added to that, and it might fix it. If not, then I don't know what to do.

    ok...trying to fixed it now..ill just update if theres another erro..

  12. #12
    Ultimate Member
    Rank
    Member
    Join Date
    Aug 2010
    Posts
    175
    Liked
    3

    Re: [HELP]How to enable Legend icon in source?

    Try This :

    "Neuz.h"

    Find this
    Spoiler:

    CTexture* m_pHeroIcon;


    Then Paste this under it:
    Spoiler:

    CTexture* m_pLegendIcon;



    "Neuz.cpp"

    Find This:
    Spoiler:

    m_pHeroIcon = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ICON, "icon_Hero.dds"), 0xffff00ff );


    Then paste this under it:
    Spoiler:

    m_pLegendIcon = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ICON, "icon_Legend_Hero.dds"), 0xffff00ff );



    MoverRender.cpp

    Go to :
    Spoiler:

    else if(checkhero == LEGEND_CLASS_HERO_3RD)


    You will find codes under it replace them with this :

    Spoiler:

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


    I hope it works to you coz it works better in mine.

  13. #13
    Childish??<--
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    System
    Posts
    327
    Liked
    23

    Re: [HELP]How to enable Legend icon in source?

    hi guys...where should i define this?
    Moverrender.cpp
    Spoiler:
    MoverRender.cpp
    \Documents and Settings\MrMallow\Desktop\BF Source\BF Source\Source\_Common\MoverRender.cpp(1690) : error C2065: 'LEGEND_CLASS_HERO_3RD' : undeclared identifier
    \Documents and Settings\MrMallow\Desktop\BF Source\BF Source\Source\_Common\MoverRender.cpp(1701) : error C3861: 'LEGEND_CLASS_HERO_3RD': identifier not found, even with argument-dependent lookup

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •