Ir para baixo
Darkmice
Darkmice
MEMBRO

MEMBRO
Mensagens : 64
Data de inscrição : 06/09/2015
http://www.dark-wave.org,www.darkmice.net,www.socialiker.com.br

Ajuda Correção Comando /give Empty Ajuda Correção Comando /give

Seg Dez 07, 2015 2:00 pm
Alguém me ajuda a arrumar esse comando

elif event.startswith("give "):
if this.privilegeLevel >= 10:
arguments, username, values = event_raw.split(' ', 3)[1:]
cheese, fraises, coins, fichas, saves, bc, first = 0, 0, 0, 0, 0, 0, 0
if arguments in ["cheese", "quesos"]:
cheese = int(values)
if arguments in ["fraises", "fresas"]:
fraises = int(values)
if arguments in ["coins", "monedas"]:
coins = int(values)
if arguments in ["fichas", "ficha"]:
fichas = int(values)
if arguments in ["saves", "save"]:
saves = int(values)
if arguments in ["bootcamp", "bootcamps"]:
bc = int(values)
if arguments in ["first", "firs"]:
first = int(values)
if arguments in ["cheesecount", "cheesecoun"]:
cheesecount = int(values)
for room in this.server.rooms.values():
for sent in room.clients.values():
if cheese and username.capitalize() == sent.username:
sent.shopcheese += cheese
sent.sendPacket("\x08\x32", struct.pack("!bi", 0, cheese), True)

msg = str("O jogador: "+this.username+" dara "+str(cheese)+" Cheese para "+str(sent.username))
this.salvarLog("comandos", msg)
break
if coins and username.capitalize() == sent.username:
sent.shopcoins += coins
sent.sendPacket("\x08\x32", struct.pack("!bi", 2, coins), True)

msg = str("O jogador: "+this.username+" dara "+str(coins)+" Coins para "+str(sent.username))
this.salvarLog("comandos", msg)
break
if fichas and username.capitalize() == sent.username:
sent.shopfichas += fichas
sent.sendPacket("\x08\x32", struct.pack("!bi", 3, fichas), True)

msg = str("O jogador: "+this.username+" dara "+str(fichas)+" Fichas para "+str(sent.username))
this.salvarLog("comandos", msg)
break
if saves and username.capitalize() == sent.username:
sent.micesaves += saves
sent.sendPacket("\x08\x32", struct.pack("!bi", 4, saves), True)

msg = str("O jogador: "+this.username+" dara "+str(saves)+" Saves para "+str(sent.username))
this.salvarLog("comandos", msg)
break
if bc and username.capitalize() == sent.username:
sent.bootcampcount += bc
sent.sendPacket("\x08\x32", struct.pack("!bi", 5, bc), True)

msg = str("O jogador: "+this.username+" dara "+str(bc)+" Bootcamps para "+str(sent.username))
this.salvarLog("comandos", msg)
break
if cheesecount and username.capitalize() == sent.username:
sent.cheesecount += cheesecount
sent.sendPacket("\x08\x32", struct.pack("!bi", 0, cheesecount), True)

msg = str("O jogador: "+this.username+" dara "+str(cheesecount)+" Cheese Count para "+str(sent.username))
this.salvarLog("comandos", msg)
break
if first and username.capitalize() == sent.username:
sent.firstcount += first
sent.sendPacket("\x08\x32", struct.pack("!bi", 6, first), True)

msg = str("O jogador: "+this.username+" dara "+str(first)+" First para "+str(sent.username))
this.salvarLog("comandos", msg)
break
if fraises and username.capitalize() == sent.username:
sent.shopfraises += fraises
sent.sendPacket("\x08\x32", struct.pack("!bi", 1, fraises), True)

msg = str("O jogador: "+this.username+" dara "+str(fraises)+" Fraises para "+str(sent.username))
this.salvarLog("comandos", msg)
break


Não ta pegando mais :/ minha versão e 1.272 KoshTFM
Kira
Kira
ADMINISTRADOR

ADMINISTRADOR
Mensagens : 311
Data de inscrição : 14/01/2015
Idade : 25

Ajuda Correção Comando /give Empty Re: Ajuda Correção Comando /give

Seg Dez 07, 2015 10:11 pm
"break" kkkkkkkkkk mds
ps: puts com essas linhas da pra fazer uma source
Johann
Johann
MEMBRO

MEMBRO
Mensagens : 63
Data de inscrição : 24/08/2015

Ajuda Correção Comando /give Empty Re: Ajuda Correção Comando /give

Seg Dez 07, 2015 10:36 pm
KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK sim
Weeslleeyone
Weeslleeyone
MEMBRO

MEMBRO
Mensagens : 227
Data de inscrição : 14/01/2015
Idade : 28
Localização : Marte

Ajuda Correção Comando /give Empty Re: Ajuda Correção Comando /give

Ter Dez 08, 2015 2:38 am
Palmas pro gênio que fez o comando do ano para Transformice...
Já vi sources menor que esse comando
Darkmice
Darkmice
MEMBRO

MEMBRO
Mensagens : 64
Data de inscrição : 06/09/2015
http://www.dark-wave.org,www.darkmice.net,www.socialiker.com.br

Ajuda Correção Comando /give Empty Re: Ajuda Correção Comando /give

Ter Dez 08, 2015 8:23 pm
fui eu n foi o KoshTFM que fez ele n ta dando suporte alguém ai me ajuda em um comando pra dar first e taus ? eu programei uns mas como sou iniciante consegui apenas fazer funcionar mais para dar para todos ele n esta indo para um user só exemplo " /getfirst 1 Darksmile " ele não funciona mais si eu por apenas " /getfirst 1 "ele funciona :/
Conteúdo patrocinado

Ajuda Correção Comando /give Empty Re: Ajuda Correção Comando /give

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