Register for your free account! | Forgot your password?

You last visited: Today at 16:09

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

Advertisement



Little help

Discussion on Little help within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2019
Posts: 81
Received Thanks: 7
Little help

Hi i just want a little help how to add a rebirth count icon each rebirths

Heres the code:

Code:
#ifdef __REBIRTH
void CMover::InitLevelRebirth( int nJob, LONG nLevel, BOOL bGamma )
{
#ifdef __WORLDSERVER
    // 운영자 명령으로 레벨업 하는곳임
    MoverProp* pProp = GetProp();
    if( pProp )
    {
        if( nJob > 0 && nJob < MAX_LEGEND_HERO )
        {
            AddChangeJob( nJob );
        }else{
            return;
        }
        int nPoint = 0;
        if( m_nJob == JOB_MERCENARY )
            nPoint += 40;
        else if( m_nJob == JOB_ACROBAT )
            nPoint += 50;
        else if( m_nJob == JOB_ASSIST )
            nPoint += 60;
        else if( m_nJob == JOB_MAGICIAN )
            nPoint += 90;
        else if( m_nJob ==  JOB_KNIGHT || m_nJob ==  JOB_BLADE )
            nPoint += 120;
        else if( m_nJob ==  JOB_JESTER || m_nJob ==  JOB_RANGER )
            nPoint += 150;
        else if( m_nJob ==  JOB_RINGMASTER )
            nPoint += 160;
        else if( m_nJob ==  JOB_BILLPOSTER || m_nJob ==  JOB_PSYCHIKEEPER )
            nPoint += 180;
        else if( m_nJob ==  JOB_ELEMENTOR )
            nPoint += 390;
        else if( nJob ==  JOB_LORDTEMPLER_HERO || nJob ==  JOB_STORMBLADE_HERO )
            nPoint += 120;
        else if( nJob ==  JOB_WINDLURKER_HERO || nJob ==  JOB_CRACKSHOOTER_HERO )
            nPoint += 150;
        else if( nJob ==  JOB_FLORIST_HERO )
            nPoint += 160;
        else if( nJob ==  JOB_FORCEMASTER_HERO || nJob ==  JOB_MENTALIST_HERO )
            nPoint += 180;
        else if( nJob ==  JOB_ELEMENTORLORD_HERO )
            nPoint += 390;

        AddSkillPoint( nPoint );
        m_nLevel = nLevel;

        SetJobLevel( nLevel, nJob );
        m_nDeathLevel = nLevel;
#if __VER >= 10 // __LEGEND    //    10차 전승시스템    Neuz, World, Trans
        if(IsMaster())
        {
            int dwTmpSkLevel = 1;//60, 72, 84, 96, 108
            if( nLevel > 59 && nLevel < 72 )
                dwTmpSkLevel = 1;
            else if( nLevel > 71 && nLevel < 84 )
                dwTmpSkLevel = 2;
            else if( nLevel > 83 && nLevel < 96 )
                dwTmpSkLevel = 3;
            else if( nLevel > 95 && nLevel < 108 )
                dwTmpSkLevel = 4;
            else if( nLevel > 107 && nLevel < 120 )
                dwTmpSkLevel = 5;
            for( int i = 0; i < MAX_SKILL_JOB; i++ ) 
            {                
                LPSKILL lpSkill = &(m_aJobSkill[i]);
                if( lpSkill && lpSkill->dwSkill != NULL_ID )
                {
                    ItemProp* pSkillProp    = prj.GetSkillProp( lpSkill->dwSkill );            
                    if( pSkillProp == NULL )
                        continue;
                    if( pSkillProp->dwItemKind1 != JTYPE_MASTER)
                        continue;
                    lpSkill->dwLevel = dwTmpSkLevel;
                }
            }
        }
        else if(IsHero())
        {
            for( int i = 0; i < MAX_SKILL_JOB; i++ ) 
            {                
                LPSKILL lpSkill = &(m_aJobSkill[i]);
                if( lpSkill && lpSkill->dwSkill != NULL_ID )
                {
                    ItemProp* pSkillProp    = prj.GetSkillProp( lpSkill->dwSkill );            
                    if( pSkillProp == NULL )
                        continue;
                    if( pSkillProp->dwItemKind1 != JTYPE_MASTER)
                        continue;
                    lpSkill->dwLevel = 5;
                }
            }
        }
        else if(IsLegendHero())
        {
            for( int i = 0; i < MAX_SKILL_JOB; i++ ) 
            {                
                LPSKILL lpSkill = &(m_aJobSkill[i]);
                if( lpSkill && lpSkill->dwSkill != NULL_ID )
                {
                    ItemProp* pSkillProp    = prj.GetSkillProp( lpSkill->dwSkill );            
                    if( pSkillProp == NULL )
                        continue;
                    if( pSkillProp->dwItemKind1 != JTYPE_MASTER)
                        continue;
                    lpSkill->dwLevel = 5;
                }
            }
        }
#endif    //     __LEGEND    //    10차 전승시스템    Neuz, World, Trans
        if( bGamma )
        {
            m_nExp1 = 0;
        }
        
        ( (CUser*)this )->AddSetChangeJob( nJob );
        g_UserMng.AddNearSetChangeJob( this, nJob, &((CUser*)this)->m_aJobSkill[MAX_JOB_SKILL] );
        

#if __VER >= 11 // __SYS_PLAYER_DATA
        g_dpDBClient.SendUpdatePlayerData( (CUser*)this );
#else    // __SYS_PLAYER_DATA
        g_DPCoreClient.SendPartyMemberJob( (CUser*)this );
        g_DPCoreClient.SendFriendChangeJob( (CUser*)this );
        if( m_idGuild != 0 )
            g_DPCoreClient.SendGuildChangeJobLevel( (CUser*)this );
#endif    // __SYS_PLAYER_DATA
        SetHitPoint( GetMaxHitPoint() );
        SetManaPoint( GetMaxManaPoint() );
        SetFatiguePoint( GetMaxFatiguePoint() );

		m_nCampusPoint = m_nCampusPoint + 1;

        if( nJob >= 1 && nJob <= 4 )
        {
            m_nStr = m_nSta = m_nDex = m_nInt = 15;
            m_nRemainGP = 28;
        }
        if( nJob >= MAX_PROFESSIONAL && nJob < MAX_MASTER )
        {
			if ( m_nRemainGP >0)
				m_nRemainGP = 0;

			if (m_nCampusPoint == 1)
			{
			m_nRemainGP = 200;
			goto end;
			}
			else if (m_nCampusPoint == 2)
			{
            m_nRemainGP = 300;
			goto end;
			}
			else if (m_nCampusPoint == 3)
			{
            m_nRemainGP = 400;
			goto end;
			}
			else if (m_nCampusPoint == 4)
			{
            m_nRemainGP = 500;
			goto end;
			}
			else if (m_nCampusPoint >= 5)
			{
            m_nRemainGP = 600;
			goto end;
			}
        }
end:;
		m_nStr = m_nSta = m_nDex = m_nInt = 50;
        g_UserMng.AddSetLevel( this, (WORD)m_nLevel );
        ( (CUser*)this )->AddSetGrowthLearningPoint( m_nRemainGP );
        ( (CUser*)this )->AddSetExperience( GetExp1(), (WORD)m_nLevel, m_nSkillPoint, m_nSkillLevel, m_nCampusPoint  );
        /*( (CUser*)this )->m_playTaskBar.InitTaskBarShorcutKind( SHORTCUT_SKILL );
        ( (CUser*)this )->AddTaskBar();*/
        ( (CUser*)this )->AddSetState( m_nStr, m_nSta, m_nDex, m_nInt, m_nRemainGP );
#if __VER >= 13 // __HONORABLE_TITLE            // 달인
        ((CUser*)this)->CheckHonorStat();
        ((CUser*)this)->AddHonorListAck();
        g_UserMng.AddHonorTitleChange( this, m_nHonor);
#endif    // __HONORABLE_TITLE            // 달인
    }
#endif // __WORLDSERVER
}

