- Apr
- Threads
- 25
- 112
- 1
- 477
- 63
AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!
Synchronizes the character's position with the server and can be used to free them if they get stuck.
If there is no available position within the available distance, the character will be warped to the village.
Credits; Owsap
i put here some fix for differents versions:
edit1: if someone don't have
you cand add on def Destroy:
edit2: MIssing some functions that are used by uiEscapePopup.py
uicommon.py:
also player.SHOW_UI_WINDOW_LIMIT_RANGE is missing
But maybe some people have a few problems, because don't have functions or like that.
The first, you need to change certain functions in Uicommon.py:
and uiEscapePopoup.py:
If you have the problem with;
You must change it with:
If there is no available position within the available distance, the character will be warped to the village.
Hidden content
You need to reply to this thread in order to see this content.
i put here some fix for differents versions:
edit1: if someone don't have
Python:
def __del__(self):
ui.ScriptWindow.__del__(self)
if app.OWSAP_ESCAPE:
del self.tooltip
you cand add on def Destroy:
Python:
def Destroy(self):
self.ClearDictionary()
if self.gameOptionDlg:
self.gameOptionDlg.Destroy()
if self.systemOptionDlg:
self.systemOptionDlg.Destroy()
if app.OWSAP_ESCAPE:
del self.tooltip
self.__Initialize()
edit2: MIssing some functions that are used by uiEscapePopup.py
uicommon.py:
Python:
class QuestionDialog(ui.ScriptWindow):
def GetTextSize(self):
if self.textLine:
return self.textLine.GetTextSize()
return (0,0)
def SetLineHeight(self, Height):
self.textLine.SetLineHeight(Height)
also player.SHOW_UI_WINDOW_LIMIT_RANGE is missing
Python:
def __EscapePopupRangeCheck(self):
SHOW_UI_WINDOW_LIMIT_RANGE = 1000
(x, y, z) = player.GetMainCharacterPosition()
# if abs(x - self.escape_window_open_x) > player.SHOW_UI_WINDOW_LIMIT_RANGE or abs(y - self.escape_window_open_y) > player.SHOW_UI_WINDOW_LIMIT_RANGE:
if abs(x - self.escape_window_open_x) > SHOW_UI_WINDOW_LIMIT_RANGE or abs(y - self.escape_window_open_y) > SHOW_UI_WINDOW_LIMIT_RANGE:
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.OPTION_ESCAPE_FAR_DISTANCE)
self.Close()
But maybe some people have a few problems, because don't have functions or like that.
The first, you need to change certain functions in Uicommon.py:
Python:
class QuestionDialog(ui.ScriptWindow): def GetTextSize(self): if self.textLine: return self.textLine.GetTextSize() return (0,0) def SetLineHeight(self, Height): self.textLine.SetLineHeight(Height)
and uiEscapePopoup.py:
Python:
def __EscapePopupRangeCheck(self): SHOW_UI_WINDOW_LIMIT_RANGE = 1000 (x, y, z) = player.GetMainCharacterPosition() # if abs(x - self.escape_window_open_x) > player.SHOW_UI_WINDOW_LIMIT_RANGE or abs(y - self.escape_window_open_y) > player.SHOW_UI_WINDOW_LIMIT_RANGE: if abs(x - self.escape_window_open_x) > SHOW_UI_WINDOW_LIMIT_RANGE or abs(y - self.escape_window_open_y) > SHOW_UI_WINDOW_LIMIT_RANGE: chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.OPTION_ESCAPE_FAR_DISTANCE) self.Close()
If you have the problem with;
Python:
net.SendCommandPacket("/escape")
You must change it with:
Python:
net.SendChatPacket("/escape")
Last edited by a moderator:

