Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- noob = "Turkitutu"--- الشخص الذي ستتحكم به
- chicken = "Wassimevicw"--- الشخص الذي يتحكم بالاخرين
- -- يجب عليك ان تبقي الحرف الاول من الاسم كبير
- for keys, k in pairs({73, 74, 75, 76, 66, 72, 71, 78, 70, 86, 67, 80, 79}) do
- tfm.exec.bindKeyboard(chicken, k, true, true)
- end
- function eventKeyboard(chicken, key, down, x, y)
- if key == 73 then
- tfm.exec.movePlayer(noob, 0, 0, true, 0, -50, false)-- I
- elseif key == 75 then
- tfm.exec.movePlayer(noob, 0, 0, true, 0, 40, false)-- J
- elseif key == 74 then
- tfm.exec.movePlayer(noob, 0, 0, true, -40, 0, false) -- K
- elseif key == 76 then
- tfm.exec.movePlayer(noob, 0, 0, true, 40, 0, false) -- L
- elseif key == 78 then
- tfm.exec.playEmote (noob, 2, nil )-- بكاء N
- elseif key == 66 then
- tfm.exec.playEmote (noob, 8, nil )--جلوس B
- elseif key == 72 then
- tfm.exec.playEmote (noob, 3, nil )--قبلة H
- elseif key == 71 then
- tfm.exec.playEmote (noob, 6, nil )--نوم G
- elseif key == 70 then
- tfm.exec.playEmote (noob, 5, nil )--تصفيق F
- elseif key == 86 then
- tfm.exec.playEmote (noob, 0, nil )-- رقص V
- elseif key == 67 then
- tfm.exec.playEmote (noob, 21, nil )--رائعة قبلة C
- elseif key == 80 then
- tfm.exec.addShamanObject(33,tfm.get.room.playerList[noob].x,tfm.get.room.playerList[noob].y) -- P
- elseif key == 79 then
- print("<rose>"..os.date("%c", tfm.get.room.playerList[noob].registrationDate)) -- O
- end
- end
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(chicken, true)
- end
- function eventMouse(chicken, x, y)
- tfm.exec.movePlayer(noob, x, y, false, 0, 1, false)
- end
- print("<font color='#FFFF00'>"..noob.."<font color='#FFFF00'> is now your doll!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement