// Final Fantasy XI Script 1.2B by Ethan // http://www.wiipcscripts.fr.nf // Mods by Maast (Gilgamsh Server - maastff@worldmast.com) // Version B : Wiimote motion = Target , Wiimote cross = Camera and Menu navigation //Debug debug = "X:"+ Wiimote.RelAccX + " Y:"+ Wiimote.RelAccY var.KITTspeed = 50 ms var.yNunchuk = 0 var.xCutoff = 20 var.zCutoff = 20 var.xRot = Wiimote.RawForceX + var.xOffset var.yRot = Wiimote.RawForceY + var.yOffset var.zRot = Wiimote.RawForceZ + var.zOffset // NUNCHUK Controls // Nunchuk Analog Stick = NUMPAD 8,2,4,6 key.NUMPAD8 = Wiimote.Nunchuk.JoyY < -0.4 key.NUMPAD4 = Wiimote.Nunchuk.JoyX < -0.4 key.NUMPAD2 = Wiimote.Nunchuk.JoyY > 0.4 key.NUMPAD6 = Wiimote.Nunchuk.JoyX > 0.4 // Nunchuk C = NUMPAD 7 key.NUMPAD7 = wiimote.nunchuk.Cbutton // Nunchuk Z = Esc if wiimote.nunchuk.Zbutton then press(esc) wait 50 ms esc = false endif // WIIMOTE Controls // Wiimote Motion = Keyboard Arrows if var.xRot > var.xCutoff then key.shift = true wait 32 ms key.tab = True wait 100 ms key.shift = False key.tab = False endif if var.xRot < -var.xCutoff then press(key.Tab) wait 100 ms key.tab = false endif if var.zRot > var.zCutoff then press(key.F1) wait 200 ms key.F1 = false endif if var.zRot < -var.zCutoff then press(key.F8) wait 200 ms key.F8 = false endif // Wiimote Shock = NUMPAD 5 if Wiimote.RelAccX >= 35 then Press(key.NUMPAD5) Wiimote.Rumble = True Wait 350 ms Release(key.NUMPAD5) Wiimote.Rumble = False endif if Wiimote.RelAccY >= 35 then Press(key.NUMPAD5) Wiimote.Rumble = True Wait 350 ms Release(key.NUMPAD5) Wiimote.Rumble = False endif // Wiimote Digital Cross = Keyboard Arrows if wiimote.left then press(left) wait 20 ms left = false endif if wiimote.right then press(right) wait 20 ms right = false endif if wiimote.up then press(up) wait 20 ms up = false endif if wiimote.down then press(down) wait 20 ms down = false endif // Wiimote A = Enter key.enter = wiimote.A // Wiimote B = Tab if wiimote.B then press(key.Tab) wait 100 ms key.tab = false endif // Wiimote Minus = NUMPAD 3 key.numpad3 = wiimote.minus // Wiimote Plus = NUMPAD 9 key.numpad9 = wiimote.plus // Wiimote Home = NUMPAD - key.numpadminus = wiimote.home // Wiimote 1 = Contol-1 (Macro 1) if wiimote.1 then key.ctrl = true wait 32 ms key.1 = True wait 100 ms key.ctrl = False key.1 = False endif // Wiimote 2 = Control-2 (Macro 2) if wiimote.2 then key.ctrl = true wait 32 ms key.2 = True wait 100 ms key.ctrl = False key.2 = False endif //LEDs Animation if 0 = 0 then if var.kitt = 0 then wiimote.Leds = 1 endif if var.kitt = 1 then wiimote.Leds = 3 endif if var.kitt = 2 then wiimote.Leds = 6 endif if var.kitt = 3 then wiimote.Leds = 12 endif if var.kitt = 4 then wiimote.Leds = 8 endif if var.kitt = 5 then wiimote.Leds = 12 endif if var.kitt = 6 then wiimote.Leds = 6 endif if var.kitt = 7 then wiimote.Leds = 3 endif wait var.KITTspeed var.kitt = (var.kitt + 1) % 8 endif