What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How to get X,Y Coordinate from current mouse position ? (Plant in House Area)

GomuGomu

Member
Joined
Nov 9, 2014
Messages
57
Reaction score
0
Hi all, I want to know have function to get X,Y Coordinate from current mouse position ?

I looking for method to plant on house area that's hard to find but i found one.

follow this

plant everywhere plugin

PlantItem(me.X,my.Y,me.Z) will allow you to plant on any surface. start with this

at first I have try

PlantItem("Potato Eyes",me.X,my.Y);

it work but not good because it will plant under your feet which can't do by normal system or when someone around you.

Then I try

PlantItem("ItemName",x,y);

example

PlantItem("Potato Eyes",20000,8000);

It work fine on house area. but problem is you have to move character to proper area and get X,Y Coordinate from me.X,me.Y or check from AB UI below HP gauge and test to plant which not easy.

It will be great if can get X,Y Coordinate from current mouse position because you can test direct which area can plant your current object size by use seed / sampling / animal it will show green color if you can or not with red color and this can make your own planting pattern by fix position X,Y to plant on your house.

If someone know how to get X,Y Coordinate from current mouse position please tell me.

Thank you.
 
use another approach.

You have the x/y of your farm center (doodad.x, doodad.y)
If it's a 16x16, then your corners will be (x+8, y+8), (x-8, y+8), (x+8, y-8) and (x-8, y-8).
If you know the size of your seed, just calculate the correct position from corner (remember to calculate from center of seed)...

this helps?
 
How to use doodad.x, doodad.y ? I use me.target.X, me.target.Y from my scarecrow target but get result of coordinate X,Y with Integer not show in decimal that's appear on AB UI.

Can u guide me for use doodad to get exactly coordinate include decimal from my scarecrow target , unique ID or Owner name ?
 
Back
Top