Jump to content

Welcome to DreamBot

VIP Enhancement

Want to upgrade your DreamBot experience? Consider signing up for VIP!
VIP allows you to run as many accounts as you want, view the forums ad-free, receive 10% off all script purchases, and so much more!
Visit the store to learn about all of these great features!

Upgrade to VIP Now
News Ticker
  • New Forum Theme!
  • New Forum Chatbox (on the way)
  • Chatbox Mods Soon Needed
  • Suggest Forum Rank Colors
  • Forum Updates

DreamBot is the only Deadman Mode supported bot on the market!

Download the DreamBot client today!





Sign in to follow this  
Bickfordbft

How do i accept an incoming trade from my chatbox from a random player

Recommended Posts

I have this 

public void onTradeMessage(Message arg0) {
         if (arg0.getMessage().toLowerCase().contains("wishes to trade")) {
             getTrade().getTradingWith().(I don't know what to put here other than the playertotrade string);
         }

    //getTrade().tradeWithPlayer(playertotrade)


  // String personToTrade = "Bartholomeiu";
  // if (arg0.getMessage().toLowerCase().contains("wishes to trade") && arg0.getMessage().toLowerCase().contains(personToTrade)) {
        //if (getPlayers().closest(personToTrade) != null)
            //getTrade().tradeWithPlayer(personToTrade);
    }

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...