10-21-2013, 02:43 PM
(10-21-2013, 05:13 AM)Banme Wrote: Yeah I just saw those files, I Quite like that they are individual files like that, means people will be able to upload packs of teleport locations. I might start getting key locations like the guilds etc in a format that is fit for sharing.
Great idea! Im sure plenty of people are looking for specific coords for boss rooms for speed runs and etc.
(10-21-2013, 07:39 AM)z0mg Wrote: Btw, you're current way of executing TeleportToCursor will result in it being executed multiple times (one would need some real sick keypress/release to only trigger it once).
Best way to solve this is doing something like:
Code:Teleport.KeyDown = false
function Teleport.Move3(event,tickcount)
if ( MeshManager:IsKeyPressed(160) ) then
if (not Teleport.KeyDown) then
GameHacks:TeleportToCursorPosition()
end
Teleport.KeyDown = true
else
Teleport.KeyDown = false
end
end
That way if it's false (not pressed) ==> teleports & sets it to true, then on next cycle (if still pressed) it's just again set to true but not actually teleporting. Then on release of the key it's actually released again in code too.
Thanks for this z0mg! Always here to help cleanup my messy code ;D