Results 1 to 25 of 25

Thread: Few questions about smelter

  1. #1
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Few questions about smelter

    I am currently making an Al Kharid Steel Bar Smelter.

    1. What's the best method of finding the furnace, TPA?, changing camera angle and looking for the fire colour?
    2. What's the best method of finding the furnace building? All of the buildings on the minimap have pretty much the same colour flooring

    So far I have got it to walk to the halfway point, rest, walk back to the halfway point, walk to the bank, Bank and withdraw... all I need is to sort the furnace out.
    Please help people thanks

  2. #2
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    1. I think the problem with AK has always been that there are always the same colours on the screen.
    I would:
    Findcolour(x) and findcolour(y), if distance between points is less than a certain amount thwn you have found your furnace/object.

  3. #3
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    to find the building, learn DDTMs, as for the furnace, learn about ATPAs to get the grey furnace color.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  4. #4
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    1. I would do a TPA. The opening of the furnace faces eastwards, so as long as the compass is between 45° and 135°, you should be able to make a TPA of the red color of the furnace. If the compass is not in this range (use rs_GetCompassAngleDegrees), rotate it to this range (MakeCompass(45 + Random(90)).
    2. I would use a (D)DTM. Take a point from the center of the furnace building, and take the other points from the white outline of the furnace building (I would definitely get the 4 corners, and some in between).

  5. #5
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by TomTuff View Post
    1. I would do a TPA. The opening of the furnace faces eastwards, so as long as the compass is between 45° and 135°, you should be able to make a TPA of the red color of the furnace. If the compass is not in this range (use rs_GetCompassAngleDegrees), rotate it to this range (MakeCompass(45 + Random(90)).
    2. I would use a (D)DTM. Take a point from the center of the furnace building, and take the other points from the white outline of the furnace building (I would definitely get the 4 corners, and some in between).
    But AFAIK, if you face the furnace, you can see the Cooking (range?) next door.

  6. #6
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Dynamite View Post
    But AFAIK, if you face the furnace, you can see the Cooking (range?) next door.
    which is why you need an ATPA, to sort through the TPA sizes. also you can do sorttpa(tpa, point(mscx, mscy)) which will sort the tpas in a spiral that is closest to that point, so if your standing next to the furnace, the red furnace color will always be the first tpas in the array
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  7. #7
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    which is why you need an ATPA, to sort through the TPA sizes. also you can do sorttpa(tpa, point(mscx, mscy)) which will sort the tpas in a spiral that is closest to that point, so if your standing next to the furnace, the red furnace color will always be the first tpas in the array
    Agreed, which is why I quoted his post not yours xD

    -Boom

  8. #8
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I have learnt ATPA's and DDTM's, I just wasn't sure whether they would work for this.
    I tried using the other smelter and it seemed to be clicking all over the place and getting lost all the time, that's why I decided to make a new one.

    So should I create a DDTM for the walking to the furnace with MP in the middle of the building an 4 SP's on each corner. For finding the furnace make the compass slightly east or west whichever way it is and make an ATPA?

  9. #9
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by trojan View Post
    I have learnt ATPA's and DDTM's, I just wasn't sure whether they would work for this.
    I tried using the other smelter and it seemed to be clicking all over the place and getting lost all the time, that's why I decided to make a new one.

    So should I create a DDTM for the walking to the furnace with MP in the middle of the building an 4 SP's on each corner. For finding the furnace make the compass slightly east or west whichever way it is and make an ATPA?
    exactly,

    or for walking, i also highly suggest using this tutorial: http://villavu.com/forum/showthread....269#post775269

    it's actually very, very easy and stable to use
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  10. #10
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    exactly,

    or for walking, i also highly suggest using this tutorial: http://villavu.com/forum/showthread....269#post775269

    it's actually very, very easy and stable to use
    I've been learning from Coh3n's All in one scripting tutorial
    http://villavu.com/forum/showthread.php?p=618676
    but he only mentioned using DDTM's, Radial and Symbols for walking. Is this outdated?

    like for my walking to the halfway point I have a (D)DTM, then a failsafe of Radial then Symbols. Would I be better off using this TPA walking and have DDTM, Radial and Symbols as a failsafe? or keep what I have and just use TPA walking for the furnace?

  11. #11
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    i would do DDTM first, then tpa, radial, and then symbols for a failsafe, in that order.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  12. #12
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay thanks mate, you have been a big help I'll credit you in my script

    Edit: The DDTM for walking to the furnace didn't work, you can't set the main point in the middle because the symbol moves around and that messes up the colours :'(
    Last edited by trojan; 02-06-2011 at 12:04 AM.

  13. #13
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    FurnaceTile := Point(x, y);

    Click it.
    I'm back

  14. #14
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I understand nothing atall about Tiles are there any guides of them?

  15. #15
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Tiles are basically just that-tiles, you should be able to see different tiles on the rs mainmap, and each tile has something on it, and if you have the tile, you can just mouse(tile.x, tile.y, rx, ry, true)

  16. #16
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    what if he doesnt want to use reflection?
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  17. #17
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm using reflection anyway for the "Until not (characteranimating)" function to tell when I have stopped smithing. I have already proven that I can use DDTMs, TPA's, Radial and Symbol finding to walk. If reflection will make it more reliable then I am willing to use it.

  18. #18
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Why would you need reflection to wait while smelting? You should have a function that checks for whether or not there is any ore left in the inventory, and if not then you have finished. The only other thing that would stop it is leveling up, which you can check for (I think if you ClickToContinue then it will restart smelting by its own)

    You should check out my Baby Melter script, it's out of date and wouldn't compile now, but I used colour for everything except banking. It made it much more accurate and smart than what SRL was (still is) capable of (which isn't much in terms of counting stacked objects iirc).

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  19. #19
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    there is an ore in the inventory though cos you withdraw 10 iron and 18 coal that leaves 1 iron at the end, I have a level up check in, and I just need to add the ClickFurnace function now then It's ready for testing

  20. #20
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Quote Originally Posted by trojan View Post
    there is an ore in the inventory though cos you withdraw 10 iron and 18 coal that leaves 1 iron at the end, I have a level up check in, and I just need to add the ClickFurnace function now then It's ready for testing
    In my script I just had it type in the 'Withdraw X' once because then RS saves that value and you can choose the option 'Withdraw 9' after that. It's much easier, just takes the extra time once.

    E:

    Either way, you can say 'If OresLeft < X then DoneSmelting', you just have to decide the X value (I'd say 1, but I guess you could do more.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  21. #21
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    what you can do is something of this nature:

    Simba Code:
    const
      bar_Bronze = 0;
      bar_Iron = 1;
      bar_Steel = 2;
      bar_Mith = 3;
      bar_Addy = 4;
      bar_Rune = 5;
      bar_Cannon = 6;

      blackline_Ore = 0; //what ever the black line count of ore is
      blackline_Bar = 0; //what ever the black line count of bars are

    function oreleft(bar : integer) : integer;
    begin
      case bar of
        0, 1, 3, 5, 6 : result := 0;
        2, 4 : result := 1;
      end;
    end;

    begin
      repeat
        wait(100);
      until CountItemsBlackLine(blackline_Ore, 10) <= oreleft(bar_Steel);
    end.
    Last edited by Awkwardsaw; 02-06-2011 at 06:50 PM.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  22. #22
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Quote Originally Posted by trojan View Post
    I understand nothing atall about Tiles are there any guides of them?
    Cstrike's tutorial:
    http://villavu.com/forum/showthread.php?t=59400

    Quote Originally Posted by Awkwardsaw View Post
    what if he doesnt want to use reflection?
    What if he doesn't want to use color?

    Why is everyone so hostile about reflection here?
    I'm back

  23. #23
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by 3Garrett3 View Post
    In my script I just had it type in the 'Withdraw X' once because then RS saves that value and you can choose the option 'Withdraw 9' after that. It's much easier, just takes the extra time once.

    E:

    Either way, you can say 'If OresLeft < X then DoneSmelting', you just have to decide the X value (I'd say 1, but I guess you could do more.
    well if you did withdraw x, you would have to do withdraw 9 for iron then withdraw 18 for coal, wouldn't it just save the 18? I was trying to make it more human like as thats what I do when I'm smithing anyway just withdraw 10 iron then withdraw all coal.

    And I understand that if I use reflection for walking there is a good chance I will get turned down for members.

  24. #24
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Quote Originally Posted by trojan View Post
    well if you did withdraw x, you would have to do withdraw 9 for iron then withdraw 18 for coal, wouldn't it just save the 18? I was trying to make it more human like as thats what I do when I'm smithing anyway just withdraw 10 iron then withdraw all coal.

    And I understand that if I use reflection for walking there is a good chance I will get turned down for members.
    For something so simple, yes. I used TPA walks, and it was very simple. Two steps is something you should be able to do well with colour. As always, feel free to look at my script, as well as any other AK smelters, and you will have tons of new ideas

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  25. #25
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by smurg View Post
    What if he doesn't want to use color?

    Why is everyone so hostile about reflection here?
    I wasn't aware he was using reflection when i posted, so i assumed he was just using color

    and how did i seem hostile torwards reflection?
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

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
  •