[GUIDA]Come creare una Ghost Mode.

  • Autore discussione Autore discussione Buh
  • Data d'inizio Data d'inizio
Stato
Discussione chiusa ad ulteriori risposte.

Buh

Utente Electrum
16 Aprile 2011
174
14
50
123
Ultima modifica da un moderatore:
Salve a tutti.Vedendo che non ci sono guide del genere in giro,ho deciso di potarla io.Vi insegnerò come creare una Ghost Mode.La Ghost Mode serve per rialzarsi come un fantasma quando si muore.Procedimento

*=Testo che sarà riportato alla fine

-Scaricate Questo:http://www.megaupload.com/?d=8D2AWRKF
-Decompilate la cartella Root.*
-Apri la cartella File estratti ed andare a cercare uirestart.
-Appena aprite ui restart cancellate tutto e mettete questo:
Codice:
import dbgimport app
import net


import ui


###################################################################################################
## Restart
class RestartDialog(ui.ScriptWindow):


    def __init__(self):
        ui.ScriptWindow.__init__(self)


    def __del__(self):
        ui.ScriptWindow.__del__(self)


    def LoadDialog(self):
        try:
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, "uiscript/restartdialog.py")
        except Exception, msg:
            (type, msg, tb)=sys.exc_info()
            dbg.TraceError("RestartDialog.LoadDialog - %s:%s" % (type, msg))
            app.Abort()
            return 0


        try:
            self.restartHereButton=self.GetChild("restart_here_button")
            self.restartTownButton=self.GetChild("restart_town_button")
            self.restartGhostButton=self.GetChild("restart_ghost_button")
        except:
            import sys
            (type, msg, tb)=sys.exc_info()
            dbg.TraceError("RestartDialog.LoadDialog - %s:%s" % (type, msg))
            app.Abort()
            return 0


        self.restartHereButton.SetEvent(ui.__mem_func__(self.RestartHere))
        self.restartTownButton.SetEvent(ui.__mem_func__(self.RestartTown))
        self.restartGhostButton.SetEvent(ui.__mem_func__(self.RestartGhost))


        return 1


    def Destroy(self):
                global isdead
        self.restartHereButton=0
        self.restartTownButton=0
                isDead=1
        self.ClearDictionary()


    def OpenDialog(self):
                global isdead
        self.Show()
                isdead=1
                if AutoRevive == 1:
            self.timerDialog = introLogin.ConnectingDialog()
            self.timerDialog.Open(10)
            self.timerDialog.SetText("Auto Revive in:")
            self.timerDialog.SAFE_SetTimeOverEvent(self.RestartHere)
            self.timerDialog.SAFE_SetExitEvent(self.OnCloseQuestionDialog)
                       
        def OnCloseQuestionDialog(self):
        if self.timerDialog:
            self.timerDialog.Close()
        self.timerDialog = None


    def Close(self):
        self.Hide()
        return TRUE


    def RestartHere(self):
                global isDead
                isDead = 0
        net.SendChatPacket("/restart_here")


    def RestartTown(self):
                global isDead
        isDead = 0
        net.SendChatPacket("/restart_town")
        
    def RestartGhost(self):
        import chr
        chr.Revive()


    def OnPressExitKey(self):
        return TRUE


    def OnPressEscapeKey(self):
        return TRUE
-Chiudete e salvate.
-Poi decompilate dalla cartella pack il file uiscript.
-Una volta decompilato andate sul file restartdialog e sotto a
Codice:
    {
                    "name" : "restart_town_button",
                    "type" : "button",


                    "x" : 10,
                    "y" : 47,


                    "text" : uiScriptLocale.RESTART_TOWN,


                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
scrivete:
Codice:
 {
                    "name" : "restart_ghost_button",
                    "type" : "button",


                    "x" : 10,
                    "y" : 77,
                    
                    "text_color" : "red",


                    "text" : "Modalità Ghost",


                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
            ),
        },
    ),
}
Dopo di che andate su ricompilate tutto cliccando su codifica nell'estrattore,inserite i file modificati nei vostri game e usate la ghost mode!

*Per decompilare un file con l'estrattore di pilli_96 basta aprire l'estrattore,scegliere il processo dove ci sono i tre puntini in basso a destra e selezionare il file che vi interessa,poi cliccate su estrai ed aspettate che vi appaia una finestra con scritto "File estratti con successo!"ed il gioco è fatto.

Spero di esservi stato d'aiuto,alla prossima :)
 
la ghost mode ti permette di camminare mentre 6 morto così se uno nn di fa alzare dal medio te vai altrove e fai comincia città ^_^
 
La ghost mode serve a farsi killare dai bos,alzari in mod fantasma e shottarlo con oneshot asd
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom