CONTROL 82 Posted May 8 Share Posted May 8 hi, long story short i've seen some global servers adding a certain effects to some items to make them LEGENDARY and i think it looks cool so i've decided to code it and make it public and this is a gif to show u what i mean Downsides - The alpha is a miss for some unknown reason - the effect won't apply on items that dosen't use SLOT other than that it's great, and you can choose a certain set of items and apply a certain color on each set too for example 0: ((19, 40101, 41117, 45053), (1.0, 1.0, 1.0, 1.0)), 1: ((18, 40102, 41118, 45054), (0.5, 1.0, 1.0, 1.0)), link: Spoiler This is the hidden content, please Sign In or Sign Up This is the hidden content, please Sign In or Sign Up 45 7 1 20 Link to comment Share on other sites More sharing options...
CONTROL 82 Posted May 11 Author Share Posted May 11 (edited) - Fixed - The alpha is a miss for some unknown reason Edited May 11 by Metin2 Dev International Core X - External 2 Internal 3 Link to comment Share on other sites More sharing options...
TheEnd 3 Posted May 11 Share Posted May 11 are sure this ur code? Link to comment Share on other sites More sharing options...
CONTROL 82 Posted May 11 Author Share Posted May 11 (edited) @TheEnd Do you have any idea who u talking to, kid ? Edited May 11 by CONTROL Link to comment Share on other sites More sharing options...
Hekate 0 Posted May 11 Share Posted May 11 (edited) https://metin2.download/picture/QU2eIaexv7OSJj4Ve4flk19ULMSRjBo2/.png Edited May 11 by Metin2 Dev International Core X - External 2 Internal Link to comment Share on other sites More sharing options...
CONTROL 82 Posted May 11 Author Share Posted May 11 (edited) 56 minutes ago, Hekate said: https://metin2.download/picture/QU2eIaexv7OSJj4Ve4flk19ULMSRjBo2/.png Hi, im working on (martysama) files but u can try to adjust your source whatever it's like this PythonWindow.cpp Spoiler #if defined(ENABLE_LEGENDARY_SLOT_EFFECT) void CAniImageBox::AppendImage(const char * c_szFileName, float r, float g, float b, float a) #else void CAniImageBox::AppendImage(const char * c_szFileName) #endif { CResource * pResource = CResourceManager::Instance().GetResourcePointer(c_szFileName); if (!pResource->IsType(CGraphicImage::Type())) return; CGraphicExpandedImageInstance * pImageInstance = CGraphicExpandedImageInstance::New(); pImageInstance->SetImagePointer(static_cast<CGraphicImage*>(pResource)); #if defined(ENABLE_LEGENDARY_SLOT_EFFECT) pImageInstance->SetDiffuseColor(r, g, b, a); #endif if (pImageInstance->IsEmpty()) { CGraphicExpandedImageInstance::Delete(pImageInstance); return; } m_ImageVector.push_back(pImageInstance); m_bycurIndex = rand() % m_ImageVector.size(); } PythonWindow.h Spoiler #if defined(ENABLE_LEGENDARY_SLOT_EFFECT) void AppendImage(const char * c_szFileName, float r = 1.0, float g = 1.0, float b = 1.0, float a = 1.0); #else void AppendImage(const char * c_szFileName); #endif Edited May 11 by CONTROL 1 Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19763 Posted May 12 Honorable Member Share Posted May 12 Nice idea. Yesterday I wanted to mention that the guide might be wrong for some people whom have no clue about the things, in this case the custom AppendImage from the Sash system by LeNnT or whoever. Alpha channel is a thing, not that hard to deal with it, but you forgot to refresh the links after you managed to fix them . Also white image might be better to recolor with diffuse. Spoiler 1 1 Link to comment Share on other sites More sharing options...
boloca 4 Posted May 12 Share Posted May 12 I tried to install it but it didn't work, there are no errors, but the slot doesn't change color Link to comment Share on other sites More sharing options...
SNIPER3BOD 20 Posted May 12 Share Posted May 12 Good job Control, you are always the best !! 1 Link to comment Share on other sites More sharing options...
CONTROL 82 Posted May 12 Author Share Posted May 12 (edited) 7 hours ago, xP3NG3Rx said: Nice idea. Yesterday I wanted to mention that the guide might be wrong for some people whom have no clue about the things, in this case the custom AppendImage from the Sash system by LeNnT or whoever. Alpha channel is a thing, not that hard to deal with it, but you forgot to refresh the links after you managed to fix them . Also white image might be better to recolor with diffuse. Hide contents - the problem wasn't the alpha channel tho it was something with the RenderingMode XD - sry, im not really active in here and i didn't know how to edit the topic so i just report it to the mod with the new link - i didn't really make the pics my self, a friend just sent them to me with the idea Edited May 12 by CONTROL Link to comment Share on other sites More sharing options...
Savroz 0 Posted May 13 Share Posted May 13 I'm having trouble giving different colors. Can you give a few more examples? Link to comment Share on other sites More sharing options...
KingzZ 10 Posted May 17 Share Posted May 17 It´s lagy if start switchbot Link to comment Share on other sites More sharing options...
CONTROL 82 Posted May 18 Author Share Posted May 18 16 hours ago, KingzZ said: It´s lagy if start switchbot if you've got a switchbot that's spamming the shit out of your inventory then belive me, my system isn't the problem that you should worry about. Link to comment Share on other sites More sharing options...
boloca 4 Posted June 4 Share Posted June 4 I'm having trouble giving different colors. Can you give a few more examples? 1 Link to comment Share on other sites More sharing options...
CONTROL 82 Posted June 4 Author Share Posted June 4 (edited) 6 hours ago, boloca said: I'm having trouble giving different colors. Can you give a few more examples? just use Google search for (color picker) and you'll find a tool that can show you the rgp etc.. this is like the ABC of programing, i won't give you anymore help about it. Edited June 4 by CONTROL Link to comment Share on other sites More sharing options...
boloca 4 Posted June 10 Share Posted June 10 On 04/06/2024 at 12:09, CONTROL said: basta usar o Google procure por (seletor de cores) e você encontrará uma ferramenta que pode mostrar o rgp etc. isso é como o ABC da programação, não vou mais te ajudar sobre isso. I know this, however, no matter how much I change the colors, nothing changes within the game. Link to comment Share on other sites More sharing options...
Recommended Posts