Getting data from another file
Posted: 13.01.2015 19:23
I am working on some mining script that recalls and gathers ore. I studied most of the mining scripts in Russian section but none of them uses dig locations. To be more clear, what I mean is giving every single dig location data (Tile, X, Y, Z) for each rune spot to script. I am planning saving this data in another file (DigLocation1.txt for example) rather then inside the main script. In Felix's script, finding dig spots used like this;
And this is what I planned to do;
This is the simple use ofcourse. What you think? What should I do for using script like that.
Code: Select all
procedure MinePoint; //New
var
X, Y: Word;
begin
X := GetX(Self);
Y := GetY(Self);
Mine(X, Y);
Mine(X + 1, Y);
Mine(X + 1, Y + 1);
Mine(X, Y + 1);
Mine(X - 1, Y + 1);
Mine(X - 1, Y);
Mine(X - 1, Y - 1);
Mine(X, Y - 1);
Mine(X + 1, Y - 1);
Mine(X + 2, Y + 2);
Mine(X - 2, Y + 2);
Mine(X - 2, Y - 2);
Mine(X + 2, Y - 2);
end;
Code: Select all
procedure MinePoint; //New
var
Tile, X, Y, Z: SmallInt;
begin
Tile := 0;
X := 1;
Y := 2;
Z := 3;
Mine(Tile, X, Y, Z);
end;