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
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
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
place the funtion in ur script and call on it like I did in main loop. Hope this is what your looking for.
Simba Code: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.
Last edited by bud_wis_er_420; 12-26-2011 at 09:27 PM.
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.Simba Code: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;
Simba Code:IncEx(RuneCount, AstralCounter);
Simba Code:Writeln('We have made a TOTAL of ' + IntToStr(RuneCount) + 'astral runes!');
Make the
at top of scriptSimba Code:var
RuneCount:Integer;
Thanks for the Help <3
Got it working
Mat
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.
GLH Tutorial ~ OpenGL Scripting
http://villavu.com/forum/showthread.php?p=1292150
GLH Scripts ~ Abyssal Scripts
http://villavu.com/forum/showthread.php?p=1293187
Current Projects:
A) DemiseSlayer Pro (Released/100%).
B) Demise Power Miner(Released/100%).
C) Demise Pyramid Plunder(Planning Stage/0%).
There are currently 1 users browsing this thread. (0 members and 1 guests)