Team BlueWater Game Online Tutorial's
Bine ati venit la Team-BlueWater!!Tutorial's 4 all Games!

[RuneScape] Fixare / Editare numar maxim de iteme

View previous topic View next topic Go down

[RuneScape] Fixare / Editare numar maxim de iteme

Post  Karma on Sun Aug 14, 2011 6:13 am

Cu acest tutorial rezolvam doua probleme:
1. Fixarea ID-ului itemului.
2. Fixarea anumitor iteme fara eroare la server.


! Inainte faceti un BackUp pentru orice eventualitate.

Dechideti client.java si cautati:

Code:
    if (playerItems[i] >
Ar trebui sa arate cam asa:
Code:
if (playerItems[i] > 100000 || playerItems[i] < 0) {
playerItems[i] = 100000;
}
Editati numarul 100000 sau ce numar este cu un numar mai mare.
Code:
if (playerItems[i] > NEW_ID_NUMBER || playerItems[i] < 0) {
playerItems[i] = NEW_ID_NUMBER;
}
Cautati asta pana vedeti ca in exemplul de mai sus si editati iar acele numere.
Code:
    if (Item.SmithingItems[i][0]
Cautati asta si faceti ca in exemplele de mai sus:
Code:
    shopHandler.ShopItems[ShopID][i] >
Faceti la fel si aici:
Code:
                if (bankItems[i] >
Acum ar trebui sa aveti ceva de genul:
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;
            }
Deschideti acum ItemHandler.java si cautati si schimbati:
Code:
public static int MaxDropItems = NEW_ID_NUMBER;
    public static int MaxListedItems = NEW_ID_NUMBER;
Acum deschideti si schimbati Item.java:
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];
Acum salvati / compilati / deschideti.

_________________
[You must be registered and logged in to see this image.]
avatar
Karma
Admin
Admin

Mesaje : 1092
Data de inscriere : 2011-04-22
Varsta : 26
Localizare : Craiova

View user profile http://team-bluewater.forumz.ro

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum