×

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
  • /
  • Script Requests
« ‹ 10 / 160 › »
Script Requests
Ethanrockz
« Citoyen »
1382112360000
    • Ethanrockz#0000
    • Profil
    • Derniers messages
    • Tribu
#181
  0
Issey a dit :
Oh, after having bought the item from shop, you have to type in !lb in chat.. It's there so you can change the spawn item

I know about te command I saw it in code but it lets me spawn unlimited boxes and when I buy a box nothing happens :p
Iamconz
« Citoyen »
1382121600000
    • Iamconz#0000
    • Profil
    • Derniers messages
    • Tribu
#182
  0
Just to add to
a dit :
function eventEmotePlayed(player, emote)
if emote == 3 then
ui.addTextArea(0, player .. " is inlove! *-*", nil, 100, 100)
end
end
timer = 0
despawnTime = 3
function eventEmotePlayed(player, emote)
if emote == 3 then
ui.addTextArea(0, player .. " is inlove! *-*")
timer = 0
end
end
function eventLoop(curTime, timeR)
if timer == despawnTime * 2 then
ui.removeTextArea(0, NIL)
else
timer = timer + 1
end
end

How can I also include text for other emoticons, for example

if i wanted crying

then how would you do it as "x is crying! :(", but also including the script above
Jordy
« Consul »
1382123100000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#183
  0
Iamconz a dit :
Just to add to

How can I also include text for other emoticons, for example

if i wanted crying

then how would you do it as "x is crying! :(", but also including the script above

Like so?

--Old code deleted--
Iamconz
« Citoyen »
1382123220000
    • Iamconz#0000
    • Profil
    • Derniers messages
    • Tribu
#184
  0
Jordynl a dit :
Like so?

[•] Runtime Error : transformice.lua:36: attempt to perform arithmetic __mul on nil and number

Anyway around this?

And thanks for the code
Jordy
« Consul »
1382123220000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#185
  0
Iamconz a dit :
[•] Runtime Error : transformice.lua:36: attempt to perform arithmetic __mul on nil and number

Anyway around this?

And thanks for the code

Did you got that error while trying the script I posted?
Iamconz
« Citoyen »
1382123220000
    • Iamconz#0000
    • Profil
    • Derniers messages
    • Tribu
#186
  0
Jordynl a dit :
Did you got that error while trying the script I posted?

C&P, yes
Jordy
« Consul »
1382123340000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#187
  1
Iamconz a dit :
C&P, yes

Oh. I forgot to add something. Try this:

a dit :
despawnTime = 3
timer = 0

function eventEmotePlayed(player, emote)
if emote == 0 then
ui.addTextArea(0, player .. " is dancing!", nil, 100, 100)
elseif emote == 1 then
ui.addTextArea(0, player .. " is laughing!", nil, 100, 100)
elseif emote == 2 then
ui.addTextArea(0, player .. " is crying ;;", nil, 100, 100)
elseif emote == 3 then
ui.addTextArea(0, player .. " is in love *-*", nil, 100, 100)
elseif emote == 4 then
ui.addTextArea(0, player .. " is angry D:", nil, 100, 100)
elseif emote == 5 then
ui.addTextArea(0, player .. " is clapping :D", nil, 100, 100)
elseif emote == 6 then
ui.addTextArea(0, player .. " is sleeping", nil, 100, 100)
elseif emote == 7 then
ui.addTextArea(0, player .. " is scared :o", nil, 100, 100)
elseif emote == 8 then
ui.addTextArea(0, player .. " is sitting", nil, 100, 100)
elseif emote == 9 then
ui.addTextArea(0, player .. " is throwing out confetti :D", nil, 100, 100)
end
timer = 0
end

function eventLoop(curTime, timeR)
if timer == despawnTime*2 then
ui.removeTextArea(0, NIL)
else
timer = timer + 1
end
end
Iamconz
« Citoyen »
1382123520000
    • Iamconz#0000
    • Profil
    • Derniers messages
    • Tribu
#188
  0
Jordynl a dit :
Oh. I forgot to add something. Try this:

Brilliant, Thanks!

e: on a side note,

is there a script that uses something like this

!command