#endif
IFlyffMc is offline  
Old 11/06/2019, 13:48   #2
 
elite*gold: 0
Join Date: Apr 2019
Posts: 81
Received Thanks: 7
Bump
IFlyffMc is offline  
Old 11/06/2019, 21:47   #3

 
elite*gold: 353
Join Date: Jan 2013
Posts: 924
Received Thanks: 617
MoverRender.cpp
Code:
void CMover::RenderName( LPDIRECT3DDEVICE9 pd3dDevice, CD3DFont* pFont, DWORD dwColor )
for example
Code:
		if (GetPlatinLevel() > 0)
		{
			strPath = MakePath(DIR_ICON, CPlatin::GetInstance()->GetPlatinIcon(GetPlatinLevel()));
			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);
			}
		}
Kiseku is offline  
Thanks
1 User
Old 11/10/2019, 10:40   #4
 
elite*gold: 0
Join Date: Apr 2019
Posts: 81
Received Thanks: 7
Quote:
Originally Posted by Kiseku View Post
MoverRender.cpp
Code:
void CMover::RenderName( LPDIRECT3DDEVICE9 pd3dDevice, CD3DFont* pFont, DWORD dwColor )
for example
Code:
		if (GetPlatinLevel() > 0)
		{
			strPath = MakePath(DIR_ICON, CPlatin::GetInstance()->GetPlatinIcon(GetPlatinLevel()));
			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);
			}
		}
