主题:【源码修改】普通玩家显示怪物HP 作者:烛天丶 时间:2013-08-21 21:04 |
-------------------------- wndworld.cpp -------------------------- 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; } [attachment=158806] |
1楼:孤独灬寂寞(2013-08-21 21:07) |
怎么用呢???? |
2楼:宿命、(2013-08-21 21:12) |
这是乱码了么 |
3楼:lansky、(2013-08-21 21:37) |
这个是源码编译。专业代码 |
4楼:lepapillon(2013-08-21 21:39) |
这货是谁?哀家怎么不认识? |
5楼:lansky、(2013-08-21 21:40) |
是神啊~~~哇啦啦啦 |
6楼:孤独灬寂寞(2013-08-22 11:20) |
终于····· 我晕了······· |
7楼:lansky、(2013-08-22 13:59) |
V19的端不能用哇~~~哈哈哈。刷50帖子~~~ |