Results 1 to 8 of 8

Thread: Need help with GoldMiner:

  1. #1
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Question Need help with GoldMiner:

    how do i do that if i mined a ore i want to inc(OresMined)
    so if ???? then
    inc(OresMined);

    Any Help?

  2. #2
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    Uhh, I dont really understand. But im guessing you mean like after you click and mine the rock you want to inc(OresMined)?

    Well, just do.
    SCAR Code:
    If SomeMiningProcedure then
      inc(OresMined);

    If i understand correctly?

    And to make SCAR spit out the e value of OresMined do:
    SCAR Code:
    Writeln('We mined' +IntToStr(OresMined));

  3. #3
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    that's what i ment, thank you
    rep+

  4. #4
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    mm that if then statement gave me a type mismatch

  5. #5
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OresMined has to be an integer.

    SCAR Code:
    var
      OresMined: Integer;

  6. #6
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    i got that already
    but im using something else now
    im using if invFull then
    IncEx(GoldMined, 28);

  7. #7
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So is there an error with that? :/ You said there was an error.

  8. #8
    Join Date
    Aug 2009
    Location
    Nova Scotia, Canada
    Posts
    604
    Mentioned
    0 Post(s)
    Quoted
    56 Post(s)

    Default

    Quote Originally Posted by Yush Dragon View Post
    i got that already
    but im using something else now
    im using if invFull then
    IncEx(GoldMined, 28);
    Just be aware you may have less than 28 ores if you mined some gems along the way. Use CountItems (or something similiar) to get actual number of gold ore, and increment by that amount.

    Code:
    var
      GoldOreDTM, GoldMined: Integer;
    
    GoldOreDTM := DTMFromString(''); //<-- Fill in with string for gold ore dtm
    IncEx(GoldMined, CountItems('dtm', GoldOreDTM, []));
    FreeDTM(GoldOreDTM);

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
  •