Active Member ReFresh 2356 Posted January 29, 2018 Active Member Share Posted January 29, 2018 Hey guys, I saw on some server new feature for warp scrolls when you hover over the warp scroll with mouse cursor you will be able to see the map with coordinates where you will be teleported. Can someone make it? Arrow shows where is target of the coordinates. The target is flashing like when you make new target with quest. I'll be always helpful! Link to comment Share on other sites More sharing options...
meldon 0 Posted February 10, 2018 Share Posted February 10, 2018 I can make it Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19773 Posted February 17, 2018 Honorable Member Share Posted February 17, 2018 Such a good idea 1 Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted February 17, 2018 Share Posted February 17, 2018 (edited) Its really easy to do that (This is not finished but just an example) Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal https://m2admin.net/ Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted February 17, 2018 Author Active Member Share Posted February 17, 2018 Oh nice! Can someone make it? If it's easy to do that it should be free. But I can pay for it I'll be always helpful! Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1208 Posted February 18, 2018 Active+ Member Share Posted February 18, 2018 Spoiler ## uitooltip.py ## 1. Search: self.AppendTextLine(localeInfo.TOOLTIP_MEMORIZED_POSITION % (localeMapName, int(xPos-xBase)/100, int(yPos-yBase)/100), self.NORMAL_COLOR) ## 1. Add after: self.AppendMapImage(mapName, int(xPos-xBase)/100, int(yPos-yBase)/100) ## 2. Search function: def __DragonSoulInfoString (self, dwVnum): ... ## 2. Add after: def AppendMapImage(self, mapName, xPos, yPos): mapImage = ui.ImageBox() mapImage.SetParent(self) mapImage.Show() mapImage.LoadImage("d:/ymir work/ui/atlas/%s/atlas.sub" % (mapName)) mapImage.SetPosition(0, self.toolTipHeight) mapImage.SetWindowHorizontalAlignCenter() mapSizeDict = { "metin2_map_c1" : [4, 5], } if mapName in mapSizeDict: pointImageX = (xPos / float(mapSizeDict[mapName][0] * (128 * 200)) * float(mapImage.GetWidth())) * 100 - 15.0 pointImageY = (yPos / float(mapSizeDict[mapName][1] * (128 * 200)) * float(mapImage.GetHeight())) * 100 - 15.0 pointImage = ui.AniImageBox() pointImage.SetParent(mapImage) pointImage.SetDelay(6) for i in xrange(1, 13): pointImage.AppendImage("d:/ymir work/ui/minimap/mini_waypoint%02d.sub" % i) pointImage.SetPosition(pointImageX, pointImageY) pointImage.Show() self.toolTipHeight += mapImage.GetHeight() self.childrenList.append(mapImage) if mapName in mapSizeDict: self.childrenList.append(pointImage) self.ResizeToolTip() That's the hard way ... Please don't say it's ugly code, I know it. 7 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted February 18, 2018 Author Active Member Share Posted February 18, 2018 @Abel(Tiger) Hey, it's working but I have a little problem. Coordinates shows bad position. Try to fix this mathematics: pointImageX = (xPos / float(mapSizeDict[mapName][0] * (128 * 200)) * float(mapImage.GetWidth())) * 100 - 15.0 pointImageY = (yPos / float(mapSizeDict[mapName][1] * (128 * 200)) * float(mapImage.GetHeight())) * 100 - 15.0 I'll be always helpful! Link to comment Share on other sites More sharing options...
Tasho 244 Posted February 19, 2018 Share Posted February 19, 2018 (edited) 11 hours ago, Abel(Tiger) said: Hide contents for i in xrange(0, 13): pointImage.AppendImage("d:/ymir work/ui/minimap/mini_waypoint%02d.sub" % i) MINI_WAYPOINT_IMAGE_COUNT = 12 ..\Client\src\UserInterface\PythonMiniMap.h You should replace your xrange with start = 1 Good job. Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1208 Posted February 19, 2018 Active+ Member Share Posted February 19, 2018 (edited) @ReFresh That math is working for me https://metin2.download/picture/gysEx31h4260Fa0350MID6jgS7CnwRY9/.gif @Tasho My mistake Edited August 27, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted February 19, 2018 Author Active Member Share Posted February 19, 2018 @Abel(Tiger) Can you explain me the math which you used? Because for me that still shows bad coordinates position. I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted February 21, 2018 Author Active Member Share Posted February 21, 2018 Can someone explain me how the math work? I'll be always helpful! Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1208 Posted February 21, 2018 Active+ Member Share Posted February 21, 2018 PythonMiniMap.cpp => CPythonMiniMap::UpdateAtlas() => m_AtlasPlayerMark.SetPosition Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted February 21, 2018 Author Active Member Share Posted February 21, 2018 @Abel(Tiger) I thought about why I'm getting bad coordinates and you're getting right coordinates when both of us using the same code. I'll be always helpful! Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1208 Posted February 21, 2018 Active+ Member Share Posted February 21, 2018 Well, post uiTooltip.py , maybe you did something wrong. Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted February 21, 2018 Author Active Member Share Posted February 21, 2018 Here you are: Spoiler https://pastebin.com/msDB67ag @Abel(Tiger) I'll be always helpful! Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1208 Posted February 21, 2018 Active+ Member Share Posted February 21, 2018 Well, it can be atlas image problem. Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted February 21, 2018 Author Active Member Share Posted February 21, 2018 @Abel(Tiger) map.sub: Spoiler title subImage version 1.0 image "map_c1.jpg" left 0 top 0 right 210 bottom 262 Size of map image: 210x262 I'll be always helpful! Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1208 Posted February 21, 2018 Active+ Member Share Posted February 21, 2018 (edited) And you understood what those are ? Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted February 21, 2018 Author Active Member Share Posted February 21, 2018 Sure, it's map name and map size @Abel(Tiger) I'll be always helpful! Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1208 Posted February 21, 2018 Active+ Member Share Posted February 21, 2018 Contact me in PM, I can't write here anymore. Haters, STFU Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted March 5, 2018 Author Active Member Share Posted March 5, 2018 Can someone help me to fix it? I have problem with flashing point. It showing bad position and only one and the same position of flashing point at each coordinates. I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted March 10, 2018 Author Active Member Share Posted March 10, 2018 I pay for the fix. I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted March 25, 2018 Author Active Member Share Posted March 25, 2018 Still I need a fix for it :/ I'll be always helpful! Link to comment Share on other sites More sharing options...
Premium Dr3Ame3r 33 Posted March 26, 2018 Premium Share Posted March 26, 2018 //removed Link to comment Share on other sites More sharing options...
Active Member ReFresh 2356 Posted March 27, 2018 Author Active Member Share Posted March 27, 2018 @Dr3Ame3r Do you know fix? I'll be always helpful! 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