Jump to content

Recommended Posts

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Premium
On 2/8/2016 at 11:21 PM, Sonitex said:

You can edit the bonuses and durations on blend.txt in /locale/%/blend.txt/ (Serverside)

The bug is real and not so old, i found someone who made a fix in source for ModifyPoints.. I will test today

 apply_value    2    3    4    5    8
 apply_duration    60    120    180    300    600

 

char_item.cpp case ITEM_BLEND:

Find : AddAffect(affect_type, apply_type, apply_value, 0, apply_duration, 0, false); add befor this : 

item->ModifyPoints(false); //Bug fix 

 

Should look:

 

item->ModifyPoints(false); //Bug fix
                        AddAffect(affect_type, apply_type, apply_value, 0, apply_duration, 0, false);
                        item->SetCount(item->GetCount() - 1);

Link to comment
Share on other sites

  • Premium

mainline source never had this bug.

Spoiler

        case ITEM_BLEND:
            sys_log(0, "ITEM_BLEND");

            if (Blend_Item_find(item->GetVnum()))
            {
                if (item->GetSocket(0) >= static_cast<long>(_countof(aApplyInfo))) // Use long for ignore warnings in gcc
                {
                    sys_err("INVALID_BLEND_ITEM (id: %u, vnum: %u). Apply type is %ld", item->GetID(), item->GetVnum(), item->GetSocket(0));
                    return false;
                }

                int iApplyType = aApplyInfo[item->GetSocket(0)].bPointType;
                int iApplyValue = item->GetSocket(1), iApplyDuration = item->GetSocket(2);

                if (FindAffect(AFFECT_BLEND, iApplyType))
                {
                    ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ÀÌ¹Ì È¿°ú°¡ °É·Á ÀÖ½À´Ï´Ù."));
                    return false;
                }

                item->ModifyPoints(false);
                item->SetCount(item->GetCount() - 1);
                AddAffect(AFFECT_BLEND, iApplyType, iApplyValue, 0, iApplyDuration, 0, false);
            }
            break;

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.