s1ckGAMIN 46 Posted November 17, 2012 (edited) Boas comunidade, muitos pediram me isto por pm. portanto irei vos ensinar como fazer. (# 1.) Extrair o ficheiro root (.eix, .epk) (# 2.) Abrir game.py (# 3.) Adicionar tecla de atalho. onPressKeyDict[app.DIK_F8] = lambda : self.StatsChangerStart() (# 4.) Adicionar a funcao do atalho. def StatsChangerStart(self): guildNameBoard = uiCommon.InputDialogWithDescription() guildNameBoard.SetTitle("Rodar DM") guildNameBoard.SetDescription("Valor:") guildNameBoard.SetMaxLength(2) guildNameBoard.SetAcceptEvent(ui.__mem_func__(self.StatsChanger)) guildNameBoard.SetCancelEvent(ui.__mem_func__(self.CancelGuildName)) guildNameBoard.Open() self.guildNameBoard = guildNameBoarddef StatsChanger(self):SLOT_COUNT = 80 val, bon = player.GetItemAttribute(0, 0) #(itempos, atrr) self.connectingDialog = introLogin.ConnectingDialog() Search = self.guildNameBoard.GetText() if bon &--#60; int(Search): DELAY_SEC = 1.0 self.connectingDialog.Open(DELAY_SEC) self.connectingDialog.SetText("Valor atual: " + str(bon) + ", Novo: " + str(Search) + "+") self.connectingDialog.SAFE_SetTimeOverEvent(self.StatsChanger) self.connectingDialog.SAFE_SetExitEvent(self.OnCloseQuestionDialog) for eachSlot in xrange(SLOT_COUNT): getShopItemID = shop.GetItemID(eachSlot) itemVNum = player.GetItemIndex(eachSlot) if getShopItemID == 71084 and not itemVNum == 71084: net.SendShopBuyPacket(eachSlot) if itemVNum == 71084: net.SendItemUseToItemPacket(eachSlot, 0) break else: self.connectingDialog.Close()(# 5.) Adicionar no uicommon.py.class InputDialogWithDescription(InputDialog):class InputDialogWithDescription(InputDialog):def __init__(self): ui.ScriptWindow.__init__(self) self.__CreateDialog() def __del__(self): InputDialog.__del__(self) def __CreateDialog(self): pyScrLoader = ui.PythonScriptLoader() pyScrLoader.LoadScriptFile(self, "uiscript/inputdialogwithdescription.py") try: getObject = self.GetChild self.board = getObject("Board") self.acceptButton = getObject("AcceptButton") self.cancelButton = getObject("CancelButton") self.inputSlot = getObject("InputSlot") self.inputValue = getObject("InputValue") self.description = getObject("Description") except: import exception exception.Abort("InputDialogWithDescription.LoadBoardDialog.BindObject") def SetTitle(self, name): self.board.SetTitleName(name) def SetNumberMode(self): self.inputValue.SetNumberMode() def SetSecretMode(self): self.inputValue.SetSecret() def SetFocus(self): self.inputValue.SetFocus() def SetAcceptEvent(self, event): self.acceptButton.SetEvent(event) self.inputValue.OnIMEReturn = event def SetCancelEvent(self, event): self.board.SetCloseEvent(event) self.cancelButton.SetEvent(event) self.inputValue.OnPressEscapeKey = event def SetDescription(self, text): self.description.SetText(text) def Open(self): self.inputValue.SetFocus() self.SetCenterPosition() self.SetTop() self.Show() def Close(self): self.ClearDictionary() self.board = None self.acceptButton = None self.cancelButton = None self.inputSlot = None self.inputValue = None self.Hide() def GetText(self): return self.inputValue.GetText()Agora o para alterar dano skill. (# 1) game.py onPressKeyDict[app.DIK_F9 = lambda : self.StatsFksChangerStart() def StatsFksChangerStart(self): guildNameBoard = uiCommon.InputDialogWithDescription() guildNameBoard.SetTitle("Rodar Dano Skill") guildNameBoard.SetDescription("Valor:") guildNameBoard.SetMaxLength(2) guildNameBoard.SetAcceptEvent(ui.__mem_func__(self.StatsChanger)) guildNameBoard.SetCancelEvent(ui.__mem_func__(self.CancelGuildName)) guildNameBoard.Open() self.guildNameBoard = guildNameBoard def StatsFksChanger(self): SLOT_COUNT = 80 val, bon = player.GetItemAttribute(0, 1) #(itempos, atrr) self.connectingDialog = introLogin.ConnectingDialog() Search = self.guildNameBoard.GetText() if bon &--#60; int(Search) or (bon &--#62; int(Search) and player.GetItemAttribute(0, 0) &--#62; 0): DELAY_SEC = 1.0 self.connectingDialog.Open(DELAY_SEC) self.connectingDialog.SetText("Valor atual: " + str(bon) + ", Novo valor: " + str(Search) + "+") self.connectingDialog.SAFE_SetTimeOverEvent(self.StatsChanger) self.connectingDialog.SAFE_SetExitEvent(self.OnCloseQuestionDialog) for eachSlot in xrange(SLOT_COUNT): getShopItemID = shop.GetItemID(eachSlot) itemVNum = player.GetItemIndex(eachSlot) if getShopItemID == 71084 and not itemVNum == 71084: net.SendShopBuyPacket(eachSlot) if itemVNum == 71084: net.SendItemUseToItemPacket(eachSlot, 0) break else: self.connectingDialog.Close() Até agora é tudo. ainda nao testei o alterador de Dano skill. mas o meu preposito é ajudar quem me pediu isto :) Cumprimentos:. SérgioSilva Edited November 17, 2012 by ṨéṜḠḭṒṨḭⱢṾΛ (see edit history) Share this post Link to post Share on other sites
s1ckGAMIN 46 Posted November 17, 2012 Ja foi corrigido o topico. entretando Creditos vao para o Kamer e para mim :) Share this post Link to post Share on other sites