I tried to create/modify other code to get this to work, but I am not having any luck. It does not function at all.
My goal was to try to pickup/click "Fresh Pomfruit" from the trees as I fly to them and stop in range.
Does getunitspeed not = 0 if flying?
I tried to start a fresh profile with this code but I don't believe I know how to make it initialize, my initial idea was to throw them in Alpha Utilities and see if that worked, but it did not.
If anyone has written similar or could guide me in the proper path it would be very much appreciated.
Thanks!
Code:
if GetUnitSpeed("player") == 0
and GetSubZoneText() == "Winterbough Glade" then
InteractUnit("Fresh Pomfruit")
end
if GetUnitSpeed("player") == 0
and GetSubZoneText() "Mistfall Village" then
InteractUnit("Fresh Pomfruit")
end
if GetUnitSpeed("player") == 0
and GetSubZoneText() "Jin Yang Road" then
InteractUnit("Fresh Pomfruit")
end