Total Posts:46 Joined:2005
|
|
This is so small not worth making an upload out of it. Just cut it and past it as a file in your scripts directory =)
'====================================================================================
'FindmyWay
'====================================================================================
'4-26-05 Retsek Locates nearest spawn by name and sets waypoint to it.
' VERY silly script likely to be detected since not many people
' know about the /waypoint x,z,y command
'
' ***NOTE*** The range on this is similar to tracking so don't
' expect miracles. They waypoint command itself will work
' anywhere in zone the findnearestmob() function just doesn't
' usually find things incredibly far away
'
'====================================================================================
'You must have installed WyvernX's eq2service to use this script.
'
'====================================================================================
' I M P O R T E D S C R I P T S
'====================================================================================
XUScriptHost.ImportScript "EQ2Harvest\EQ2Service.vbs"
Dim EQ2_SvcObj, SpawnID
Dim SpawnX, Spawny, Spawnz, SpawnName
Dim Default
set EQ2_SvcObj = XUScriptPlugin.GetService("EQ2Service.Service")
do until Err.number = 0
XUScriptPlugin.staStatus.Text = "EQ2Service failed to load"
Sleep 5000
set EQ2_SvcObj = XUScriptPlugin.GetService("EQ2Service.Service")
Loop
Default = "?"
SpawnName = InputBox("What do you want to find?", "Find My Way", Default)
SpawnID = findnearestmob(EQ2_SvcObj, SpawnName)
if spawnid > -1 then
Spawnx = getmobx(eq2_svcobj, spawnid)
Spawny = getmoby(eq2_svcobj, spawnid)
Spawnz = getmobz(eq2_svcobj, spawnid)
sendkeys("/waypoint " & spawnx & "," & spawnz & "," & spawny & "{ENTER}")
xuscriptplugin.stastatus.text = SpawnName & " found - waypoint set"
Else
xuscriptplugin.stastatus.text = Spawnname & " NOT Found"
End if
sleep 3000
|
|