[Tut] [SS] Fix/Edit Maximum of items

Results 1 to 2 of 2
  1. #1
    CloudCMS Developer blackpol is offline
    MemberRank
    Aug 2006 Join Date
    The NetherlandsLocation
    232Posts

    [Tut] [SS] Fix/Edit Maximum of items

    Difficulty: Easy

    Discription: This tutorial will solve 2 problemes,

    1. Fixing the maximum item id that you can put in invetory/bank/shop and it will not change into the evil_dave item or what else item

    2. Fixing the Stacking of a item without a server error!

    Files to be edit: client.java, ItemHandler.java, Item.java



    WARNING: MAKE A BACKUP OF THE FILES BEFORE YOU EDIT, ITS YOUR OWN RISK!

    Step 1: Open Client.Java
    Step 2: Search for:
    Code:
    if (playerItems[i] >
    Until you see something like this:
    Code:
     if (playerItems[i] > 100000 || playerItems[i] < 0) {
    playerItems[i] = 100000;
    }
    Step 3: Edit the numbers "100000" or what number it is to a new HIGHER ID number
    Code:
     if (playerItems[i] > NEW_ID_NUMBER || playerItems[i] < 0) {
    playerItems[i] = NEW_ID_NUMBER;
    }
    Step 4: Search for:
    Code:
    if (Item.SmithingItems[i][0]
    Step 5: Search until you see almost the same as the example above and edit the numbers again

    Step 6: Search for:
    Code:
    shopHandler.ShopItems[ShopID][i] >
    Step 7: Do the same as the previous examples

    Step 8: Do also the same with: (search/edit)
    Code:
                if (bankItems[i] >

    Step 9: Now you will have something like this (codes all in one)
    Code:
                    if (GameServer.shopHandler.ShopItems[ShopID][i] > NEW_ID_NUMBER || GameServer.shopHandler.ShopItems[ShopID][i] < 0) {
                        GameServer.shopHandler.ShopItems[ShopID][i] = NEW_ID_NUMBER;
                    }
    Code:
    if (playerItems[i] > NEW_ID_NUMBER || playerItems[i] < 0) {
    playerItems[i] = NEW_ID_NUMBER;
    }
    Code:
                if (Item.SmithingItems[i][0] > NEW_ID_NUMBER || Item.SmithingItems[i][0] < 0) {
                    playerItems[i] = NEW_ID_NUMBER;
                }
    Code:
                if (bankItems[i] > NEW_ID_NUMBER || bankItems[i] < 0) {
                    bankItems[i] = NEW_ID_NUMBER;
                }
    Step 10: Open ItemHandler.java
    Step 11: Search and change:
    Code:
        public static int MaxDropItems = NEW_ID_NUMBER;
        public static int MaxListedItems = NEW_ID_NUMBER;
    Step 12: Open Item.java
    Step 13: Search and change:
    Code:
        public static boolean[] itemStackable = new boolean[NEW_ID_NUMBER];
        public static boolean[] itemIsNote = new boolean[NEW_ID_NUMBER];
        public static boolean[] itemTwoHanded = new booleanNEW_ID_NUMBER];
        public static boolean[] itemTradeable = new boolean[NEW_ID_NUMBER];
        public static boolean[] itemSellable = new boolean[NEW_ID_NUMBER];
    Step 14: Save/Compile/Run
    Step 15: Enjoy and test :P


  2. #2
    Member owner abz is offline
    MemberRank
    Feb 2008 Join Date
    Under Your BedLocation
    69Posts

    Re: [Tut][SS] Fix/Edit Maximum of items

    Nice



Advertisement