Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Source Code By Faelz' && Thiagodp
- //Skill Sephira Poder Superior By Faelz'
- //Adicionar no _MSG_Attack.cpp
- #pragma region Poder Superior
- else if (skillnum == 96)
- {
- int value = 0;
- int tempo = 80;
- tempo = 80;
- value = 2;
- int EmptyAffect = -1;
- for (int i = 0; i < MAX_AFFECT; i++)
- {
- if (pMob[conn].Affect[i].Type == 4 && pMob[conn].Affect[i].Value == value)
- {
- EmptyAffect = i;
- break;
- }
- }
- for (int i = 0; i < MAX_AFFECT && EmptyAffect == -1; i++)
- {
- if (pMob[conn].Affect[i].Type == 0)
- {
- EmptyAffect = i;
- break;
- }
- }
- if (EmptyAffect != -1)
- {
- pMob[conn].Affect[EmptyAffect].Type = 4;
- pMob[conn].Affect[EmptyAffect].Level = 0;
- pMob[conn].Affect[EmptyAffect].Value = value;
- pMob[conn].Affect[EmptyAffect].Time = tempo;
- pMob[conn].GetCurrentScore(conn);
- SendScore(conn);
- }
- return;
- }
- #pragma endregion
- //Fim Skill Sephira Poder Superior
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement