Lady-Binary / EasyLoU

EasyLoU is the premiere macro tool for Legends of Aria / Legends of Ultima. It is a totally free and open source tool inspired by EasyUO, the popular premiere macroing tool for Ultima Online.
Other
10 stars 12 forks source link

Variable for camera angle #175

Open jontaru opened 3 years ago

jontaru commented 3 years ago

It would help to have a variable that tells us which angle the camera is tilted to because when you click on x,y,z coords your camera matters.

Currently If I want to use those type of clicks I have to ensure I have the same camera angle all the time (I can press z ingame to set the default camera angle with north sightly to the right)

Lady-Binary commented 3 years ago

hi @jbureau-qc , thank you for reporting this.

I'm not sure I understand why you need the camera direction. X,Y,Z coordinates are world coordinates and should not be dependent on the camera angle: in other words, you are not clicking on the screen but you are sending the server some absolute X,Y,Z coordinates.

I'm not sure camera angle is available in the variables and I can look into that, shouldn't be an issue adding it, just make sure you understand the above. The only thing that's available at the moment it is CHARDIR, which tells you where you character is facing if I remember correctly.

jontaru commented 3 years ago

Hi @Lady-Binary,

I am referring to when you use TargetLoc() with a set of coords, maybe my understanding is flawed but when I look at the CLICKWORLDX-Y-Z and I move my camera the numbers change. So I was thinking that the orientation of the camera affected the locations.

For example when I use a pickaxe and try to click on a location if my camera is turned in a way that the location is not visible to me in my screen it doesn't look like it is able to click there.

Maybe I need to do more testing though!

Thanks for the explanation!