Thread: item problems

Results 1 to 7 of 7
  1. #1 item problems 
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,167
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    i have some problem with d axes daganoth bones etc
    if i have 5 axes i dont need 5 spots because u take all d axes in 1 spot like money
    how i can fix this?
    i will rep+++
    Reply With Quote  
     

  2. #2  
    Registered Member Despised Icon's Avatar
    Join Date
    Nov 2009
    Age
    27
    Posts
    605
    Thanks given
    5
    Thanks received
    6
    Rep Power
    1
    in ur stacked items then you need tyo find the code and delete it in the stacked items idk exactly where it stands i think in client.java

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,167
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    try {
    FileInputStream dataIn = new FileInputStream(new File(
    "./bin/data/stackable.dat"));
    while ((c = dataIn.read()) != -1) {
    if (c == 0)
    itemStackable[counter] = false;
    else
    itemStackable[counter] = true;
    counter++;
    }
    dataIn.close();
    int[] runeId = { 553, 6430, 6432, 565, 6428, 6422, 566, 6434, 6424, 7937 };
    for (int i = 0; i < runeId.length; i++) {
    itemStackable[runeId[i]] = true;
    }
    } catch (IOException e) {
    System.out
    .println("Critical error while loading stackabledata! Trace:");
    e.printStackTrace();
    }

    counter = 0;
    try {
    FileInputStream dataIn = new FileInputStream(new File(
    "./bin/data/notes.dat"));
    while ((c = dataIn.read()) != -1) {
    if (c == 0)
    itemIsNote[counter] = true;
    else
    itemIsNote[counter] = false;
    counter++;
    }
    dataIn.close();
    int[] runeId2 = { 7937 };
    for (int i = 0; i < runeId2.length; i++) {
    itemIsNote[runeId2[i]] = true;
    }
    } catch (IOException e) {
    System.out.println("Critical error while loading notedata! Trace:");
    e.printStackTrace();
    }

    counter = 0;
    try {
    FileInputStream dataIn = new FileInputStream(new File(
    "./bin/data/twohanded.dat"));
    while ((c = dataIn.read()) != -1) {
    if (c == 0)
    itemTwoHanded[counter] = false;
    else
    itemTwoHanded[counter] = true;
    counter++;
    }
    dataIn.close();
    } catch (IOException e) {
    System.out
    .println("Critical error while loading twohanded! Trace:");
    e.printStackTrace();
    }

    counter = 0;

    i found this in item .java but this is just for runes,p ess
    how i can fix d axes ringsetc
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,167
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    anyone?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,167
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    bump
    Reply With Quote  
     

  6. #6  
    Registered Member Suffacatingsins's Avatar
    Join Date
    Oct 2009
    Posts
    52
    Thanks given
    0
    Thanks received
    1
    Rep Power
    4
    Go To Item.Java,

    Search For
    Code:
    public static int SmithingItems
    Under that abit, You should see Stuff That looks similiar to this,
    Code:
    			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[11212] = true;
    			itemStackable[6685] = false;
    			itemStackable[6687] = false;
    			itemStackable[6689] = false;
    			itemStackable[6691] = false;
    			itemStackable[6570] = false;
    			itemStackable[6737] = false;
    			itemStackable[6735] = false;
    			itemStackable[6731] = false;
    			itemStackable[6733] = false;
    			itemStackable[6739] = false;
    			int[] runeId = {553, 3706, 6430, 6432, 565, 6428, 6422, 566, 6434, 6424 };
    			for (int i = 0; i < runeId.length; i++) {
    				itemStackable[runeId[i]] = true;
    			}
    		} catch (IOException e) {
    			System.out
    					.println("Critical error while loading stackabledata! Trace:");
    			e.printStackTrace();
    		}
    Now, Where you See the "itemStackable[6570] = false;" Or Something Similiar,
    Add this In with that..

    Code:
    itemStackable[DRAGON AXE ID HERE] = false;
    Done.
    September 21, 2008

    Www.RsTwix.Com


    A kiss is a lovely trick designed by nature to stop speech when words become superfluous.
    Reply With Quote  
     

  7. #7  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    388
    Rep Power
    604
    Wrong suffocating; the issue has to do with his item picking up method. His server is picking up the (itemId, all).

    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
  •