Ir para baixo
AdrianOficial
AdrianOficial
MEMBRO

MEMBRO
Mensagens : 236
Data de inscrição : 19/03/2017
Idade : 22
Localização : România
http://blowmice.me

Ajuda me Adventure Points Empty Ajuda me Adventure Points

Qui Out 19, 2017 5:17 pm
Why on my server not open adventure points?

Ajuda me Adventure Points Sryh8BLFTnOzHuhHfIXPvw



i'm put code :

Código:
    def sendProfileAdventure(this, playerName):
        player = this.server.players.get(playerName)

        if player is not None and not player.isGuest:
            p = ByteArray()
            p.writeUTF(player.username)
            p.writeUTF(player.playerLook)
            p.writeInt(player.playerPoints)
            p.writeShort(len(player.titleList))
            p.writeShort(len(player.shopBadges))
            p.writeShort(player.playerEvents)
            i = 0
            while i < player.playerEvents:
                p.writeShort(1)
                p.writeByte(0)
                p.writeShort(1)
                p.writeInt(str(player.regDate))
                p.writeShort(player.playerPoints)
                p.writeBool(True)
                p.writeByte(-1)

            x = 0
            while x < -1:
                p.writeByte(2)
                p.writeShort(2)
                p.writeShort(2)
                p.writeBool(False)
                x += 1
                p.writeByte(-1)

            y = 0
            while y < -1:
                p.writeByte(1)
                p.writeShort(1)
                p.writeShort(1)
                y += 1

            this.sendPacket([8, 70], p.toByteArray())
            i += 1




Ajuda me Adventure Points Ylk4UTTaTCCaxT96SvZYJw
Giuer
Giuer
MEMBRO

MEMBRO
Mensagens : 50
Data de inscrição : 18/03/2017
Idade : 25
http://www.redtube.com/

Ajuda me Adventure Points Empty Re: Ajuda me Adventure Points

Sex Out 20, 2017 1:12 am
você precisa ajeitar dentro do configs.properties as classes da aventura se não me engano viu mano blz qual que coisa me chama no skype ! live:22091998ls
Andriel9
Andriel9
MEMBRO

MEMBRO
Mensagens : 239
Data de inscrição : 04/06/2017
Idade : 19

Ajuda me Adventure Points Empty Re: Ajuda me Adventure Points

Ter Out 24, 2017 8:33 pm
Giuer escreveu:você precisa ajeitar dentro do configs.properties as classes da aventura se não me engano viu mano blz qual que coisa me chama no skype ! live:22091998ls
Sim, mais também precisa arrumar o calendário...
WagnerMG
WagnerMG
MODERADOR

MODERADOR
Mensagens : 170
Data de inscrição : 01/10/2016

Ajuda me Adventure Points Empty Re: Ajuda me Adventure Points

Qua Out 25, 2017 1:10 am
Vc precisa add as toekn do aventure e chamar a estrutura ._.


procura as tokens do player e add em baixo 
if CC == 70:
    (estrutura do aventure)
Andriel9
Andriel9
MEMBRO

MEMBRO
Mensagens : 239
Data de inscrição : 04/06/2017
Idade : 19

Ajuda me Adventure Points Empty Re: Ajuda me Adventure Points

Qui Out 26, 2017 10:01 am
procura por
Código:

elif CC == Identifiers.recv.Player.Bolos:
e em baixo vc adc ou substitui
Código:

            elif CC == Identifiers.recv.Player.Calendario:
                playerName = packet.readUTF()
                p = ByteArray()
                player = this.server.players.get(playerName)
                p.writeUTF(playerName)
                p.writeUTF(player.playerLook)
                count = 0
                for c in player.aventurePoints.values():
                    count += c
                p.writeInt(count)
                p.writeShort(len(player.titleList))
                p.writeShort(len(player.shopBadges))
                p.writeShort(len(this.server.calendarioSystem.keys()))
                for aventure in this.server.calendarioSystem.keys():
                    p.writeShort(9)
                    p.writeByte(1)
                    p.writeShort(aventure)
                    p.writeInt(this.server.calendarioSystem[aventure][0])
                    p.writeShort(this.client.aventurePoints[aventure] if aventure in this.client.aventurePoints.keys() else 0)
                    p.writeByte(1 if aventure < this.server.adventureID else 0)
                    p.writeByte(len(this.server.calendarioSystem[aventure][1:]))
                    for item in this.server.calendarioSystem[aventure][1:]:
                        itens = item.split(":")
                        p.writeByte(itens[0])
                        p.writeBoolean(False)
                        p.writeShort(itens[1])
                        p.writeShort(itens[2])
                        p.writeByte(this.server.getPointsColor(playerName, aventure, itens[1], itens[0], itens[3]))
                        p.writeByte(1)
                        p.writeShort(this.server.getAventureCounts(playerName, aventure, itens[1], itens[0]))#itens q vc tem
                        p.writeShort(itens[3])
                    p.writeByte(len(this.server.calendarioCount[aventure]))
                    for item in this.server.calendarioCount[aventure]:
                        itens = item.split(":")
                        p.writeByte(itens[0])
                        p.writeBoolean(False)
                        p.writeShort(itens[1])
                        p.writeShort(this.server.getAventureItems(playerName, aventure, int(itens[0]), int(itens[1])))
                this.client.sendPacket([8, 70], p.toByteArray())
                return
aqui funfa normal
Conteúdo patrocinado

Ajuda me Adventure Points Empty Re: Ajuda me Adventure Points

Ir para o topo
Permissões neste sub-fórum
Não podes responder a tópicos