Private Staff Chat

+12
Weeslleeyone
Nikopark
WagnerMG
Loukino
Weslei
Bronce
AdrianOficial
henriquer
Kuzho
Andriel9
Danshweger
Strein
16 participantes
Ir para baixo
Strein
Strein
MEMBRO

MEMBRO
Mensagens : 41
Data de inscrição : 15/07/2017

Private Staff Chat Empty Private Staff Chat

Sáb Jul 15, 2017 12:55 pm
Core.py, Class Client:
Código:
this.openStaffChat = False

Core.py, Under NPC:
Código:
   def sendStaffChats(this):
        if this.privLevel >= 4:
            text = ''
            clear = "<a href='event:clearStaffChat'>  ClearChat</a>"
            if len(this.server.staffChat) >= 14:
                del this.server.staffChat[0]
            for message in this.server.staffChat:
                if not this.server.activeStaffChat == 1:
                    text += "<font size='13'>" + message + '</font><BR>'

            text1 = '                                                     <J>PRIVATE STAFF CHAT'
            text1 += "                               <a href='event:closeStaffChat'>[X]</a>"
            if this.openStaffChat:
                if this.privLevel >= 9:
                    if len(this.server.staffChat) >= 1:
                        this.sendMBox(clear, 670, 60, 60, 20, '100%', '212E35', '212E35', 4)
                        if this.server.activeStaffChat == 0:
                            this.sendMBox(off, 670, 95, 60, 20, '100%', '212E35', '212E35', 5)
                        else:
                            this.sendMBox(on, 670, 95, 60, 20, '100%', '212E35', '212E35', 6)
                for client in this.room.clients.values():
                    if client.openStaffChat:
                        client.sendMBox(text, 115, 60, 550, 220, '100%', '212E35', '212E35', 1)
                        client.sendMBox(text1, 115, 33, 550, 20, '100%', '324650', '212E35', 2)
                    elif client.privLevel >= 4:
                        count = "<a href='event:openStaffChat'> #STAFF </a><J><b>+" + str(client.viewMessage) + '</b>'
                        client.sendMBox(count, 720, 375, 75, 20, '100%', '212E35', '212E35', 1)

                this.room.addTextPopUpStaff(3, 2, '', this.playerName, 115, 289, 550)
            else:
                this.sendMBox(clear, 0, 0, 0, 0, '100%', '000000', '000000', 4)
                this.sendMBox(off, 0, 0, 0, 0, '100%', '000000', '000000', 5)
                this.sendMBox(on, 0, 0, 0, 0, '100%', '000000', '000000', 6)
                this.room.addTextPopUpStaff(3, 2, '', this.playerName, 199, 10000, -50)
                this.sendPacket([29, 22], ByteArray().writeInt(2).toByteArray())
                this.sendMBox('', 720, 375, 75, 20, '100%', '000000', '000000', 3)
                count = "<a href='event:openStaffChat'> #STAFF </a><J><b>+" + str(this.viewMessage) + '</b>'
                this.sendMBox(count, 720, 375, 75, 20, '100%', '212E35', '212E35', 1)
ParsePackets:
Código:
          elif CC == Identifiers.recv.Chat.Staff_Chat:
                type, message = packet.readByte(), packet.readUTF()
                if ((type == 0 and this.client.privLevel >= 7) or (type == 1 and this.client.privLevel >= 9) or ((type == 2 or type == 5) and this.client.privLevel >= 5) or ((type == 3 or type == 4) and this.client.privLevel >= 7) or ((type == 6 or type == 7) and this.client.privLevel >= 6) or (type == 8 and this.client.privLevel >= 3) or (type == 9 and this.client.privLevel >= 4)):
                    this.server.sendStaffChat(type, this.client.langue, this.client.playerName, message, this.client)
                return

