Yep, seems to not be working.
Any chance you could test this out?
Feels like I must be missing something...
Code here and attached for easy install.
Thanks!
Any chance you could test this out?
Feels like I must be missing something...
Code here and attached for easy install.
Thanks!
Code:
--module.def
[Module]
Name=SpeedHackTest
Version=1
Files=speedhacktest.lua
Enabled=1
Dependencies=minionlib
Code:
--speedhacktest.lua
-- Create a new table for our code:
mymodule= { }
-- 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()
GUI_NewWindow(mymodule.windowName,250,50,300,200);
GUI_NewButton(mymodule.windowName,"Toggle","MYMODULE.TOGGLE");
GUI_SizeWindow(mymodule.windowName,300,200)
GUI_WindowVisible(mymodule.windowName,true)
GUI_NewField(mymodule.windowName,"Counter","countergui","MovementInfo")
-- From devmonitor.lua
GUI_NewField(mymodule.windowName,"IsMoving","mimov","MovementInfo")
GUI_NewField(mymodule.windowName,"Moves Forward","mimovf","MovementInfo")
GUI_NewField(mymodule.windowName,"Moves Backward","mimovb","MovementInfo")
GUI_NewField(mymodule.windowName,"Moves Left","mimovl","MovementInfo")
GUI_NewField(mymodule.windowName,"Moves Right","mimovr","MovementInfo")
GUI_UnFoldGroup (mymodule.windowName,"MovementInfo")
end
-- 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
-- From devmonitor.lua
mimov = tostring(Player:IsMoving())
mimovf = tostring(Player:IsMoving(FFXIV.MOVEMENT.FORWARD)).." ("..tostring(Player:GetSpeed(FFXIV.MOVEMENT.FORWARD))..")"
mimovb = tostring(Player:IsMoving(FFXIV.MOVEMENT.BACKWARD)).." ("..tostring(Player:GetSpeed(FFXIV.MOVEMENT.BACKWARD))..")"
mimovl = tostring(Player:IsMoving(FFXIV.MOVEMENT.LEFT)).." ("..tostring(Player:GetSpeed(FFXIV.MOVEMENT.LEFT))..")"
mimovr = tostring(Player:IsMoving(FFXIV.MOVEMENT.RIGHT)).." ("..tostring(Player:GetSpeed(FFXIV.MOVEMENT.RIGHT))..")"
-- 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