Jump to content

inventory block after login


Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

open: game.py

search:  self.interface.BUILD_OnUpdate()

after add:

if int(int(self.interface.LastContactTimeStamp) + self.interface.WaitTime) < int(app.GetTime()) and self.interface.State == "Kapali":
            self.interface.State = "Acik"
    
        self.interface.BUILD_OnUpdate()

 

open: interfacemodule.py

search:  CHARACTER_SKILL_TAB = 2

after add:

LastContactTimeStamp = app.GetTime() - 5
    WaitTime = 12
    State = "Kapali"

 

search:  def ToggleInventoryWindow(self):

change with:

def ToggleInventoryWindow(self):
        if self.State == "Kapali":
            chat.AppendChat(chat.CHAT_TYPE_INFO, "Envanteri acabilmek icin " + str(int(int(self.LastContactTimeStamp) + self.WaitTime) - int(app.GetTime())) + " saniye beklemelisin.")
            return    
        else:
            if FALSE == player.IsObserverMode():
                if FALSE == self.wndInventory.IsShow():
                    self.wndInventory.Show()
                    self.wndInventory.SetTop()
                else:
                    self.wndInventory.OverOutItem()
                    self.wndInventory.Close()
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.