ParsePackets, luapopup:
Código:
               if not this.client.server.activeStaffChat == 1:
                    if popupID == 3:
                        answer = answer.replace("&amp;#", "&#").replace("<", "<")
                        if this.client.privLevel >= 3:
                            if this.client.privLevel >= 9:
                                message = "<V>[Admin]<ROSE>[" + this.client.playerName.capitalize() + "]</ROSE> <N>" + answer                  
                            if this.client.privLevel == 8:
                                message = "<V>[Coord]<VI>[" + this.client.playerName.capitalize() + "]</VI> <N>" + answer
                            if this.client.privLevel == 7:
                                message = "<V>[SMod]<J>[" + this.client.playerName.capitalize() + "]</J> <N>" + answer
                            if this.client.privLevel == 6:
                                message = "<V>[Mod]<N>[" + this.client.playerName.capitalize() + "]</N> <N>" + answer
                            if this.client.privLevel == 5:
                                message = "<V>[Mapcrew]<font color='#FFCC99'>[" + this.client.playerName.capitalize() + "]</font> <N>" + answer
                            if this.client.privLevel == 4:
                                message = "<V>[Helper]<font color='#3366FF'>[" + this.client.playerName.capitalize() + "]</font> <N>" + answer
                        if answer != "" and answer != " " and answer != " "*len(answer):
                            if not len(answer) >= 50:
                                if not len(answer) <= 0:
                                    this.server.staffChat.append(message)
                                    for client in this.server.players.values():
                                        if client.privLevel >= 3:
                                            if not client.openStaffChat:
                                                client.viewMessage += 1
                                    this.client.sendStaffChats()
                                else: this.client.sendStaffChats()
                            else:
                                this.client.sendMessage("<ROSE>Ops! Your message is too big.")
                                this.client.sendStaffChats()
ParsePackets, under fullmenu:
Código:
               if event.startswith("openStaffChat"):
                    this.client.openStaffChat = True
                    this.client.viewMessage = 0
                    this.client.sendStaffChats()

                if event.startswith("closeStaffChat"):
                    this.client.openStaffChat = False
                    this.client.viewMessage = 0
                    this.client.sendStaffChats()

                if event.startswith("clearStaffChat"):
                    if len(this.client.server.staffChat) >= 1:
                            del this.client.server.staffChat[:]
                            this.client.sendStaffChats()
                            this.server.sendStaffMessage(4, "<V>"+str(this.client.playerName)+" cleared the staff chat.")
                    else: this.client.sendMessage("No chat series will be removed.")
I'm not sure it worked.
Crédits: TransforVida
Danshweger
Danshweger
MEMBRO

MEMBRO
Mensagens : 156
Data de inscrição : 17/07/2016
Idade : 27
Localização : 127.0.0.1
http://www.transforxd.top/

Private Staff Chat Empty Re: Private Staff Chat

Sáb Jul 15, 2017 7:35 pm
serious? "Credits: TransforVida"?

This private chat was created by Bruno (I believe) and edited and re-done by me.
Strein
Strein
MEMBRO

MEMBRO
Mensagens : 41
Data de inscrição : 15/07/2017

Private Staff Chat Empty Re: Private Staff Chat

Dom Jul 16, 2017 8:19 pm
I'm read info is same. Sorry.
Andriel9
Andriel9
MEMBRO

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

Private Staff Chat Empty Re: Private Staff Chat

Seg Jul 17, 2017 9:20 am
How do I get it?
Private Staff Chat GxZwRUMSSYuleQ_KzhbA_w
Danshweger
Danshweger
MEMBRO

MEMBRO
Mensagens : 156
Data de inscrição : 17/07/2016
Idade : 27
Localização : 127.0.0.1
http://www.transforxd.top/

Private Staff Chat Empty Re: Private Staff Chat

Seg Jul 17, 2017 9:47 am
Andriel9 escreveu:How do I get it?
Private Staff Chat GxZwRUMSSYuleQ_KzhbA_w


Add in your class Server:
this.staffChat = []
Kuzho
Kuzho
MEMBRO

