×

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
  • Profils
  • /
  • Michalwalter
Profil
Michalwalter #0000
    • Michalwalter#0000
    • Profil
    • Derniers messages
« Citoyen »

Date d'inscription : 27/02/2014

Communauté : Internationale
Messages : 50

Prestige : 0
Niveau : 1

Hors ligne

Genre : Masculin

-- Insert your victim's name (person who you would like to move) here without removing the quotation marks.
doll= "Kiiuko"

-- Insert YOUR name here without removing the quotation marks.
god = "Lulciateq"
-- That's it! Done! You can now run the script and troll people!

------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------
-----Do NOT edit the following code unless you're a developer, otherwise it probably won't work.------
------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------

-- Binding the keyboard for god(you)
-- 73 is I, the key for Up.
-- 75 is K, the key for Down
-- 74 is J, the key for Left.
-- 76 is L, the key for Right.

for name in pairs(tfm.get.room.playerList) do
-- Instead of binding each key seperately, we put them all in a group.
for keys, k in pairs({73, 74, 75, 76}) do
--And now the keys are binded!
tfm.exec.bindKeyboard(god, k, true, true)
end
end

-- Listening for keyboard events.
-- You'll notice that move values are different because it makes the doll easier to control.

function eventKeyboard(god, key, down, x, y)
if key == 73 then
--Moves the player Up by 50 pixels
tfm.exec.movePlayer(doll, 0, 0, true, 0, -50, false)
elseif key == 75 then
-- Moves the player Down by 40pixels
tfm.exec.movePlayer(doll, 0, 0, true, 0, 40, false)
elseif key == 74 then
-- Moves the player Left by 40 pixels
tfm.exec.movePlayer(doll, 0, 0, true, -40, 0, false)
elseif key == 76 then
-- Moves the player Right by 40 pixels
tfm.exec.movePlayer(doll, 0, 0, true, 40, 0, false)
end
end

-- Prints out you your doll only to you.

print("<font color='#FFFF00'>"..doll.."<font color='#FFFF00'> is now your doll!")
  • Profils
  • /
  • Michalwalter
Profil
© Atelier801 2018

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

Version 1.27