×

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] Petting your mouse!
« ‹ 3 / 5 › »
[Script] Petting your mouse!
Rini
« Citoyen »
1417605840000
    • Rini#5475
    • Profil
    • Derniers messages
    • Tribu
#41
  0
oMFG THIS IS SO CUTE I LOVE THIS
Izupen
« Citoyen »
1420924860000
    • Izupen#0000
    • Profil
    • Derniers messages
    • Tribu
#42
  0
it doesnt work. the stuff doesnt come up...does it work if another mouse is here?
Honey_bee
1423616280000
    • Honey_bee#9272
    • Profil
    • Derniers messages
#43
[Modéré par Shamousey, raison : Spam.]
Sweetywhites
1423772580000
    • Sweetywhites#0000
    • Profil
    • Derniers messages
    • Tribu
#44
[Modéré par Shamousey, raison : Spam.]
Imachipmunk
« Citoyen »
1423839540000
    • Imachipmunk#0000
    • Profil
    • Derniers messages
#45
  0
I have no idea how any of this "lua" stuff even works (everyones gonna hate me for being here because of that XD). I still want to try this.... alot (but obviously im not getting help, am i?). (ALSO, sorry for asking what so many other people already asked billions of times.)

Dernière modification le 1423839660000
Woebegone
« Citoyen »
1423857360000
    • Woebegone#8377
    • Profil
    • Derniers messages
    • Tribu
#46
  0
imachipmunk a dit :
I have no idea how any of this "lua" stuff even works (everyones gonna hate me for being here because of that XD). I still want to try this.... alot (but obviously im not getting help, am i?). (ALSO, sorry for asking what so many other people already asked billions of times.)

just go to your tribe house, type in /lua and in the box that pops up paste in the following in the spoiler:

players={}
tfm.exec.disableAutoShaman(true)
tfm.exec.newGame("@4434091")
q=90


function eventNewGame()
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAllShamanSkills(true)
tfm.exec.disableAfkDeath(true)
end

function eventNewPlayer(a)
system.bindMouse(a, true)
players[a]={h =100, j= 100,k=100,d=0,u=0,ch=0,cj=0,ck=0,np=1}
ui.addTextArea(666," ",nil ,5,303,635,90, 0x272834, 0x272834)
ui.addTextArea(1,"Hunger<br> "..players[a].h.."/100", nil ,12,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(2,"Hygiene<br> "..players[a].j.."/100", nil ,115,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(4,"Fun <br>"..players[a].k.."/100", nil ,218,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(3," ",nil ,12,360,296,30, 0x3c5064, 0x3c5064)
ui.addTextArea(unknown,'Current mood: <br><p align="center" ><font size="52" color="# 0DFA0C">:D</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)

tfm.exec.respawnPlayer(a)
end

for name,player in pairs(tfm.get.room.playerList) do
system.bindMouse(name, true)
players[name]={h =100, j= 100,k=100,d=0,u=0,ch=0,cj=0,ck=0,np=0}
ui.addTextArea(666," ",nil ,5,303,635,90, 0x272834, 0x272834)
ui.addTextArea(1,"Hunger<br> "..players[name].h.."/100", nil ,12,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(2,"Hygiene<br> "..players[name].j.."/100", nil ,115,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(4,"Fun <br>"..players[name].k.."/100", nil ,218,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(3," ",nil,12,360,296,30, 0x3c5064, 0x3c5064)
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# 0DFA0C">:D</font></p>', nil ,540,310,90,80, 0x3c5064, 0x3c5064)

end

function eventLoop(f, g)
for a in pairs(tfm.get.room.playerList) do
if players[a].h > 0 then
players[a].h= players[a].h-1
end

if players[a].j > 0 then
players[a].j= players[a].j-1
end

if players[a].k > 0 then
players[a].k= players[a].k-1
end

ui.addTextArea(1,"Hunger<br> "..players[a].h.."/100", a ,12,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(2,"Hygiene<br> "..players[a].j.."/100", a ,115,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(4,"Fun<br> "..players[a].k.."/100", a ,218,310,90,30, 0x3c5064, 0x3c5064)

if players[a].np==0 then
if players[a].h<70 and players[a].k>30 and players[a].ch==0 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)


players[a].ch=1
end

if players[a].j<70 and players[a].j>30 and players[a].cj ==0 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj=1
end

if players[a].k<70 and players[a].k>30 and players[a].ck ==0 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =1
end

if players[a].h<30 and players[a].ch ==1 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ch =2
end

if players[a].j<30 and players[a].cj ==1 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj =2
end

if players[a].k<30 and players[a].ck ==1 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =2
end

if players[a].ch ==1 and players[a].cj ==1 and players[a].ck ==1 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

if players[a].ch ==0 and players[a].cj ==0 and players[a].ck ==0 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# 0DFA0C">:D</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

end

if players[a].np==1 then
if players[a].h<70 and players[a].k>30 and players[a].ch==0 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)


players[a].ch=1
end

if players[a].j<70 and players[a].j>30 and players[a].cj ==0 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj=1
end

if players[a].k<70 and players[a].k>30 and players[a].ck ==0 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =1
end

if players[a].h<30 and players[a].ch ==1 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ch =2
end

if players[a].j<30 and players[a].cj ==1 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj =2
end

if players[a].k<30 and players[a].ck ==1 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =2
end

if players[a].ch ==1 and players[a].cj ==1 and players[a].ck ==1 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

if players[a].ch ==0 and players[a].cj ==0 and players[a].ck ==0 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# 0DFA0C">:D</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

end


if players[a].h >30 and players[a].h <70 then
players[a].ch =1
end

if players[a].j >30 and players[a].j <70 then
players[a].cj =1
end

if players[a].k >30 and players[a].k <70 then
players[a].ck =1
end

if players[a].h >70 then
players[a].ch =0
end

if players[a].j >70 then
players[a].cj =0
end

if players[a].k >70 then
players[a].ck =0
end



if players[a].h < 0 then
players[a].h = 0
end

if players[a].h > 100 then
players[a].h = 100
end

if players[a].j < 0 then
players[a].j = 0
end

if players[a].j > 100 then
players[a].j = 100
end

if players[a].k < 0 then
players[a].k =0
end

if players[a].k > 100 then
players[a].k =100
end

if players[a].h==0 then
tfm.exec.killPlayer(a)
ui.addTextArea(3," "..a.." is dead because hunger :'(", a ,12,360,296,30, 0x3c5064, 0x3c5064)
players[a].d=1

if players[a].u==0 then
ui.addPopup(q,1,'Your pet is now dead! Would you like to adopt new one? (dont mess up this time!) ',a,250,180,300)
players[a].u=1
end

elseif players[a].j==0 then
ui.addTextArea(3," "..a.." is smelly",a ,12,360,296,30, 0x3c5064, 0x3c5064)

elseif players[a].k==0 then
ui.addTextArea(3," "..a.." is very bored",a ,12,360,296,30, 0x3c5064, 0x3c5064)
end
end
end

function eventMouse(a, x, y)
if (x > 715 and x < 795 ) and ( y > 30 and y < 110) and players[a].d==0 then
players[a].h= players[a].h+20
ui.addTextArea(3," "..a.." ate a lot of cookies!", a ,12,360,296,30, 0x3c5064, 0x3c5064)

elseif (x > 715 and x < 795 ) and ( y > 120 and y < 200) and players[a].d==0 then
players[a].j= players[a].j+50
ui.addTextArea(3," "..a.." takes a shower!", a ,12,360,296,30, 0x3c5064, 0x3c5064)

elseif (x > 715 and x < 795 ) and ( y > 210 and y < 290) and players[a].d==0 then
players[a].k= players[a].k+10
ui.addTextArea(3," "..a.." plays with Mr.Teddy!", a ,12,360,296,30, 0x3c5064, 0x3c5064)
end
end

function eventPopupAnswer(q,a,r)
if(r=='yes') then
players[a].h=100
players[a].j=100
players[a].k=100
players[a].d=0
players[a].u=0
tfm.exec.respawnPlayer(a)


end
end


then click on submit
Imachipmunk
« Citoyen »
1423949220000
    • Imachipmunk#0000
    • Profil
    • Derniers messages
#47
  0
Juliantwofan a dit :
imachipmunk a dit :
I have no idea how any of this "lua" stuff even works (everyones gonna hate me for being here because of that XD). I still want to try this.... alot (but obviously im not getting help, am i?). (ALSO, sorry for asking what so many other people already asked billions of times.)

just go to your tribe house, type in /lua and in the box that pops up paste in the following in the spoiler:

players={}
tfm.exec.disableAutoShaman(true)
tfm.exec.newGame("@4434091")
q=90


function eventNewGame()
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAllShamanSkills(true)
tfm.exec.disableAfkDeath(true)
end

function eventNewPlayer(a)
system.bindMouse(a, true)
players[a]={h =100, j= 100,k=100,d=0,u=0,ch=0,cj=0,ck=0,np=1}
ui.addTextArea(666," ",nil ,5,303,635,90, 0x272834, 0x272834)
ui.addTextArea(1,"Hunger&lt;br&gt; "..players[a].h.."/100", nil ,12,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(2,"Hygiene&lt;br&gt; "..players[a].j.."/100", nil ,115,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(4,"Fun &lt;br&gt;"..players[a].k.."/100", nil ,218,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(3," ",nil ,12,360,296,30, 0x3c5064, 0x3c5064)
ui.addTextArea(unknown,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# 0DFA0C"&gt;:D&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)

tfm.exec.respawnPlayer(a)
end

for name,player in pairs(tfm.get.room.playerList) do
system.bindMouse(name, true)
players[name]={h =100, j= 100,k=100,d=0,u=0,ch=0,cj=0,ck=0,np=0}
ui.addTextArea(666," ",nil ,5,303,635,90, 0x272834, 0x272834)
ui.addTextArea(1,"Hunger&lt;br&gt; "..players[name].h.."/100", nil ,12,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(2,"Hygiene&lt;br&gt; "..players[name].j.."/100", nil ,115,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(4,"Fun &lt;br&gt;"..players[name].k.."/100", nil ,218,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(3," ",nil,12,360,296,30, 0x3c5064, 0x3c5064)
ui.addTextArea(300,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# 0DFA0C"&gt;:D&lt;/font&gt;&lt;/p&gt;', nil ,540,310,90,80, 0x3c5064, 0x3c5064)

end

function eventLoop(f, g)
for a in pairs(tfm.get.room.playerList) do
if players[a].h &gt; 0 then
players[a].h= players[a].h-1
end

if players[a].j &gt; 0 then
players[a].j= players[a].j-1
end

if players[a].k &gt; 0 then
players[a].k= players[a].k-1
end

ui.addTextArea(1,"Hunger&lt;br&gt; "..players[a].h.."/100", a ,12,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(2,"Hygiene&lt;br&gt; "..players[a].j.."/100", a ,115,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(4,"Fun&lt;br&gt; "..players[a].k.."/100", a ,218,310,90,30, 0x3c5064, 0x3c5064)

if players[a].np==0 then
if players[a].h&lt;70 and players[a].k&gt;30 and players[a].ch==0 then
ui.addTextArea(300,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# ED9B00C"&gt;:|&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)


players[a].ch=1
end

if players[a].j&lt;70 and players[a].j&gt;30 and players[a].cj ==0 then
ui.addTextArea(300,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# ED9B00C"&gt;:|&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj=1
end

if players[a].k&lt;70 and players[a].k&gt;30 and players[a].ck ==0 then
ui.addTextArea(300,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# ED9B00C"&gt;:|&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =1
end

if players[a].h&lt;30 and players[a].ch ==1 then
ui.addTextArea(300,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# AD0300"&gt;:(&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ch =2
end

if players[a].j&lt;30 and players[a].cj ==1 then
ui.addTextArea(300,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# AD0300"&gt;:(&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj =2
end

if players[a].k&lt;30 and players[a].ck ==1 then
ui.addTextArea(300,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# AD0300"&gt;:(&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =2
end

if players[a].ch ==1 and players[a].cj ==1 and players[a].ck ==1 then
ui.addTextArea(300,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# ED9B00C"&gt;:|&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

if players[a].ch ==0 and players[a].cj ==0 and players[a].ck ==0 then
ui.addTextArea(300,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# 0DFA0C"&gt;:D&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

end

if players[a].np==1 then
if players[a].h&lt;70 and players[a].k&gt;30 and players[a].ch==0 then
ui.addTextArea(301,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# ED9B00C"&gt;:|&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)


players[a].ch=1
end

if players[a].j&lt;70 and players[a].j&gt;30 and players[a].cj ==0 then
ui.addTextArea(301,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# ED9B00C"&gt;:|&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj=1
end

if players[a].k&lt;70 and players[a].k&gt;30 and players[a].ck ==0 then
ui.addTextArea(301,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# ED9B00C"&gt;:|&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =1
end

if players[a].h&lt;30 and players[a].ch ==1 then
ui.addTextArea(301,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# AD0300"&gt;:(&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ch =2
end

if players[a].j&lt;30 and players[a].cj ==1 then
ui.addTextArea(301,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# AD0300"&gt;:(&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj =2
end

if players[a].k&lt;30 and players[a].ck ==1 then
ui.addTextArea(301,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# AD0300"&gt;:(&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =2
end

if players[a].ch ==1 and players[a].cj ==1 and players[a].ck ==1 then
ui.addTextArea(301,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# ED9B00C"&gt;:|&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

if players[a].ch ==0 and players[a].cj ==0 and players[a].ck ==0 then
ui.addTextArea(301,'Current mood: &lt;br&gt;&lt;p align="center" &gt;&lt;font size="52" color="# 0DFA0C"&gt;:D&lt;/font&gt;&lt;/p&gt;', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

end


if players[a].h &gt;30 and players[a].h &lt;70 then
players[a].ch =1
end

if players[a].j &gt;30 and players[a].j &lt;70 then
players[a].cj =1
end

if players[a].k &gt;30 and players[a].k &lt;70 then
players[a].ck =1
end

if players[a].h &gt;70 then
players[a].ch =0
end

if players[a].j &gt;70 then
players[a].cj =0
end

if players[a].k &gt;70 then
players[a].ck =0
end



if players[a].h &lt; 0 then
players[a].h = 0
end

if players[a].h &gt; 100 then
players[a].h = 100
end

if players[a].j &lt; 0 then
players[a].j = 0
end

if players[a].j &gt; 100 then
players[a].j = 100
end

if players[a].k &lt; 0 then
players[a].k =0
end

if players[a].k &gt; 100 then
players[a].k =100
end

if players[a].h==0 then
tfm.exec.killPlayer(a)
ui.addTextArea(3," "..a.." is dead because hunger :'(", a ,12,360,296,30, 0x3c5064, 0x3c5064)
players[a].d=1

if players[a].u==0 then
ui.addPopup(q,1,'Your pet is now dead! Would you like to adopt new one? (dont mess up this time!) ',a,250,180,300)
players[a].u=1
end

elseif players[a].j==0 then
ui.addTextArea(3," "..a.." is smelly",a ,12,360,296,30, 0x3c5064, 0x3c5064)

elseif players[a].k==0 then
ui.addTextArea(3," "..a.." is very bored",a ,12,360,296,30, 0x3c5064, 0x3c5064)
end
end
end

function eventMouse(a, x, y)
if (x &gt; 715 and x &lt; 795 ) and ( y &gt; 30 and y &lt; 110) and players[a].d==0 then
players[a].h= players[a].h+20
ui.addTextArea(3," "..a.." ate a lot of cookies!", a ,12,360,296,30, 0x3c5064, 0x3c5064)

elseif (x &gt; 715 and x &lt; 795 ) and ( y &gt; 120 and y &lt; 200) and players[a].d==0 then
players[a].j= players[a].j+50
ui.addTextArea(3," "..a.." takes a shower!", a ,12,360,296,30, 0x3c5064, 0x3c5064)

elseif (x &gt; 715 and x &lt; 795 ) and ( y &gt; 210 and y &lt; 290) and players[a].d==0 then
players[a].k= players[a].k+10
ui.addTextArea(3," "..a.." plays with Mr.Teddy!", a ,12,360,296,30, 0x3c5064, 0x3c5064)
end
end

function eventPopupAnswer(q,a,r)
if(r=='yes') then
players[a].h=100
players[a].j=100
players[a].k=100
players[a].d=0
players[a].u=0
tfm.exec.respawnPlayer(a)


end
end


then click on submit

The entire thing in the spoiler? Or leave out the "end end" at the end of the spoiler?
Woebegone
« Citoyen »
1423949280000
    • Woebegone#8377
    • Profil
    • Derniers messages
    • Tribu
#48
  0
entire thing.
Imachipmunk
« Citoyen »
1423949700000
    • Imachipmunk#0000
    • Profil
    • Derniers messages
#49
  0
Juliantwofan a dit :
entire thing.

Thanks! It didn't work on my Imachipmunk account, but i got it to work on another account!

Dernière modification le 1423949880000
Fussbet
1423986960000
    • Fussbet#0000
    • Profil
    • Derniers messages
    • Tribu
#50
[Modéré par Shamousey, raison : Spam.]
Fussbet
1423987020000
    • Fussbet#0000
    • Profil
    • Derniers messages
    • Tribu
#51
[Modéré par Shamousey, raison : Spam.]
Fussbet
1423987140000
    • Fussbet#0000
    • Profil
    • Derniers messages
    • Tribu
#52
[Modéré par Shamousey, raison : Spam.]
Fjewkhey
« Citoyen »
1425291120000
    • Fjewkhey#0000
    • Profil
    • Derniers messages
    • Tribu
#53
  0
how I opened i click them but nothing happend
Lorzen
« Citoyen »
1425300180000
    • Lorzen#0000
    • Profil
    • Derniers messages
    • Tribu
#54
  0
yeah ^
Rikkipus
« Citoyen »
1425321600000
    • Rikkipus#0000
    • Profil
    • Derniers messages
    • Tribu
#55
  0
Cute, but the percentage bars or whatev won't show

I'M IMMORTAL.
Junikea
1426945620000
    • Junikea#0000
    • Profil
    • Derniers messages
    • Tribu
#56
[Modéré par Sabusha, raison : not english]

Dernière modification le 1426945980000
Aquahelp
« Citoyen »
1427506020000
    • Aquahelp#0000
    • Profil
    • Derniers messages
    • Tribu
#57
  0
Izupen a dit :
it doesnt work. the stuff doesnt come up...does it work if another mouse is here?

if it doesn't work you need 1000 cheese
imachipmunk a dit :
I have no idea how any of this "lua" stuff even works (everyones gonna hate me for being here because of that XD). I still want to try this.... alot (but obviously im not getting help, am i?). (ALSO, sorry for asking what so many other people already asked billions of times.)

same for you
Mousepaly
« Citoyen »
1427578920000
    • Mousepaly#0000
    • Profil
    • Derniers messages
#58
  0
I feel so noobish....
Whats the code to play? lol ;3 seems like fun
Woebegone
« Citoyen »
1427585880000
    • Woebegone#8377
    • Profil
    • Derniers messages
    • Tribu
#59
  0
mousepaly a dit :
I feel so noobish....
Whats the code to play? lol ;3 seems like fun

Copy the code here or copy the code in the spoiler below.

Click !
players={}
tfm.exec.disableAutoShaman(true)
tfm.exec.newGame("@4434091")
q=90


function eventNewGame()
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAllShamanSkills(true)
tfm.exec.disableAfkDeath(true)
end

function eventNewPlayer(a)
system.bindMouse(a, true)
players[a]={h =100, j= 100,k=100,d=0,u=0,ch=0,cj=0,ck=0,np=1}
ui.addTextArea(666," ",nil ,5,303,635,90, 0x272834, 0x272834)
ui.addTextArea(1,"Hunger<br> "..players[a].h.."/100", nil ,12,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(2,"Hygiene<br> "..players[a].j.."/100", nil ,115,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(4,"Fun <br>"..players[a].k.."/100", nil ,218,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(3," ",nil ,12,360,296,30, 0x3c5064, 0x3c5064)
ui.addTextArea(unknown,'Current mood: <br><p align="center" ><font size="52" color="# 0DFA0C">:D</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)

tfm.exec.respawnPlayer(a)
end

for name,player in pairs(tfm.get.room.playerList) do
system.bindMouse(name, true)
players[name]={h =100, j= 100,k=100,d=0,u=0,ch=0,cj=0,ck=0,np=0}
ui.addTextArea(666," ",nil ,5,303,635,90, 0x272834, 0x272834)
ui.addTextArea(1,"Hunger<br> "..players[name].h.."/100", nil ,12,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(2,"Hygiene<br> "..players[name].j.."/100", nil ,115,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(4,"Fun <br>"..players[name].k.."/100", nil ,218,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(3," ",nil,12,360,296,30, 0x3c5064, 0x3c5064)
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# 0DFA0C">:D</font></p>', nil ,540,310,90,80, 0x3c5064, 0x3c5064)

end

function eventLoop(f, g)
for a in pairs(tfm.get.room.playerList) do
if players[a].h > 0 then
players[a].h= players[a].h-1
end

if players[a].j > 0 then
players[a].j= players[a].j-1
end

if players[a].k > 0 then
players[a].k= players[a].k-1
end

ui.addTextArea(1,"Hunger<br> "..players[a].h.."/100", a ,12,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(2,"Hygiene<br> "..players[a].j.."/100", a ,115,310,90,30, 0x3c5064, 0x3c5064)
ui.addTextArea(4,"Fun<br> "..players[a].k.."/100", a ,218,310,90,30, 0x3c5064, 0x3c5064)

if players[a].np==0 then
if players[a].h<70 and players[a].k>30 and players[a].ch==0 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)


players[a].ch=1
end

if players[a].j<70 and players[a].j>30 and players[a].cj ==0 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj=1
end

if players[a].k<70 and players[a].k>30 and players[a].ck ==0 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =1
end

if players[a].h<30 and players[a].ch ==1 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ch =2
end

if players[a].j<30 and players[a].cj ==1 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj =2
end

if players[a].k<30 and players[a].ck ==1 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =2
end

if players[a].ch ==1 and players[a].cj ==1 and players[a].ck ==1 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

if players[a].ch ==0 and players[a].cj ==0 and players[a].ck ==0 then
ui.addTextArea(300,'Current mood: <br><p align="center" ><font size="52" color="# 0DFA0C">:D</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

end

if players[a].np==1 then
if players[a].h<70 and players[a].k>30 and players[a].ch==0 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)


players[a].ch=1
end

if players[a].j<70 and players[a].j>30 and players[a].cj ==0 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj=1
end

if players[a].k<70 and players[a].k>30 and players[a].ck ==0 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =1
end

if players[a].h<30 and players[a].ch ==1 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ch =2
end

if players[a].j<30 and players[a].cj ==1 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].cj =2
end

if players[a].k<30 and players[a].ck ==1 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# AD0300">:(</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
players[a].ck =2
end

if players[a].ch ==1 and players[a].cj ==1 and players[a].ck ==1 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# ED9B00C">:|</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

if players[a].ch ==0 and players[a].cj ==0 and players[a].ck ==0 then
ui.addTextArea(301,'Current mood: <br><p align="center" ><font size="52" color="# 0DFA0C">:D</font></p>', a ,540,310,90,80, 0x3c5064, 0x3c5064)
end

end


if players[a].h >30 and players[a].h <70 then
players[a].ch =1
end

if players[a].j >30 and players[a].j <70 then
players[a].cj =1
end

if players[a].k >30 and players[a].k <70 then
players[a].ck =1
end

if players[a].h >70 then
players[a].ch =0
end

if players[a].j >70 then
players[a].cj =0
end

if players[a].k >70 then
players[a].ck =0
end



if players[a].h < 0 then
players[a].h = 0
end

if players[a].h > 100 then
players[a].h = 100
end

if players[a].j < 0 then
players[a].j = 0
end

if players[a].j > 100 then
players[a].j = 100
end

if players[a].k < 0 then
players[a].k =0
end

if players[a].k > 100 then
players[a].k =100
end

if players[a].h==0 then
tfm.exec.killPlayer(a)
ui.addTextArea(3," "..a.." is dead because hunger :'(", a ,12,360,296,30, 0x3c5064, 0x3c5064)
players[a].d=1

if players[a].u==0 then
ui.addPopup(q,1,'Your pet is now dead! Would you like to adopt new one? (dont mess up this time!) ',a,250,180,300)
players[a].u=1
end

elseif players[a].j==0 then
ui.addTextArea(3," "..a.." is smelly",a ,12,360,296,30, 0x3c5064, 0x3c5064)

elseif players[a].k==0 then
ui.addTextArea(3," "..a.." is very bored",a ,12,360,296,30, 0x3c5064, 0x3c5064)
end
end
end

function eventMouse(a, x, y)
if (x > 715 and x < 795 ) and ( y > 30 and y < 110) and players[a].d==0 then
players[a].h= players[a].h+20
ui.addTextArea(3," "..a.." ate a lot of cookies!", a ,12,360,296,30, 0x3c5064, 0x3c5064)

elseif (x > 715 and x < 795 ) and ( y > 120 and y < 200) and players[a].d==0 then
players[a].j= players[a].j+50
ui.addTextArea(3," "..a.." takes a shower!", a ,12,360,296,30, 0x3c5064, 0x3c5064)

elseif (x > 715 and x < 795 ) and ( y > 210 and y < 290) and players[a].d==0 then
players[a].k= players[a].k+10
ui.addTextArea(3," "..a.." plays with Mr.Teddy!", a ,12,360,296,30, 0x3c5064, 0x3c5064)
end
end

function eventPopupAnswer(q,a,r)
if(r=='yes') then
players[a].h=100
players[a].j=100
players[a].k=100
players[a].d=0
players[a].u=0
tfm.exec.respawnPlayer(a)


end
end
Mousepaly
« Citoyen »
1427946960000
    • Mousepaly#0000
    • Profil
    • Derniers messages
#60
  0
so i paste it into the /lua thing?
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Petting your mouse!
« ‹ 3 / 5 › »
© Atelier801 2018

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

Version 1.27