[RELEASE]MP's con simbolos a TODOS los del Staff

Topic created · 11 Mensajes · 4148 Visitas
  • Si no os queréis aburrir, os dejo el Game.py para descargar al final del hilo
    [alinear-centro]1º de todo, prepárense porque el post es largo xD[/alinear-centro]


    hr

    1º Paso hay que descompilar root.epk y abrir game.py buscáis:

    if mode == chat.WHISPER_TYPE_GM:
    

    Y también buscáis:

    GMMARK = "["if name.find(GMMARK) !=-1:
                mode = chat.WHISPER_TYPE_GM
    

    Y lo dejáis de esta manera:

    GMMARK = "["        if name.find(GMMARK) !=-1:
                mode = chat.WHISPER_TYPE_GM
            if mode == chat.WHISPER_TYPE_GM:
                self.interface.RegisterGameMasterName(name)
    

    Se puede cambiar dependiendo de si es player, SGM, GM, GA etc.
    Así que guardamos y abrimos uiwhisper.py y buscamos:

    def LoadDialog(self):
    

    Y lo establecemos de esta manera:

    self.sa = GetObject("sa")self.ga = GetObject("ga")
    self.gm = GetObject("gm")
    self.mod = GetObject("mod")
    self.player = GetObject("player")
    

    Luego vais desplazando hacia abajo hasta que encontréis:

    self.gamemasterMark.Hide()
    

    y debajo añadís:

    self.sa.Hide()self.ga.Hide()
    self.gm.Hide()
    self.mod.Hide()
    self.player.Hide()
    

    A continuación buscamos:

    def OpenWithTarget(self, targetName):
    

    y debajo agregamos esto:

    self.acceptButton.Hide()
    

    y también esto, seguido de lo anterior:

    self.targetName = targetNameplayername = targetName
    if playername[0] == '[' and playername[1] == 'S' and playername[2] == 'A':
        self.gamemasterMark.Hide()
        self.sa.Show()
        self.ga.Hide()
        self.gm.Hide()
        self.mod.Hide()
        self.player.Hide()
    elif playername[0] == '[' and playername[1] == 'G' and playername[2] == 'A' and playername[3] == ']':
        self.gamemasterMark.Hide()
        self.sa.Hide()
        self.ga.Show()
        self.gm.Hide()
        self.mod.Hide()
        self.player.Hide()
    elif playername[0] == '[' and playername[1] == 'G' and playername[2] == 'M' and playername[3] == ']':
        self.gamemasterMark.Hide()
        self.sa.Hide()
        self.ga.Hide()
        self.gm.Show()
        self.mod.Hide()
        self.player.Hide()    
    elif playername[0] == '[' and playername[1] == 'M' and playername[2] == 'O' and playername[3] == 'D':
        self.gamemasterMark.Hide()
        self.sa.Hide()
        self.ga.Hide()
        self.gm.Hide()
        self.mod.Show()
        self.player.Hide()
    else:
        self.gamemasterMark.Hide()
        self.sa.Hide()
        self.ga.Hide()
        self.gm.Hide()
        self.mod.Hide()
        self.player.Show()
    

    En "SetGameMasterLook" agregar:

    self.targetName = targetNameplayername = targetName
    if playername[0] == '[' and playername[1] == 'S' and playername[2] == 'A':
        self.gamemasterMark.Hide()
        self.sa.Show()
        self.ga.Hide()
        self.gm.Hide()
        self.mod.Hide()
        self.player.Hide()
    elif playername[0] == '[' and playername[1] == 'G' and playername[2] == 'A' and playername[3] == ']':
        self.gamemasterMark.Hide()
        self.sa.Hide()
        self.ga.Show()
        self.gm.Hide()
        self.mod.Hide()
        self.player.Hide()
    elif playername[0] == '[' and playername[1] == 'G' and playername[2] == 'M' and playername[3] == ']':
        self.gamemasterMark.Hide()
        self.sa.Hide()
        self.ga.Hide()
        self.gm.Show()
        self.mod.Hide()
        self.player.Hide()    
    elif playername[0] == '[' and playername[1] == 'M' and playername[2] == 'O' and playername[3] == 'D':
        self.gamemasterMark.Hide()
        self.sa.Hide()
        self.ga.Hide()
        self.gm.Hide()
        self.mod.Show()
        self.player.Hide()
    else:
        self.gamemasterMark.Hide()
        self.sa.Hide()
        self.ga.Hide()
        self.gm.Hide()
        self.mod.Hide()
    
        self.player.Show()
    

    hr
    Ahora descompilen uiscript.epk y abran el archivo uiwhisperdialog.py y buscamos:

    "image" : app.GetLocalePath() + "/effect/ymirred.tga",
    

    y debajo se añade:

    {                    "name" : "sa",
                        "type" : "expanded_image",
                        "style" : ("attach",),
    
    
                        "x" : 156,
                        "y" : 6,
    
    
                        "x_scale" : 0.2,
                        "y_scale" : 0.2,
    
    
                        "image" : app.GetLocalePath() + "/effect/sa.tga",
                    },
    {
                        "name" : "ga",
                        "type" : "expanded_image",
                        "style" : ("attach",),
    
    
                        "x" : 156,
                        "y" : 6,
    
    
                        "x_scale" : 0.2,
                        "y_scale" : 0.2,
    
    
                        "image" : app.GetLocalePath() + "/effect/ga.tga",
                    },
    {
                        "name" : "gm",
                        "type" : "expanded_image",
                        "style" : ("attach",),
    
    
                        "x" : 156,
                        "y" : 6,
    
    
                        "x_scale" : 0.2,
                        "y_scale" : 0.2,
    
    
                        "image" : app.GetLocalePath() + "/effect/gm.tga",
                    },
    {
                        "name" : "mod",
                        "type" : "expanded_image",
                        "style" : ("attach",),
    
    
                        "x" : 156,
                        "y" : 6,
    
    
                        "x_scale" : 0.2,
                        "y_scale" : 0.2,
    
    
                        "image" : app.GetLocalePath() + "/effect/mod.tga",
                    },
    {
                        "name" : "player",
                        "type" : "expanded_image",
                        "style" : ("attach",),
    
    
                        "x" : 156,
                        "y" : 6,
    
    
                        "x_scale" : 0.2,
                        "y_scale" : 0.2,
    
    
                        "image" : app.GetLocalePath() + "/effect/player.tga",
                    },
    

    hr


    hr


    hr
    [alinear-centro]Lo necesario para la guía:
    1- uiscript.epk
    2- root.epk
    3- locale.epk
    4- descompilador aqui[/alinear-centro]

    Descompilamos root.epk y abrimos game.py

    Ahora en uiwhisper.py se añade esto:

    def SendWhisper(self):
    
    
            text = self.chatLine.GetText()
            textLength = len(text)
            GMMark = player.GetName()
    
    
            if textLength > 0:
                if net.IsInsultIn(text):
                    chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
                    return
                if GMMARK.find("[")!=-1:
                    net.SendWhisperPacket(self.targetName, text)
                    self.chatLine.SetText("")
                    chat.AppendWhisper(chat.CHAT_TYPE_INFO, self.targetName, player.GetName() + " : " + text)
                    return
                
                net.SendWhisperPacket(self.targetName, text)
                self.chatLine.SetText("")
    
    
                chat.AppendWhisper(chat.WHISPER_TYPE_CHAT, self.targetName, player.GetName() + "
    

    tiene que quedar una cosa asÍ.

  • Creo que mañana lo hare me da flojera leer tanto 😛
    pero se ve bueno buen aporte _xD_

  • Buen aporte Anghios, luego lo are se ve excelente :charm:

  • :mem3: :mem3: estaba probando para postearlo XD pero como no me funciono no lo posteaba, espero tu si hayas dado con la buena implementación que yo algo me comía que me salia mal XD

  • si no se han fijado en la imagen esa esos manes estan en el OX parece que les sirve ahora volviendo al asunto se me habia venido a la mente eso pero no lo intente porque sabia que era mucho si para poner un boton hay que hacer un moton de vueltas para que no se vea feo nombres pero ahora probare a por cierto eso casi casi estoy seguro que contaria coomo logo de gm mod sga o admin asi cada miembro del team se veria que rango posee pero ver eso que pereza vere si le doy

  • Hola , yo puse ese gamepy en mi root y no me entra el metin en la barra de carga cuando llega a final se queda corriendo rapido pero nunca entra al mt2 , 😞

  • Está guapo , lo que no mola tanto es las Fonts , y colores pero está muy currado.

  • mmm valdría la pena implementarlos como para dar un orden en el server ps en los servers todos aparecen con el logo de GM y es si es q tienen el logo de GM buen aporte man

  • Excelente aporte amigo buenísimo +1 😄

  • Muy Buen Post Anghios Sigue asi :yao: