Results 1 to 9 of 9

Thread: Making the Report Show How Many its Made?

  1. #1
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default Making the Report Show How Many its Made?

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    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?!

  3. #3
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Okay How does it tell how many are made?
    Mat

  4. #4
    Join Date
    Mar 2007
    Location
    Mars, I thought all men were from Mars.
    Posts
    513
    Mentioned
    7 Post(s)
    Quoted
    124 Post(s)

    Default

    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.

  5. #5
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Quote Originally Posted by Aligndude View Post
    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.

  6. #6
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    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;
    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.

  7. #7
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Simba Code:
    IncEx(RuneCount, AstralCounter);

    Simba Code:
    Writeln('We have made a TOTAL of ' + IntToStr(RuneCount) + 'astral runes!');

    Make the

    Simba Code:
    var
      RuneCount:Integer;
    at top of script

  8. #8
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Thanks for the Help <3
    Got it working
    Mat

  9. #9
    Join Date
    Nov 2011
    Posts
    1,268
    Mentioned
    17 Post(s)
    Quoted
    217 Post(s)

    Default

    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%).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •