阅读:3067回复:3
《飞飞》如何让普通玩家看到怪物显示HP
源码中找到wndworld.cpp文件[font=Arial, ]搜索:
if( g_pPlayer->IsAuthHigher( AUTH_GAMEMASTER ) ) { CString string; if( pMover->IsPlayer() ) #if __VER >= 8 // __S8_PK string.Format( prj.GetText( TID_GAME_SELECT_OBJECT_INFORMATION_PLAYER ), pMover->GetHitPoint(), pMover->GetMaxHitPoint(), pMover->GetGold(), (float)pMover->GetExpPercent()/100.0f, pMover->GetExp1(), pMover->GetMaxExp1() ); #else // __VER >= 8 // __S8_PK string.Format( "HP(%d/%d),Gold(%d),Karma(%d)", pMover->GetHitPoint(), pMover->GetMaxHitPoint(), pMover->GetGold(), pMover->GetKarma() ); #endif // __VER >= 8 // __S8_PK else string.Format( prj.GetText( TID_GAME_SELECT_OBJECT_INFORMATION_MONSTER ), pMover->GetHitPoint(), pMover->GetMaxHitPoint() ); strTemp += string; } 下面添加: else { CString string; if(!pMover->IsPlayer()) string.Format( "HP(%d/%d)", pMover->GetHitPoint(), pMover->GetMaxHitPoint() ); strTemp += string; } |
|
最新喜欢:liulin... |
沙发#
发布于:2019-08-22 19:08
|
|
地板#
发布于:2023-12-16 08:46
为了一个铜币努力177961312
|
|