insert text here
Jordy
« Consul »
1382125680000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#189
  0
Iamconz a dit :
Brilliant, Thanks!

e: on a side note,

is there a script that uses something like this

!command

insert text here

Eh you mean this? :|

a dit :
function eventChatCommand(name, message)
if message == "command" then
print("Test succesfull!")
end
end
Iamconz
« Citoyen »
1382125800000
    • Iamconz#0000
    • Profil
    • Derniers messages
    • Tribu
#190
  0
Jordynl a dit :
Eh you mean this? :|

Awesome! You are a star *-*
Issey
« Citoyen »
1382156400000
    • Issey#0000
    • Profil
    • Derniers messages
#191
  0
Ethanrockz a dit :
I know about te command I saw it in code but it lets me spawn unlimited boxes and when I buy a box nothing happens :p

a dit :
shop=[[
<a href='event:lb'>Buy 1 Large Box</a>
]]
id=0

ui.addTextArea(1,shop)
items={}

for name,player in pairs(tfm.get.room.playerList) do
items[name]={item=nil, lb=0, sb=0}
tfm.exec.bindKeyboard(name,32,true,true)
end

function eventTextAreaCallback(id,name,cb)
if(cb=='lb') then
items[name].lb=1
print('<J>'..name..'<VP> has bought 1 <N>Large Box.')
end
end

function eventChatCommand(name,c)
if(c=='lb') then
items[name].item='lb'
print('<VP>Press space to spawn a large box')
end
end

function eventKeyboard(name,k,down,x,y)
if(k==32) and not tfm.get.room.playerList[name].isDead then
y=y-10
if tfm.get.room.playerList[name].isFacingRight then
x=x+10
vx=10
else x=x-10 vx=-10 end
if(items[name].item=='lb') then
if(items[name].lb>0) then
id=2
items[name].lb=items[name].lb-1
else
id=0
print('<VP>You\'re all out!')
end
end
tfm.exec.addShamanObject(id,x,y,0,vx)
end
end

This should work then
Yapale
« Citoyen »
1382213100000
    • Yapale#0000
    • Profil
    • Derniers messages
    • Tribu
#192
  0
instant respawn after death or getting in the hole with cheese
because some mice are impaitent to respawn
Shamousey
« Consul »
1382213340000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#193
  0
Yapale a dit :
instant respawn after death or getting in the hole with cheese
because some mice are impaitent to respawn

function eventPlayerDied(name)
tfm.exec.respawnPlayer(name)
end

function eventPlayerWon(name)
tfm.exec.respawnPlayer(name)
end
Fuzzfire
« Citoyen »
1382214120000
    • Fuzzfire#0000
    • Profil
    • Derniers messages
    • Tribu
#194
  0
Change a person's username with the command !user (username) and would go away whenever you left the tribehouse :P
Shamousey
« Consul »
1382215380000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#195
  0
Fuzzfire a dit :
Change a person's username with the command !user (username) and would go away whenever you left the tribehouse :P

You can't change someone's username like that I'm afraid.
Fuzzfire
« Citoyen »
1382219760000
    • Fuzzfire#0000
    • Profil
    • Derniers messages
    • Tribu
#196
  0
Shamousey a dit :
You can't change someone's username like that I'm afraid.

Naww, okay :P


How about changing someone's text color?
Jordy
« Consul »
1382220900000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#197
  0
Not possible. You can't change someone's text.
Bethdacat
« Consul »
1382221680000
    • Bethdacat#0000
    • Profil
    • Derniers messages
    • Tribu
#198
  0
I request a changing of your mouse sprite script.
Shamousey
« Consul »
1382221800000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#199
  0
Bethdacat a dit :
I request a changing of your mouse sprite script.

Only people on the Lua Team can do that with tfm.exec.addImage().
Bethdacat
« Consul »
1382223840000
    • Bethdacat#0000
    • Profil
    • Derniers messages
    • Tribu
#200
  0
Shamousey a dit :
Only people on the Lua Team can do that with tfm.exec.addImage().

Orly

Then i'll request give cheese at 20 seconds
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 10 / 160 › »
© Atelier801 2018

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

Version 1.27