Noticias:

SMF - Just Installed!

Menú principal

Fix Swell Life Party

Publicado por Dakosmu, Jul 08, 2023, 06:06 AM

Tema anterior - Siguiente tema

Dakosmu

Fix Swell Life Party


Some of you didnt notice this but this is the fix


go to SkillManager look for :


SkillGreaterLife

PARTY_INFO* lpParty = &gParty.m_PartyInfo[lpObj->PartyNumber];

        for(int n=0;n < MAX_PARTY_USER;n++)
        {
            int index = lpParty->Index[n];

            if(OBJECT_RANGE(index) == 0)
            {
                continue;
            }

            if(this->CheckSkillRadio(lpSkill->m_index,lpObj->X,lpObj->Y,gObj[index].X,gObj[index].Y) == 0)
            {
                continue;
            }

            value1 = (value1*((gObj[index].Type==OBJECT_USER)?gServerInfo.m_GreaterLifeRate[lpObj->Class]:100))/100;

            gEffectManager.AddEffect(&gObj[index],0,this->GetSkillEffect(lpSkill->m_index),count,value1,value2,value3,0);

            this->GCSkillAttackSend(lpObj,lpSkill->m_index,index,1);
        }
    }

    return 1;
}


Replace :





PARTY_INFO* lpParty = &gParty.m_PartyInfo[lpObj->PartyNumber];
const int Health = value1; //fix hp party
for (int n = 0; n < MAX_PARTY_USER; n++)
{
int index = lpParty->Index[n];
LPOBJ lpTarget = &gObj[index];

if (OBJECT_RANGE(index) == 0)
{
continue;
}

if (this->CheckSkillRadio(lpSkill->m_index, lpObj->X, lpObj->Y, lpTarget->X, lpTarget->Y) == 0)
{
continue;
}

//fix hp party
value1 = (Health * ((lpTarget->Type == OBJECT_USER) ? gServerInfo.m_GreaterLifeRate[lpTarget->Class] : 100)) / 100;



gEffectManager.AddEffect(lpTarget, 0, this->GetSkillEffect(lpSkill->m_index), count, value1, value2, value3, 0);

this->GCSkillAttackSend(lpObj, lpSkill->m_index, index, 1);
}
}

return 1;
}



Bon Dia

🡱 🡳