You need to explain your problem better to recieve help.
|
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;
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!
bumpz
We have a 24 hour bump policy around here, stick to it.
Explain better. You just rush it and makes no sense.
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!
Bump
Why, Don't you noob's just help him >.>
K, So your doing it wrong lol
Open up: Item.java
Search for:
Above it you should see:Code:FileInputStream dataIn = new FileInputStream(new File("./Data/data/stackable.dat"));
try {
Replace from the try { all the way too the next try { below it.. with this
Just add the item you want stackable too the list of items i have there..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;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |