daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void CParty::RemoveExtraPartyAffect()
  2. {
  3.     if (PartyBonus1 < get_global_time() || PartyBonus2 < get_global_time() || PartyBonus3 < get_global_time() || PartyBonus4 < get_global_time() || PartyBonus5 < get_global_time())
  4.     {
  5.         return
  6.     }
  7.     else
  8.     {
  9.         TMemberMap::iterator it;
  10.         for (it = m_memberMap.begin(); it != m_memberMap.end(); ++it)
  11.         {
  12.             if (!it->second.pCharacter)
  13.                 continue;
  14.  
  15.             LPCHARACTER ch = it->second.pCharacter;
  16.            
  17.             ch->AddAffect(PARTY_SPECIAL_AFFECT1, POINT_NONE, 0, 0, 0, 0, true);
  18.             ch->AddAffect(PARTY_SPECIAL_AFFECT2, POINT_NONE, 0, 0, 0, 0, true);
  19.             ch->AddAffect(PARTY_SPECIAL_AFFECT3, POINT_NONE, 0, 0, 0, 0, true);
  20.             ch->AddAffect(PARTY_SPECIAL_AFFECT4, POINT_NONE, 0, 0, 0, 0, true);
  21.             ch->AddAffect(PARTY_SPECIAL_AFFECT5, POINT_NONE, 0, 0, 0, 0, true);
  22.         }
  23.     }
  24. }
RAW Paste Data
Top