About PropMover.txt

06/21/2013 11:47 raventh1984#1
Hi elitepvpers,

Well i wanted something to figure out.

Thats this. I wanted all the mobs with the rank
RANK_BOSS and RANK_SUPER to be stronger by 20%

Now instead of modifying the PropMover.txt i did it in the source.

However now is my question when i do it in the source. Are they actualy stronger or is this only visual?

Lets take an look at 2 codes i altred.

Mover.cpp
PHP Code:
if( pProp->dwClass == RANK_SUPER && pProp->dwClass == RANK_BOSS )
        {
            
m_nStr pProp->dwStr 2
            
m_nSta pProp->dwSta 2;
            
m_nDex pProp->dwDex 2;
            
m_nInt pProp->dwInt 2;
        }
        else
        {
            
m_nStr pProp->dwStr
            
m_nSta pProp->dwSta;
            
m_nDex pProp->dwDex;
            
m_nInt pProp->dwInt;
        } 
MoverAttack.cpp

PHP Code:
MoverProppMoverProp GetProp();
        if( 
pMoverProp->dwClass == RANK_SUPER && pMoverProp->dwClass == RANK_BOSS )
        {
            *
pnMin pMoverProp->dwAtkMin 100 20 pMoverProp->dwAtkMin;
            *
pnMax pMoverProp->dwAtkMax 100 20 pMoverProp->dwAtkMax;
        }
        else
        {
            *
pnMin pMoverProp->dwAtkMin;
            *
pnMax pMoverProp->dwAtkMax;
        } 
MoverParam.cpp

PHP Code:
#ifdef __S1108_BACK_END_SYSTEM
        
if ( pMoverProp->dwClass == RANK_SUPER && pMoverProp->dwClass == RANK_BOSS )
        {
            return 
intpMoverProp->dwAddHp prj.m_fMonsterHitpointRate pMoverProp->m_fHitPoint_Rate 100 20 pMoverProp->dwAddHp );
        }
        else
        {
            return 
intpMoverProp->dwAddHp prj.m_fMonsterHitpointRate pMoverProp->m_fHitPoint_Rate ); 
        }
#else // __S1108_BACK_END_SYSTEM
        
if ( pMoverProp->dwClass == RANK_SUPER && pMoverProp->dwClass == RANK_BOSS )
        {
            return 
pMoverProp->dwAddHp 100 20 pMoverProp->dwAddHp
        }
        else
        {
            return 
pMoverProp->dwAddHp;
        }
#endif // __S1108_BACK_END_SYSTEM 
Can anyone tell me that it will work or that these snippets is only for the visual aspect?

With kind regards,

Loky.
06/21/2013 12:14 Jopsi332#2
Just if the rank while reading in propnover and multiplucate there
06/21/2013 12:28 raventh1984#3
sorry Jopsi but i dont get that :D.
06/21/2013 12:44 Sedrika#4
Open ProjectCmn.cpp and search for BOOL CProject::LoadPropMover( LPCTSTR lpszFileName ).

Now add under
Code:
pProperty->dwClass = scanner.GetNumber();
this
Code:
if( pProperty->dwClass == RANK_BOSS || pProperty->dwClass == RANK_SUPER )
{
	pProperty->dwStr *= 2;
	pProperty->dwSta *= 2;
	pProperty->dwDex *= 2;
	pProperty->dwInt *= 2;
}
06/21/2013 13:06 raventh1984#5
Ok thank you sedrika. i didnt get that sentence what jopsi was saying.

Btw what is the difference between yours and mine?

Is the one from you more effective sinds its using the ProjectCmn.cpp file?
06/21/2013 13:16 Sedrika#6
Yes it is.
06/21/2013 13:19 raventh1984#7
Ok i did that. Rebuilding gives 2 errors

RANK_BOSS and RANK_SUPER undeclared identifier.

This error is only when compiling the DatabaseServer.

The rest of the programs compiles just fine.
--------------SOLVED-----------------

Now what kind of formula do i need to give the dwAtkMin and dwAtkMax an increase of 20%.

I did this in ProjectCmn.cpp
PHP Code:
if( pProperty->dwClass == RANK_BOSS || pProperty->dwClass == RANK_SUPER )
        {
            
pProperty->dwAtkMin            100 2scanner.GetNumber();
        } 
However this gives offcourse an error.