Results 1 to 4 of 4

Thread: Prioritizing?

  1. #1
    Join Date
    Jun 2007
    Posts
    108
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Prioritizing?

    How would I go about prioritizing certain things in my script?

    Example:
    I want to mine Mithril and Coal, but if there's Mithril I want the script to mine Mithril first.

    Didn't see any tutorials on it. >.<

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    The easiest way I see is to put the colours in an array and loop from the beginning.. else you can write another complex way of doing it.. I personally prioritize using cases with arrays.

    Code:
    RockColors:= [MithrilColour, IronColor, TinColor.....];  //TIntegerArray;
    For I:= 0 To High(RockColors) do
       if FindColorsSpiralTolerance(..... RockColors[I].......) then
           //Mine rock..
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Jun 2007
    Posts
    108
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by ggzz View Post
    The easiest way I see is to put the colours in an array and loop from the beginning.. else you can write another complex way of doing it.. I personally prioritize using cases with arrays.

    Code:
    RockColors:= [MithrilColour, IronColor, TinColor.....];  //TIntegerArray;
    For I:= 0 To High(RockColors) do
       if FindColorsSpiralTolerance(..... RockColors[I].......) then
           //Mine rock..
    Alright thanks, one last question.

    How would I go about keeping my character in a specific area?

  4. #4
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    2,254
    Mentioned
    21 Post(s)
    Quoted
    238 Post(s)

    Default

    Try objDTMs.

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
  •