^ Anyone? ^
|
Code:public void resetShop(int ShopID) { synchronized (c) { int TotalItems = 0; for (int i = 0; i < Server.shopHandler.MaxShopItems; i++) { if (Server.shopHandler.ShopItems[ShopID][i] > 0) { TotalItems++; } } if (TotalItems > Server.shopHandler.MaxShopItems) { TotalItems = Server.shopHandler.MaxShopItems; } c.getOutStream().createFrameVarSizeWord(53); c.getOutStream().writeWord(3900); c.getOutStream().writeWord(TotalItems); int TotalCount = 0; for (int i = 0; i < Server.shopHandler.ShopItems.length; i++) { if (Server.shopHandler.ShopItems[ShopID][i] > 0 || i <= Server.shopHandler.ShopItemsStandard[ShopID]) { if (Server.shopHandler.ShopItemsN[ShopID][i] > 254) { c.getOutStream().writeByte(255); if (c.myShopId == ##){ c.getOutStream().writeDWord_v2(0); } else { c.getOutStream().writeDWord_v2(Server.shopHandler.ShopItemsN[ShopID][i]); } } else { c.getOutStream().writeByte(Server.shopHandler.ShopItemsN[ShopID][i]); } if (Server.shopHandler.ShopItems[ShopID][i] > Config.ITEM_LIMIT || Server.shopHandler.ShopItems[ShopID][i] < 0) { Server.shopHandler.ShopItems[ShopID][i] = Config.ITEM_LIMIT; } c.getOutStream().writeWordBigEndianA(Server.shopHandler.ShopItems[ShopID][i]); TotalCount++; } if (TotalCount > TotalItems) { break; } } c.getOutStream().endFrameVarSizeWord(); c.flushOutStream(); } }
Where can i put the infinity.png? inside cache folder?
i have issue with theCode:public void resetShop(int ShopID) { // synchronized (c) { int TotalItems = 0; for (int i = 0; i < ShopHandler.MaxShopItems; i++) { if (ShopHandler.ShopItems[ShopID][i] > 0) { TotalItems++; } } if (TotalItems > ShopHandler.MaxShopItems) { TotalItems = ShopHandler.MaxShopItems; } if (ShopID == 80) { c.getPA().sendFrame171(0, 64017); c.getPA().sendFrame126("Bounties: " + Misc.insertCommas(Integer.toString(c.getBH().getBounties())), 64019); } else { c.getPA().sendFrame171(1, 64017); } c.getOutStream().createFrameVarSizeWord(53); c.getOutStream().writeWord(64016); c.getOutStream().writeWord(TotalItems); int TotalCount = 0; for (int i = 0; i < ShopHandler.ShopItems.length; i++) { if (ShopHandler.ShopItems[ShopID][i] > 0 || i <= ShopHandler.ShopItemsStandard[ShopID]) { if (ShopHandler.ShopItemsN[ShopID][i] > 254) { c.getOutStream().writeByte(255); c.getOutStream().writeDWord_v2(ShopHandler.ShopItemsN[ShopID][i]); } else { c.getOutStream().writeByte(ShopHandler.ShopItemsN[ShopID][i]); } if (ShopHandler.ShopItems[ShopID][i] > Config.ITEM_LIMIT || ShopHandler.ShopItems[ShopID][i] < 0) { ShopHandler.ShopItems[ShopID][i] = Config.ITEM_LIMIT; } c.getOutStream().writeWordBigEndianA(ShopHandler.ShopItems[ShopID][i]); TotalCount++; } if (TotalCount > TotalItems) { break; } } c.getOutStream().endFrameVarSizeWord(); c.flushOutStream(); // } }
Code:c.getOutStream().writeByte(0);
anyone has this for ruse?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |