Guest User

Untitled

a guest
Dec 14th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1.     if(p->ClientId < 1000 && p->MobId < 1000)
  2.     {
  3.         static const int mat_CapeBlue[] = {736,1766,1767,1768,543,545,734,3191,3194,3197};
  4.         static const int mat_CapeRed[] = {737,1769,1770,1771,544,546,735,3192,3195,3198};
  5.         short toDo, toDo2;
  6.  
  7.         for(int i = 0; i < 10; i++)
  8.         {
  9.             if(player->Equip[15].Index == mat_CapeBlue[i]) toDo = 1;
  10.             else if(player->Equip[15].Index == mat_CapeRed[i]) toDo = 2;
  11.             else if(dead->Equip[15].Index == mat_CapeBlue[i]) toDo2 = 1;
  12.             else if(dead->Equip[15].Index == mat_CapeRed[i]) toDo2 = 2;
  13.         }
  14.  
  15.         if(toDo + toDo2 == 3)
  16.         {
  17.             player->QuestInfo += 10;
  18.             SendClientMsg(p->ClientId, "Fame + 10");
  19.         }
  20.  
  21.         else
  22.         {
  23.             if(player->QuestInfo >= 5) player->QuestInfo -= 5;
  24.             else player->QuestInfo == 0;
  25.             SendClientMsg(p->ClientId, "Fame - 5 (Friendly Fire)");
  26.         }
  27.     }
Add Comment
Please, Sign In to add comment