-
Ego95
- Posts: 564
- Joined: Tue Feb 28, 2012 12:38 pm
-
Contact:
#1
Post
by Ego95 » Sat Sep 22, 2012 7:11 am
Hi, is it possible do do any action until next waypoint is reached?
Code: Select all
function jump()
keyboardHold(settings.hotkeys.MOVE_FORWARD.key)
repeat keyboardPress(settings.hotkeys.JUMP.key)
until --player has reached next waypoint--
end
keyboardRelease(settings.hotkeys.MOVE_FORWARD.key)
end
as alternative until player has reached coordinates x,y,z
Has anyone an idea how to do this?
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#2
Post
by rock5 » Sat Sep 22, 2012 7:57 am
You are talking about doing actions during the moveto function. The only way I can think of is to use a timed event, similar to the timedattack function in player:fight()
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests