Everything posted by BrainDeadGenius
-
Well well well
Still probably can withstand an accident better than the aluminum Fords
-
Well well well
- Control script from within script
- Beginner in RS scripting, Need some help
This tells me you're not changing the name of the script. You will have to overwrite files when you make changes to scripts. But if you don't have a file for each script you've made, then you're not changing the following information on each script. @ScriptManifest(author = "BrainDeadGenius", info = "Unique Script Description for each script by BrainDeadGenius", name = "Unique Script Name for each script", version = 1.0, logo = "") Regarding the code block below, did you change the String[] to your potions? If so, then it's doing the job correctly by pulling the potions out of the bank. If not, and you left it as it is, it'll pull the Bucket of water and Pot of flour from the bank, if the bank has any. String[] requiredItems = {"Bucket of Water", "Pot of flour"};- Beginner in RS scripting, Need some help
Why are you trying to use a vial on an Attack potion that already has 4 doses? Also, don't interact with item IDs. Utilize the names instead. Though item IDs have the possibility to change (albeit, slight), it's just better practice to use the names instead. Since I don't know the core function you're trying to do, I can't help you with that. But here's a better banking method. A little explanation on it though. For some reason, when you're pulling multiple items out of the bank, it'll skip an item or two, and decide not to withdraw it. I have had this happen multiple times and I could not figure out why it was happening. So, it's good practice to always check to make sure you actually withdraw the item you requested to withdraw. Otherwise, you'll null out the script since you won't have that item, or items. String[] requiredItems = {"Bucket of Water", "Pot of flour"}; if (!getBank().isOpen()) { if (!myPlayer().isAnimating()) { new ConditionalSleep(5000) { public boolean condition() throws InterruptedException { return getBank().open(); } }.sleep(); } } else { getBank().depositAll(); if (inventory.isEmpty()) { int bucketOfWater = (int) getBank().getAmount(requiredItems[0]); int potOfFlour = (int) getBank().getAmount(requiredItems[1]); if ((bucketOfWater != 0) && (potOfFlour != 0)) { while (!checkInvAmountItems(requiredItems)) { for (String name : requiredItems) { int bankAmount = (int) getBank().getAmount(name); if (bankAmount < 9) { if (bankAmount != 0) { getBank().withdrawAll(name); } } else { int invCount = (int) inventory.getAmount(name); if (invCount != 9) { getBank().withdraw(name, (9 - invCount)); } } } } // Utilize booleans to tell the script to stop banking and do the next method getBank().close(); } else { log("No more of the required items left."); // Do something to stop the script, or perform another action } } } private boolean checkInvAmountItems(String[] requiredItems) { return inventory.getAmount(requiredItems[0]) > 0 && inventory.getAmount(requiredItems[1]) > 0 && inventory.getAmount(requiredItems[2]) > 0; }- How to make money?
Yeah, can't exactly do that here. It's shift work, and you're on for 12 until that person comes in to relieve you.- How to make money?
5-5 is better. Nights, weekends, holidays. More mulah.- Where's no one there, its the things you do
And the failed English user comes out of the dark again. Making 0 sense as usual.- BrainDead...
You get to walk the plank.- BrainDead...
What now, Pirate Nick?- BrainDead...
Failed to hack 'em properly- BrainDead...
No can do-rino, otherwise I'd have given myself the new rank too- BrainDead...
You in chatbox would disagree with said statement.- BrainDead...
...for new rank. Can confirm support.- I'm just gonna leave this here
Well this thread took a turn I wasn't expecting it to take.- I'm just gonna leave this here
I shall up the game with:- I'm just gonna leave this here
- Lucki is poor now :(
He had to pay extra for the bags required..- building a pc
Says who? Also, who the hell buys AMD?- [SERIOUS][SUGGESTION] New Emoji
No- Rune Essence Portal Help
I'm going to reply to this instead of making a new thread. I've updated the original post and title to indicate the issue. Only happens every so often (could be 15 minutes, or once every 2-4 hours. It depends).- Bot Update - 24 Feb 17
Sarcasm is good. Though rarely do power plants go down unexpectedly.- Juggles & Blitz Partnership
I would assume they'd know better than to transfer ~$4,000 a month via PayPal.- Save Script Runtime Data (Java Class + PHP + MySQL Included)
Doesn't work. Not with the content I have anyway. The BBCode is too messed up.- 10 GAME MUTE IN LEAGUE
Banned from talking to a trash can? Why you mad?