Hey guys came up with an issue, my script will mine just fine on mountains or random veins in floor out in world.... but it won't mine in caves it will say target cannot be seen. Any ideas why?
Procedure FindOre (VAR x, y, z : Integer);
begin
x:= (GetX(Self)) - 1;
y:= (GetY(Self));
z:= GetSurfaceZ(x, y, WorldNum)
end;
Procedure MineOre(VAR TotalSwing : Integer);
begin
UseObject(self);
{use shovel}
UseType(Shovel,$0000);
WaitTargetXYZ(x, y, z);
Wait(1000);
TotalSwing := TotalSwing + Swing;
end;
Post Merge: August 01, 2016, 10:01:30 PM
I even tried to manually set the Z to 0 because that's what the tile info said it was... Still says can't be seen.
Post Merge: August 01, 2016, 09:32:39 PM
I also need help with creating a runebook recaller, based off the gump to recall to next spot.
Each gump to the next spot is +6 because it's 5.11.17 etc. up to 16 times.
I want to add +6 to the integer and once it reaches it's limit I believe 97, It will go back to 5.
However in order to press the gump with WaitGump(); it needs to be a string... How can I convert an Integer to a String and then back to Integer so I can add more to it later?
I tried to use google but it's all confusing to me :-
Procedure Recall(VAR Spot : Integer);
begin
if InJournal('0007AD00') > 0 then
begin
Spot := Spot + 6;
end;
UseObject(MineBook);
WaitGump('554B87F3');
IntToStr(Spot);
WaitGump(Spot);
end;
Post Merge: August 01, 2016, 07:48:59 PM
the proper way to use this line would be,
WaitGump(IntToStr(Spot));
after some googling I found an example I could understand =p