Thread Rating:
  • 11 Vote(s) - 2.18 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A Fly Hack Idea/need help making
#3
Basically a small module with an OnUpdate() handler, that checks to see if certain keys are held down.

Code:
FlyHack = {}
lasttick = 0

function FlyHack.OnUpdateHandler( Event, ticks )
    if ( (ticks - lasttick) > 200 ) then
        lasttick = ticks
        
        --keys can be found here (convert from hex to decimal) - http://nehe.gamedev.net/article/msdn_virtualkey_codes/15009/
        if ( MeshManager:IsKeyPressed(038) ) then -- if holding down up key
            local ppos = Player.pos
            GameHacks:TeleportToXYZ(ppos.x, ppos.y + 5, ppos.z) -- fly up some predetermined value
        elseif (MeshManager:IsKeyPressed(040) ) then
            local ppos = Player.pos
            GameHacks:TeleportToXYZ(ppos.x, ppos.y - 5, ppos.z) -- fly down some predetermined value
        end
        
    end
end

function FlyHack.ModuleInit()
end

RegisterEventHandler("Gameloop.Update",FlyHack.OnUpdateHandler) -- the normal pulse from the gameloop
RegisterEventHandler("Module.Initalize",FlyHack.ModuleInit)

Something along those lines, not tested at all.
Reply
 


Messages In This Thread
A Fly Hack Idea/need help making - by andysx - 12-18-2013, 07:50 AM
RE: A Fly Hack Idea/need help making - by Cichard - 12-18-2013, 06:08 PM
RE: A Fly Hack Idea/need help making - by Ace - 12-18-2013, 10:54 PM
RE: A Fly Hack Idea/need help making - by Kate - 12-22-2013, 06:14 PM
RE: A Fly Hack Idea/need help making - by Ace - 12-23-2013, 07:10 PM
RE: A Fly Hack Idea/need help making - by Kate - 12-23-2013, 09:21 PM
RE: A Fly Hack Idea/need help making - by ymko - 12-24-2013, 09:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products