Jump to content

Ayylmao420

Members
  • Posts

    426
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Ayylmao420

  1. Well, right now i ended up using messagelistener and hashmap, made it so that it'll clean the list every 1 second, it'll be enough to execute interaction event. Not sure if the smartest way but meh, works.
  2. Well, sometimes after trade, getLastRequestingPlayer() returns == null like it is supposed to ? But most of the times it'll return != null for like 10 seconds ?
  3. what i am saying is that getTrade().getLastRequestingPlayer() returns != null for a while even though the character haven't received any more trades after the trade.
  4. Sure but that won't stop the interaction spam because getLastRequestingPlayer() will return != null for a while.
  5. Ok so i can't really figure out a better logic for this but what i am trying to do here is when a player trades me, it'll accept. What this code does is once it has finished trading it'll keep trading the same character for a while until requestListener == null my code; if (getTrade().isCurrentlyTrading()) { if (getTrade().isFirstInterfaceOpen()) { if (getTrade().acceptTrade()) { new ConditionalSleep(1000) { @Override public boolean condition() throws InterruptedException { return getTrade().isSecondInterfaceOpen(); } }.sleep(); } } else { if (getTrade().isSecondInterfaceOpen()) { if (getTrade().acceptTrade()) { new ConditionalSleep(1000) { @Override public boolean condition() throws InterruptedException { return !getTrade().isCurrentlyTrading(); } }.sleep(); } } } } else { if (getTrade().getLastRequestingPlayer() != null) { if (getTrade().getLastRequestingPlayer().getName().equals("")) { if (getTrade().getLastRequestingPlayer().interact("Trade with")) { new ConditionalSleep(1000) { @Override public boolean condition() throws InterruptedException { return getTrade().isCurrentlyTrading(); } }.sleep(); } } } } How am i supposed to make it so that once it has finished trading it won't trade the same character again ? EDIT:/ First trade finished it won't interact with the character .. but once i go into second trade, finish it then it'll keep trading the character for a while until getLastRequestingPlayer() == null
  6. Any human being does have free will, we can't just tell them to stop smoking, but what we can do is tell them what smoking does to their body. It is their decision if they want to keep smoking or quit.
  7. Nah but my life is just like the 0,20€ cent right now so no worries.
  8. not really a banknote but 0,20€ cent
  9. Woah, never thought i'd win but hell, time to bot even more.
  10. I'd love to have a vip so i can run more bots, make more money and rebuy vip
  11. Thanks, i'll try it out and if it works the way i want it to i'll sure use it.
  12. Around 70 players standing there.
  13. Ayylmao420

    VOTE

    commonly used word you say .. ? oh pls .. when i mentioned about underage kids you took an image and reported me for it so pls i hope ur ban stays
  14. Where is rest of the code or is this all ? Using switching like this is .. pointless
  15. case HEALTHCHECK: int checkHealth = (getSkills().getDynamic(Skill.HITPOINTS)); if (checkHealth <= 7) { getWalking().walk(new Position(3096,3241,0)); } break; Try
  16. Alright, thanks for the help guys. EDIT:/ I just figured out that for some reason when i do this; for (RS2Object object : getObjects().getAll()) { if (object.getName().equals("Large door")) { modifiedFlags[object.getLocalX()][object.getLocalY()] = 0; } } It'll work for doors, gates but for some reason it doesn't work with large doors, any ideas ?
  17. So all i have to do is loop through object, get their position and change their flags to 0 to ignore those tiles?
  18. Could you give me an example of modifiedflag for ignoring object ?
  19. Is there any way i could use LocalPathFinder to find a path to target by ignoring obstacles etc ?
  20. Should works, thanks EDIT; For custom walker.
  21. How am i supposed to check if currently loaded region contains position ?
  22. Seems like your eclipse doesn't use java 8. Uninstall your eclipse, download it from here; https://www.eclipse.org/downloads/download.php?file=/oomph/epp/neon/R2a/eclipse-inst-win64.exe
  23. Ayylmao420

    Leg end

    Using his disability to gain views, pathetic fuck.
×
×
  • Create New...