Jump to content

Little Bug PRIVATE SHOP


Recommended Posts

Hello guys, I have a problem:

the problem is that I can't open my private shop

 

Spoiler

Traceback (most recent call last):
  File "ui.py", line 1034, in CallEvent
  File "ui.py", line 88, in __call__
  File "ui.py", line 70, in __call__
  File "interfaceModule.py", line 1425, in OpenPrivateShopBuilder
TypeError: Open() takes exactly 3 arguments (2 given)

 

Link to comment
Share on other sites

This is the bug https://metin2.download/picture/Xl0eY38I88tjm7OUDiU82v0vrAaZ12gH/.gif 

On 12/9/2017 at 3:52 PM, Fleon said:

Open() takes 3 arguments 2 given
 

pass open 3 arguments, since you edited that function, if you don`t understand what you are doing don`t install new stuff and expect us to fix that for you.
This problem can be solved with 3 min of reading on google

 

On 12/9/2017 at 3:22 PM, AllahPsico said:

Maybe you have any shop open?

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

def Open(self, title,days):
 
        self.days = days
        self.title = title
 
        if len(title) > 25:
            title = title[:22] + "..."
 
        self.itemStock = {}
        shop.ClearPrivateShopStock()
        self.nameLine.SetText(title)
        self.SetCenterPosition()
        self.Refresh()
        self.Show()
        if app.WJ_ENABLE_TRADABLE_ICON:
            self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)}
            self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP)
            self.interface.RefreshMarkInventoryBag()
 
        global g_isBuildingPrivateShop
        g_isBuildingPrivateShop = True

Replace with this and remove self.days variable

def Open(self, title):
        self.title = title
 
        if len(title) > 25:
            title = title[:22] + "..."
 
        self.itemStock = {}
        shop.ClearPrivateShopStock()
        self.nameLine.SetText(title)
        self.SetCenterPosition()
        self.Refresh()
        self.Show()
        if app.WJ_ENABLE_TRADABLE_ICON:
            self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)}
            self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP)
            self.interface.RefreshMarkInventoryBag()
 
        global g_isBuildingPrivateShop
        g_isBuildingPrivateShop = True

 

  • Love 2
Link to comment
Share on other sites

  • Premium
15 hours ago, DarkAng3l said:

def Open(self, title,days):
 
        self.days = days
        self.title = title
 
        if len(title) > 25:
            title = title[:22] + "..."
 
        self.itemStock = {}
        shop.ClearPrivateShopStock()
        self.nameLine.SetText(title)
        self.SetCenterPosition()
        self.Refresh()
        self.Show()
        if app.WJ_ENABLE_TRADABLE_ICON:
            self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)}
            self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP)
            self.interface.RefreshMarkInventoryBag()
 
        global g_isBuildingPrivateShop
        g_isBuildingPrivateShop = True

Replace with this and remove self.days variable


def Open(self, title):
        self.title = title
 
        if len(title) > 25:
            title = title[:22] + "..."
 
        self.itemStock = {}
        shop.ClearPrivateShopStock()
        self.nameLine.SetText(title)
        self.SetCenterPosition()
        self.Refresh()
        self.Show()
        if app.WJ_ENABLE_TRADABLE_ICON:
            self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)}
            self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP)
            self.interface.RefreshMarkInventoryBag()
 
        global g_isBuildingPrivateShop
        g_isBuildingPrivateShop = True

 

wow i must have been super high to forget the problem and look for errors lol

 

^ this guys is right

Link to comment
Share on other sites

On 17/9/2017 at 10:59 PM, DarkAng3l said:

def Open(self, title,days):
 
        self.days = days
        self.title = title
 
        if len(title) > 25:
            title = title[:22] + "..."
 
        self.itemStock = {}
        shop.ClearPrivateShopStock()
        self.nameLine.SetText(title)
        self.SetCenterPosition()
        self.Refresh()
        self.Show()
        if app.WJ_ENABLE_TRADABLE_ICON:
            self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)}
            self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP)
            self.interface.RefreshMarkInventoryBag()
 
        global g_isBuildingPrivateShop
        g_isBuildingPrivateShop = True

Replace with this and remove self.days variable


def Open(self, title):
        self.title = title
 
        if len(title) > 25:
            title = title[:22] + "..."
 
        self.itemStock = {}
        shop.ClearPrivateShopStock()
        self.nameLine.SetText(title)
        self.SetCenterPosition()
        self.Refresh()
        self.Show()
        if app.WJ_ENABLE_TRADABLE_ICON:
            self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)}
            self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP)
            self.interface.RefreshMarkInventoryBag()
 
        global g_isBuildingPrivateShop
        g_isBuildingPrivateShop = True

 

Thanks solved

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.