iCoredump 280 Posted March 23, 2014 Share Posted March 23, 2014 Hi everyone, In this thread I will show you how to add new armor effects to the binary. Open InstanceBase.cpp and search for this: 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); } } 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; } Replace with this: case CItemData::ITEM_TYPE_ARMOR: __ClearArmorRefineEffect(); // °©¿Ê Æ¯È ÀÌÆåÆ® if (pItem->GetSubType() == CItemData::ARMOR_BODY) { DWORD vnum = pItem->GetIndex(); // color armors [blue shining] - DEFAULT if (vnum >= 12010 && vnum <= 12019 || //Blaustahlpanzer vnum >= 12020 && vnum <= 12029 || //Blauer Drachenanzug vnum >= 12030 && vnum <= 12039 || //Auraplattenpanzer vnum >= 12040 && vnum <= 12049) //Kleidung des Drachen { __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_SPECIAL); //effect 19 bubble __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_SPECIAL2); //effect 20 blue shining } //Beginning NEW ARMOR - [New Effect] - NEW ARMOR if (vnum == Item-ID? || vnum == Item-ID? || vnum == Item-ID? || vnum == Item-ID? || vnum == Item-ID? || vnum == Item-ID? || vnum == Item-ID? || vnum == Item-ID?) { __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_NEW_SPECIAL1); //effect 19 NEW EFFECT __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_NEW_SPECIAL2); //effect 21 NEW EFFECT __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_REFINED9); //effect 18 sparkle 9 effect } //End NEW ARMOR - [New Effect] - NEW ARMOR } 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; } Open InstanceBase.h and search for this: EFFECT_BODYARMOR_SPECIAL, EFFECT_BODYARMOR_SPECIAL2, Add the new lines with the new effects name and go over with the mouse to see the position of the effect in the enum. Example: EFFECT_BODYARMOR_SPECIAL = 19 EFFECT_BODYARMOR_SPECIAL2 = 20 EFFECT_BODYARMOR_NEW_SPECIAL1 = 21 EFFECT_BODYARMOR_NEW_SPECIAL2 = 22 Open the playersettingmodule.py and add the new effects chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+19, "Bip01", "D:/ymir work/pc/common/effect/armor/armor-4-2-1.mse") chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+20, "Bip01", "D:/ymir work/pc/common/effect/armor/armor-4-2-2.mse") chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+21, "Bip01", "D:/ymir work/pc/common/effect/armor/armor-effect-new1.mse") chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+22, "Bip01", "D:/ymir work/pc/common/effect/armor/armor-effect-new2.mse") After you did it pack the root.epk/eix and compile the binary. 27 Link to comment Share on other sites More sharing options...
Shichirojii 8 Posted March 24, 2014 Share Posted March 24, 2014 Excellent contribution! 1 Link to comment Share on other sites More sharing options...
Mehti 76 Posted March 24, 2014 Share Posted March 24, 2014 Very useful, thanks 1 Link to comment Share on other sites More sharing options...
iCoredump 280 Posted March 24, 2014 Author Share Posted March 24, 2014 Thanks for your feedback Shichirojii, Mehti and I hope the other people on metin2dev can use too. 2 Link to comment Share on other sites More sharing options...
SøηGøku® 8 Posted March 24, 2014 Share Posted March 24, 2014 Add to the game binary? Or client binary? Sorry, i'm new at this xd Link to comment Share on other sites More sharing options...
Former Staff .InyaProduction 1123 Posted March 24, 2014 Former Staff Share Posted March 24, 2014 Its the client binary 1 Link to comment Share on other sites More sharing options...
SøηGøku® 8 Posted March 24, 2014 Share Posted March 24, 2014 Where do i find those files? Link to comment Share on other sites More sharing options...
Former Staff .InyaProduction 1123 Posted March 24, 2014 Former Staff Share Posted March 24, 2014 There is something called search in files function in notepad ++ 1 Link to comment Share on other sites More sharing options...
SøηGøku® 8 Posted March 24, 2014 Share Posted March 24, 2014 I just wanted to know wich files that is xd I never dealt with this type of thing before, but i want to learn. Link to comment Share on other sites More sharing options...
Former Staff .InyaProduction 1123 Posted March 24, 2014 Former Staff Share Posted March 24, 2014 Yes. Therefor is the function search in files... xD Just search a part of the function described at top with notepad++ and the file name will be showed 1 Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted March 24, 2014 Premium Share Posted March 24, 2014 It is possible write this on 34k for diff? Link to comment Share on other sites More sharing options...
Former Staff .InyaProduction 1123 Posted March 24, 2014 Former Staff Share Posted March 24, 2014 You would have to make a jump to an unused function and overwrite that one with the if from above then jump back. Cause you cant insert lines by dif.. just change them 2 Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted March 24, 2014 Premium Share Posted March 24, 2014 You would have to make a jump to an unused function and overwrite that one with the if from above then jump back. Cause you cant insert lines by dif.. just change them thank you.. Link to comment Share on other sites More sharing options...
iCoredump 280 Posted March 24, 2014 Author Share Posted March 24, 2014 Thank you guys, in the future I will do more releases 1 Link to comment Share on other sites More sharing options...
Invicta³ 2 Posted March 26, 2014 Share Posted March 26, 2014 Thank you for the effect how to iCoredump 1 Link to comment Share on other sites More sharing options...
danhakhavro 42 Posted April 18, 2014 Share Posted April 18, 2014 Wats this InstanceBase.cpp and how i can open it? Thanks Link to comment Share on other sites More sharing options...
AngelVkedax 0 Posted December 31, 2014 Share Posted December 31, 2014 Wats this InstanceBase.cpp and how i can open it? Thanks UP Who can change shining in source for me ? Or who can give me a source 34083 binary? I would be very grateful. Please white on skype : vad1m.yankovsk1y Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted December 31, 2014 Premium Share Posted December 31, 2014 Wats this InstanceBase.cpp and how i can open it? Thanks UP Who can change shining in source for me ? Or who can give me a source 34083 binary? I would be very grateful. Please white on skype : vad1m.yankovsk1y Source ~37k+ but mainly 40k+ Link to comment Share on other sites More sharing options...
Krixius 13 Posted June 17, 2015 Share Posted June 17, 2015 how can i do this in a weapon ? Link to comment Share on other sites More sharing options...
Tülay 8 Posted June 17, 2015 Share Posted June 17, 2015 (edited) he work ? Edited June 17, 2015 by Tülay Link to comment Share on other sites More sharing options...
Krixius 13 Posted June 17, 2015 Share Posted June 17, 2015 if you edit this, for weapons works, but when u unequip the weapon, the shine continues. Link to comment Share on other sites More sharing options...
skill178 19 Posted June 21, 2015 Share Posted June 21, 2015 how can i do this in a weapon ? case CItemData::ITEM_TYPE_WEAPON: __ClearWeaponRefineEffect(); if (refine < 7) //ÇöÀç Á¦·Ãµµ 7 ÀÌ»ó¸¸ ÀÌÆåÆ®°¡ ÀÖ½À´Ï´Ù. return 0; switch(pItem->GetSubType()) { 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::WEAPON_FAN: m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_FANBELL_REFINED7+refine-7; break; case CItemData::WEAPON_ARROW: case CItemData::WEAPON_BELL: m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED7+refine-7; break; 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; ???? Link to comment Share on other sites More sharing options...
adisala 2 Posted October 28, 2015 Share Posted October 28, 2015 how can I do this with acce system? Link to comment Share on other sites More sharing options...
Premium DiviDi 1 Posted October 30, 2015 Premium Share Posted October 30, 2015 (edited) # very good Edited October 31, 2015 by DiviDi Link to comment Share on other sites More sharing options...
Rinnegan 17 Posted November 7, 2015 Share Posted November 7, 2015 This work perfect but in costumes not work the shinings, can try fix put shinings on costumes please? thanks!. Link to comment Share on other sites More sharing options...
Recommended Posts