Hey guys, I have a report which shows the Runs and time.
But I want to find out how I can add it to show how many are made? (Runes)
Can anyone help?
Mat
YoHoJo
2011-12-26 16:17:48
Make a variable called RunesMade and have it be an integer.
Then each time after you script makes rues do
IncEx(Runesmade, (A fucntion that returns how many have been made here)
That that does is increase the variable RuesMade by "(A fucntion that returns how many have been made here)" units.
Get it?!
Okay How does it tell how many are made?
Mat
bud_wis_er_420
2011-12-26 16:25:06
place the funtion in ur script and call on it like I did in main loop. Hope this is what your looking for.
program new;
var count, amount, made:integer;
function how_many_made:integer;
begin
count := count+1;
amount := count*28//change to how many you do a trip
result := amount;
end;
begin
count := 0;
repeat
made := how_many_made;
writeln(inttostr(made))
until(false)
end.
this is just one of many ways.
YoHoJo
2011-12-26 16:32:41
From: Aligndude
Okay How does it tell how many are made?
Mat
What do you mean?
RunesMade is an integer that will hold the value/count how many you have made.
WriteLn(IntToStr(RunesMade)) will Write it in the debug box.
Function AstralCounter: Integer;
Var
Astral, Count:Integer;
Begin
Astral := BitmapFromString(4, 6, 'meJw7tf7UKQyUkZELYaSkZAARhJ2Q' +
'kJKUlAZkxMQkxMUlAblAdlRUHIQLAKx3KfU=');
If FindBitMapTolerancein(Astral, X, Y, MIX1, MIY1, MIX2, MIY2, 45) then
Count := GetAmount(X,Y);
Result:= Count;
FreeBitMap(Astral);
End;
This is what I've got I don't know how to hold the number tho as it Picks up on the Astrals then it goes.
YoHoJo
2011-12-26 16:56:03
IncEx(RuneCount, AstralCounter);
Writeln('We have made a TOTAL of ' + IntToStr(RuneCount) + 'astral runes!');
Make the
var
RuneCount:Integer;
at top of script
Thanks for the Help <3
Got it working :)
Mat
DemiseScythe
2011-12-26 17:20:54
Count*28 not accurate at all since pouches degrade and all trips make diff amounts of runes. What I personally use is GetAmount(x, y);
Then you want integer Runes
Runes: Integer;
if FindDTM(Astral, x, y, MIX1, MIY1, MIX2, MIY2 then
Runes := GetAmount(x, y);
You should call this b4 you deposit your runes, since you might be using Astrals in inventory, could do
Bef := GetAmount(x, y); before crafting
Aft := GetAmount(x, y); after you done crafting
IncEx(Runes, (Aft-Bef));
That increases integer Runes by the diff in runes that were made.
Was answered above, my bad, you could do it my way if you were depositing the runes.