12-04-2014, 04:24 PM (This post was last modified: 12-04-2014, 04:26 PM by drewlt.)
So I've been searching the forum and wiki for days before making a new post.
Trying to figure out a speed hack - what I've done so far:
Shortcut Manager LUA, Speed Hack dropdown, try different modifier keys and shortcut keys
My own LUA module from example - add in Player:SetSpeed() to either single button press or recurring loop
Looked through existing LUA modules for guidance
It doesn't seem to be working from anywhere - is Player:SetSpeed() still functional?
Under the Dev LUA module I see the movement speed values and they do not change.
When I use mmolazy/lasta I do see the movement speed values change (and speed hack works there).
Thanks for a great product - I'm having fun building with it.
This is an excerpt from my old addon that enabled it.
I don't know if it is still working. It only ever worked in a given direction, and never during combat.
Code:
if ( gMoveHack == "SpeedHack" and not Player.incombat and not MeshManager:IsKeyPressed(016)) then
if ( MeshManager:IsKeyPressed(017) ) then
if ( Player.ismounted and currentSpeed ~= 18 ) then
Player:SetSpeed(FFXIV.MOVEMENT.FORWARD, 18)
currentSpeed = 15
elseif ( not Player.ismounted and currentSpeed ~= 12) then
Player:SetSpeed(FFXIV.MOVEMENT.FORWARD, 12)
currentSpeed = 12
end
else
if ( Player.ismounted and currentSpeed ~= 9) then
Player:SetSpeed(FFXIV.MOVEMENT.FORWARD, 9)
currentSpeed = 9
elseif ( not Player.ismounted and currentSpeed ~= 6 ) then
Player:SetSpeed(FFXIV.MOVEMENT.FORWARD, 6)
currentSpeed = 6
end
end
end
-- Some local variables we use in our module:
mymodule.running = false
mymodule.lastticks = 0
mymodule.counter = 0
mymodule.windowName = "SpeedHackTest"
-- Initializing function
function mymodule.ModuleInit()
-- The function that gets called when the button is pressed:
function mymodule.ToggleRun()
mymodule.running = not mymodule.running
end
-- The Mainloop function, gets called all the time by FFXIVMinion:
function mymodule.OnUpdateHandler( Event, ticks )
if ( mymodule.running and ticks - mymodule.lastticks > 500 ) then
mymodule.lastticks = ticks
-- continually log changing var so you see it working
mymodule.counter = mymodule.counter + 1
countergui = mymodule.counter
-- Set player speed to 12 - THIS IS NOT WORKING
Player:SetSpeed(FFXIV.MOVEMENT.FORWARD, 12)
Player:SetSpeed(FFXIV.MOVEMENT.BACKWARD, 12)
Player:SetSpeed(FFXIV.MOVEMENT.STRAFELEFT, 12)
Player:SetSpeed(FFXIV.MOVEMENT.STRAFERIGHT, 12)
end
end
-- Registering the Events
RegisterEventHandler("Gameloop.Update",mymodule.OnUpdateHandler) -- the normal pulse from the gameloop
RegisterEventHandler("MYMODULE.TOGGLE", mymodule.ToggleRun) -- the function that gets called when our button is pressed
RegisterEventHandler("Module.Initalize",mymodule.ModuleInit) -- the initialization function, gets called only once at startup of the game
No, you're doing a little too much extrapolating there. This is one of those 1% things.
SetSpeed is just one of those functions that has seldom been used, so when the post-patch QA testing was done, nobody had a reason to look at it.
I'll forward on a ticket for the guys to look at it.