Beiträge von toni babl

    Hello

    I need help

    I want to modify the blend System in the game Matin 2

    I want to make the blend System accept 4 features instead of 1


    sys_log(0,"ITEM_BLEND!!");

    if (Blend_Item_find(item->GetVnum()))

    {

    int affect_type = AFFECT_BLEND;

    if (item->GetSocket(0) >= _countof(aApplyInfo))

    {

    sys_err ("INVALID BLEND ITEM(id : %d, vnum : %d). APPLY TYPE IS %d.", item->GetID(), item->GetVnum(), item->GetSocket(0));

    return false;

    }


    int apply_type = aApplyInfo[item->GetSocket(0)].bPointType;

    int apply_value = item->GetSocket(1);

    int apply_duration = item->GetSocket(2);


    if (FindAffect(affect_type, apply_type))

    {

    ChatPacket(CHAT_TYPE_INFO, LC_TEXT("이미 효과가 걸려 있습니다."));

    }

    else

    {

    if (FindAffect(AFFECT_EXP_BONUS_EURO_FREE, POINT_RESIST_MAGIC))

    {

    ChatPacket(CHAT_TYPE_INFO, LC_TEXT("이미 효과가 걸려 있습니다."));

    }

    else

    {

    AddAffect(affect_type, apply_type, apply_value, 0, apply_duration, 0, false);

    item->SetCount(item->GetCount() - 1);

    }

    }

    }

    break;