Cudo

Como adicionar novo rank?

Recommended Posts

vai no parsecomands e bota isso 

            elif _command in ["ranking", "rankplayer", "ranktribe"]:
                Userlist = []
                lists = "<p align='center'><font size='13'><V>Melhores Players do TransforMemes</font></p>"
                lists2 = "<p align='left'><font size='7'>"
                this.Cursor.execute("select Username, CheeseCount, FirstCount, BootcampCount, ShamanSaves, HardModeSaves, DivineModeSaves, TitleNumber from Users where PrivLevel < 6 ORDER By FirstCount DESC LIMIT 10")
                rs = this.Cursor.fetchall()
                pos = 1
                this.client.updateDatabase()
                for rrf in rs:
                    playerName = str(rrf[0])
                    CheeseCount = rrf[1]
                    FirstCount = rrf[2]
                    BootcampCount = rrf[3]
                    ShamanSaves = rrf[4]
                    HardModeSaves = rrf[5]
                    DivineModeSaves = rrf[6]
                    TitleNumber = rrf[7]
                    status= "<N>[<VP> • <N>]<N>"
                    status= "<N>[<R> • <N>]<N>"
                    if pos == 1:
                        lists += "<p align='left'><J>"+str(pos)+"º <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n" 
                    elif pos == 2:
                        lists += "<p align='left'><CE>"+str(pos)+"º <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 3:
                        lists += "<p align='left'><CH>"+str(pos)+"º <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 4:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 5:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 6:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 7:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 8:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 9:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 10:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    lists += "   <p align='left'><font color='#6A7495'>• Total de Firsts :</font> <font color='#FFFFFF'>"+str(FirstCount)+"</font>"
                    lists += "<br />"
                    lists += "   <font color='#6A7495'>• Título atual :</font> <font color='#FFFFFF'>"+str(TitleNumber)+"</font>"
                    lists += "<br />"
                    lists += "   <p align='left'><font color='#6A7495'>• Ratos salvos com sucesso :</font> <font color='#009d9d'>"+str(ShamanSaves)+" / "+"<font color='#FADE55'>"+str(HardModeSaves)+" / "+"<font color='#F52331'>"+str(DivineModeSaves)+"</font>"
                    lists += "<br />"
                    lists += "   <p align='left'><font color='#6A7495'>• Queijos Coletados :</font> <font color='#FFFFFF'>"+str(CheeseCount)+"</font>"
                    lists += "<br />"
                    lists += "   <p align='left'><font color='#6A7495'>• Bootcamp :</font> <font color='#FFFFFF'>"+str(BootcampCount)+"</font>"
                    lists += "<br /><br />"
                    pos += 1
                this.client.sendLogMessage(lists + "</font></p>")    

Compartilhar este post


Link para o post
Compartilhar em outros sites
11 minutos atrás, lucasrop199 disse:

vai no parsecomands e bota isso 

            elif _command in ["ranking", "rankplayer", "ranktribe"]:
                Userlist = []
                lists = "<p align='center'><font size='13'><V>Melhores Players do TransforMemes</font></p>"
                lists2 = "<p align='left'><font size='7'>"
                this.Cursor.execute("select Username, CheeseCount, FirstCount, BootcampCount, ShamanSaves, HardModeSaves, DivineModeSaves, TitleNumber from Users where PrivLevel < 6 ORDER By FirstCount DESC LIMIT 10")
                rs = this.Cursor.fetchall()
                pos = 1
                this.client.updateDatabase()
                for rrf in rs:
                    playerName = str(rrf[0])
                    CheeseCount = rrf[1]
                    FirstCount = rrf[2]
                    BootcampCount = rrf[3]
                    ShamanSaves = rrf[4]
                    HardModeSaves = rrf[5]
                    DivineModeSaves = rrf[6]
                    TitleNumber = rrf[7]
                    status= "<N>[<VP> • <N>]<N>"
                    status= "<N>[<R> • <N>]<N>"
                    if pos == 1:
                        lists += "<p align='left'><J>"+str(pos)+"º <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n" 
                    elif pos == 2:
                        lists += "<p align='left'><CE>"+str(pos)+"º <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 3:
                        lists += "<p align='left'><CH>"+str(pos)+"º <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 4:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 5:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 6:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 7:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 8:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 9:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    elif pos == 10:
                        lists += "<p align='left'><font color='#606090'>"+str(pos)+"º</font> <font color='#3C5064'>-</font> <N>Jogador: <font color='#009d9d'>"+str(playerName)+"" + '<N> -' + (' <N>[<VP> • <N>]<N>'if this.server.checkConnectedAccount(playerName) else'<N> [<R> • <N>]') + " \n"
                    lists += "   <p align='left'><font color='#6A7495'>• Total de Firsts :</font> <font color='#FFFFFF'>"+str(FirstCount)+"</font>"
                    lists += "<br />"
                    lists += "   <font color='#6A7495'>• Título atual :</font> <font color='#FFFFFF'>"+str(TitleNumber)+"</font>"
                    lists += "<br />"
                    lists += "   <p align='left'><font color='#6A7495'>• Ratos salvos com sucesso :</font> <font color='#009d9d'>"+str(ShamanSaves)+" / "+"<font color='#FADE55'>"+str(HardModeSaves)+" / "+"<font color='#F52331'>"+str(DivineModeSaves)+"</font>"
                    lists += "<br />"
                    lists += "   <p align='left'><font color='#6A7495'>• Queijos Coletados :</font> <font color='#FFFFFF'>"+str(CheeseCount)+"</font>"
                    lists += "<br />"
                    lists += "   <p align='left'><font color='#6A7495'>• Bootcamp :</font> <font color='#FFFFFF'>"+str(BootcampCount)+"</font>"
                    lists += "<br /><br />"
                    pos += 1
                this.client.sendLogMessage(lists + "</font></p>")    

usa a opção code para ser mais fácil para o usuário copiar.

  • Like 1

Compartilhar este post


Link para o post
Compartilhar em outros sites
4 horas atrás, Wreft disse:

Mano o código tem uma condição pra cada posição slc mas que gambiarra de doer os rins

Ajuda eu ae man?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora