Jump to content

Roflobster

Members
  • Posts

    3
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Roflobster's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. private void handleTrading() { if(!isCurrentlyTrading) { whenTradeOpened = System.currentTimeMillis(); } log("Is trade offer empty? " + getTrade().getTheirOffers().isEmpty()); log("Did he accept? " + getTrade().didOtherAcceptTrade()); isCurrentlyTrading = true; if(System.currentTimeMillis() - whenTradeOpened >= 60000) { log("Trade condition 1"); putPlayerOnCooldown(getTrade().getOtherPlayer()); getTrade().declineTrade(); handleTradeClosed(); } else if(getTrade().isSecondInterfaceOpen() && getTrade().didOtherAcceptTrade()) { log("Trade condition 2"); long amount = RsBuddy.getPrice(getTrade().getTheirOffers().getItems()); putPlayerOnCooldown(getTrade().getOtherPlayer(), 10000); getTrade().acceptTrade(); handleTradeComplete(amount); } else if(getTrade().getTheirOffers().isEmpty() && getTrade().didOtherAcceptTrade()) { log("Trade condition 3"); getTrade().declineTrade(); putPlayerOnCooldown(getTrade().getOtherPlayer()); handleTradeClosed(); } else if(!getTrade().getTheirOffers().isEmpty() && getTrade().didOtherAcceptTrade() && (System.currentTimeMillis() - lastAcceptAttempt >= 1000)) { log("Trade condition 4"); getTrade().acceptTrade(); lastAcceptAttempt = System.currentTimeMillis(); } } Yeah I could but that would not solve the problem that lies within the API.
  2. They have. I stated that in the OP I will post it a bit later :)
  3. Hello, I am extremely new to this community and was hoping someone could help me out! I am writing my first script and when trading I seem to have a weird problem. When I call the acceptTrade method in the Trade class it only works when the client is loaded fresh. It will work one single time and after that will no longer function until the client (not my script) is completely re started. I know it is not an error in my code because I have debug so I know the accept method is being called. When this happens the mouse just hovers over the decline button and does nothing. I have searched and found a few others with this exact problem but none of the threads had a solution only the typical 'I figured it out thanks!'. If anyone has any info on the problem that would be fantastic! Thanks a bunch
×
×
  • Create New...