Thread: [PI]Smelting

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 [PI]Smelting 
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Posts
    353
    Thanks given
    7
    Thanks received
    20
    Rep Power
    75
    Hello ,

    I have checked my smithing.java and it support only 2 ores
    Which means it req from you maximum 2 ores to smelt a bar...

    The problem is that for steel bar it should be 3 ores ( 2 coal + 1 iron )
    How can i make it support more than 2 ores?

    public class Smithing {

    private Client c;
    private final int[] SMELT_BARS = {2349,2351,2355,2353,2357,2359,2361,2363};
    private final int[] SMELT_FRAME = {2405,2406,2407,2409,2410,2411,2412,2413};
    private final int[] BAR_REQS = {1,15,20,30,40,50,70,85};
    private final int[] ORE_1 = {438,440,442,440,444,447,449,451};
    private final int[] ORE_2 = {436,-1,-1,453,-1,453,453,453};
    private final int[] SMELT_EXP = {6,13,15,18,23,30,38,50};
    public int item;
    public int xp;
    public int remove;
    public int removeamount;
    public int maketimes;
    private int exp;
    private int oreId;
    private int oreId2;
    private int barId;
    • If it been done before you can do it too!
    • We're all humans, built from the same resources by different layouts and schemes.
    • Nobody is perfect, everyone has their own defects and disabilities.
    • Choose to be kind, not because you have to but because you understand how it feels to be treated bad.
    • Be against racism regardless of how you were raised because nobody loves feeling odd and not belonging.
      If any of the above inspires you make sure to pass it on
    Reply With Quote  
     

  2. #2  
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Posts
    353
    Thanks given
    7
    Thanks received
    20
    Rep Power
    75
    bump
    • If it been done before you can do it too!
    • We're all humans, built from the same resources by different layouts and schemes.
    • Nobody is perfect, everyone has their own defects and disabilities.
    • Choose to be kind, not because you have to but because you understand how it feels to be treated bad.
    • Be against racism regardless of how you were raised because nobody loves feeling odd and not belonging.
      If any of the above inspires you make sure to pass it on
    Reply With Quote  
     

  3. #3  
    Donator
    South-Park's Avatar
    Join Date
    Jul 2012
    Posts
    806
    Thanks given
    191
    Thanks received
    111
    Rep Power
    43
    I would suggest to just re-write the smelting because the PI smelting is just ugly.


    The community these days makes my lol.

    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Posts
    353
    Thanks given
    7
    Thanks received
    20
    Rep Power
    75
    Quote Originally Posted by get on mehh View Post
    I would suggest to just re-write the smelting because the PI smelting is just ugly.

    My is pretty good.
    But do you have any idea how to support more ores ? :/
    • If it been done before you can do it too!
    • We're all humans, built from the same resources by different layouts and schemes.
    • Nobody is perfect, everyone has their own defects and disabilities.
    • Choose to be kind, not because you have to but because you understand how it feels to be treated bad.
    • Be against racism regardless of how you were raised because nobody loves feeling odd and not belonging.
      If any of the above inspires you make sure to pass it on
    Reply With Quote  
     

  6. #5  
    Donator
    South-Park's Avatar
    Join Date
    Jul 2012
    Posts
    806
    Thanks given
    191
    Thanks received
    111
    Rep Power
    43
    Code:
    protected int getOre2(int barType) {
    		for (int j = 0; j < FRAME_BARS.length; j++) {
    			if (barType == FRAME_BARS[j]) {
    				return ORE_2[j][0];
    			}
    		}
    		return 0;
    	}
    
    	protected int getOre2Amount(int barType) {
    		for (int j = 0; j < FRAME_BARS.length; j++) {
    			if (barType == FRAME_BARS[j]) {
    				return ORE_2[j][1];
    			}
    		}
    		return 0;
    	}
    Code:
    protected final int ORE_2[][] = { { 436, 1 }, { -1, 0 }, { -1, 0 }, { 453, 2 }, { -1, 0 }, { 453, 4 }, { 453, 6 }, { 453, 8 }, };


    The community these days makes my lol.

    Reply With Quote  
     

  7. #6  
    Registered Member
    Join Date
    Dec 2012
    Posts
    148
    Thanks given
    26
    Thanks received
    14
    Rep Power
    11
    private final int[] ORE_3 = {};

    protected int getOre3(int barType) {
    Reply With Quote  
     

  8. #7  
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Posts
    353
    Thanks given
    7
    Thanks received
    20
    Rep Power
    75
    Quote Originally Posted by ***position View Post
    private final int[] ORE_3 = {};

    protected int getOre3(int barType) {
    You are trying to be 'smart' ?
    • If it been done before you can do it too!
    • We're all humans, built from the same resources by different layouts and schemes.
    • Nobody is perfect, everyone has their own defects and disabilities.
    • Choose to be kind, not because you have to but because you understand how it feels to be treated bad.
    • Be against racism regardless of how you were raised because nobody loves feeling odd and not belonging.
      If any of the above inspires you make sure to pass it on
    Reply With Quote  
     

  9. #8  
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Posts
    353
    Thanks given
    7
    Thanks received
    20
    Rep Power
    75
    Quote Originally Posted by get on mehh View Post
    Code:
    protected int getOre2(int barType) {
    		for (int j = 0; j < FRAME_BARS.length; j++) {
    			if (barType == FRAME_BARS[j]) {
    				return ORE_2[j][0];
    			}
    		}
    
    
    		return 0;
    	}
    
    	protected int getOre2Amount(int barType) {
    		for (int j = 0; j < FRAME_BARS.length; j++) {
    			if (barType == FRAME_BARS[j]) {
    				return ORE_2[j][1];
    			}
    		}
    		return 0;
    	}
    Code:
    protected final int ORE_2[][] = { { 436, 1 }, { -1, 0 }, { -1, 0 }, { 453, 2 }, { -1, 0 }, { 453, 4 }, { 453, 6 }, { 453, 8 }, };
    Didn't ask you to re-write it

    Just help me add more ores , do you want me to post my whole smithing.java file?
    • If it been done before you can do it too!
    • We're all humans, built from the same resources by different layouts and schemes.
    • Nobody is perfect, everyone has their own defects and disabilities.
    • Choose to be kind, not because you have to but because you understand how it feels to be treated bad.
    • Be against racism regardless of how you were raised because nobody loves feeling odd and not belonging.
      If any of the above inspires you make sure to pass it on
    Reply With Quote  
     

  10. #9  
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Posts
    353
    Thanks given
    7
    Thanks received
    20
    Rep Power
    75
    bump still need help
    • If it been done before you can do it too!
    • We're all humans, built from the same resources by different layouts and schemes.
    • Nobody is perfect, everyone has their own defects and disabilities.
    • Choose to be kind, not because you have to but because you understand how it feels to be treated bad.
    • Be against racism regardless of how you were raised because nobody loves feeling odd and not belonging.
      If any of the above inspires you make sure to pass it on
    Reply With Quote  
     

  11. #10  
    Registered Member Skarlett's Avatar
    Join Date
    Apr 2013
    Posts
    405
    Thanks given
    47
    Thanks received
    7
    Rep Power
    13
    Jesus christ. Why the fuck are you so cocky, people are trying to help you out. They are not trying to be 'Smart' they are trying to fucking help you.
    ♡Lovvveeee♡
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. [pi]Smelting x10/smelt all
    By Usaclub in forum Help
    Replies: 4
    Last Post: 10-02-2011, 08:48 PM
  2. [PI] Smelt X
    By Scotticus in forum Help
    Replies: 6
    Last Post: 07-31-2011, 10:37 PM
  3. [pi]Smelting x5, x10[pi] PAYING
    By Usaclub in forum Requests
    Replies: 7
    Last Post: 06-25-2011, 05:02 AM
  4. [PI]Smelt All[PI]
    By Usaclub in forum Help
    Replies: 19
    Last Post: 05-28-2011, 04:51 AM
  5. [PI] Smelting -x10, x5
    By sketzo in forum Help
    Replies: 8
    Last Post: 01-17-2011, 02:41 PM
Tags for this Thread

View Tag Cloud

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