-
Posts
288 -
Joined
-
Last visited
-
Feedback
100%
Everything posted by Paradox68
-
So the null check works, but why is it throwing a null? Now the code just isn't being called.
-
Declaring the ArrayList public ArrayList<Integer> allTimes; One function for array: if (!allTimes.isEmpty() && allTimes != null) { allTimes.clear(); } Second function: tripE = System.currentTimeMillis() - tripS; if (allTimes != null) { allTimes.add((int)tripE); } Calculating average times. int averageTime = 0; if (allTimes.toArray().length > 3) { int total = 0; for (int i = 0; i < allTimes.toArray().length; i++) { total += allTimes.get(i).intValue(); } averageTime = (total / allTimes.toArray().length); } I don't know if it's the only one but the Nullpointer is thrown on allTimes.clear();
-
I didn't see that you could change your name by yourself and I'd imagine an admin has to do it. Could you change my name to just "Paradox"? Thank you in advance to whoever does it. I already checked member's list and it doesn't seem to be taken.
-
Trust me, gambling in RS is not a way to make money. The only people who you will see making money, are the people who are on the host's friends list as he's PMing them to fake it to attract more players.
-
Draw Rectangle surrounding item in inventory.
Paradox68 replied to Paradox68's topic in Scripting Help
Hngh dat coding. You're a smart cookie. Thanks dude. -
Draw Rectangle surrounding item in inventory.
Paradox68 replied to Paradox68's topic in Scripting Help
Just to be sure i'm not crazy, proper usage could be if (getBank().isOpen()) { g.draw(getRectForItem(getBank().getItem(toMake2)); } assuming toMake2 returns an int or a string. -
Draw Rectangle surrounding item in inventory.
Paradox68 replied to Paradox68's topic in Scripting Help
This method isn't working for drawing in bank. Not sure why, it seems logical but it just wont draw the rect in the right spot. It's drawing it on a completely different item. -
Draw Rectangle surrounding item in inventory.
Paradox68 replied to Paradox68's topic in Scripting Help
Actually this is the method i went with: if (getInventory().contains(other)) { Rectangle rec = new Rectangle(InventorySlotDestination.getSlot(inventory.getSlot(other))); g.setColor(Color.ORANGE); g.draw(rec); } -
I knew there had to be a way to do this in like one line. I just hadn't heard of stream().distinct() method before. Thanks for the info i'll definitely be implementing this method in future scripts.
-
Draw Rectangle surrounding item in inventory.
Paradox68 replied to Paradox68's topic in Scripting Help
That makes it super simple. Thanks dude! Thank you for the information...... -
How would you get the x and y coordinates on the screen of the inventory item? It's probably super simple I just can't figure it out.
-
I'm not a professional but I made a version of this that wrote the items in a list on the paint a while back, here's the snippet just because. Even though the problem was already solved. List<GroundItem> itemsog = getGroundItems().getAll(); int count = 0; for (int i = 0; i < itemsog.toArray().length; i++) { for (int i2 = 0; i2 < itemsog.toArray().length; i2++) { if (itemsog.get(i).getName().equalsIgnoreCase(itemsog.get(i2).getName()) && count == 1) { itemsog.remove(i2); count = 0; } if (itemsog.get(i).getName().equalsIgnoreCase(itemsog.get(i2).getName()) && count == 0) { count = 1; } } } g.setFont(new Font("Trebuchet MS", Font.PLAIN, 10); g.setColor(Color.WHITE); for (int i = 0; i < itemsog.toArray().length; i++) { g.drawString(itemsog.get(i).getName(), 8, 30 + (i * 11)); } I know it's lazy as hell and doesn't properly use the API but it's something I improvised due to lack of knowledge there was an easier way xD Even though it's dirty code it works fine and weeds out all duplicate item names and displays them in the top left corner. of the screen in a nice screen space saving list.
-
Lol
-
I don't know why you made a thread dude, If you saw I responded to your PM about my Cannonball smelter with a very detailed guide (including pictures) that explains how to use Widget interactions to achieve what you're trying to do.
-
2 feedback, new member, hasn't even set a profile picture..... Shouldn't this be locked or something? I smell a scam.
-
East of Yanille near that gnome guy's house that talks gibberish. (The little peninsula east of Yanille) IDFK Near Shipyard east of Karamja, west of the docks in the jungle area
-
South west of Feldip Hills?
-
Near brimhaven?
-
OH crash island
-
Kharazi Jungle.
-
The sub banner says "You can put as much updates", when it should be "You can put as many updates." I meant it as a joke but maybe too many people dislike me on these forums for me to make jokes.
-
It looks good but good grammar would make it look better.
-
http://www.tigerdirect.com/applications/SearchTools/item-details.asp?EdpNo=9799054&CatId=4935 YOU ARE WELCOME.
-
Free low level hunter scripts. You could extend it so that anything past lvl 45 or whatever is premium. ( 2 diff scripts, free version, premium)
-
Lol really or are you just trying to be clever?