Apr
13
12
1
Hello everyone, dear Metin2Core, today I will share Atlas Boss System with you.
Functions ;
- Players are able to move to any location by clicking on the boss
- You can restrict the teleport with items & yang
- You can set up as many bosses as you want
Notice ;
- if something is missing let me know
- if it's released already let me also know
Python:
########### uiminimap.py ###########
#search:
import interfacemodule
#add:
if app.ENABLE_ATLAS_BOSS:
import grp
#search in:
class MapTextToolTip(ui.Window):
#for:
textLine.SetParent(self)
#add:
if not app.ENABLE_ATLAS_BOSS:
textLine.SetHorizontalAlignCenter()
#for:
textLine.SetOutline()
#add:
if not app.ENABLE_ATLAS_BOSS:
textLine.SetHorizontalAlignRight()
else:
textLine.SetHorizontalAlignLeft()
#for:
self.textLine = textLine
#add:
if app.ENABLE_ATLAS_BOSS:
textLine2 = ui.TextLine()
textLine2.SetParent(self)
textLine2.SetOutline()
textLine2.SetHorizontalAlignLeft()
textLine2.Show()
self.textLine2 = textLine2
#search for:
def SetText(self, text):
self.textLine.SetText(text)
#add:
if app.ENABLE_ATLAS_BOSS:
def SetText2(self, text):
self.textLine2.SetText(text)
def ShowText2(self):
self.textLine2.Show()
def HideText2(self):
self.textLine2.Hide()
def SetTooltipPosition(self, PosX, PosY):
if app.ENABLE_ATLAS_BOSS:
PosY -= 24
if localeinfo.IsARABIC():
w, h = self.textLine.GetTextSize()
self.textLine.SetPosition(PosX - w - 5, PosY)
if app.ENABLE_ATLAS_BOSS:
self.textLine2.SetPosition(PosX - w - 5, PosY + 10)
else:
self.textLine.SetPosition(PosX - 5, PosY)
if app.ENABLE_ATLAS_BOSS:
self.textLine2.SetPosition(PosX - 5, PosY + 10)
#search for:
def SetTextColor(self, TextColor):
self.textLine.SetPackedFontColor(TextColor)
#add:
if app.ENABLE_ATLAS_BOSS:
self.textLine2.SetPackedFontColor(TextColor)
#search for:
def EventMouseLeftButtonUp(self):
(mouseX, mouseY) = wndMgr.GetMousePosition()
#add:
if app.ENABLE_ATLAS_BOSS:
(bFind, sName, iPosX, iPosY, dwTextColor, dwGuildID, time) = miniMap.GetAtlasInfo(mouseX, mouseY)
else:
(bFind, sName, iPosX, iPosY, dwTextColor, dwGuildID) = miniMap.GetAtlasInfo(mouseX, mouseY)
#search for in def OnUpdate(self):
(mouseX, mouseY) = wndMgr.GetMousePosition()
#add:
if app.ENABLE_ATLAS_BOSS:
(bFind, sName, iPosX, iPosY, dwTextColor, dwGuildID, time) = miniMap.GetAtlasInfo(mouseX, mouseY)
else:
(bFind, sName, iPosX, iPosY, dwTextColor, dwGuildID) = miniMap.GetAtlasInfo(mouseX, mouseY)
#search for:
if localeinfo.IsARABIC() and sName[-1].isalnum():
self.tooltipInfo.SetText("(%s)%d, %d" % (sName, iPosX, iPosY))
#edit like:
if localeinfo.IsARABIC() and sName[-1].isalnum():
self.tooltipInfo.SetText("(%s)%d, %d" % (sName, iPosX, iPosY))
if app.ENABLE_ATLAS_BOSS:
self.tooltipInfo.SetText2(localeinfo.MINIMAP_BOSS_RESPAWN_TIME % (time / 60))
else:
self.tooltipInfo.SetText("%s(%d, %d)" % (sName, iPosX, iPosY))
if app.ENABLE_ATLAS_BOSS:
self.tooltipInfo.SetText2(localeinfo.MINIMAP_BOSS_RESPAWN_TIME % (time / 60))
(x, y) = self.GetGlobalPosition()
self.tooltipInfo.SetTooltipPosition(mouseX - x, mouseY - y)
if app.ENABLE_ATLAS_BOSS:
if time > 0:
self.tooltipInfo.SetTextColor(self.BOSS_COLOR)
self.tooltipInfo.ShowText2()
else:
self.tooltipInfo.SetTextColor(dwTextColor)
self.tooltipInfo.HideText2()
else:
self.tooltipInfo.SetTextColor(dwTextColor)
self.tooltipInfo.Show()
self.tooltipInfo.SetTop()
https://disk.yandex.com.tr/d/Cx5gC_rZy2vo_gYou must like this post to view the content.
https://www.virustotal.com/gui/file-analysis/MTgzM2VkMmY4OTQxYmUzYTE1MmUyNjY1NzVkNDMzMTU6MTY2NzkzOTY0NQ==You must like this post to view the content.
Last edited by a moderator:

