Everything posted by Jack
-
List of entities
for(int i = 0; i < objects.getAll().size(); i++){ if(objects.getAll().get(i)!=null&&posDist(myPosition(),objects.getAll().get(i).getPosition())<5&&!objects.getAll().get(i).getName().equals("null")) //add to bigger list }
-
List of entities
this returns 7642 objects. Looping through all of them to find the ones near me takes a few seconds for some reason. Is there a reason for that?
-
List of entities
how do i get all rs2objects? Thats what I need.
-
List of entities
groundItems.getAll() gets a list of all ground items How do I do this for entites? I looked all over the api and I have found nothing
-
Fix Villain Theme
- Borgore's Introduction
make sure to buy a lot of scripts- Dispute against Smart
- Dispute against Smart
- ..
- $5 giveaway
You used to be cool cuz u was the TWC KING but now u just a wanna B whos gots bands a guap- Pizza Giveaway
- Designing Gold Selling Websites! (Other Websites too)
- Thanks Timekeeper
Timekeeper orders it online for people- OMFGOMFGOMFOMOFGMGFOMGOFOMGFOMGFOMGFMOMOGFOMFGMOGFMOGFOMFGOFGM
Go stake it with my script now Check my siggy- Null pointers
Core is my main class that extends script It seems to now be working when I added a null check here: (food is an ArrayList<String> of food names) for(int i = 0; i < inventory.getItems().length; i++){ if(inventory.getItems()[i]!=null&&food.contains(inventory.getItems()[i].getName())){ inventory.getItems()[i].interact("Eat"); return random(650, 900); } } Is there a better way to write this?- Null pointers
Mostly sleeps and a few npc interactions I think it was client error though, not script error.- Null pointers
[ERROR][Bot #1][07/02 07:31:01 PM]: Error in script executor! java.lang.NullPointerException at org.osbot.utility.Logger.log(f:243) at org.osbot.utility.Logger.log(f:189) at org.osbot.utility.Logger.log(f:25) at org.osbot.utility.Logger.info(f:4) at org.osbot.rs07.script.MethodProvider.log(MethodProvider.java:721) at net.jack.scripts.Core.onLoop(Core.java:111) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ScriptExecutor.java:99) at java.lang.Thread.run(Unknown Source) was there an error on line 111? This is line 111: catch(Exception e){ ---> log(e.getMessage()); } So what was the original error? Did it throw an exception while trying to tell me what the previous exception was? Im so confused- how long is the f2p trial on 07?
each account gets 2 weeks, but the trial period is indefinite.- Chat Interfaces
There was a good explanation for this but I forgot what it was. Hopefully someone remembers why the chat can't be read form interfaces.- fresh lvl 3 accounts
Bonds are cheeper because most accounts dont last the full 30 days. Bonds give 14 days membs for about 1.2m.- Which browser do you use?
- Add a simple IP check to your scripts
1: that does not work with php 52: that does not work for all proxies- Add a simple IP check to your scripts
Yea I think my host must add random js to the bottom of my pages- Add a simple IP check to your scripts
http://pastebin.com/7c0DJifc This is so users know if their proxy is working before they start running your script. You can go ahead and write your own but I thought I might as well give out an easy way- When Maxi Goes AWOL
- Borgore's Introduction