|
|
Item.cfg: [Only registered and activated users can see links. ]
Go to src/server/world/
Open itemHandler.java, search forReplace the whole void withCode:public void newItemList(int ItemIdopen config.java, search forCode:public void newItemList(int ItemId, String ItemName, String ItemDescription, double ShopValue, double LowAlch, double HighAlch, int Bonuses[]) { // first, search for a free slot int slot = -1; for (int i = 0; i < 20082; i++) { if (ItemList[i] == null) { slot = i; break; } } if(slot == -1) return; // no free slot found ItemList newItemList = new ItemList(ItemId); newItemList.itemName = ItemName; newItemList.itemDescription = ItemDescription; newItemList.ShopValue = ShopValue; newItemList.LowAlch = LowAlch; newItemList.HighAlch = HighAlch; newItemList.Bonuses = Bonuses; ItemList[slot] = newItemList; }replace the line withCode:ITEM_LIMITReally easy, yea.Code:public static final int ITEM_LIMIT = 20083;
oh nice bro! repped
oh god, thanks saves a whole lotta time!

Thanks mate!
I guess this helped a few people, like it helped me!
REP.

Thanks, I'm using it now
If you using DSPK sourche replace Afro to Afro_helm, in item.cfg

thanks alex but does runeverfix source come with this?

lololol use a list instead of an array for the ItemList variable that way you don't have to worry about setting the index.Code:public void newItemList(int ItemId, String ItemName, String ItemDescription, double ShopValue, double LowAlch, double HighAlch, int Bonuses[]) { // first, search for a free slot int slot = -1; for (int i = 0; i < 20082; i++) { if (ItemList[i] == null) { slot = i; break; } } if(slot == -1) return; // no free slot found ItemList newItemList = new ItemList(ItemId); newItemList.itemName = ItemName; newItemList.itemDescription = ItemDescription; newItemList.ShopValue = ShopValue; newItemList.LowAlch = LowAlch; newItemList.HighAlch = HighAlch; newItemList.Bonuses = Bonuses; ItemList[slot] = newItemList; }

| « [Delta] owner, admin, mod, hidden, demote commands | Hand Cannon base » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |