admin
管理员
管理员
  • UID1
  • 注册日期2011-05-18
  • 最后登录2022-08-22
  • 粉丝94
  • 关注0
  • 发帖数1061
  • QQ
  • 铜币1232枚
  • 威望8点
  • 银元1218个
阅读:1283回复:0

【源码修改】普通玩家显示怪物HP

楼主#
更多 发布于:2012-10-07 12:31

--------------------------

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;
     }


哎...今天够累的,签到来了3...
游客

返回顶部