We all seem to be having the same problem. i tried changing the back to mount to use a different method to click where i could control the speed better but nothing. I'm starting to think this is caused by a problem with the UI. I sometimes see 2 UI's running in task manager for this game. There is also a lock mouse in UI setting under GAME that might be worth messing with.Quote:
works good except for when it tries to return to the mount. it is doing something wrong because it just starts running in a random direction instead of getting a mount path. i think it might be double right clicking, clearing the autopath. i tried adding a npc waypoint but those do the same thing.
that happens alot but it should autopath to the npc a 2nd time after it does a full screen rotation and it will get close enough the 2nd time.
TLDR:: It's like the UI resets after the mouse has moved to location causing it to miss click. I've tested it so many times and it works fine until do the full repair/sell/broker then its 50/50.
Code:
Func BackToMount($Boat = 0)
Local Static $HorseIni = StringSplit(StringStripWS(IniRead("config/resolution_settings.ini", "Restock", "Horse", "35, 124"), 8), ",", 2) ; x, y
Local Static $BoatIni = StringSplit(StringStripWS(IniRead("config/resolution_settings.ini", "Restock", "Boat", "93, 123"), 8), ",", 2) ; x, y
Local Static $SwapMounts = Int(IniRead("config/data.ini", "RestockSwapMounts", "Enabled", 0))
Local Const $Mount[2][2] = [[$HorseIni[0] + $ResOffset[0], $HorseIni[1] + $ResOffset[1]], [$BoatIni[0] + $ResOffset[0], $BoatIni[1] + $ResOffset[1]]]
Local $Sw = 0
Sleep(1000)
WaitForMenu(False)
Sleep(1000)
If Not VisibleCursor() Then CoSe("{LCTRL}")
Sleep(2500)
SetGUIStatus("Boat: " & $Boat & " Swap: " & $SwapMounts)
$SwapMounts = 0
MouseMove($Mount[$Boat][0], $Mount[$Boat][1])
Sleep(2500)
MouseDown("right")
Sleep(2500)
MouseUp("right")
Sleep(2500)
CoSe("t")
CoSe("{ESC}")
If VisibleCursor() Then CoSe("{LCTRL}")
MapMovement()
Return True
EndFunc ;==>BackToMount