Honorable Member xP3NG3Rx 19760 Posted May 24, 2020 Honorable Member Share Posted May 24, 2020 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Hello. Demo: Spoiler This is the hidden content, please Sign In or Sign Up 100 1 1 1 2 24 3 65 Link to comment Share on other sites More sharing options...
Kafa 153 Posted May 24, 2020 Share Posted May 24, 2020 (edited) Thanks for the release tho Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19760 Posted May 24, 2020 Author Honorable Member Share Posted May 24, 2020 Just remove the scale, is not necessary anyway. 1 Link to comment Share on other sites More sharing options...
Kafa 153 Posted May 24, 2020 Share Posted May 24, 2020 Works! Thanks penger Link to comment Share on other sites More sharing options...
Premium Hunger 475 Posted May 24, 2020 Premium Share Posted May 24, 2020 (edited) Nice one mate! I made it like this: https://metin2.download/picture/5g11DYUF2nhwf1OBbxp9h7g19UK00lOO/.gif if i == 0: if getItemVNum(slotNumber): self.wndEquip.ActivateSlot(slotNumber, 248, 243, 82, 1.0) else: self.wndEquip.DeactivateSlot(slotNumber) Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 3 Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19760 Posted May 27, 2020 Author Honorable Member Share Posted May 27, 2020 Who doesn't have the OnOverIn / OnOverOut here are the functions and declarations of them: 2 Link to comment Share on other sites More sharing options...
Ronaldo 0 Posted June 20, 2020 Share Posted June 20, 2020 (edited) Hello P3NG3R --> xP3NG3Rx I want to add this system. But I am constantly encountering errors. Error 1: Also bkz: rpHighLightImage->SetScale(m_v2Scale.x, m_v2Scale.y); It is not an identifier for me. For this reason, I had to do it this way. Here is My "SetDiffuseColor" My Member: PhytonWindow.h for : // Image class CImageBox : public CWindow { public: CImageBox(PyObject * ppyObject); virtual ~CImageBox(); BOOL LoadImage(const char * c_szFileName); void SetDiffuseColor(float fr, float fg, float fb, float fa); int GetWidth(); int GetHeight(); protected: virtual void OnCreateInstance(); virtual void OnDestroyInstance(); virtual void OnUpdate(); virtual void OnRender(); void OnChangePosition(); protected: CGraphicImageInstance * m_pImageInstance; }; other member: PhytonWindow.h for class CMarkBox : public CWindow { public: CMarkBox(PyObject * ppyObject); virtual ~CMarkBox(); void LoadImage(const char * c_szFilename); void SetDiffuseColor(float fr, float fg, float fb, float fa); void SetIndex(UINT uIndex); void SetScale(FLOAT fScale); protected: virtual void OnCreateInstance(); virtual void OnDestroyInstance(); virtual void OnUpdate(); virtual void OnRender(); void OnChangePosition(); protected: CGraphicMarkInstance * m_pMarkInstance; }; Thank You P3NG3R Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19760 Posted June 20, 2020 Author Honorable Member Share Posted June 20, 2020 (edited) SetDiffuseColor(float fr, float fg, float fb, float fa); Just unpack the color into 4 variables if you don't have the function which supports the packed color. The scale is not important unless you have implemented for every each class. I have them, this why I put there just for "in case". Edited June 20, 2020 by xP3NG3Rx Link to comment Share on other sites More sharing options...
Ronaldo 0 Posted June 21, 2020 Share Posted June 21, 2020 (edited) 45 minutes ago, xP3NG3Rx said: Just unpack the color into 4 variables if you don't have the function which supports the packed color. The scale is not important unless you have implemented for every each class. I have them, this why I put there just for "in case". I have no idea how to do this. therefore I will not be able to use the system. but i am grateful for your reply Edited June 21, 2020 by Ronaldo Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19760 Posted June 21, 2020 Author Honorable Member Share Posted June 21, 2020 (edited) Pick one from the last two: To everyone: If you are running a server and this(color argument) is a big deal to figure out what to do with it, it's time to learn some programming basics, is not terrifying neither biting you Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Ronaldo 0 Posted June 21, 2020 Share Posted June 21, 2020 (edited) 27 minutes ago, xP3NG3Rx said: Pick one from the last two: To everyone: If you are running a server and this(color argument) is a big deal to figure out what to do with it, it's time to learn some programming basics, is not terrifying neither biting you there is no picture, brother. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Ronaldo 0 Posted June 21, 2020 Share Posted June 21, 2020 Please do not get me wrong. But when making this system, you need to include the package color function. You also need to include this function. m_v2Scale.x, m_v2Scale.y Because Metin2 doesn't have these functions in the basic codes of the game. It is wrong to use these functions in files without these functions. Because nobody will be able to use this system. So there is no logic to share publicly. But people should learn basic coding what you want and add the system. But you need to appeal to both people. Those who know coding and do not know coding. I'm sorry for my bad english. <3 Link to comment Share on other sites More sharing options...
Premium Hunger 475 Posted June 22, 2020 Premium Share Posted June 22, 2020 Just use the code posted by me is easier if you have missing parts. Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19760 Posted June 22, 2020 Author Honorable Member Share Posted June 22, 2020 Just remove the call of SetScale function and change the arguments of the SetDiffuseColor, to SetDiffuseColor(m_Color.r, m_Color.g, m_Color.b, m_Color.a); 1 Link to comment Share on other sites More sharing options...
Drow 3 Posted July 9, 2020 Share Posted July 9, 2020 (edited) its quite nice, for me it worked with all the information provided here. https://metin2.download/picture/6H24I4ofDfN04Pxr8d681S4m6XaLtv9t/.gif thanks. Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 1 2 Link to comment Share on other sites More sharing options...
Recommended Posts