Advertisement
wassimevicw

سكربت التحكم

Jul 16th, 2017
1,470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.08 KB | None | 0 0
  1. noob = "Turkitutu"--- الشخص الذي ستتحكم به
  2.  
  3. chicken = "Wassimevicw"--- الشخص الذي يتحكم بالاخرين
  4.  
  5. -- يجب عليك ان تبقي الحرف الاول من الاسم كبير
  6.  
  7.     for keys, k in pairs({73, 74, 75, 76, 66, 72, 71, 78, 70, 86, 67, 80, 79}) do
  8.             tfm.exec.bindKeyboard(chicken, k, true, true)
  9.     end
  10.  
  11.  
  12.  
  13. function eventKeyboard(chicken, key, down, x, y)
  14.         if key == 73 then
  15.                 tfm.exec.movePlayer(noob, 0, 0, true, 0, -50, false)-- I
  16.         elseif key == 75 then    
  17.             tfm.exec.movePlayer(noob, 0, 0, true, 0, 40, false)-- J
  18.         elseif key == 74 then
  19.                 tfm.exec.movePlayer(noob, 0, 0, true, -40, 0, false)  --  K        
  20.         elseif key == 76 then
  21.                 tfm.exec.movePlayer(noob, 0, 0, true, 40, 0, false)    -- L              
  22.         elseif key == 78 then
  23.                 tfm.exec.playEmote (noob, 2, nil )-- بكاء N
  24.         elseif key == 66 then
  25.                 tfm.exec.playEmote (noob, 8, nil )--جلوس B
  26.         elseif key == 72 then
  27.                 tfm.exec.playEmote (noob, 3, nil )--قبلة H
  28.         elseif key == 71 then
  29.                 tfm.exec.playEmote (noob, 6, nil )--نوم G
  30.         elseif key == 70 then
  31.                 tfm.exec.playEmote (noob, 5, nil )--تصفيق F
  32.         elseif key == 86 then
  33.                 tfm.exec.playEmote (noob, 0, nil )-- رقص V
  34.         elseif key == 67 then
  35.                 tfm.exec.playEmote (noob, 21, nil )--رائعة قبلة C
  36.         elseif key == 80 then
  37.                 tfm.exec.addShamanObject(33,tfm.get.room.playerList[noob].x,tfm.get.room.playerList[noob].y)  -- P
  38.         elseif key == 79 then
  39.                 print("<rose>"..os.date("%c", tfm.get.room.playerList[noob].registrationDate)) -- O
  40.         end
  41. end
  42.  
  43. for name,player in pairs(tfm.get.room.playerList) do
  44. system.bindMouse(chicken, true)
  45. end
  46.  
  47. function eventMouse(chicken, x, y)
  48. tfm.exec.movePlayer(noob, x, y, false, 0, 1, false)
  49. end
  50.  
  51. print("<font color='#FFFF00'>"..noob.."<font color='#FFFF00'> is now your doll!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement