Jump to content

rejenzuxx4754

Newbie
  • Posts

    2
  • Joined

  • Last visited

  • Feedback

    0%

1 Follower

About rejenzuxx4754

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

rejenzuxx4754's Achievements

Rookie

Rookie (2/16)

  • First Post
  • Conversation Starter
  • One Month Later
  • Dedicated
  • Week One Done

Recent Badges

1

Reputation

  1. thank you for the answer. In the description of the blend item that provides magic resistance, I noticed a statement about it being increased by a percentage. However, when I examined the code and the proto, it was being increased by a fixed value. The only explanation I could find is that if the blend item increases magic resistance by a percentage, it prevents excessive value increases that might occur if magic resistance has already been boosted by the "AFFECT_EXP_BONUS_EURO_FREE" type of affect. i think i'll follow this way.
  2. Hi everyone, I’m currently working on some C++ code for Metin2 and came across a section I’m having trouble understanding. Here’s the relevant part of the code: 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); } } I understand the general structure of checking for existing effects before applying new ones, but I’m specifically puzzled by the second condition: if (FindAffect(AFFECT_EXP_BONUS_EURO_FREE, POINT_RESIST_MAGIC)) Could someone explain the purpose of this specific "FindAffect" check? Thanks in advance!
×
×
  • 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.