polkm
Joined: 07 May 2007 Posts: 7
Digg It |
Posted: Wed May 09, 2007 6:59 pm Post subject: flyff script with wiimote & nunchuk support |
|
|
This is my first script which i made for use with with flyff. The controls are in the comments. This is optermised for mages (i'm a mage)
I've been asured that it should get past game guard but it might not.
I'm going to test it when i get a new adapter.
| Code: | /*Flyff Script using Wiimote & Nunchuk By Polkm
Otimised For Mages:
Set Broom to F9
Set Blinkpool to F8
Set Spells to F2, F4, F5, F6, F7 (one per element)
Set Pickup Nearest Item to F3
*/
// IR mouse Movement
var.x = ((1023-wiimote.dot1x)/1023)*1.2-0.1
var.y = ((wiimote.dot1y)/767)*1.2-0.1
mouse.LeftButton = Wiimote.A
mouse.RightButton = Wiimote.B
if wiimote.dot1vis then
mouse.x = Smooth(var.x,10)
mouse.y = Smooth(var.y,10)
end if
// Joystick Control for Movement
Keyboard.A = (-1.2 < wiimote.Nunchuk.JoyX < -0.5)
Keyboard.D = (0.5 < wiimote.Nunchuk.JoyX < 1.2)
Keyboard.W = (-1.2 < wiimote.Nunchuk.JoyY < -0.5)
Keyboard.S = (0.5 < wiimote.Nunchuk.JoyY < 1.2)
//Mode Switch
if Wiimote.Two
Toggle(var.diffbut)
Wait 100 ms
endif
if var.diffbut = 0
/*
Main Ground Section
Controls:
Nunchuk Anolog Stick = wasd keys (move)
Nunchuk C Button = Space (jump)
Nunchuk Z Button = F3 (Pickup Nearby Item)
Wiimote B Button = Alt + Left Click (menu when on another charactor)
Wiimote Up = F2
Wiimote Left = F4
Wiimote Right = F5
Wiimote Down = F6
Wiimote A Button = Left Click
Wiimote Minus Button = I (inventory)
Wiimote Home Button = Q (quest)
Wiimote Plus Button = E (messenger)
Wiimote One Button = F7
Wiimote A + B = F8
Wiimote Two Button = Switch Modes
*/
Keyboard.Space = Wiimote.Nunchuk.CButton
Keyboard.F3 = Wiimote.Nunchuk.ZButton
Keyboard.Alt + Mouse.LeftButton = Wiimote.B and not Wiimote.A
Keyboard.F2 = Wiimote.Up
Keyboard.F4 = Wiimote.Left
Keyboard.F5 = Wiimote.Right
Keyboard.F6 = Wiimote.Down
Mouse.LeftButton = Wiimote.A and not Wiimote.B
Keyboard.I = Wiimote.Minus
Keyboard.Q = Wiimote.Home
Keyboard.E = Wiimote.Plus
Keyboard.F7 = Wiimote.One
Keyboard.F8 = Wiimote.A + Wiimote.B
else
/*
Main Flying (Fighting) Section
Controls:
Nunchuk Anolog Stick = wasd keys (move)
Nunchuk C Button = Space (start/stop flying)
Nunchuk Z Button = Tab (select enemys in air)
Wiimote B Button = Z (follow monster in air)
Wiimote Down = F9 (get on/off broom/board)
Wiimote A Button = Insert (attack in air)
Wiimote Two Button = Switch Modes
*/
Keyboard.Space = Wiimote.Nunchuk.CButton
Keyboard.Tab = Wiimote.Nunchuk.ZButton
Keyboard.Z = Wiimote.B
Keyboard.F9 = Wiimote.Down
Keyboard.Insert = Wiimote.A
endif |
hope this is some help to someone
ps if someone has a better ir mouse script post it and i'll put it in. |
|