Page 1 of 1
MoveToMob Script plz!
Posted: April 3rd, 2007, 4:23 pm
by tbittrix
Could someone with a few moments scribble a simple script that will allow me to walk to a selected NPC after hitting a hotkey?
This is the only portion of the crafting process that I cannot seem to do.
Posted: April 3rd, 2007, 5:23 pm
by binafus
Paste this in to its own script to test it.
Target your NPC then hit F12.
To stop the script hit F11
BTW I need a crafting bot if you can do the rest
Code: Register to unlock hidden link
RunScript "includes\VGService.vbs"
RunScript "includes\navigation.vbs"
'****************************************************'
'* MOVEMENT KEYS MUST BE SET AS FOLLOWS *'
'* a = Turn LEFT *'
'* d = Turn RIGHT *'
'* w = FORWARD *'
'****************************************************'
' F12 Will Move the Bot to the Target
' F11 Will Stop the Script
Function CHECK_MOVE
if GetAsyncKeyState(123) then
Log.DebugLog " Here I come " & GetTargetName
MoveToMob(GetTarget)
End if
End Function
Dim X
X = 1
' Start Main Loop
Do While (X = 1)
CHECK_MOVE
Sleep 100
If GetAsyncKeyState(122) then
X = 0
End if
Loop
Posted: April 4th, 2007, 8:04 pm
by tbittrix
I actually just use a simple mouse click/keystroke recorder to macro crafting.
The script works great to get me to the taskmaster, but now that they're wandering, I find myself having the spam the F12 button while right clicking to activate the NPC (I would use the 'hail' feature, but it's a little obvious when someone comes within range and sees this). Any way for the script to open the chat window with the NPC?
Posted: April 4th, 2007, 8:53 pm
by binafus
If there is a command you can type in the game to open the window then it would be easy to add to the script.
The other option would be to try to click on the NPC not sure how hard that would be to get working.
I have not messed with mouse movements at all.
Might try looking up mouse movemnts and clicking in VBScript.
Posted: April 5th, 2007, 4:39 am
by tbittrix
I've been trying by having F12 pressed over and over again while clicking the mouse at center screen. It doesn't seem very reliable though. The only in game command that I know of is the "Hail" command. Problem with that is you 'hail' over the Say channel, and I prefer not to use that because I had a friend that was caught and banned using that method (mind you, they gave him his account back after he bitched enough).