×

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
  • /
  • [Lua] Emotikonki
1 / 2 › »
[Lua] Emotikonki
Aranea
« Consul »
1447362240000
    • Aranea#1648
    • Profil
    • Derniers messages
    • Tribu
#1
  2
  • Emotikonki
  • Jak to działa?
  • Skrypt

Witam w wątku z kodem lua: Emotikonki
~ Autorem skryptu jest Adriantal


Chciałeś kiedyś ztrollować znajomych, lub coś innego? Jeśli tak, to możesz to zrobić :D
Ten kod jest po to, aby "wymusić" na myszce używania jakiejś emotikonki, np. tańca, płaczu, klaskania itd. .

Aby dowiedzieć się więcej o tym kodzie, zapraszam Was do następnych zakładek :)

Jak to działa?

Aby "wymusić" na jakiejś myszce emotikonkę, wystarczy że napiszesz jedną komendę na czacie:

!emote 1*Nick Gracza* 2*Cyfra*

• 1: Wpisz tam nick gracza, który ma wykonać emotikonkę.
• 2: Wpisz tam wybraną przez siebie cyfrę. Cyfra 1 np. daje emotkę śmiechu, cyfra 2 daję emotkę płaczu itd. .

Przykład:

!emote Szamankakox 1

W następnej zakładce znajdziecie skrypt do tego kodu.

Skrypt Emotikonki

Skrypt V1.0

Adm={NAZWAGRACZA=1}

function eventChatCommand(nick,komd)
arg={}
for args in komd:gmatch("[^%s]+") do
table.insert(arg, args)
end
if Adm[nick] then
if arg[1]=="flag" then
tfm.exec.playEmote(arg[2],10,arg[3])
elseif arg[1]=="emote" then
tfm.exec.playEmote(arg[2],tonumber(arg[3]),arg[4])
end
end
end

for v,komd in pairs({"flag","emote"}) do
system.disableChatCommandDisplay(komd,true)
end


Strona ze skryptem



Skrypt V1.1


Adm={NAZWAGRACZA=1}

function eventChatCommand(nick,komd)
arg={}
for args in komd:gmatch("[^%s]+") do
table.insert(arg, args)
end
if komd=="help" or komd=="pomoc" then
ui.addTextArea(1,"<VP>Witaj! Autor skryptu: <J>Adriantal\n<V>Komendy:\n<V>!help\n!emote NUMEREMOTKI<ROSE>!emote NICK NUMEREMOTKI\n!flag NICK SKRÓTKRAJU\n!emoteall NUMEREMOTKI\n<font size='9'>Komendy <ROSE>Różowe <N>są tylko dla admina.",nick,300,200,n,n,n,n,1,true)
elseif arg[1]=="emote" then
tfm.exec.playEmote(nick,arg[2])
elseif Adm[nick] then
if arg[1]=="flag" then
tfm.exec.playEmote(arg[2],10,arg[3])
elseif arg[1]=="emote" then
tfm.exec.playEmote(arg[2],tonumber(arg[3]))
elseif arg[1]=="emoteall" then
tfm.exec.playEmote(nil,tonumber(arg[2]))
else
end
end
end

for _ in pairs(tfm.get.room.playerList) do
ui.setMapName("<N>Wpisz <ROSE>!help<N>, by włączyć okienko pomocy.")
end

for v,komd in pairs({"flag","emote","emoteall","help","pomoc"}) do
system.disableChatCommandDisplay(komd,true)
end


Strona ze skryptem


Dernière modification le 1482942900000
Dailius
« Citoyen »
1447362420000
    • Dailius#2208
    • Profil
    • Derniers messages
    • Tribu
#2
  0
Skrypt wykonał Adriantal a ty go tutaj piszesz, ciekawe
Aranea
« Consul »
1447366620000
    • Aranea#1648
    • Profil
    • Derniers messages
    • Tribu
#3
  0
Mam od niego pozwolenie :)
Rohere
« Consul »
1447431600000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
A nie jest za krótki?
Kubusiu
« Citoyen »
1447431660000
    • Kubusiu#7681
    • Profil
    • Derniers messages
#5
  0
Kod pewnie nie jest do końca zrobiony patrząc na niego są tam 3 emotikony. Nr 1 , 2 ,3
Sebafrancuz
« Consul »
1447433640000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
rodxes a dit :
Kod pewnie nie jest do końca zrobiony patrząc na niego są tam 3 emotikony. Nr 1 , 2 ,3

