Jump to content

Bloquear inventario por 5 segundos


AprendizM2
 Share

Recommended Posts

Em 27/02/2018 em 13:28, AprendizM2 disse:

Alguém tem esse sistema?

ver se isso serve.

Abrir: game.py

pesquisa:  self.interface.BUILD_OnUpdate()

depois de adicionar:

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()

Abrir: interfacemodule.py

pesquisa:  CHARACTER_SKILL_TAB = 2

depois de adicionar:

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

pesquisa:  def ToggleInventoryWindow(self):

mude para:

def ToggleInventoryWindow(self): if self.State == "Kapali": chat.AppendChat(chat.CHAT_TYPE_INFO, " Você precisa esperar " + str(int(int(self.LastContactTimeStamp) + self.WaitTime) - int(app.GetTime())) + " segundos para que o inventário esteja disponível.") 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...