Can you tell me where to edit the stats? i want it to i want to add this stats when you reach ( lvl 130 3rd job ) after you rebirth can you tell me where in this code?

Code:
        if( nJob >= MAX_PROFESSIONAL && nJob < MAX_MASTER )
        {
			if ( m_nRemainGP >0)
				m_nRemainGP = 0;

			if (m_nCampusPoint == 1)
			{
			m_nRemainGP = 200;
			goto end;
			}
			else if (m_nCampusPoint == 2)
			{
            m_nRemainGP = 300;
			goto end;
			}
			else if (m_nCampusPoint == 3)
			{
            m_nRemainGP = 400;
			goto end;
			}
			else if (m_nCampusPoint == 4)
			{
            m_nRemainGP = 500;
			goto end;
			}
			else if (m_nCampusPoint >= 5)
			{
            m_nRemainGP = 600;
			goto end;
			}
        }
end:;
		m_nStr = m_nSta = m_nDex = m_nInt = 50;
IFlyffMc is offline  
Reply


Similar Threads Similar Threads
Hello Please Little Help Just Little Not much
12/30/2011 - SRO Private Server - 1 Replies
I need Add D12 Lucky Powder To Npc How I can do it ?
Little Gaikoz,Little Cancer & Little KazeAaze!?
10/19/2010 - Grand Chase - 6 Replies
where the heck could i get them!? PLS GIMME HELP!! T_T
little kazeaaze and little gaikoz trouble???
03/30/2010 - Grand Chase Philippines - 8 Replies
Hey! have youve been tired of hunting this pets????.....well, ill give you a tip!... 1.the gaikoz pet that I got was in kazeaaze castle.....try to go there 10 times straight,lets if your to lucky enough to get it.... 2. the kazeaaze pet that i got was from the BERMESIAH LAST STAND!yes!,,,,,,in my first try I got it!....and im lucky enough to get it!(GCPH) still not working!......
little kazeaaze and little gaikoz trouble???
01/26/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 17 Replies
Hey! have youve been tired of hunting this pets????.....well, ill give you a tip!... 1.the gaikoz pet that I got was in kazeaaze castle.....try to go there 10 times straight,lets if your to lucky enough to get it.... 2. the kazeaaze pet that i got was from the BERMESIAH LAST STAND!yes!,,,,,,in my first try I got it!....and im lucky enough to get it!(GCPH) still not working!......
[Problem]I have little idea and i need little help.
11/13/2009 - SRO Private Server - 0 Replies
I am playing on swsro and i'am botting. i'am using lolkop's loader to increase auto grab range but i it's increased too much (too many times). my char is going from item to item on the map instead of botting. i want to increase my auto grab only for little rang to bit bigger range than normal ;] but how to do it? please tell me ;p



All times are GMT +1. The time now is 16:10.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.