Thread: Make "Silabsoft's" items :- Stackable

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Make "Silabsoft's" items :- Stackable 
    Crazy Cam10
    Guest
    Get this right, this was orginally made by me, noobs from mopar keep leeching it,
    If you want proof go the hell here http://www.rune-server.org/showthread.php?t=31858 (May 07)

    Description: To make silab items and other items stackable/un-stackableellable/un-sellable

    Difficulty: 1/10.. 9/10 (W/o a brain D

    Assumed Knowledge: How to c + p, and how to read.

    Tested Server: Campkz (Mine.. duh >.<)

    Files/Classes Modified: Item.java

    Procedure
    Step 1: Open up your item.java and find
    Code:
    new File("data/stackable.dat"));
    It should look a little bit like this

    Code:
    try {
                FileInputStream dataIn = new FileInputStream(
                        new File("data/stackable.dat"));
    
                while ((c = dataIn.read()) != -1) {
                    if (c == 0) {
                        itemStackable[counter] = false;
                    } else {
                        itemStackable[counter] = true;
                    }
                    counter++;
                }
                dataIn.close();
            } catch (IOException e) {
                System.out.println(
                        "Critical error while loading stackabledata! Trace:");
                e.printStackTrace();
            }
    Step2: Under this part
    Code:
    }
    dataIn.close();
    You could add
    Code:
    itemStackable[6570] = false;
    To make firecapes non-stackable or you could add home teleport tabs
    Code:
    itemStackable[12915] = true;
    which will make them stackable.

    = true (Stackable)
    = false (Un-stackable)

    Once your finished it should look something like this
    Code:
    try {
                FileInputStream dataIn = new FileInputStream(
                        new File("data/stackable.dat"));
    
                while ((c = dataIn.read()) != -1) {
                    if (c == 0) {
                        itemStackable[counter] = false;
                    } else {
                        itemStackable[counter] = true;
                    }
                    counter++;
                }
                dataIn.close();
                itemStackable[6570] = false;
                itemStackable[6735] = false;
                itemStackable[6733] = false;
                itemStackable[6731] = false;
                itemStackable[6737] = false;
                itemStackable[6685] = false;
                itemStackable[6687] = false;
                itemStackable[6689] = false;
                itemStackable[6691] = false;
            } catch (IOException e) {
                System.out.println(
                        "Critical error while loading stackabledata! Trace:");
                e.printStackTrace();
            }
    Enjoy stacking your items
     

  2. #2  
    Registered Member
    T-Sex's Avatar
    Join Date
    Jan 2008
    Posts
    1,824
    Thanks given
    0
    Thanks received
    3
    Rep Power
    130
    Quote Originally Posted by Crazy Cam10 View Post
    Get this right, this was orginally made by me, noobs from mopar keep leeching it,
    If you want proof go the hell here http://www.rune-server.org/showthread.php?t=31858 (May 07)

    Description: To make silab items and other items stackable/un-stackableellable/un-sellable

    Difficulty: 1/10.. 9/10 (W/o a brain D

    Assumed Knowledge: How to c + p, and how to read.

    Tested Server: Campkz (Mine.. duh >.<)

    Files/Classes Modified: Item.java

    Procedure
    Step 1: Open up your item.java and find
    Code:
    new File("data/stackable.dat"));
    It should look a little bit like this

    Code:
    try {
                FileInputStream dataIn = new FileInputStream(
                        new File("data/stackable.dat"));
    
                while ((c = dataIn.read()) != -1) {
                    if (c == 0) {
                        itemStackable[counter] = false;
                    } else {
                        itemStackable[counter] = true;
                    }
                    counter++;
                }
                dataIn.close();
            } catch (IOException e) {
                System.out.println(
                        "Critical error while loading stackabledata! Trace:");
                e.printStackTrace();
            }
    Step2: Under this part
    Code:
    }
    dataIn.close();
    You could add
    Code:
    itemStackable[6570] = false;
    To make firecapes non-stackable or you could add home teleport tabs
    Code:
    itemStackable[12915] = true;
    which will make them stackable.

    = true (Stackable)
    = false (Un-stackable)

    Once your finished it should look something like this
    Code:
    try {
                FileInputStream dataIn = new FileInputStream(
                        new File("data/stackable.dat"));
    
                while ((c = dataIn.read()) != -1) {
                    if (c == 0) {
                        itemStackable[counter] = false;
                    } else {
                        itemStackable[counter] = true;
                    }
                    counter++;
                }
                dataIn.close();
                itemStackable[6570] = false;
                itemStackable[6735] = false;
                itemStackable[6733] = false;
                itemStackable[6731] = false;
                itemStackable[6737] = false;
                itemStackable[6685] = false;
                itemStackable[6687] = false;
                itemStackable[6689] = false;
                itemStackable[6691] = false;
            } catch (IOException e) {
                System.out.println(
                        "Critical error while loading stackabledata! Trace:");
                e.printStackTrace();
            }

    Enjoy stacking your items
    good for hiyascape v1 but alot of sources have fixed blood runes now and thats all people want it for lol
     

  3. #3  
    Crazy Cam10
    Guest
    Actually i see a lot of posts saying stuff like: OMFG Firecapes are stackable@@@@@ halp plss!1!1
    So this should shut them up for a while
     

  4. #4  
    Registered Member
    T-Sex's Avatar
    Join Date
    Jan 2008
    Posts
    1,824
    Thanks given
    0
    Thanks received
    3
    Rep Power
    130
    Quote Originally Posted by Crazy Cam10 View Post
    Actually i see a lot of posts saying stuff like: OMFG Firecapes are stackable@@@@@ halp plss!1!1
    So this should shut them up for a while
    firecapes stackable wa kind of moron wud do tht lol
     

  5. #5  
    Whitey
    Guest
    Or, you could make it load from the item.cfg, which is what it's there for.
     

  6. #6  
    Project No*

    Join Date
    Aug 2007
    Age
    30
    Posts
    375
    Thanks given
    0
    Thanks received
    0
    Rep Power
    25
    there is actually a better way to do this, ill release it later, but thanks for releasing anyway
     

  7. #7  
    Optimist

    Vice's Avatar
    Join Date
    Nov 2007
    Age
    28
    Posts
    3,263
    Thanks given
    3
    Thanks received
    59
    Rep Power
    2536
    my dragon arrows turn into tiaras lol? help
    Jack
    Scotland
    Undergraduate - BSc Computing Science
     

  8. #8  
    Project No*

    Join Date
    Aug 2007
    Age
    30
    Posts
    375
    Thanks given
    0
    Thanks received
    0
    Rep Power
    25
    what is the id of the dragon arrow, if its the tiaras id, then you dont need to add it into, here it is already stackable
     

  9. #9  
    yankee
    Guest
    TY, i needed this for my client. i had to amke d arrows stackable.

    forgot. rep+++++++++++
    Last edited by yankee; 04-06-2008 at 07:58 PM. Reason: Double posting is not allowed!
     

  10. #10  
    Optimist

    Vice's Avatar
    Join Date
    Nov 2007
    Age
    28
    Posts
    3,263
    Thanks given
    3
    Thanks received
    59
    Rep Power
    2536
    btw its 15145 and try it it turns into tiaras?

    Edit: isnt already stackable
    Jack
    Scotland
    Undergraduate - BSc Computing Science
     

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

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