Jump to content

liverare

Scripter II
  • Posts

    1300
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Everything posted by liverare

  1. Good to know. I'm not sure myself, so better safe than sorry!
  2. Here's an untested and off-the-cuff example of how I'd go about handling this: /* * Concurrent hash map is more suitable, because we're going to read and * write to it from different threads that can run in parallel */ Map<String, Long> tradeRequests = new ConcurrentHashMap<>(); @[member=Override] public int onLoop() throws InterruptedException { Player worker = null; // Remove all old requests removeOldTradeRequests(15000); // 15 seconds // Check to see if we've been traded if (hasBeenTradedBy("whoever")) { // Now find that actual player in-game worker = players.closest("whoever"); // Check worker is valid if (worker != null && worker.exists()) { // Trade worker back worker.interact("Trade"); } } return 0; } /* * In here we're simply going to capture all trade requests and store them. * * Because we're dealing with a hash map, old trade requests will be * overwritten by the newer ones, so we know who traded and when, to help * filter out the old and irrelevant ones. */ @[member=Override] public void onMessage(Message message) throws InterruptedException { // Basic assertion assert (message != null); // Check message type // Check message suffix if (message.getType() == Message.MessageType.GAME && message.getMessage().endsWith(" wishes to trade with you.")) { // Store result tradeRequests.put(message.getUsername(), message.getTime()); } } public final synchronized boolean hasBeenTradedBy(String userName) { return tradeRequests.containsKey(userName); } /** * Remove all old trade requests from hash map */ public final synchronized void removeOldTradeRequests(long expirationInMilliseconds) { final long now = System.currentTimeMillis(); tradeRequests.forEach((userName, timeStamp) -> { if ((now - timeStamp) >= expirationInMilliseconds) { tradeRequests.remove(userName); } }); }
  3. Great idea. This is definitely aiming for quantity, so it might be worthwhile to have one interface show the statuses of each client in a list. Otherwise, keeping track of the logs being shot out would be tiresome in itself.
  4. I'm acoustic.
  5. Give this a whirl: public final List<NPC> whoIsPossiblyAttackingMe() { return npcs.getAll().stream() .filter((npc) -> npc.isInteracting(myPlayer())) .collect(java.util.stream.Collectors.toList()); } This gets a list of all NPCs interacting with you (e.g., a goblin attacking you, a shop keeper responding to you, a pet following you, etc.) You can then loop through and check each of those npcs for a specific name. For instance, you know that a goblin would only be interacting with you because it's attacking you. However, a guard may have knocked you for failing to pickpocket him. So bare that in mind.
  6. Try using "%20" to replace spaces with in the cli.
  7. Hopping worlds will invalidate a lot of variables known at the time. To avoid this, do your world hop, wait until you've successfully hopped, and then do nothing until the next loop. Re-find everything after hopping.
  8. "Would you like a side of anarchy with that, sir?" I bet you his two chins and gut belly he doesn't want to see his closest supermarket burned down.
  9. Well I guess it's good for mistakes like this to happen, otherwise how else will we learn.
  10. No fail-safe mechanism. Meeting in empty world in empty, common place. All trading one account. Wow. And here I thought you had it all figured out.
  11. Jesus dude, make your bed.
  12. To get you started: // Google "ArrayList" List<String> itemNames = new ArrayList<>(); // Add items to ArrayList itemNames.add("nature rune"); itemNames.add("dragon dagger"); // Use Lambda expressions to loop through list and withdraw items // (e) is the individual (e)lement of the list itemNames.forEach((e) -> bank.withdrawAll(e)); There's NO validation in this. It's a simple assumption-based botting; we're assuming we'll be able to withdraw each item.
  13. Okay: Not an argument. California is still worth the most amount of electoral votes. This video explains everything I've said concisely, and addresses your point:
  14. 192.168.0.1 255.255.255.0 IPv4 Class C - most common type The yellow is your network numbers (i.e. your home). If you've got 2 computers each running a bot from within your house, they'll both be detected as using IPs from the same network. The red is your host numbers (i.e. your computer). This is different for all devices connected to your network. Bottom numbers is your subnet; that determines which numbers in your IP address (XXX.XXX.XXX.XXX) are network numbers and host numbers. The subnet varies by class. Hope this gives you a little insight.
  15. How do you transfer money from your workers to your main account?I treasure my main account which has already gotten banned in the past (2-day bot ban), and so I need to keep a distance between him and my 'future' workers. I plan on using a VPN and creating all accounts via it, so the only definitive link would be me trading my workers bonds, and them trading me my bulk cash. Does drop trading work?I honestly can't see it working, because Jagex should be able to easily pick up players dropping large quantity of GP in obscure locations, with accounts occupying those obscure zones. However, if I were to stealthy pull off a public drop trade -- something nobody would ever suspect -- perhaps I can get away with it there. Thanks! -Live
  16. Your computer is loop-based: Loop 1 looks for values and stores them. Loop 2 looks for values and compares with loop 1. Loop 2 finds a difference between the previously stored value and the current value, and so fires an event. Event-driven, from my experience, only involves GUIs/UIs because the computer loops and loops until the user interacts with it, then that input is converted into programmatic events which can be responded to. Try using Areas at the core of your logic, because knowing where you are in-game will help you to figure out what you should be doing next.
  17. It's not who spoke the message that matters, it's the message. The USA is the United States of America. Let me blow that up for you: UNITED STATES California doesn't get to decide which direction the country goes in just because they're massively populated. America isn't a fucking Democracy you tit. If California could set the tone, then the other states are either bitches to California, or they secede to avoid being bitches of California. If California could set the tone, politicians would disregard the other states because their voices are just too quiet.
  18. America isn't a Democracy, it's a Democratic Republic. The electoral college ensures that the most densely populated cities don't get to decide the direction for the rest of the US population. But achieved without making it minority rule (aka. dictatorship). The parties of no substance will result to buying votes; the Americans call them the Democrats and over here in the UK we call them Labour. The best way to buy votes is with welfare and free shit. But there are so many votes you can buy until they're all brought. So these parties look to open the boarders and flush in new "citizens" in order to buy their votes, as to maintain political power. Project Veritas uncovered the Dems' "bussing" strategy to bus people state-to-state, as well as giving temporary jobs to illegal aliens anyone in order for them to qualify to vote in states with no voter ID laws, multiple times. I can't recall whether this was just for the primaries though. Here's another very telling image:
  19. If the protest is non-violent, then it's fine. The people protesting Trump wouldn't be doing so had Hillary won, and would demand of Trump supporters that they not protest. They're hypocrites. If they're unhappy with the results then they can vote to secede, or leave. Protesting the Democratic/Democratic Republic mechanisms is fine before-the-fact, not after. You don't get to undo the results you don't like. Had Hillary won, it wouldn't be hypocritical for Trump supporters to protest her because: The DNC rigged Bernie right out of the race. Hillary's email reveals that she's perfectly fine rigging foreign elections. The willingness to rig one election/poll is motive enough to assume they'll continue to rig more.
  20. Allow me to try and help explain why you're wrong: https://www.youtube.com/watch?v=W2Sz_fTfr1E
  21. If it's a profitable enterprise in the private sector, it's a business, therefore a business success if it succeeds. Mark Burnett created it, sure. But it's Trump's face which is prominent for all the promotions this show has. Trump, being part of the show, had to be a businessman himself, since he was the one shortlisting for apprentices. Unless his Dad's company can somehow double money, much like how the players in RS claim to be able to do, I'm fairly certain it comes from somewhere. Now (the late) Fred Trump's net worth was $300M. Can you tell me how $300 turns into 3.4B, because I've got some plans I intend to enact with that kind of info. Forbes. Now it is only an estimate, but given the source is Forbes and Trump owns a load of hotels, I'm inclined to believe this. If you don't, that's your choice. Upon re-evaluating, I am wrong on this point. You instead said "No actual billionaire creates something like Trump University to take pennies from poor housewives." My bad. I'm not after a political revolution. I'm for the end of corrupted politics. I'm sick of donors and special interests having their needs met first by politicians, then those same politicians turning around to the people for a few hours on a few days every 4 years and begging for their votes, offering free gibsmedat in return. I see Trump being the man to stop this shit. He held 6 rallies just yesterday! He's tireless and has been since the start, which I highly respect. When the media, globalists, elitist, and the establishment all try and tell me to believe the line they're towing, I'm the first sceptic to call bullshit.
  22. I know it's cool and edgy to simply disregard people you don't like, especially when doing so involves using a load of hyperbolic bullshit. But hey, in reality, you're just an idiot yourself. "Trump did jack shit in the business world" The Apprentice. "take money from daddy to fund his ventures" 1M loan turned into 3.4B net. "99% of which failed" Even if that were true, it'd at least show dedication and his ability to learn from his mistakes, since 1% succeed lol--which apparently is enough since he's worth 3.4B. So go figure. "riding out the Trump Organization" [Citation needed] "No actual billionaire" No true Scotsman... Trump's a billionaire and yet you're saying he's not because he opened an uni, which billionairs wouldn't do? Dude you sound retarded.
  23. https://www.youtube.com/watch?v=RugbwQLLmTM Never take suicide advice from a living person.
  24. Not to detail this to Brexit, but if Trump wins, it'll be because of the same reason Brexit passed:
×
×
  • Create New...