Joopi
2015-05-16 14:02:51
Ok so what I'm trying to do is a simple powerminer.
All it would do is search for an ore, then mine it.
Then it would repeat wait until i find an empty ore in that spot
So what i would basically do is something like:
procedure MineHandler();
var
RObj : TReflectObject;
RTile : TTile;
Point : TPoint;
begin
If GetInvCount = 28 then
exit();
if RObj.Find(ObjGame, 13711, 10) then
begin
Point := RObj.GetMSPoint();
RTile := RObj.GetTile;
…
But then I would have to search for another ID, in that certain tile (RTile).
Is there any function like this? If i have to manually make a function like this, then please guide me.
EDIT: Would also work with search by MSPoints.
All it would do is search for an ore, then mine it.
Then it would repeat wait until i find an empty ore in that spot
So what i would basically do is something like:
procedure MineHandler();
var
RObj : TReflectObject;
RTile : TTile;
Point : TPoint;
begin
If GetInvCount = 28 then
exit();
if RObj.Find(ObjGame, 13711, 10) then
begin
Point := RObj.GetMSPoint();
RTile := RObj.GetTile;
…
But then I would have to search for another ID, in that certain tile (RTile).
Is there any function like this? If i have to manually make a function like this, then please guide me.
EDIT: Would also work with search by MSPoints.