IonutKING 0 Posted October 7, 2018 Share Posted October 7, 2018 (edited) Hi,how can i fix this error ? Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted October 7, 2018 Premium Share Posted October 7, 2018 after #ifdef DWORD vnum = pItem->GetIndex(); .... Link to comment Share on other sites More sharing options...
IonutKING 0 Posted October 7, 2018 Author Share Posted October 7, 2018 Acum 10 ore, WeedHex a spus: after #ifdef DWORD vnum = pItem->GetIndex(); .... I do not understand what you mean Tutorial temple ochao https://pastebin.com/G2PvK2Ur Instancebase.cpp https://pastebin.com/VKBgJ03Z Did not i put it right ? Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted October 7, 2018 Premium Share Posted October 7, 2018 Wrong indentation. Variable declared on the first if but used also in the second if. Link to comment Share on other sites More sharing options...
IonutKING 0 Posted October 7, 2018 Author Share Posted October 7, 2018 Acum 10 ore, WeedHex a spus: Wrong indentation. Variable declared on the first if but used also in the second if. And you can not help me with anything ? Link to comment Share on other sites More sharing options...
ManiacRobert 427 Posted October 7, 2018 Share Posted October 7, 2018 if (pItem->GetSubType() == CItemData::ARMOR_BODY) { DWORD vnum = pItem->GetIndex(); if (12010 <= vnum && vnum <= 12049) { __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL); __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL2); } #ifdef VERSION_162_ENABLED if (20760 <= vnum && vnum <= 20959) { __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_SPECIAL3); break; } #endif } if (refine < 7) //현재 제련도 7 이상만 이펙트가 있습니다. return 0; if (pItem->GetSubType() == CItemData::ARMOR_BODY) { m_armorRefineEffect = EFFECT_REFINED+EFFECT_BODYARMOR_REFINED7+refine-7; __AttachEffect(m_armorRefineEffect); } break; } return 0; } Link to comment Share on other sites More sharing options...
IonutKING 0 Posted October 7, 2018 Author Share Posted October 7, 2018 Acum 10 ore, ManiacRobert a spus: if (pItem->GetSubType() == CItemData::ARMOR_BODY) { DWORD vnum = pItem->GetIndex(); if (12010 <= vnum && vnum <= 12049) { __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL); __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL2); } #ifdef VERSION_162_ENABLED if (20760 <= vnum && vnum <= 20959) { __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_SPECIAL3); break; } #endif } if (refine < 7) //현재 제련도 7 이상만 이펙트가 있습니다. return 0; if (pItem->GetSubType() == CItemData::ARMOR_BODY) { m_armorRefineEffect = EFFECT_REFINED+EFFECT_BODYARMOR_REFINED7+refine-7; __AttachEffect(m_armorRefineEffect); } break; } return 0; } I do not understand what you mean Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted October 7, 2018 Premium Share Posted October 7, 2018 For first put like to our solution... then copy paste! ManiacRobert gave you the right solution in rapid way xD... Link to comment Share on other sites More sharing options...
IonutKING 0 Posted October 7, 2018 Author Share Posted October 7, 2018 Acum 11 ore, ManiacRobert a spus: if (pItem->GetSubType() == CItemData::ARMOR_BODY) { DWORD vnum = pItem->GetIndex(); if (12010 <= vnum && vnum <= 12049) { __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL); __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL2); } #ifdef VERSION_162_ENABLED if (20760 <= vnum && vnum <= 20959) { __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_SPECIAL3); break; } #endif } if (refine < 7) //현재 제련도 7 이상만 이펙트가 있습니다. return 0; if (pItem->GetSubType() == CItemData::ARMOR_BODY) { m_armorRefineEffect = EFFECT_REFINED+EFFECT_BODYARMOR_REFINED7+refine-7; __AttachEffect(m_armorRefineEffect); } break; } return 0; } After the changed https://pastebin.com/xzLCr3u0 InstanceBase.cpp full Link to comment Share on other sites More sharing options...
Xploitz 8 Posted October 8, 2018 Share Posted October 8, 2018 Sorry to tell this, but you can't even copy-paste bro.... Change your "UINT CInstanceBase::__GetRefinedEffect(CItemData* pItem)" to this. UINT CInstanceBase::__GetRefinedEffect(CItemData* pItem) { DWORD refine = max(pItem->GetRefine() + pItem->GetSocketCount(),CItemData::ITEM_SOCKET_MAX_NUM) - CItemData::ITEM_SOCKET_MAX_NUM; switch (pItem->GetType()) { case CItemData::ITEM_TYPE_WEAPON: __ClearWeaponRefineEffect(); if (refine < 7) //현재 제련도 7 이상만 이펙트가 있습니다. return 0; switch(pItem->GetSubType()) { case CItemData::COSTUME_WEAPON_DAGGER: case CItemData::WEAPON_DAGGER: m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED7+refine-7; m_swordRefineEffectLeft = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED7_LEFT+refine-7; break; case CItemData::COSTUME_WEAPON_FAN: case CItemData::WEAPON_FAN: m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_FANBELL_REFINED7+refine-7; break; case CItemData::COSTUME_WEAPON_BELL: case CItemData::WEAPON_ARROW: case CItemData::WEAPON_BELL: m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED7+refine-7; break; case CItemData::COSTUME_WEAPON_BOW: case CItemData::WEAPON_BOW: m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_BOW_REFINED7+refine-7; break; default: m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_SWORD_REFINED7+refine-7; } if (m_swordRefineEffectRight) m_swordRefineEffectRight = __AttachEffect(m_swordRefineEffectRight); if (m_swordRefineEffectLeft) m_swordRefineEffectLeft = __AttachEffect(m_swordRefineEffectLeft); break; case CItemData::ITEM_TYPE_ARMOR: __ClearArmorRefineEffect(); // 갑옷 특화 이펙트 if (pItem->GetSubType() == CItemData::ARMOR_BODY) { DWORD vnum = pItem->GetIndex(); if (12010 <= vnum && vnum <= 12049) { __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL); __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL2); } #ifdef VERSION_162_ENABLED if (20760 <= vnum && vnum <= 20959) { __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_SPECIAL3); break; } #endif } if (refine < 7) //현재 제련도 7 이상만 이펙트가 있습니다. return 0; if (pItem->GetSubType() == CItemData::ARMOR_BODY) { m_armorRefineEffect = EFFECT_REFINED+EFFECT_BODYARMOR_REFINED7+refine-7; __AttachEffect(m_armorRefineEffect); } break; } return 0; } Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now