I made a solution for the bug, it will work.
[CODE lang="python" title="shop"]# add
import
# add below
TEXT_TIME = 3
##########
uishop.py
# Search
self.tooltipItem = 0
# add
self.textCloseText = 0
# Search
self.ClearDictionary()
# add
self.textCloseText = 0
# Search
def OnUpdate(self):
# replace
def OnUpdate(self):
if app.GetTime() >= self.textCloseText:
USE_SHOP_LIMIT_RANGE = 1000
(x, y, z) = player.GetMainCharacterPosition()
if abs(x - self.xShopStart) > USE_SHOP_LIMIT_RANGE or abs(y - self.yShopStart) > USE_SHOP_LIMIT_RANGE:
self.textCloseText = app.GetTime() + TEXT_TIME
self.Close()
PythonWindow.cpp
# Search
void CWindow::Hide()
# Search
during(120)
# replace
during(50)
[/CODE]