MEMBRO
Mensagens : 6
Data de inscrição : 21/07/2017
Idade : 25

Private Staff Chat Empty Re: Private Staff Chat

Sex Jul 21, 2017 8:59 am
Nice ^^
Andriel9
Andriel9
MEMBRO

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

Private Staff Chat Empty Re: Private Staff Chat

Sex Jul 21, 2017 5:19 pm
Private Staff Chat BygqXKxnTQCr3pqV51Alag
And this as I will?
avatar
henriquer
MEMBRO

MEMBRO
Mensagens : 16
Data de inscrição : 07/04/2015

Private Staff Chat Empty Re: Private Staff Chat

Qua Jul 26, 2017 11:21 am
Haha, pensam que é tudo de mão beijada? Acham que eles são troxas de passarem algo pronto? http://prntscr.com/g0joy3, isso aqui é o staff chat funcionando, é fácil add as coisas que faltam, mesmo assim o resultado será um staff chat inacabado, Tod e Dansh ja tem ele acabado então se querem algo bem feito, corra atrás e façam vcs mesmos. Parabéns pelo trabalho feito por vcs.
AdrianOficial
AdrianOficial
MEMBRO

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

Private Staff Chat Empty Re: Private Staff Chat

Ter Ago 29, 2017 6:37 am
my source is in self Smile
pls help me Smile)
avatar
Bronce
MEMBRO

MEMBRO
Mensagens : 40
Data de inscrição : 29/03/2017

Private Staff Chat Empty Re: Private Staff Chat

Ter Ago 29, 2017 6:44 am
AdrianOficial escreveu:my source is in self Smile
pls help me Smile)
edit "this" to "self"  Laughing
AdrianOficial
AdrianOficial
MEMBRO

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

Private Staff Chat Empty Re: Private Staff Chat

Ter Ago 29, 2017 6:47 am
Error.
Strein
Strein
MEMBRO

MEMBRO
Mensagens : 41
Data de inscrição : 15/07/2017

Private Staff Chat Empty Re: Private Staff Chat

Ter Ago 29, 2017 7:04 am
AdrianOficial escreveu:Error.

Repair your source or try the new sources.
Good luck! Smile
Andriel9
Andriel9
MEMBRO

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

Private Staff Chat Empty Re: Private Staff Chat

Qua Ago 30, 2017 11:34 am
AdrianOficial escreveu:Error.
Send for my you source for i repair and i give you :v
AdrianOficial
AdrianOficial
MEMBRO

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

Private Staff Chat Empty Re: Private Staff Chat

Qua Ago 30, 2017 11:39 am
Andriel9 escreveu:
AdrianOficial escreveu:Error.
Send for my you source for i repair and i give you :v

I'm use your source (StarkMice)
Weslei
Weslei
MODERADOR

MODERADOR
Mensagens : 402
Data de inscrição : 16/01/2015
Idade : 24
Localização : Narnia

Private Staff Chat Empty Re: Private Staff Chat

Qui Ago 31, 2017 8:13 pm
henriquer escreveu:Haha, pensam que é tudo de mão beijada? Acham que eles são troxas de passarem algo pronto? http://prntscr.com/g0joy3, isso aqui é o staff chat funcionando, é fácil add as coisas que faltam, mesmo assim o resultado será um staff chat inacabado, Tod e Dansh ja tem ele acabado então se querem algo bem feito, corra atrás e façam vcs mesmos. Parabéns pelo trabalho feito por vcs.
"uiuiuiuiui eu sei fazer um chatizinho simples", calma-lá parça, calma-lá
AdrianOficial
AdrianOficial
MEMBRO

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

Private Staff Chat Empty Re: Private Staff Chat

Sex Set 01, 2017 1:40 am
http://prntscr.com/gfo54i
Loukino
Loukino
MODERADOR

MODERADOR
Mensagens : 149
Data de inscrição : 19/01/2015
http://www.nowmice.pro

