- Strein
MEMBRO - Mensagens : 41
Data de inscrição : 15/07/2017
Randomize System (Editable)
Ter Out 03, 2017 6:30 am
First, IMPORT the module ' random '
After, add the code
Under "profil" command(ParseCommands.py)
How can I edit the randomize system?
First, you can edit the cost.
Current cost: 10000 firsts
But you can edit it. as:
Second, you can edit the amount limit.
Current amount list, between 1 and 1000000.
But you can edit it. as:
or you can set it. as:
And finally, you can edit the text.
Current won award message: first kazandınız
But you can change it. as:
After, add the code
Under "profil" command(ParseCommands.py)
- Código:
elif command in ["kumaroyna"]:
if this.client.firstCount >= 10000: # eğer 10000 first varsa
this.client.firstCount -= 10000 # 10000 first gidecek şekilde
miktarlistesi = range(1, 1000000) # 1 ile 1000000 arasında
miktar = int(random.choice(miktarlistesi)) # rastgele bir
this.client.firstCount += int(miktar)# miktar oluşturup ver
txt = ''+str(miktar)+' first kazandınız.' # ve bildirmek için
this.client.sendMessage(txt) # print'le
How can I edit the randomize system?
First, you can edit the cost.
Current cost: 10000 firsts
- Código:
this.client.firstCount -= 10000 # 10000 first gidecek şekilde
But you can edit it. as:
- Código:
this.client.firstCount -= 500 # 500 first gidecek şekilde
Second, you can edit the amount limit.
- Código:
miktarlistesi = range(1, 1000000) # 1 ile 1000000 arasında
Current amount list, between 1 and 1000000.
But you can edit it. as:
- Código:
miktarlistesi = range(1, 500) # 1 ile 500 arasında
or you can set it. as:
- Código:
miktarlistesi = ["20", "30", "50", "500"] # 20 veya 30 veya 50 veya 500
And finally, you can edit the text.
- Código:
txt = ''+str(miktar)+' first kazandınız.' # ve bildirmek için
Current won award message: first kazandınız
But you can change it. as:
- Código:
txt = 'You won '+str(miktar)+' firsts.' # ve bildirmek için
- weytar
BANIDO - Mensagens : 96
Data de inscrição : 28/05/2016
Re: Randomize System (Editable)
Sáb Out 28, 2017 1:56 pm
Sen bişey yazma.
- Strein
MEMBRO - Mensagens : 41
Data de inscrição : 15/07/2017
Re: Randomize System (Editable)
Seg Out 30, 2017 1:09 pm
Sana ne ?
Eğer bir yerde faydalandığını görürsem sana kıçımla gülerim.
Eğer bir yerde faydalandığını görürsem sana kıçımla gülerim.
- weytar
BANIDO - Mensagens : 96
Data de inscrição : 28/05/2016
Re: Randomize System (Editable)
Seg Out 30, 2017 2:40 pm
Kıçında yüz varda bizim haberimiz mi yok ?
- Tfm bırakalı çok oldu...
- Tfm bırakalı çok oldu...
- Nizant
MEMBRO - Mensagens : 66
Data de inscrição : 06/03/2016
Idade : 21
Re: Randomize System (Editable)
Seg Out 30, 2017 4:25 pm
Ai você traduz kkkk,
http://prntscr.com/h40qm4
http://prntscr.com/h40qm4
- Andriel9
MEMBRO - Mensagens : 239
Data de inscrição : 04/06/2017
Idade : 19
Re: Randomize System (Editable)
Ter Out 31, 2017 7:04 pm
kkkkkkkkkkkkkkkkkkkkkkCover escreveu:Ai você traduz kkkk,
http://prntscr.com/h40qm4
- Poeki
MEMBRO - Mensagens : 53
Data de inscrição : 16/09/2015
Idade : 25
Re: Randomize System (Editable)
Qua Nov 01, 2017 4:36 am
Thx
Kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk mds, essa hoea sa madeugada (4:35) e eu rindo alto kkkkkkkCover escreveu:Ai você traduz kkkk,
http://prntscr.com/h40qm4
Permissões neste sub-fórum
Não podes responder a tópicos