Seja Bem vindo(a)!

segunda-feira, 21 de janeiro de 2013

Ranking de Baffbotffa

Ola Ola Galera! Sou eu Elijah , e vim postar como por BaffRanking em Seu Mice!

1- Abra sua dbfile.sqlite pelo database editor

2-Ao abrir sua dbfile.sqlite va em: Tables>Users

3- Clique em Edit Table. PRINT

4- Apos clicar em edit table , clique em Add column

5- Preencha os campos com as configuraçoes do print: PRINT , E clique em Change.

6- Clique de novo em Add Column

7- Preencha os campos com as configurançoes do print: PRINT , E clique em Change , Depois em Change de Novo.

8- Agora vamos a Source , Abra a Source em Edit With Idle

9- Pesquise por "self.bootcampcount = self.server.getBootcampCount(username)" sem aspas , e embaixo coloque: self.baffbotffacount = self.server.getBaffbotffaCount(username)  , Print de como vai Ficar: PRINT

10- Pesquise por "def getBootcampCount" sem aspas achara algo como esse PRINT

11- Der enter e coloque o codigo :
         def getBaffbotffaCount(self, username):
                if username.startswith("*"):
                        return 0
                else:
                        dbcur.execute('select baffbotffa from users where name = ?', [username])
                        rrf = dbcur.fetchone()
                        if rrf is None:
                                return -1
                        else:
                                return rrf[0] 

12- Alinhe o Comando , Print de Como vai Ficar: PRINT

13- Agora pesquise por #snow ball

14 - Entaum em baixo do if direction =="1" Coloque , self.baffbotffacount += 1 , PRINT

15 - Fassa o mesmo processo no if direction == "0" , PRINT

16 -  Pesquise por "ranking , e Axo algo como o PRINT

17 - No fim do Comando de enter e bote este comando:    elif event == "baffranking":
                                                Userlist = []
                                                dbcur.execute('select name, baffbotffa from users')
                                                rrfRows = dbcur.fetchall()
                                                if rrfRows is None:
                                                         pass
                                                else:
                                                         for rrf in rrfRows:
                                                                Userlist.append(rrf)
                                                #Saves
                                                BaffbotffaList={}
                                                BaffbotffaListDisp=[]
                                                for user in Userlist:
                                                        BaffbotffaList[user[0]] = user[1]
                                                mSL=max(BaffbotffaList.iterkeys(), key=lambda k: BaffbotffaList[k])
                                                BaffbotffaListDisp.append([1, mSL, BaffbotffaList[mSL]])
                                                del BaffbotffaList[mSL]
                                                mSL=max(BaffbotffaList.iterkeys(), key=lambda k: BaffbotffaList[k])
                                                BaffbotffaListDisp.append([2, mSL, BaffbotffaList[mSL]])
                                                del BaffbotffaList[mSL]
                                                mSL=max(BaffbotffaList.iterkeys(), key=lambda k: BaffbotffaList[k])
                                                BaffbotffaListDisp.append([3, mSL, BaffbotffaList[mSL]])
                                                del BaffbotffaList[mSL]
                                                mSL=max(BaffbotffaList.iterkeys(), key=lambda k: BaffbotffaList[k])
                                                BaffbotffaListDisp.append([4, mSL, BaffbotffaList[mSL]])
                                                del BaffbotffaList[mSL]
                                                mSL=max(BaffbotffaList.iterkeys(), key=lambda k: BaffbotffaList[k])
                                                BaffbotffaListDisp.append([5, mSL, BaffbotffaList[mSL]])
                                                del BaffbotffaList[mSL]
                                                mSL=max(BaffbotffaList.iterkeys(), key=lambda k: BaffbotffaList[k])
                                                BaffbotffaListDisp.append([6, mSL, BaffbotffaList[mSL]])
                                                del BaffbotffaList[mSL]
                                                mSL=max(BaffbotffaList.iterkeys(), key=lambda k: BaffbotffaList[k])
                                                BaffbotffaListDisp.append([7, mSL, BaffbotffaList[mSL]])
                                                del BaffbotffaList[mSL]
                                                mSL=max(BaffbotffaList.iterkeys(), key=lambda k: BaffbotffaList[k])
                                                BaffbotffaListDisp.append([8, mSL, BaffbotffaList[mSL]])
                                                del BaffbotffaList[mSL]
                                                mSL=max(BaffbotffaList.iterkeys(), key=lambda k: BaffbotffaList[k])
                                                BaffbotffaListDisp.append([9, mSL, BaffbotffaList[mSL]])
                                                del BaffbotffaList[mSL]
                                                mSL=max(BaffbotffaList.iterkeys(), key=lambda k: BaffbotffaList[k])
                                                BaffbotffaListDisp.append([10, mSL, BaffbotffaList[mSL]])
                                                del BaffbotffaList[mSL]

                                                self.sendData("\x1A" + "\x04", ["Ranking de Baffbotffa!."])
                                                self.sendData("\x1A"+"\x1A", ["<b>1 - "+str(BaffbotffaListDisp[0][1])+" - "+str(BaffbotffaListDisp[0][2])
                                                +"<br><br>2 - "+str(BaffbotffaListDisp[1][1])+" - "+str(BaffbotffaListDisp[1][2])
                                                +"<br><br>3 - "+str(BaffbotffaListDisp[2][1])+" - "+str(BaffbotffaListDisp[2][2])
                                                +"<br><br>4 - "+str(BaffbotffaListDisp[3][1])+" - "+str(BaffbotffaListDisp[3][2])
                                                +"<br><br>5 - "+str(BaffbotffaListDisp[4][1])+" - "+str(BaffbotffaListDisp[4][2])
                                                +"<br><br>6 - "+str(BaffbotffaListDisp[5][1])+" - "+str(BaffbotffaListDisp[5][2])
                                                +"<br><br>7 - "+str(BaffbotffaListDisp[6][1])+" - "+str(BaffbotffaListDisp[6][2])
                                                +"<br><br>8 - "+str(BaffbotffaListDisp[7][1])+" - "+str(BaffbotffaListDisp[7][2])
                                                +"<br><br>9 - "+str(BaffbotffaListDisp[8][1])+" - "+str(BaffbotffaListDisp[8][2])
                                                +"<br><br>10 - "+str(BaffbotffaListDisp[9][1])+" - "+str(BaffbotffaListDisp[9][2])+"</b>"]) 

18 - Basta Alinhas , Prints: PRINT , PRINT2

19 - E so salvar e Pronto Rank de Baff !

~~~~Creditos~~~~
iKyro
Elijah
Aula Mice !

A CONCORRÊNCIA VAI PIRAR






Nenhum comentário:

Postar um comentário

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube