Package org.rsbot.script.wrappers

Examples of org.rsbot.script.wrappers.RSPlayer.interact()


   * @return <tt>true</tt> if traded.
   */
  public boolean tradePlayer(final String playerName, final int tradeWait) {
    if (!inTrade()) {
      final RSPlayer targetPlayer = methods.players.getNearest(playerName);
      return targetPlayer != null && targetPlayer.interact("Trade with ", targetPlayer.getName()) && waitForTrade(TRADE_TYPE_MAIN, tradeWait);
    } else {
      return isTradingWith(playerName);
    }
  }

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.