arg[1] to nie jest emotikonka 1 .... itd...
Adriantal
« Citoyen »
1447499400000
    • Adriantal#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Szamankakox a dit :
Mam od niego pozwolenie :)


Jest tu jeszcze komenda !flag NICK SKRÓTKRAJU. Np. !flag Adriantal FR. Ale można też wymusić u kogoś flagę za pomocą !emote NICK 10 SKRÓTKRAJU (10 to numer emotki - flaga)

Dernière modification le 1449690300000
Aranea
« Consul »
1461083100000
    • Aranea#1648
    • Profil
    • Derniers messages
    • Tribu
#8
  0
*Ożywienie wątku*

Ktoś używał kodu?
Rkubi
« Censeur »
1461131340000
    • Rkubi#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  1
Ja używałem :P
Anusiaks
« Consul »
1461150900000
    • Anusiaks#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
ale gdzie to używać ?
Rkubi
« Censeur »
1461151920000
    • Rkubi#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
W chatce plemiennej wpisz /lua i w to okienko to wklej.
Myikser
« Citoyen »
1463828880000
    • Myikser#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
Nie działa.
Barciomysz
« Citoyen »
1463831340000
    • Barciomysz#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  0
myikser a dit :
Nie działa.

Działa, skrypt bardzo fajny
Adriantal
« Citoyen »
1463913060000
    • Adriantal#0000
    • Profil
    • Derniers messages
    • Tribu
#15
  0
gaberosss a dit :
Wpisałem, dałem w NAZWAGRACZA swój nick i nie działa -,-

Adm={Gaberosss=1}

function eventChatCommand(nick,komd)
arg={}
for args in komd:gmatch("[^%s]+") do
table.insert(arg, args)
end
if Adm[nick] then
if arg[1]=="flag" then
tfm.exec.playEmote(arg[2],10,arg[3])
elseif arg[1]=="emote" then
tfm.exec.playEmote(arg[2],tonumber(arg[3]),arg[4])
end
end
end

for v,komd in pairs({"flag","emote"}) do
system.disableChatCommandDisplay(komd,true)
end


Spróbuj wpisać !emote Gaberosss 1
Aanguson
« Citoyen »
1464094380000
    • Aanguson#8461
    • Profil
    • Derniers messages
#17
  0
gaberosss a dit :
adriantal a dit :
gaberosss a dit :
Wpisałem, dałem w NAZWAGRACZA swój nick i nie działa -,-

Adm={Gaberosss=1}

function eventChatCommand(nick,komd)
arg={}
for args in komd:gmatch("[^%s]+") do
table.insert(arg, args)
end
if Adm[nick] then
if arg[1]=="flag" then
tfm.exec.playEmote(arg[2],10,arg[3])
elseif arg[1]=="emote" then
tfm.exec.playEmote(arg[2],tonumber(arg[3]),arg[4])
end
end
end

for v,komd in pairs({"flag","emote"}) do
system.disableChatCommandDisplay(komd,true)
end


Spróbuj wpisać !emote Gaberosss 1

Wpisałem, i nic..
ZAWSZE JAK CHCĘ UŻYĆ LUA TO OKIENKO ROBI SIĘ JAŚNIEJSZE, I CIĄGLE KLIKAM WYŚLIJ, I NIC!!!!!!!!! :C

A masz możliwość wczytywania map poprzez komendę /np? Jeśli nie masz to nic dziwnego.
Czarodziejh
« Citoyen »
1468170360000
    • Czarodziejh#0000
    • Profil
    • Derniers messages
    • Tribu
#18
  0
rodxes a dit :
Kod pewnie nie jest do końca zrobiony patrząc na niego są tam 3 emotikony. Nr 1 , 2 ,3

Mi działa 12 !
Czarodziejh
« Citoyen »
1468170420000
    • Czarodziejh#0000
    • Profil
    • Derniers messages
    • Tribu
#19
  0
Rohere a dit :
A nie jest za krótki?

Nie mi działa normalnie xdd
Adriantal
« Citoyen »
1482246540000
    • Adriantal#0000
    • Profil
    • Derniers messages
    • Tribu
#20
  0
Nowa wersja kodu! :)

Z tego kodu w pierwszym poście już nie korzystajcie, bo jest przestarzały. Szam, mogłabyś zaktualizować ten kod w poście?

Dernière modification le 1545922320000
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Lua] Emotikonki
1 / 2 › »
© Atelier801 2018

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

Version 1.27