- clonelima
MEMBRO - Mensagens : 34
Data de inscrição : 09/11/2017
Localização : Houston, Texas
[AJUDA] Criar cargo Privlevel 11
Dom Mar 25, 2018 6:47 pm
Estou tentando criar um cargo com privlevel 11 e não estou conseguindo, na hora de logar a tela fica cinza e não entra falaram pra mim fazer desta forma
1° SendPrifile na Source add privlevel 11:10 = foi adicionado
2° SendLogin add privlevel 11 = foi adicionado
3° Adicionar privlevel 11 na def sendStaffChat em Source = foi adicionado
4° Adicionar privlevel 11 no ParsePacket em Identifiers.recv.Chat.Staff_Chat = foi adicionado
Foi dessa forma que eu fiz e adicionei o privlevel 11 na conta pela DB e na hora de logar a tela fica cinza, alguém pode ajudar?
1° SendPrifile na Source add privlevel 11:10 = foi adicionado
- Código:
def sendClientMessage(this, messagedef sendProfile(this, playerName):
player = this.server.players.get(playerName)
if player != None and not player.isGuest:
packet = ByteArray().writeUTF(player.playerName).writeInt(this.server.getplayerAvatar(playerName)).writeInt(str(player.regDate)[:10]).writeByte({1: 1,
2: 1,
3: 13,
4: 13,
5: 11,
6: 11,
7: 5,
8: 5,
11: 10,
9: 10,
11: 10,
10: 10}[player.privLevel]).writeByte(player.gender).writeUTF(player.tribeName).writeUTF(player.marriage)
for stat in [player.shamanSaves,
player.shamanCheeses,
player.firstCount,
player.cheeseCount,
player.hardModeSaves,
player.bootcampCount,
player.divineModeSaves]:
packet.writeInt(stat)):
this.sendPacket([6, 20], ByteArray().writeByte(0).writeUTF(message).writeByte(0).toByteArray())
2° SendLogin add privlevel 11 = foi adicionado
- Código:
def sendLoginMessage(this):
if this.privLevel >= 4:
this.server.sendStaffMessage(4, '<ROSE>[%s][%s] <CH>%s <N>conectou-se.' % ({11: 'Admin',
10: 'Admin',
9: 'Coord',
8: 'Smod',
7: 'Mod',
6: 'MapCrew',
5: 'Helper',
4: 'Divulgador'}[this.privLevel], this.langue, this.playerName), True)
this.sendRulesMessage()
if this.privLevel >= 1:
this.sendMessage('<J>' + str(this.playerName) + '<N> veja nosso menu <J>/menu2')
this.sendPlayRadio()
3° Adicionar privlevel 11 na def sendStaffChat em Source = foi adicionado
- Código:
def sendStaffChat(this, type, langue, playerName, message, sender):
playerName = sender.playerName if type == -1 else ('' if type == 0 else ('SERVIDOR' if type == 1 else sender.langue.upper() + '][' + {11: 'Admin][',
11: 'Prog][',
10: 'Admin][',
9: 'Coord][',
8: 'Smod][',
7: 'Mod][',
6: 'MapCrew][',
5: 'Helper][',
4: 'DV][',
3: 'LUA]['}[sender.privLevel]))
if '][' in playerName:
playerName += sender.playerName
for client in (sender.room.clients if type == 0 else this.players).values():
if (type == -1 or type == 0 or type == 1 or (type == 2 or type == 5) and client.privLevel >= 11 and client.privLevel >= 5 or (type == 3 or type == 4) and client.privLevel >= 7 or (type == 6 or type == 7) and client.privLevel >= 6 or type == 8 and client.privLevel >= 3 or type == 9 and client.privLevel >= 4) and (client.langue == langue or type == -1 or type == 1 or type == 4 or type == 5 or type == 6):
client.sendPacket(Identifiers.send.Staff_Chat, ByteArray().writeByte(1 if type == -1 else type).writeUTF(playerName).writeUTF(message).writeShort(0).writeByte(0).toByteArray())
4° Adicionar privlevel 11 no ParsePacket em Identifiers.recv.Chat.Staff_Chat = foi adicionado
- 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)(type == 1 and this.client.privLevel >= 11) 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
Foi dessa forma que eu fiz e adicionei o privlevel 11 na conta pela DB e na hora de logar a tela fica cinza, alguém pode ajudar?
- Lowerzera
MEMBRO - Mensagens : 68
Data de inscrição : 19/11/2017
Re: [AJUDA] Criar cargo Privlevel 11
Dom Mar 25, 2018 6:50 pm
Se você mostrar o erro a gente agradece.
- clonelima
MEMBRO - Mensagens : 34
Data de inscrição : 09/11/2017
Localização : Houston, Texas
Re: [AJUDA] Criar cargo Privlevel 11
Dom Mar 25, 2018 7:27 pm
Lowerzera escreveu:Se você mostrar o erro a gente agradece.
A mesma Imagem: https://prnt.sc/iwaitx
Na source liga não aparece nenhum erro somente acontece isso.
- WagnerMG
MODERADOR - Mensagens : 170
Data de inscrição : 01/10/2016
Re: [AJUDA] Criar cargo Privlevel 11
Seg Mar 26, 2018 3:20 am
Deixa só um 11:10 e alinha com os outros...
http://prntscr.com/iwe2fj
http://prntscr.com/iwe2fj
Permissões neste sub-fórum
Não podes responder a tópicos