Mount Source

03/20/2019 15:06 babyminion#1
Help please on Mount System Codes i leech it from [Only registered and activated users can see links. Click Here To Register...]
MoverRender.cpp

WndManager.cpp

DPClient.cpp


Code Entries:
WndManager.cpp
Code:
#ifdef __MOUNT
	if( pItemElem->GetProp()->dwItemKind3 == IK3_MOUNT );
	{
		if( pItemElem->GetProp()->dwID > 0 )
		{
			MOUNT_ANIMATION* pMountAnimation = prj.GetMountAnimation( pItemElem->GetProp()->dwID );
			if( pMountAnimation )
			{
				if( pMountAnimation->fGroundSpeed > 0.0f )
				{
					strEdit.AddString("\n");
					strEdit.AddString(prj.GetText(TID_MOUNT_MODE_03));
					strEdit.AddString(" ");
					
					if( pMountAnimation->fGroundSpeed <= 0.12f )
						strEdit.AddString( prj.GetText( TID_GAME_VERYSLOW ), 0xFFFF0000, ESSTY_UNDERLINE );
					else if( pMountAnimation->fGroundSpeed <= 0.16f )
						strEdit.AddString( prj.GetText( TID_GAME_SLOW ), 0xFFFF9900, ESSTY_UNDERLINE );
					else if( pMountAnimation->fGroundSpeed <= 0.24f )
						strEdit.AddString( prj.GetText( TID_GAME_NORMALS ), 0xFFF2C900, ESSTY_UNDERLINE );
					else if( pMountAnimation->fGroundSpeed <= 0.32f )
						strEdit.AddString( prj.GetText( TID_GAME_FAST ), 0xFF43E000, ESSTY_UNDERLINE );
					else if( pMountAnimation->fGroundSpeed <= 0.40f )
						strEdit.AddString( prj.GetText( TID_GAME_VERYFAST ), 0xFF0094FF, ESSTY_UNDERLINE );
					else
						strEdit.AddString( prj.GetText( TID_GAME_FASTEST ), 0xFFFF00FF, ESSTY_UNDERLINE );
				}
				if( pMountAnimation->fFlightSpeed > 0.0f )
				{
					strEdit.AddString("\n");
					strEdit.AddString(prj.GetText(TID_MOUNT_MODE_04));
					strEdit.AddString(" ");
					
					if( pMountAnimation->fFlightSpeed <= 0.12f )
						strEdit.AddString( prj.GetText( TID_GAME_VERYSLOW ), 0xFFFF0000, ESSTY_UNDERLINE );
					else if( pMountAnimation->fFlightSpeed <= 0.16f )
						strEdit.AddString( prj.GetText( TID_GAME_SLOW ), 0xFFFF9900, ESSTY_UNDERLINE );
					else if( pMountAnimation->fFlightSpeed <= 0.24f )
						strEdit.AddString( prj.GetText( TID_GAME_NORMALS ), 0xFFF2C900, ESSTY_UNDERLINE );
					else if( pMountAnimation->fFlightSpeed <= 0.32f )
						strEdit.AddString( prj.GetText( TID_GAME_FAST ), 0xFF43E000, ESSTY_UNDERLINE );
					else if( pMountAnimation->fFlightSpeed <= 0.40f )
						strEdit.AddString( prj.GetText( TID_GAME_VERYFAST ), 0xFF0094FF, ESSTY_UNDERLINE );
					else
						strEdit.AddString( prj.GetText( TID_GAME_FASTEST ), 0xFFFF00FF, ESSTY_UNDERLINE );
					
					strEdit.AddString("\n");
					strEdit.AddString(prj.GetText(TID_MOUNT_MODE_05), 0xFF00FF90);
				}
			}
		}
	}
#endif // __MOUNT
DPClient.cpp
Code:
#ifdef __MOUNT
			case SNAPSHOTTYPE_UPDATE_MOUNT: OnUpdateMount( objid, ar ); break;
#endif // __MOUNT
MoverRender.cpp file
[Only registered and activated users can see links. Click Here To Register...]
03/20/2019 16:09 Seigh77#2
MoverRender
check #endif i think its missing #ifdef or #endif is over..
DPClient
check the 34966 on where SNAPSHOTTYPE_UPDATE_MOUNT is define, then change the value

can you send me the item folder on it :) on client thank you hope it help
03/20/2019 17:55 babyminion#3
Quote:
Originally Posted by Seigh77 View Post
MoverRender
check #endif i think its missing #ifdef or #endif is over..
DPClient
check the 34966 on where SNAPSHOTTYPE_UPDATE_MOUNT is define, then change the value

can you send me the item folder on it :) on client thank you hope it help
There you go!!!
[Only registered and activated users can see links. Click Here To Register...]

( Problem Fixed! )