Jump to content

Problem with BLEND items


Recommended Posts

HI,

 

I have a problem with blend items (50821-26). My blend.txt is perfect, it's like other 40K blend.txts. 

They didn't add the bonus, and they won't be removed. 

char_item.cpp:

	        case ITEM_BLEND:
            sys_log(0,"ITEM_BLEND!!");
            if (item->GetSocket(0) >= static_cast<long int>(_countof(aApplyInfo)))
            {
                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;
	

Sorry for my English.

Miki

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      Quest 6/7 Problem

    2. 5

      Effect weapons

    3. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

    4. 3

      Crystal Metinstone

    5. 3

      Feeding game source to LLM

    6. 113

      Ulthar SF V2 (TMP4 Base)

    7. 3

      Feeding game source to LLM

    8. 0

      Target Information System

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.