Jump to content

ForcaNL

Members
  • Posts

    15
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by ForcaNL

  1. Hey, I'd love to try out a trial
  2. Hey guys, I've been looking around in the Grand Exchange API and I stumbled on a something I didn't understand. It's about the grandExchange.getStatus part; how can I make an if statement asking if my sale is finished? I tried using if (grandExchange.getStatus(Box.BOX_1).FINISHED_BUY) but that didn't seem to work. (I'm sorry if this is a newbie mistake)
  3. Isn't there a way to make it write into a separate text file? I was counting on the fact that I would have to copy it to my excel from there manually. It's just that if I have numbers in a text file like below I would be able to just copy and paste it without editing. 243 435 35754 54365 65 643 I have been googling for a few methods but for some reason it doesn't seem to work even though I get no errors. Edit: Also to elaborate, it's for my price checker which I would run only a few times a day. So that it would overwrite the same file over and over again isn't a problem since I would have copied it to my excel by then.
  4. Hey guys, Is there a way to put the whole [iNFO][bOT #1][DATE] Stuff off? I need to be able to copy my logs so I can paste them into excel but because of this I first need to delete all the extra logging. Cheers, ForcaNL
  5. Hey FrostBug, Thanks a lot for the suggestion, but I really think I need to do this manually since I want to have the ability to switch accounts and put my own breaking system in place.
  6. Hey guys, I'm trying to make my script manually login to my accounts but for some reason clicking/typing doesn't work when I'm logged off. This is what I got: Triggering my state: if(!client.isLoggedIn()) return State.LOGIN; Code in my case: case LOGIN: mouse.click(460, 290, false); getKeyboard().typeString("USERNAME HERE", true); sleep(random(500, 1500)); getKeyboard().typeString("PASSWORD HERE", true); sleep(random(4000,5000)); mouse.click(380, 330, false); sleep(random(4000,5000)); break; For some reason it seems to "work" when I'm online, but when I'm offline it just doesn't seem to trigger. Thanks alot in advance! Cheers, ForcaNL
  7. Hey guys, I decided to try to make it into a method to see if that would help me to not bug the program out, although now it doesn't start at all lol, anyone got some suggestions? public void playerCheck() { java.util.List<Player> p = getPlayers().getAll(); if (p.size() > 1) { tabs.logoutTab.logOut(); } else { return; } }
  8. Oh wow.. getWorlds, how could I miss that! Thanks alot guys! Also I tried editing the code you send me so that it would only trigger if more than two players spotted but I instantly got an error message when I tried putting it in there. This is what I changed it to List<Player> players = getPlayers().filter(player -> player != myPlayer()); if(players != null && players.size() > 1) getWorlds().hop(random(1, 94)); EDIT: Hmm the forums seem to skip the end of the post when you paste code in the middle. Anyways, like this it says I should take the type out. But when I do that errors on the second line start popping up. I'm really sorry if I annoy you guys with my newb questions, I'm trying to learn as I go along! Edit: I got it to, kind of work.. The script runs but there has to be some error here since it always freezes on this part. (Keeps running tho, just the client freezes) case GRAB: GroundItem item = getGroundItems().closest(berryArea, "White berries"); item.interact("Take"); inventoryBreak(); if (inventory.getEmptySlots() > 0) { if(getPlayers().getAll() != null) { java.util.List<Player> p = getPlayers().getAll(); if(p.size() > 1 && combat.isWilderness()){ tabs.logoutTab.logOut(); break; } } } break;
  9. I am aware of this indeed It's just that I would love to use the logging for my breaking system too.
  10. Hey Kev, Thanks for your quick response, I think I must've deleted the end of my post when I pasted my code in. Initially I tried to use world.Hop(303); but this seemed to only log me out and stay stuck on the login page. (which also happens with my code at the moment)
  11. Hey guys, I was kinda looking into world hopping but it couldn't seem to get it to work. Now I tried to kind of build around it but for some weird reason it gets stuck after the logout public void hopButtonClick() { mouse.click(55, 480, false); } public void loginChar() throws InterruptedException { mouse.click(460, 290, false); sleep(random(300, 600)); keyboard.typeString("USERNAME HERE"); sleep(random(500, 1000)); mouse.click(365, 275, false); sleep(random(500, 1000)); keyboard.typeString("PASSWORD HERE"); sleep(random(500, 1000)); mouse.click(300, 320, false); sleep(random(3000, 4000)); mouse.click(385, 335, false); sleep(random(3000, 4000)); } public void hopAndLog() throws InterruptedException { int hopWorld = random(1,10); tabs.logoutTab.logOut(); sleep(random(4000, 5000)); hopButtonClick(); sleep(random(500, 1000)); if (hopWorld == 1) { mouse.click(244, 131, false); } else if (hopWorld == 2) { mouse.click(245, 275, false); } else if (hopWorld == 3) { mouse.click(334, 56, false); } else if (hopWorld == 4) { mouse.click(337, 178, false); } else if (hopWorld == 5) { mouse.click(329, 417, false); } else if (hopWorld == 6) { mouse.click(426, 106, false); } else if (hopWorld == 7) { mouse.click(427, 224, false); } else if (hopWorld == 8) { mouse.click(425, 370, false); } else if (hopWorld == 9) { mouse.click(425, 464, false); } else if (hopWorld == 10) { mouse.click(518, 154, false); } sleep(random(500, 1000)); loginChar(); } EDIT: it seems like the end of my post didn't make it. In the first instance I tried to use world.Hop(303); It does log out but gets stuck at the login screen doing nothing. (in both instances) Also, initially I would like to to make the script log out when somebody pops up on my map, anyone has good suggestions on how to do that? I was thinking of if (dude pops up on minimap) { hopAndLog(); } I was just wondering if anybody had an idea on how to do the dude pops up on minimap part? Cheers, Forcanl
  12. Thanks so much man! I got it to work
  13. Hey guys, I'm trying to get into scripting a bit so I tried to make myself a little Wine grabber, but I'm really confused about how Telegrabbing works out. Now I am a newbie so I figured I kind of just hack my way through it a scrape some parts together so that eventually I get a hang of how things really work, as my earlier attempts of just following java guides didn't get me that far. I found this little curse script and I thought with some small edits I would be able to get it to Telegrab. Old version: if(getTabs().getOpen() != null && getTabs().getOpen().equals(Tab.MAGIC)) { getMagic().castSpellOnEntity(Spells.NormalSpells.CURSE, skeleton); } else { getTabs().open(Tab.MAGIC); } Edited version: if(getTabs().getOpen() != null && getTabs().getOpen().equals(Tab.MAGIC)) { getMagic().castSpellOnEntity(Spells.NormalSpells.TELEKINETIC_GRAB, 245); } else { getTabs().open(Tab.MAGIC); } Now at first eclipse gave me some "import this stuff" kind of errors so I did all of that and in the end it leaves me with this error: The method castSpellOnEntity(Magicspell, Entity) in the type Magic is not applicable for the arguments (Spells.NormalSpells, int) Does this mean tele grabbing has a different way of calling it than using castSpellOnEntity? Cheers, ForcaNL PS: Yes I am aware of the fact that there are wine grabbers out there, I figured this would just be a nice simple project to get my head around the whole concept.
×
×
  • Create New...