Thread: [PI] Stackable

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 [PI] Stackable 
    Banned
    Join Date
    Apr 2011
    Posts
    70
    Thanks given
    3
    Thanks received
    0
    Rep Power
    0
    Ok i made my item stackable and i go to do somthing with it and it deletes all of them! 20k than 1k!

    heres what i got

    itemStackable[12183] = true;
    Reply With Quote  
     

  2. #2  
    Registered Member
    Iwin's Avatar
    Join Date
    Mar 2008
    Age
    30
    Posts
    677
    Thanks given
    12
    Thanks received
    56
    Rep Power
    245
    You need to explain your problem better to recieve help.
    [SPOIL]
    [/SPOIL]
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Apr 2011
    Posts
    70
    Thanks given
    3
    Thanks received
    0
    Rep Power
    0
    ok, so i made my own summoning on a PI made by me and i have shards and crap but i need to make them stackable when i do i spawn 10k and what not its all good then i make a pouch it when its suppose to delete 7 it deletes the whole 10k!
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Apr 2011
    Posts
    70
    Thanks given
    3
    Thanks received
    0
    Rep Power
    0
    bumpz
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    May 2009
    Posts
    844
    Thanks given
    44
    Thanks received
    39
    Rep Power
    29
    We have a 24 hour bump policy around here, stick to it.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2010
    Posts
    75
    Thanks given
    0
    Thanks received
    4
    Rep Power
    1
    Quote Originally Posted by Files' View Post
    Ok i made that item stackable like so 20000 it works and then i go to use the altar and they all go away and it only deletes all of them

    Give me your code where you use item on alter?
    Reply With Quote  
     

  7. #7  
    Donator
    Defiled-X's Avatar
    Join Date
    Jun 2010
    Posts
    1,434
    Thanks given
    52
    Thanks received
    78
    Rep Power
    27
    Explain better. You just rush it and makes no sense.
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Apr 2011
    Posts
    70
    Thanks given
    3
    Thanks received
    0
    Rep Power
    0
    ok, so i made my own summoning on a PI made by me and i have shards and crap but i need to make them stackable when i do i spawn 10k and what not its all good then i make a pouch it when its suppose to delete 7 it deletes the whole 10k!
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Apr 2011
    Posts
    70
    Thanks given
    3
    Thanks received
    0
    Rep Power
    0
    Bump
    Reply With Quote  
     

  10. #10  
    supa fly guy


    Join Date
    Feb 2011
    Age
    28
    Posts
    2,201
    Thanks given
    488
    Thanks received
    988
    Rep Power
    992
    Why, Don't you noob's just help him >.>
    K, So your doing it wrong lol
    Open up: Item.java
    Search for:
    Code:
    FileInputStream dataIn = new FileInputStream(new File("./Data/data/stackable.dat"));
    Above it you should see:
    try {
    Replace from the try { all the way too the next try { below it.. with this
    Code:
    try {
    			FileInputStream dataIn = new FileInputStream(new File("./Data/data/stackable.dat"));
    			while ((c = dataIn.read()) != -1) {
    				if (c == 0) {
    					itemStackable[counter] = false;
    				} else {
    					itemStackable[counter] = true;
    					int[] stackableItems = {12160,12158,12155,12183};
    					for (int i = 0; i < stackableItems.length; i++) {
    					itemStackable[stackableItems[i]] = true;
                }
    				}
    				counter++;
    			}
    			dataIn.close();
    		} catch (IOException e) {
    			//System.out.println("Critical error while loading stackabledata! Trace:");
    			e.printStackTrace();
    		}
    
    		counter = 0;
    Just add the item you want stackable too the list of items i have there..
    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. stackable.dat
    By PrataKosong in forum Help
    Replies: 3
    Last Post: 10-04-2010, 02:05 PM
  2. Stackable
    By Moofens in forum Help
    Replies: 2
    Last Post: 01-30-2010, 09:07 PM
  3. Make any item stackable/non-stackable
    By Luke in forum Snippets
    Replies: 6
    Last Post: 07-20-2009, 04:43 PM
  4. Stackable?
    By Tylerr in forum Help
    Replies: 5
    Last Post: 05-12-2009, 06:18 AM
  5. All stackable
    By Vastiko in forum Snippets
    Replies: 4
    Last Post: 02-28-2009, 01:39 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •