-
Posts
5883 -
Joined
-
Last visited
-
Days Won
18 -
Feedback
100%
Everything posted by Botre
-
Here are some minor ideas: Int minimumXSuppliesToHaveInInventory; Boolean containsminimumXSuppliesFor; (this would avoid walking away from the bank with only let's say 5 casts to a combat spot only to return banking after those 5 casts) Int amountofcaststowithdrawwhenbelowminimum; Logic for banking (when bank is open). if (usemagic && !manager.containsminimumXSuppliesFor(MagicSpell.usedSpell, usedStaff)) { int idspecificrunetowithdraw = ?; // what if there are multiple types to withdraw? Array? int amountofpecificrunetowithdrawfor1spell = ? int withdrawamount = idspecificrunetowithdraw * amountofpecificrunetowithdrawfor1spell * amountofcaststowithdrawwhenbelowminimum; bank.withdrawX(specificrunetowithdraw, withdrawamount); }
-
I'm looking for... Area(nameofarea).color() ;D Basicly color all the tiles/positions inside an area without the use of an array. I'm working on a little tool: Stand anywhere in runescape, press x + or - and/or y + or - on the GUI, this would build/draw an area (using your player's coordinates for the bottom left corner coordinate) which is printed when you stop the script (will implement a print button later), but atm it's pretty much worthless considering it lacks proper visualization (I currently have a prototype that draws 4 corner, this works for smaller areas but becomes inefficient for larger ones). The output is in Osbot area format.
-
Going to replace my messy lines with these cheers! Edit: holy s** just noticed howmany spell it supports now, dayum
-
I was looking for a method that doesn't rely on the use of an array.
-
I already knew how to colorize a single tile, and I could just colorize the area by colorizing each position from that area but I was looking for something more direct if you know what I mean ^^
-
The max amount of 07 GP you would trust the person above you with.
Botre replied to domdom's topic in Spam/Off Topic
200k (join date & pc) -
I wish I wasn't out of likes.
-
attentionwhore
-
I'm working on some other stuff, this works for me as it is now. However, if you have the time and will to do it please do Will gladly replace my messy code with a neater enum version ;)
-
Seems like that would be a nice improvement indeed old sport.
-
They could be but they are not. Feel free to explain me why I should change them
-
EDIT: for an improved version of this by go > here <. Hi, have been working on some magic combat scripts, here are some "spell manager" methods I made. These only support strike spells and air staff but are easily expandable, I just haven't because I never needed anything else. Constructive feedback is appreciated, feel free to use these as you wish, credit appreciated tho Variables: ArrayList<Integer> spellmanagerRuneType = new ArrayList<Integer>(5); String spellname = "Fire_strike"; String stafftype = "Air"; Boolean usestaff = true; int spellspertrip = 100; To find out which runes are required for your selected spell: spellmanagerRuneType = magicRuneTypeManager(spellname, usestaff, stafftype); public ArrayList<Integer> magicRuneTypeManager(String spell, Boolean useStaff, String staff) { ArrayList<Integer> runes = new ArrayList<Integer>(); int firerune = 554; int waterrune = 555; int airrune = 556; int earthrune = 557; int mindrune = 558; if (useStaff = true) { if (staff == "Air") { if (spell == "Wind_strike") { runes.add(mindrune); } if (spell == "Water_strike") { runes.add(mindrune); runes.add(waterrune); } if (spell == "Earth_strike") { runes.add(mindrune); runes.add(earthrune); } if (spell == "Fire_strike") { runes.add(mindrune); runes.add(firerune); } } } else { if (spell == "Wind_strike") { runes.add(airrune); runes.add(mindrune); } if (spell == "Water_strike") { runes.add(airrune); runes.add(mindrune); runes.add(waterrune); } if (spell == "Earth_strike") { runes.add(airrune); runes.add(mindrune); runes.add(earthrune); } if (spell == "Fire_strike") { runes.add(airrune); runes.add(mindrune); runes.add(firerune); } } return runes; } To check if you have the required amount of runes in your inventory for at least 1 cast, if not: initiate your banker method: int j = 0; while (spellmanagerRuneType.size() > j) { int runesfor1spell = magicRuneAmountManager(spellname, spellmanagerRuneType.get(j)) * 1; if (!(this.client.getInventory().getAmount( spellmanagerRuneType.get(j)) >= runesfor1spell)) { banker(); } else { j++; } } public Integer magicRuneAmountManager(String spell, Integer runeID) { int runesforspell = 0; int firerune = 554; int waterrune = 555; int airrune = 556; int earthrune = 557; int mindrune = 558; if (spell == "Wind_strike") { if (runeID == mindrune ) { runesforspell = 1; } if (runeID == airrune ) { runesforspell = 1; } } if (spell == "Water_strike") { if (runeID == mindrune ) { runesforspell = 1; } if (runeID == waterrune ) { runesforspell = 1; } if (runeID == airrune ) { runesforspell = 1; } } if (spell == "Earth_strike") { if (runeID == mindrune ) { runesforspell = 1; } if (runeID == earthrune ) { runesforspell = 2; } if (runeID == airrune ) { runesforspell = 1; } } if (spell == "Fire_strike") { if (runeID == mindrune ) { runesforspell = 1; } if (runeID == firerune ) { runesforspell = 3; } if (runeID == airrune ) { runesforspell = 2; } } return runesforspell; } Add this to your banker method to withdraw runes your selected amount of casts: int j = 0; while (spellmanagerRuneType.size() > j) { if (!this.client.getInventory().contains( spellmanagerRuneType.get(j))) { int withdrawamount = magicRuneAmountManager(spellname, spellmanagerRuneType.get(j)) * spellspertrip; bank.withdrawX(spellmanagerRuneType.get(j), withdrawamount); } else { j++; }}
-
Cigarettes
-
Anyone knows how to do this? Cheers
-
The coincidence between your promotion and this request.
-
Gets promoted Asks for promotion to be promoted