Private Staff Chat Empty Re: Private Staff Chat

Ter Set 12, 2017 5:45 pm
Isso tudo porque ainda não resolveram isso? '-'

Private Staff Chat EDxL0Xb
WagnerMG
WagnerMG
MODERADOR

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

Private Staff Chat Empty Re: Private Staff Chat

Ter Set 12, 2017 6:21 pm
Coroi cuzon, o loukino ta vivo
Loukino
Loukino
MODERADOR

MODERADOR
Mensagens : 149
Data de inscrição : 19/01/2015
http://www.nowmice.pro

Private Staff Chat Empty Re: Private Staff Chat

Ter Set 12, 2017 6:58 pm
WagnerMG escreveu:Coroi cuzon, o loukino ta vivo

Quem é vivo, sempre aparece hehe
Weslei
Weslei
MODERADOR

MODERADOR
Mensagens : 402
Data de inscrição : 16/01/2015
Idade : 24
Localização : Narnia

Private Staff Chat Empty Re: Private Staff Chat

Qua Set 13, 2017 9:03 pm
Loukino escreveu:Isso tudo porque ainda não resolveram isso? '-'

Private Staff Chat EDxL0Xb

Abrir o pwet? http://prntscr.com/gkvjcn
Loukino
Loukino
MODERADOR

MODERADOR
Mensagens : 149
Data de inscrição : 19/01/2015
http://www.nowmice.pro

Private Staff Chat Empty Re: Private Staff Chat

Qua Set 13, 2017 9:18 pm
Weslei escreveu:
Abrir o pwet? http://prntscr.com/gkvjcn

O assunto é sobre o Pwet?  Question 
Então não...
Weslei
Weslei
MODERADOR

MODERADOR
Mensagens : 402
Data de inscrição : 16/01/2015
Idade : 24
Localização : Narnia

Private Staff Chat Empty Re: Private Staff Chat

Qua Set 13, 2017 9:21 pm
Loukino escreveu:
Weslei escreveu:
Abrir o pwet? http://prntscr.com/gkvjcn

O assunto é sobre o Pwet?  Question 
Então não...
Não tinha percebido o chat
Nikopark
Nikopark
ADMINISTRADOR

ADMINISTRADOR
Mensagens : 1126
Data de inscrição : 25/12/2014
Idade : 26
Localização : Ontário, Canadá
https://www.aulamice.io/

Private Staff Chat Empty Re: Private Staff Chat

Sex Set 15, 2017 4:42 am
Loukino escreveu:
WagnerMG escreveu:Coroi cuzon, o loukino ta vivo

Quem é vivo, sempre aparece hehe
KKKKKKKKKKKKKKKKKK Loukino meu amor <3
WagnerMG
WagnerMG
MODERADOR

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

Private Staff Chat Empty Re: Private Staff Chat

Sáb Set 16, 2017 1:18 pm
Nikopark escreveu:
Loukino escreveu:
WagnerMG escreveu:Coroi cuzon, o loukino ta vivo

Quem é vivo, sempre aparece hehe
KKKKKKKKKKKKKKKKKK Loukino meu amor <3
Vacoooo
Nikopark
Nikopark
ADMINISTRADOR

ADMINISTRADOR
Mensagens : 1126
Data de inscrição : 25/12/2014
Idade : 26
Localização : Ontário, Canadá
https://www.aulamice.io/

Private Staff Chat Empty Re: Private Staff Chat

Dom Set 17, 2017 9:15 pm
WagnerMG escreveu:
Nikopark escreveu:
Loukino escreveu:
WagnerMG escreveu:Coroi cuzon, o loukino ta vivo

Quem é vivo, sempre aparece hehe
KKKKKKKKKKKKKKKKKK Loukino meu amor <3
Vacoooo
Private Staff Chat GPw0QR2xTbyxidauyieznw
Não, não, não!
Conteúdo patrocinado

Private Staff Chat Empty Re: Private Staff Chat

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