Advertisement
xFaelz

Skill Poder Superior

Apr 25th, 2018
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.01 KB | None | 0 0
  1. //Source Code By Faelz' && Thiagodp
  2.     //Skill Sephira Poder Superior By Faelz'
  3. //Adicionar no _MSG_Attack.cpp
  4. #pragma region Poder Superior
  5.             else if (skillnum == 96)
  6.             {
  7.                 int value = 0;
  8.  
  9.                 int tempo = 80;
  10.  
  11.                 tempo = 80;
  12.                 value = 2;
  13.  
  14.  
  15.                 int EmptyAffect = -1;
  16.  
  17.                 for (int i = 0; i < MAX_AFFECT; i++)
  18.                 {
  19.                     if (pMob[conn].Affect[i].Type == 4 && pMob[conn].Affect[i].Value == value)
  20.                     {
  21.                         EmptyAffect = i;
  22.                         break;
  23.                     }
  24.                 }
  25.  
  26.                 for (int i = 0; i < MAX_AFFECT && EmptyAffect == -1; i++)
  27.                 {
  28.                     if (pMob[conn].Affect[i].Type == 0)
  29.                     {
  30.                         EmptyAffect = i;
  31.                         break;
  32.                     }
  33.                 }
  34.  
  35.                 if (EmptyAffect != -1)
  36.                 {
  37.                     pMob[conn].Affect[EmptyAffect].Type = 4;
  38.                     pMob[conn].Affect[EmptyAffect].Level = 0;
  39.                     pMob[conn].Affect[EmptyAffect].Value = value;
  40.                     pMob[conn].Affect[EmptyAffect].Time = tempo;
  41.  
  42.                     pMob[conn].GetCurrentScore(conn);
  43.                     SendScore(conn);
  44.                 }
  45.                 return;
  46.             }
  47. #pragma endregion
  48.             //Fim Skill Sephira Poder Superior
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement