[C++] Skill saman Dragon / SKILL_PAERYONG

  • Autor subiect #TrC
  • Dată creare
  • Răspunsuri: Răspunsuri 0
  • Vizualizări: Vizualizări 65

#TrC

Fondator
Membru personal
11 Oct 2017
7.557
6.752
113
Monede Dragon
94
demo: https://gyazo.com/f7c9a0c48509a2766fe2dd5d9cca4bea

Tutorial:
Cod:
char_battle.cpp:

//cautati in class CFuncShoot:

                case SKILL_NOEJEON:
                case SKILL_GEOMPUNG:
                case SKILL_SANGONG:
                case SKILL_MAHWAN:
                case SKILL_PABEOB:
                    //case SKILL_CURSE:
                    {
                        m_me->OnMove(true);
                        pkVictim->OnMove();

//adaugati la inceput:

                case SKILL_PAERYONG:

//exemplu:

                case SKILL_PAERYONG:
                case SKILL_NOEJEON:
                case SKILL_GEOMPUNG:
                case SKILL_SANGONG:
                case SKILL_MAHWAN:
                case SKILL_PABEOB:
                    //case SKILL_CURSE:
                    {
                        m_me->OnMove(true);
                        pkVictim->OnMove();


char_skill.cpp

// in functia bool CHARACTER::UseSkill(DWORD dwVnum, LPCHARACTER pkVictim, bool bUseGrandMaster) cauta:

    if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY))
        ComputeSkill(dwVnum, this);
#ifdef ENABLE_WOLFMAN_CHARACTER                            //nu e obligatoriu sa ai asta
    else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY))    //nu e  blabla
        ComputeSkillParty(dwVnum, this);                // nu e blabla
#endif

// adauga inainte

    if (dwVnum == SKILL_PAERYONG)
        ComputeSkill(dwVnum, pkVictim);

// sa arate asa:
    if (dwVnum == SKILL_PAERYONG)
        ComputeSkill(dwVnum, pkVictim);
    if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY))
        ComputeSkill(dwVnum, this);

Download parte client: