Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void DrawPlayerPercents() {
  2.         UnitAny *pPlayer = D2CLIENT_GetPlayerUnit();
  3.     for(Room1* pRoom = pPlayer->pAct->pRoom1; pRoom; pRoom = pRoom->next)
  4.         {
  5.         for(UnitAny* pUnit = pRoom->pUnitFirst; pUnit; pUnit = pUnit->pListNext)
  6.                     {
  7.                         if(pUnit)
  8.                             if(pUnit->dwType == UNIT_PLAYER)
  9.                                 if(pUnit->dwUnitId != Myself->dwUnitId) {
  10.                             RosterUnit *pRoster = FindPartyById(pUnit->dwUnitId);
  11.                             if(!pRoster)
  12.                                 return;
  13.         TextHook(pUnit->pPath->xPos, pUnit->pPath->yPos, 4, true, 4, 5, "%d%%", pRoster->dwPartyLife);
  14.                                 }
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement