Private Staff Chat
+12
Weeslleeyone
Nikopark
WagnerMG
Loukino
Weslei
Bronce
AdrianOficial
henriquer
Kuzho
Andriel9
Danshweger
Strein
16 participantes
Página 1 de 2 • 1, 2
- Strein
MEMBRO - Mensagens : 41
Data de inscrição : 15/07/2017
Private Staff Chat
Sáb Jul 15, 2017 12:55 pm
Core.py, Class Client:
Core.py, Under NPC:
ParsePackets, luapopup:
Crédits: TransforVida
- 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)
- 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("&#", "&#").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()
- 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.")
Crédits: TransforVida
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.
This private chat was created by Bruno (I believe) and edited and re-done by me.
- Strein
MEMBRO - Mensagens : 41
Data de inscrição : 15/07/2017
Re: Private Staff Chat
Dom Jul 16, 2017 8:19 pm
I'm read info is same. Sorry.
- Andriel9
MEMBRO - Mensagens : 239
Data de inscrição : 04/06/2017
Idade : 19
Re: Private Staff Chat
Seg Jul 17, 2017 9:20 am
How do I get it?
Re: Private Staff Chat
Seg Jul 17, 2017 9:47 am
Andriel9 escreveu:How do I get it?
Add in your class Server:
this.staffChat = []
- Kuzho
MEMBRO - Mensagens : 6
Data de inscrição : 21/07/2017
Idade : 25
Re: Private Staff Chat
Sex Jul 21, 2017 8:59 am
Nice ^^
- Andriel9
MEMBRO - Mensagens : 239
Data de inscrição : 04/06/2017
Idade : 19
Re: Private Staff Chat
Sex Jul 21, 2017 5:19 pm
And this as I will?
- henriquer
MEMBRO - Mensagens : 16
Data de inscrição : 07/04/2015
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.
- Bronce
MEMBRO - Mensagens : 40
Data de inscrição : 29/03/2017
Re: Private Staff Chat
Ter Ago 29, 2017 6:44 am
edit "this" to "self"AdrianOficial escreveu:my source is in self
pls help me )
- Strein
MEMBRO - Mensagens : 41
Data de inscrição : 15/07/2017
Re: Private Staff Chat
Ter Ago 29, 2017 7:04 am
AdrianOficial escreveu:Error.
Repair your source or try the new sources.
Good luck!
- Andriel9
MEMBRO - Mensagens : 239
Data de inscrição : 04/06/2017
Idade : 19
Re: Private Staff Chat
Qua Ago 30, 2017 11:34 am
Send for my you source for i repair and i give you :vAdrianOficial escreveu:Error.
Re: Private Staff Chat
Qua Ago 30, 2017 11:39 am
Andriel9 escreveu:Send for my you source for i repair and i give you :vAdrianOficial escreveu:Error.
I'm use your source (StarkMice)
- Weslei
MODERADOR - Mensagens : 402
Data de inscrição : 16/01/2015
Idade : 24
Localização : Narnia
Re: Private Staff Chat
Qui Ago 31, 2017 8:13 pm
"uiuiuiuiui eu sei fazer um chatizinho simples", calma-lá parça, calma-lá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.
- WagnerMG
MODERADOR - Mensagens : 170
Data de inscrição : 01/10/2016
Re: Private Staff Chat
Ter Set 12, 2017 6:21 pm
Coroi cuzon, o loukino ta vivo
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
MODERADOR - Mensagens : 402
Data de inscrição : 16/01/2015
Idade : 24
Localização : Narnia
Re: Private Staff Chat
Qua Set 13, 2017 9:03 pm
Loukino escreveu:Isso tudo porque ainda não resolveram isso? '-'
Abrir o pwet? http://prntscr.com/gkvjcn
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?
Então não...
- Weslei
MODERADOR - Mensagens : 402
Data de inscrição : 16/01/2015
Idade : 24
Localização : Narnia
Re: Private Staff Chat
Qua Set 13, 2017 9:21 pm
Não tinha percebido o chatLoukino escreveu:Weslei escreveu:
Abrir o pwet? http://prntscr.com/gkvjcn
O assunto é sobre o Pwet?
Então não...
Re: Private Staff Chat
Sex Set 15, 2017 4:42 am
KKKKKKKKKKKKKKKKKK Loukino meu amor <3Loukino escreveu:WagnerMG escreveu:Coroi cuzon, o loukino ta vivo
Quem é vivo, sempre aparece hehe
- WagnerMG
MODERADOR - Mensagens : 170
Data de inscrição : 01/10/2016
Re: Private Staff Chat
Sáb Set 16, 2017 1:18 pm
VacooooNikopark escreveu:KKKKKKKKKKKKKKKKKK Loukino meu amor <3Loukino escreveu:WagnerMG escreveu:Coroi cuzon, o loukino ta vivo
Quem é vivo, sempre aparece hehe
Re: Private Staff Chat
Dom Set 17, 2017 9:15 pm
WagnerMG escreveu:VacooooNikopark escreveu:KKKKKKKKKKKKKKKKKK Loukino meu amor <3Loukino escreveu:WagnerMG escreveu:Coroi cuzon, o loukino ta vivo
Quem é vivo, sempre aparece hehe
Não, não, não!
Página 1 de 2 • 1, 2
Permissões neste sub-fórum
Não podes responder a tópicos
|
|