×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Galeria] Contistente
[Galeria] Contistente
Contistente
« Citoyen »
1479820740000
    • Contistente#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  1
  • Sistema de times
  • Loja e inventário
  • Sistema de ranking
  • #skyrun
  • sisteminhas
A script desse incrível mini-sistema que eu construí desdo zero :3
Clique aqui
A script desse sistema incrivel de loja que eu desenvolvi desdo zero
Clique aqui
A script desse sistema incrivel de ranking
Clique aqui
A script desse incrível minigame que eu mesmo desenvolvi
Clique aqui

Sistema prático de excluir uma informação de uma tabela:
OBS: !remove [id da informação] - remove a informação da tabela(tire o [] coloque apenas o !remove id exemplo: !remove 1)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
player={}

table.insert(player,{n="oi"})

function eventLoop()
for i,v in pairs(player) do
print(v.n)
end
end

function table.clear(tabela,info_id)
table.remove(tabela,info_id)
return print("A informação foi removida com sucesso.")
end

function split(t,s)
local a={}
for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
table.insert(a,i)
end
return a
end

function eventChatMessage(name,msg)
local arg = split(msg, " ")

if arg[1] == "!remove" and arg[2] then
table.clear(player,arg[2])
end
end

math.random modificado:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
random = math.random
function math.random(v1,v2,type)
if type == "randFloor" then
str = math.floor(random(v1,v2))
elseif type == "divideFloor" then
str = math.floor(random(v1)/random(v2))
elseif type == "notFloor" then
str = random(v1,v2)/math.floor(random(v1,v2)*random(v2,v2*2))
elseif type == "multipleFloor" then
str = math.floor(random(v1)*random(v2))
elseif type == "multiple" then
str = random(v1)*random(v2)
elseif type == "divide" then
str = random(v1)/random(v2)
elseif type == nil or type == '' or type == false then
str = random(v1,v2)
end

return str
end

print(math.random(1,20,"randFloor"))
print(math.random(1,20,"divideFloor"))
print(math.random(1,20,"notFloor"))
print(math.random(1,20,"multipleFloor"))
print(math.random(1,20,"multiple"))
print(math.random(1,20,"divide"))
print(math.random(1,20))

Dernière modification le 1482519900000
Muutluerkek
« Citoyen »
1480176480000
    • Muutluerkek#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
good job :3

Dernière modification le 1480176540000
Morto_vivo
« Citoyen »
1480208460000
    • Morto_vivo#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
Boa ^^
Z_o
« Citoyen »
1480244760000
    • Z_o#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
Excelente
Waaalaceee
1480249920000
    • Waaalaceee#0000
    • Profil
    • Derniers messages
    • Tribu
#5
[Modéré par Kurt, raison : Fale português no fórum brasileiro.]
Contistente
« Citoyen »
1481509680000
    • Contistente#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
tópico atualizado...
Viciado
« Citoyen »
1482070620000
    • Viciado#5245
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Boa ^^
Bigbryanbig
« Citoyen »
1482090480000
    • Bigbryanbig#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
contitistente o sistema de loja e otimo mais como faz pra receber o iten assim que comprar? tipo quando agente usa o item la nao aparece nada como faço pra aparecer
Contistente
« Citoyen »
1482156720000
    • Contistente#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
y4_n a dit :
Boa ^^

Obg...
Bigbryanbig a dit :
contitistente o sistema de loja e otimo mais como faz pra receber o iten assim que comprar? tipo quando agente usa o item la nao aparece nada como faço pra aparecer

Big ele é jogador na tabela p[name].inventory puxa a id do item lá...
não é dificil configurar
Bigbryanbig
« Citoyen »
1482167460000
    • Bigbryanbig#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
contistente eu nao sei meche com tabelas...
Contistente
« Citoyen »
1482520260000
    • Contistente#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
Tópico atualizado.
Brenower
« Censeur »
1482522060000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
Seria mais interessante remover um valor
Brenower
« Censeur »
1482522180000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  0
E não é necessário retornar um print
É melhor retornar True

E tbm q verificar se o index existe, caso não return false
Peanutbutter
« Citoyen »
1482611340000
    • Peanutbutter#7887
    • Profil
    • Derniers messages
    • Tribu
#14
  0
Brenower a dit :
Seria mais interessante remover um valor
Bloom
« Héliaste »
1535320620000
    • Bloom#6766
    • Profil
    • Derniers messages
#15
  0
Parabéns
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Galeria] Contistente
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27