Thread: So it's been a while.

Results 1 to 3 of 3
  1. #1 So it's been a while. 
    Registered Member Lust's Avatar
    Join Date
    Oct 2012
    Age
    28
    Posts
    109
    Thanks given
    5
    Thanks received
    4
    Rep Power
    16
    It's been a while since I wrote skills, and when I did write them it was for delta, so if someone would be kind enough to show me what I've done wrong here, I can finish the rest of the itemOnItem skills.

    Code:
    package server.model.players.skills;
    
    import server.Config;
    import server.model.players.Client
    
    /** Unfinished Pots
    * base Sanity
    * @author Zach
    */
    
    public class UnfinishedPots {
    
    	private Client C;
    								/* Vial Of Water */
    	private int[][] supplies = {{227, 227, 227, 227, 227, 227, 227, 227, 227},
    							   	/* Herbs */
    							   {249, 251, 253, 255, 257, 259, 263, 3000, 265},
    							   /* Unfinished Pots */ //Output
    							   {91, 93, 95, 97, 99, 101, 105, 107, 3004},
    						   };
    	public UnfinishedPots(Client c) {
    	this.c = c;
    	}
    
    	int first = [supplies][ArrayIndex][0];
    	int second = [supplies][ArrayIndex][1];
    	int last = [supplies][ArrayIndex][2];
    
    	public void makeUnf(int first, int second, int last) {
    		deleteItem(first);
    		deleteItem(second);
    		addItem(last);
    			sendMessage("You combine the supplies together.");
    	}
    }
    I know my void is wrong, and I'm pretty sure I declared the array wrong lol.


    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2012
    Posts
    83
    Thanks given
    3
    Thanks received
    9
    Rep Power
    11
    Code:
    int first = [supplies][ArrayIndex][0];
    int second = [supplies][ArrayIndex][1];
    int last = [supplies][ArrayIndex][2];
    Yeah...
    Mind explaining what you want to accomplish with these fields?
    Reply With Quote  
     

  3. #3  
    Registered Member Lust's Avatar
    Join Date
    Oct 2012
    Age
    28
    Posts
    109
    Thanks given
    5
    Thanks received
    4
    Rep Power
    16
    Quote Originally Posted by Dinkleberg View Post
    Code:
    int first = [supplies][ArrayIndex][0];
    int second = [supplies][ArrayIndex][1];
    int last = [supplies][ArrayIndex][2];
    Yeah...
    Mind explaining what you want to accomplish with these fields?
    Like I said, it's been a while. I'm simply trying to declare where each Index in the array is what.


    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

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