Jump to content

Sir Zotic

Member
  • Content count

    23
  • Joined

  • Last visited

  1. Problem #1 Anyone know how to fix this? it block my way to walk. [url=http://tinypic.com/player.php?v=am2x00%3E&s=8#.UwXydl4fY70]Fishing Npc Spot Video[/url] Problem #2 ]I found 1 problem about Pack Yak. I summon it and try to store it gave this error. [code]Pack_Yak(6873, 12093, 12435, 30, FamiliarType.BOB, 30, 10, true, "Winter Storage", "Baroo baroo!", new FamiliarSpecial() { [MENTION=15855]Over[/MENTION]ride public void execute(Object... arguments) { if(((Player) arguments[0]).getSummoning().familiarSpecialEnergy >= 15) { ((Player) arguments[0]).getPA().sendString(":moi: 24000", 50000); ((Player) arguments[0]).sendMessage("Please select the item you would like to send to your bank!"); } else { ((Player) arguments[0]).sendMessage("Your familiar has "+((Player) arguments[0]).getSummoning().familiarSpecialEnergy+" special energy left and needs 15.."); } }});[/code] [code]java.lang.NullPointerException at src.Client.method119(Client.java:12940) at src.Client.drawGameScreen(Client.java:11531) at src.Client.processDrawing(Client.java:12523) at src.RSApplet.run(RSApplet.java:206) at src.Client.run(Client.java:7822) at java.lang.Thread.run(Thread.java:744)[/code]
  2. Anyone know how to fix the GE collect item for cash?
  3. [quote name='hend5681']I posted this in my C: drive and it still says CONNECTION ERROR - RETRYING IN 10... 9... 8... What am I doing wrong?[/QUOTE] change the ip on client side.
  4. [img]http://www.upload.ee/image/3817691/Screen_Shot_2014-01-10_at_11.34.28_pm.png[/img] It only work on item but we try to collect our cash wont work. Here are my Code [code] /** * Item collecting */ public void collectItem(int i, String type) { int itemId = 0; if(type == "Sell") { if(i == 1) { if(sellers[Slots[selectedSlot]] == null) { return; } itemId = sellers[Slots[selectedSlot]].itemOne; if(ItemDefinition.forId(itemId). itemIsNote) itemId -= 1; if(c.getItems().freeSlots() == 0) { c.sendMessage("You don't have enough inventory space."); return; } if(itemId >= 996 && itemId <= 1004) { itemId = 995; } if(sellers[Slots[selectedSlot]].itemOneAmount <= 0) { return; } if(c.getItems().freeSlots() > 0 && !ItemDefinition.forId(itemId). itemStackable) { c.getItems().addItem(itemId, sellers[Slots[selectedSlot]].itemOneAmount); sellers[Slots[selectedSlot]].itemOneAmount = 0; } if(c.getItems().freeSlots() > 0 && !ItemDefinition.forId(itemId). itemStackable) { if(ItemDefinition.forId(itemId+1). itemIsNote) { itemId += 1; } else { return; } c.getItems().addItem(itemId, sellers[Slots[selectedSlot]].itemOneAmount); sellers[Slots[selectedSlot]].itemOneAmount = 0; } boolean save = true; if(sellers[Slots[selectedSlot]].itemOneAmount == 0 && sellers[Slots[selectedSlot]].itemTwoAmount == 0 && sellers[Slots[selectedSlot]].updatedAmount != 0) { sellers[Slots[selectedSlot]].updated = false; } if(sellers[Slots[selectedSlot]].itemOneAmount == 0 && sellers[Slots[selectedSlot]].itemTwoAmount == 0 && sellers[Slots[selectedSlot]].updatedAmount == 0) { deleteFile("Data/GrandExchange/Sellers/"+Slots[selectedSlot]+""); sellers[Slots[selectedSlot]].itemId = 0; sellers[Slots[selectedSlot]].amount = 0; sellers[Slots[selectedSlot]].updatedAmount = 0; sellers[Slots[selectedSlot]].price = 0; sellers[Slots[selectedSlot]].percentage = 0; sellers[Slots[selectedSlot]].slot = 0; sellers[Slots[selectedSlot]].itemOne = 0; sellers[Slots[selectedSlot]].itemTwo = 0; sellers[Slots[selectedSlot]].itemOneAmount = 0; sellers[Slots[selectedSlot]].itemTwoAmount = 0; sellers[Slots[selectedSlot]].total = 0; sellers[Slots[selectedSlot]].totalGp = 0; sellers[Slots[selectedSlot]].aborted = false; sellers[Slots[selectedSlot]].completed = false; sellers[Slots[selectedSlot]].updated = false; sellers[Slots[selectedSlot]].owner = ""; sellers[Slots[selectedSlot]] = null; Slots[selectedSlot] = 0; SlotType[selectedSlot] = 0; openGrandExchange(true); save = false; } if(save) { saveOffer(Slots[selectedSlot], "Sell"); } recievedMessage = false; PlayerSave.saveGame(c); openCollect(selectedSlot, false); } if(i == 2) { if(sellers[Slots[selectedSlot]] == null) { return; } itemId = sellers[Slots[selectedSlot]].itemTwo; if(ItemDefinition.forId(itemId). itemIsNote) itemId -= 1; if(c.getItems().freeSlots() == 0) { c.sendMessage("You don't have enough inventory space."); return; } if(itemId >= 996 && itemId <= 1004) { itemId = 995; } if(sellers[Slots[selectedSlot]].itemTwoAmount <= 0) { return; } if(c.getItems().freeSlots() > 0 && ItemDefinition.forId(itemId). itemStackable) { c.getItems().addItem(itemId, sellers[Slots[selectedSlot]].itemTwoAmount); sellers[Slots[selectedSlot]].itemTwoAmount = 0; } if(c.getItems().freeSlots() > 0 && !ItemDefinition.forId(itemId). itemStackable) { if(ItemDefinition.forId(itemId+1). itemIsNote) { itemId += 1; } else { return; } c.getItems().addItem(itemId, sellers[Slots[selectedSlot]].itemTwoAmount); sellers[Slots[selectedSlot]].itemTwoAmount = 0; } boolean save = true; if(sellers[Slots[selectedSlot]].itemOneAmount == 0 && sellers[Slots[selectedSlot]].itemTwoAmount == 0 && sellers[Slots[selectedSlot]].updatedAmount != 0) { sellers[Slots[selectedSlot]].updated = false; } if(sellers[Slots[selectedSlot]].itemOneAmount == 0 && sellers[Slots[selectedSlot]].itemTwoAmount == 0 && sellers[Slots[selectedSlot]].updatedAmount == 0) { deleteFile("Data/GrandExchange/Sellers/"+Slots[selectedSlot]+""); sellers[Slots[selectedSlot]].id = 0; sellers[Slots[selectedSlot]].itemId = 0; sellers[Slots[selectedSlot]].amount = 0; sellers[Slots[selectedSlot]].updatedAmount = 0; sellers[Slots[selectedSlot]].price = 0; sellers[Slots[selectedSlot]].percentage = 0; sellers[Slots[selectedSlot]].slot = 0; sellers[Slots[selectedSlot]].total = 0; sellers[Slots[selectedSlot]].totalGp = 0; sellers[Slots[selectedSlot]].itemOne = 0; sellers[Slots[selectedSlot]].itemTwo = 0; sellers[Slots[selectedSlot]].itemOneAmount = 0; sellers[Slots[selectedSlot]].itemTwoAmount = 0; sellers[Slots[selectedSlot]].aborted = false; sellers[Slots[selectedSlot]].completed = false; sellers[Slots[selectedSlot]].updated = false; sellers[Slots[selectedSlot]].owner = ""; sellers[Slots[selectedSlot]] = null; Slots[selectedSlot] = 0; SlotType[selectedSlot] = 0; openGrandExchange(true); save = false; } if(save) { saveOffer(Slots[selectedSlot], "Sell"); } recievedMessage = false; PlayerSave.saveGame(c); openCollect(selectedSlot, false); } } if(type == "Buy") { if(i == 1) { if(buyers[Slots[selectedSlot]] == null) { return; } itemId = buyers[Slots[selectedSlot]].itemOne; if(ItemDefinition.forId(itemId). itemIsNote) itemId -= 1; if(c.getItems().freeSlots() == 0) { c.sendMessage("You don't have enough inventory space."); return; } if(itemId >= 996 && itemId <= 1004) { itemId = 995; } if(buyers[Slots[selectedSlot]].itemOneAmount <= 0) { return; } if(c.getItems().freeSlots() > 0 && ItemDefinition.forId(itemId). itemStackable) { c.getItems().addItem(itemId, buyers[Slots[selectedSlot]].itemOneAmount); buyers[Slots[selectedSlot]].itemOneAmount = 0; } if(c.getItems().freeSlots() > 0 && !ItemDefinition.forId(itemId). itemStackable) { if(ItemDefinition.forId(itemId+1). itemIsNote) { itemId += 1; } else { return; } c.getItems().addItem(itemId, buyers[Slots[selectedSlot]].itemOneAmount); buyers[Slots[selectedSlot]].itemOneAmount = 0; } boolean save = true; if(buyers[Slots[selectedSlot]].itemOneAmount == 0 && buyers[Slots[selectedSlot]].itemTwoAmount == 0 && buyers[Slots[selectedSlot]].updatedAmount != 0) { buyers[Slots[selectedSlot]].updated = false; } if(buyers[Slots[selectedSlot]].itemOneAmount == 0 && buyers[Slots[selectedSlot]].itemTwoAmount == 0 && buyers[Slots[selectedSlot]].updatedAmount == 0) { deleteFile("Data/GrandExchange/Buyers/"+Slots[selectedSlot]+""); buyers[Slots[selectedSlot]].id = 0; buyers[Slots[selectedSlot]].itemId = 0; buyers[Slots[selectedSlot]].amount = 0; buyers[Slots[selectedSlot]].updatedAmount = 0; buyers[Slots[selectedSlot]].price = 0; buyers[Slots[selectedSlot]].percentage = 0; buyers[Slots[selectedSlot]].slot = 0; buyers[Slots[selectedSlot]].itemOne = 0; buyers[Slots[selectedSlot]].itemTwo = 0; buyers[Slots[selectedSlot]].itemOneAmount = 0; buyers[Slots[selectedSlot]].itemTwoAmount = 0; buyers[Slots[selectedSlot]].total = 0; buyers[Slots[selectedSlot]].totalGp = 0; buyers[Slots[selectedSlot]].aborted = false; buyers[Slots[selectedSlot]].completed = false; buyers[Slots[selectedSlot]].updated = false; buyers[Slots[selectedSlot]].owner = ""; buyers[Slots[selectedSlot]] = null; Slots[selectedSlot] = 0; SlotType[selectedSlot] = 0; openGrandExchange(true); save = false; } if(save) { saveOffer(Slots[selectedSlot], "Buy"); } recievedMessage = false; PlayerSave.saveGame(c); openCollect(selectedSlot, false); } if(i == 2) { if(buyers[Slots[selectedSlot]] == null) { return; } itemId = buyers[Slots[selectedSlot]].itemTwo; if(ItemDefinition.forId(itemId). itemIsNote) itemId -= 1; if(c.getItems().freeSlots() == 0) { c.sendMessage("You don't have enough inventory space."); return; } if(itemId >= 996 && itemId <= 1004) { itemId = 995; } if(buyers[Slots[selectedSlot]].itemTwoAmount <= 0) { return; } if(c.getItems().freeSlots() > 0 && ItemDefinition.forId(itemId). itemStackable) { c.getItems().addItem(itemId, buyers[Slots[selectedSlot]].itemTwoAmount); buyers[Slots[selectedSlot]].itemTwoAmount = 0; } if(c.getItems().freeSlots() > 0 && !ItemDefinition.forId(itemId). itemStackable) { if(ItemDefinition.forId(itemId+1). itemIsNote) { itemId += 1; } else { return; } c.getItems().addItem(itemId, buyers[Slots[selectedSlot]].itemTwoAmount); buyers[Slots[selectedSlot]].itemTwoAmount = 0; } boolean save = true; if(buyers[Slots[selectedSlot]].itemOneAmount == 0 && buyers[Slots[selectedSlot]].itemTwoAmount == 0 && buyers[Slots[selectedSlot]].updatedAmount != 0) { buyers[Slots[selectedSlot]].updated = false; } if(buyers[Slots[selectedSlot]].itemOneAmount == 0 && buyers[Slots[selectedSlot]].itemTwoAmount == 0 && buyers[Slots[selectedSlot]].updatedAmount == 0) { deleteFile("Data/GrandExchange/Buyers/"+Slots[selectedSlot]+""); buyers[Slots[selectedSlot]].id = 0; buyers[Slots[selectedSlot]].itemId = 0; buyers[Slots[selectedSlot]].amount = 0; buyers[Slots[selectedSlot]].updatedAmount = 0; buyers[Slots[selectedSlot]].price = 0; buyers[Slots[selectedSlot]].percentage = 0; buyers[Slots[selectedSlot]].slot = 0; buyers[Slots[selectedSlot]].itemOne = 0; buyers[Slots[selectedSlot]].itemTwo = 0; buyers[Slots[selectedSlot]].itemOneAmount = 0; buyers[Slots[selectedSlot]].itemTwoAmount = 0; buyers[Slots[selectedSlot]].total = 0; buyers[Slots[selectedSlot]].totalGp = 0; buyers[Slots[selectedSlot]].aborted = false; buyers[Slots[selectedSlot]].completed = false; buyers[Slots[selectedSlot]].updated = false; buyers[Slots[selectedSlot]].owner = ""; buyers[Slots[selectedSlot]] = null; Slots[selectedSlot] = 0; SlotType[selectedSlot] = 0; openGrandExchange(true); save = false; } if(save) { saveOffer(Slots[selectedSlot], "Buy"); } recievedMessage = false; PlayerSave.saveGame(c); openCollect(selectedSlot, false); } } }[/code] [code] /** * Button click */ public void buttonClick(int buttonId) { switch(buttonId) { case 95185: selectedSlot = 1; openInterface("Buy"); break; case 95191: selectedSlot = 1; openInterface("Sell"); break; case 95203: selectedSlot = 2; openInterface("Buy"); break; case 95206: selectedSlot = 2; openInterface("Sell"); break; case 95194: selectedSlot = 3; openInterface("Buy"); break; case 95209: selectedSlot = 3; openInterface("Sell"); break; case 95188: selectedSlot = 4; openInterface("Buy"); break; case 95212: selectedSlot = 4; openInterface("Sell"); break; case 95197: selectedSlot = 5; openInterface("Buy"); break; case 95215: selectedSlot = 5; openInterface("Sell"); break; case 95200: selectedSlot = 6; openInterface("Buy"); break; case 95218: selectedSlot = 6; openInterface("Sell"); break; case 96078: c.sendConfig(6, -1, -1, -1); break; case 96174: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } completeOffer("Sell"); break; case 96074: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } completeOffer("Buy"); break; case 96082: case 96182: c.getPA().showInterface(24500); break; case 96030: case 96130: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 0) { selectedAmount--; updateGE(selectedItemId, selectedPrice); } break; case 96034: case 96134: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 2147483647) { selectedAmount++; updateGE(selectedItemId, selectedPrice); } break; case 96038: case 96138: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 2147483647) { selectedAmount++; updateGE(selectedItemId, selectedPrice); } break; case 96042: case 96142: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long a = selectedAmount; long total = a+10; if(total < 2147483647) { selectedAmount += 10; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96046: case 96146: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long l = selectedAmount; long t = l+100; if(t < 2147483647) { selectedAmount += 100; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96050: case 96150: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long h = selectedAmount; long d = h+1000; if(d < 2147483647) { selectedAmount += 1000; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96058: case 96158: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedPrice != 1) { selectedPrice *= 0.95; updateGE(selectedItemId, selectedPrice); if(selectedPrice < 1) { selectedPrice = 1; updateGE(selectedItemId, selectedPrice); } } break; case 96070: case 96170: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long k = selectedPrice; k *= 1.05; if(k <= 2147483647) { selectedPrice *= 1.05; if(selectedPrice < 21) selectedPrice++; updateGE(selectedItemId, selectedPrice); } else { selectedPrice = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96062: case 96162: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } selectedPrice = c.getShops().getItemShopValue(selectedItemId); updateGE(selectedItemId, selectedPrice); break; case 96086: case 96186: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } selectedPrice--; if(selectedPrice == 0) selectedPrice = 1; updateGE(selectedItemId, selectedPrice); break; case 96089: case 96189: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedPrice != 2147483647) { selectedPrice++; updateGE(selectedItemId, selectedPrice); } else { selectedPrice = 2147483647; } break; case 95223: selectedSlot = 1; openCollect(selectedSlot, true); break; case 95227: selectedSlot = 2; openCollect(selectedSlot, true); break; case 95231: selectedSlot = 3; openCollect(selectedSlot, true); break; case 95235: selectedSlot = 4; openCollect(selectedSlot, true); break; case 95239: selectedSlot = 5; openCollect(selectedSlot, true); break; case 95243: selectedSlot = 6; openCollect(selectedSlot, true); break; case 213230: case 209254: openGrandExchange(true); break; case 95221: abortOffer(1, true); break; case 95225: abortOffer(2, true); break; case 95229: abortOffer(3, true); break; case 95233: abortOffer(4, true); break; case 95237: abortOffer(5, true); break; case 95241: abortOffer(6, true); break; case 214016: case 210040: abortOffer(selectedSlot, true); openCollect(selectedSlot, false); break; } } [/code]
  5. When i click the money it does not work.... Anyone know the packet id for it? [img]http://www.upload.ee/image/3817691/Screen_Shot_2014-01-10_at_11.34.28_pm.png[/img] [code] /** * Button click */ public void buttonClick(int buttonId) { switch(buttonId) { case 95185: selectedSlot = 1; openInterface("Buy"); break; case 95191: selectedSlot = 1; openInterface("Sell"); break; case 95203: selectedSlot = 2; openInterface("Buy"); break; case 95206: selectedSlot = 2; openInterface("Sell"); break; case 95194: selectedSlot = 3; openInterface("Buy"); break; case 95209: selectedSlot = 3; openInterface("Sell"); break; case 95188: selectedSlot = 4; openInterface("Buy"); break; case 95212: selectedSlot = 4; openInterface("Sell"); break; case 95197: selectedSlot = 5; openInterface("Buy"); break; case 95215: selectedSlot = 5; openInterface("Sell"); break; case 95200: selectedSlot = 6; openInterface("Buy"); break; case 95218: selectedSlot = 6; openInterface("Sell"); break; case 96078: c.sendConfig(6, -1, -1, -1); break; case 96174: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } completeOffer("Sell"); break; case 96074: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } completeOffer("Buy"); break; case 96082: case 96182: c.getPA().showInterface(24500); break; case 96030: case 96130: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 0) { selectedAmount--; updateGE(selectedItemId, selectedPrice); } break; case 96034: case 96134: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 2147483647) { selectedAmount++; updateGE(selectedItemId, selectedPrice); } break; case 96038: case 96138: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 2147483647) { selectedAmount++; updateGE(selectedItemId, selectedPrice); } break; case 96042: case 96142: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long a = selectedAmount; long total = a+10; if(total < 2147483647) { selectedAmount += 10; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96046: case 96146: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long l = selectedAmount; long t = l+100; if(t < 2147483647) { selectedAmount += 100; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96050: case 96150: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long h = selectedAmount; long d = h+1000; if(d < 2147483647) { selectedAmount += 1000; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96058: case 96158: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedPrice != 1) { selectedPrice *= 0.95; updateGE(selectedItemId, selectedPrice); if(selectedPrice < 1) { selectedPrice = 1; updateGE(selectedItemId, selectedPrice); } } break; case 96070: case 96170: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long k = selectedPrice; k *= 1.05; if(k <= 2147483647) { selectedPrice *= 1.05; if(selectedPrice < 21) selectedPrice++; updateGE(selectedItemId, selectedPrice); } else { selectedPrice = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96062: case 96162: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } selectedPrice = c.getShops().getItemShopValue(selectedItemId); updateGE(selectedItemId, selectedPrice); break; case 96086: case 96186: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } selectedPrice--; if(selectedPrice == 0) selectedPrice = 1; updateGE(selectedItemId, selectedPrice); break; case 96089: case 96189: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedPrice != 2147483647) { selectedPrice++; updateGE(selectedItemId, selectedPrice); } else { selectedPrice = 2147483647; } break; case 95223: selectedSlot = 1; openCollect(selectedSlot, true); break; case 95227: selectedSlot = 2; openCollect(selectedSlot, true); break; case 95231: selectedSlot = 3; openCollect(selectedSlot, true); break; case 95235: selectedSlot = 4; openCollect(selectedSlot, true); break; case 95239: selectedSlot = 5; openCollect(selectedSlot, true); break; case 95243: selectedSlot = 6; openCollect(selectedSlot, true); break; case 213230: case 209254: openGrandExchange(true); break; case 95221: abortOffer(1, true); break; case 95225: abortOffer(2, true); break; case 95229: abortOffer(3, true); break; case 95233: abortOffer(4, true); break; case 95237: abortOffer(5, true); break; case 95241: abortOffer(6, true); break; case 214016: case 210040: abortOffer(selectedSlot, true); openCollect(selectedSlot, false); break; } }[/code]
  6. [quote name='nexonian']You're gonna have to edit the clicking buttons i think, so when you click interface button > get cash[/QUOTE] [code] /** * Button click */ public void buttonClick(int buttonId) { switch(buttonId) { case 95185: selectedSlot = 1; openInterface("Buy"); break; case 95191: selectedSlot = 1; openInterface("Sell"); break; case 95203: selectedSlot = 2; openInterface("Buy"); break; case 95206: selectedSlot = 2; openInterface("Sell"); break; case 95194: selectedSlot = 3; openInterface("Buy"); break; case 95209: selectedSlot = 3; openInterface("Sell"); break; case 95188: selectedSlot = 4; openInterface("Buy"); break; case 95212: selectedSlot = 4; openInterface("Sell"); break; case 95197: selectedSlot = 5; openInterface("Buy"); break; case 95215: selectedSlot = 5; openInterface("Sell"); break; case 95200: selectedSlot = 6; openInterface("Buy"); break; case 95218: selectedSlot = 6; openInterface("Sell"); break; case 96078: c.sendConfig(6, -1, -1, -1); break; case 96174: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } completeOffer("Sell"); break; case 96074: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } completeOffer("Buy"); break; case 96082: case 96182: c.getPA().showInterface(24500); break; case 96030: case 96130: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 0) { selectedAmount--; updateGE(selectedItemId, selectedPrice); } break; case 96034: case 96134: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 2147483647) { selectedAmount++; updateGE(selectedItemId, selectedPrice); } break; case 96038: case 96138: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 2147483647) { selectedAmount++; updateGE(selectedItemId, selectedPrice); } break; case 96042: case 96142: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long a = selectedAmount; long total = a+10; if(total < 2147483647) { selectedAmount += 10; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96046: case 96146: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long l = selectedAmount; long t = l+100; if(t < 2147483647) { selectedAmount += 100; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96050: case 96150: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long h = selectedAmount; long d = h+1000; if(d < 2147483647) { selectedAmount += 1000; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96058: case 96158: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedPrice != 1) { selectedPrice *= 0.95; updateGE(selectedItemId, selectedPrice); if(selectedPrice < 1) { selectedPrice = 1; updateGE(selectedItemId, selectedPrice); } } break; case 96070: case 96170: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long k = selectedPrice; k *= 1.05; if(k <= 2147483647) { selectedPrice *= 1.05; if(selectedPrice < 21) selectedPrice++; updateGE(selectedItemId, selectedPrice); } else { selectedPrice = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96062: case 96162: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } selectedPrice = c.getShops().getItemShopValue(selectedItemId); updateGE(selectedItemId, selectedPrice); break; case 96086: case 96186: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } selectedPrice--; if(selectedPrice == 0) selectedPrice = 1; updateGE(selectedItemId, selectedPrice); break; case 96089: case 96189: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedPrice != 2147483647) { selectedPrice++; updateGE(selectedItemId, selectedPrice); } else { selectedPrice = 2147483647; } break; case 95223: selectedSlot = 1; openCollect(selectedSlot, true); break; case 95227: selectedSlot = 2; openCollect(selectedSlot, true); break; case 95231: selectedSlot = 3; openCollect(selectedSlot, true); break; case 95235: selectedSlot = 4; openCollect(selectedSlot, true); break; case 95239: selectedSlot = 5; openCollect(selectedSlot, true); break; case 95243: selectedSlot = 6; openCollect(selectedSlot, true); break; case 213230: case 209254: openGrandExchange(true); break; case 95221: abortOffer(1, true); break; case 95225: abortOffer(2, true); break; case 95229: abortOffer(3, true); break; case 95233: abortOffer(4, true); break; case 95237: abortOffer(5, true); break; case 95241: abortOffer(6, true); break; case 214016: case 210040: abortOffer(selectedSlot, true); openCollect(selectedSlot, false); break; } }[/code]
  7. [quote name='nexonian']I have no idea how your guys' code works, but I'm pretty sure you guys have to add the code to "replace *bagicon* with *item*"[/QUOTE] Nvm...i fix it [img]http://www.upload.ee/image/3817324/fix.png[/img] [img]http://www.upload.ee/image/3817691/Screen_Shot_2014-01-10_at_11.34.28_pm.png[/img] But now 1 bug problem. When we receive the item we sell and we want to click our cash back it wont work.
  8. [quote name='storm powner']i didint fix it, otherwise i wouldnt ask if you fixed it :P[/QUOTE] i think it around Sell method. [code] public void openGrandExchange(boolean open) { for(int i = 1; i < Slots.length; i++) { if(Slots[i] != 0) { if(sellers[Slots[i]] != null && sellers[Slots[i]].owner.equalsIgnoreCase(c.playerName) && sellers[Slots[i]].slot == i) { if(sellers[Slots[i]].completed) { c.sendConfig(5, i, 5, -1); } else { c.sendConfig(5, i, 3, -1); } int k = i*2; k += 24565; c.getPA().sendFrame34(sellers[Slots[i]].itemId, 0, k, sellers[Slots[i]].amount); c.getPA().sendFrame126(""+c.getItems().getItemName(sellers[Slots[i]].itemId)+"", 32000+i); c.getPA().sendFrame126(Misc.format(sellers[Slots[i]].price)+" gp", 33000+i); if(sellers[Slots[i]].amount != 1) { c.getPA().sendFrame126(""+intToKOrMil(sellers[Slots[i]].amount), 33100+i); } else { c.getPA().sendFrame126("", 33100+i); } if(sellers[Slots[i]].aborted) { updateBar("Red", "Sell", Slots[i], i, c); } else { updateBar("Green", "Sell", Slots[i], i, c); } } else if(buyers[Slots[i]] != null && buyers[Slots[i]].owner.equalsIgnoreCase(c.playerName) && buyers[Slots[i]].slot == i) { if(buyers[Slots[i]].completed) { c.sendConfig(5, i, 6, -1); } else { c.sendConfig(5, i, 4, -1); } int k = i*2; k += 24565; c.getPA().sendFrame34(buyers[Slots[i]].itemId, 0, k, buyers[Slots[i]].amount); c.getPA().sendFrame126(""+c.getItems().getItemName(buyers[Slots[i]].itemId)+"", 32000+i); c.getPA().sendFrame126(Misc.format(buyers[Slots[i]].price)+" gp", 33000+i); if(buyers[Slots[i]].amount != 1) { c.getPA().sendFrame126(""+intToKOrMil(buyers[Slots[i]].amount), 33100+i); } else { c.getPA().sendFrame126("", 33100+i); } if(buyers[Slots[i]].aborted) { updateBar("Red", "Buy", Slots[i], i, c); } else { updateBar("Green", "Buy", Slots[i], i, c); } } } else { c.sendConfig(4, i, 3, -1); int k = i*2; k += 24565; c.getPA().sendFrame34(-1, 0, k, 1); c.getPA().sendFrame126("", 33000+i); c.getPA().sendFrame126("", 32000+i); c.getPA().sendFrame126("", 33100+i); } } if(open) { c.getPA().showInterface(24500); recievedMessage = false; } }[/code]
  9. [quote name='storm powner']did you fix this: [IMG]http://i41.tinypic.com/2mqw2op.png[/IMG] it should display thse for sell and buy, but it isnt: [IMG]http://i43.tinypic.com/sndro1.png[/IMG][/QUOTE] i have same problem as you..you fix it?
  10. [quote name='storm powner']im not saying equipment.java i say the file that handles all the items to equip them aka wearitem.java (much spoonfeed)[/QUOTE] found it :)
  11. [quote name='nexonian']where do you see equipitem? i think the problem may be that you may have CHANGED the writing to say offer, but it still uses the same command as EQUIP. Go into your clickingbuttons.java and check it out[/QUOTE] this is the code on clickingbuttons.java [code] case 95185: case 95191: case 95203: case 95206: case 95194: case 95209: case 95188: case 95212: case 95197: case 95215: case 95200: case 95218: case 96078: case 96174: case 96074: case 96082: case 96182: case 96030: case 96130: case 96034: case 96134: case 96038: case 96138: case 96042: case 96142: case 96046: case 96146: case 96050: case 96150: case 96058: case 96158: case 96070: case 96170: case 96062: case 96162: case 96086: case 96186: case 96089: case 96189: case 95223: case 95227: case 95231: case 95235: case 95239: case 95243: case 213230: case 209254: case 95221: case 95225: case 95229: case 95233: case 95237: case 95241: case 214016: case 210040: p.GE().buttonClick(buttonId); break;[/code] [quote name='storm powner']thats what i'm saying equipitem, when you click it it equips it, means you have to lole at the equipitem handler :P[/QUOTE] There no equipment.java
  12. I need 1 big help with this. When you go to sell something it equips the item and closes all of the screens. Look at my video Problem. [url]http://tinypic.com/player.php?v=1zwkco8&s=5[/url] [CODE] public void sellItems() { int x = selectedAmount; int y = firstItemStacked(selectedItemId); int z = secondItemStacked(selectedItemId); long l = firstItemStacked; long g = secondItemStacked; long o = l+g; if(removeGrandExchangeItems(x, y, z, firstItemStacked, secondItemStacked, o)) { final int s = selectedSlot; int b = selectedSlot; int i = newOffer("Sell", selectedItemId, selectedAmount, selectedAmount, selectedPrice, 0, c.playerName, false, b); c.getItems().deleteItem2(selectedItemId, selectedAmount); if(i == -1) { c.getItems().addItem(selectedItemId, selectedAmount); c.sendMessage("To many offers, please try again later."); return; } openGrandExchange(true); c.sendConfig(4, b, 1, -1); c.sendConfig(5, b, 1, -1); int k = b*2; k += 24565; c.getPA().sendFrame34(selectedItemId, 0, k, selectedAmount); sellItems(i, c.playerName); CycleEventHandler.getInstance().addEvent(c, new CycleEvent() { public void execute(CycleEventContainer container) { container.stop(); } @Override public void stop() { c.sendConfig(5, s, 3, -1); } }, 2); PlayerSave.saveGame(c); } }[/CODE]
  13. Nvm..solve it with eclipse :D but grand Exchange having problem..and :: players keep showing 0 Look [url]http://tinypic.com/player.php?v=1zwkco8&s=5[/url]
×