Jump to content

Trading players


olstan

Recommended Posts

I am new to java scripting.

 

This is a current task i am working on to listen for a trade.
When a trade is received it starts this task.

 

I am ok with the trading api.
It is just the listening for a message to initiate the task.

 

Can anyone help

 

import javax.sound.midi.Receiver;

import org.osbot.rs07.api.Trade;
import org.osbot.rs07.api.ui.Message;
import org.osbot.rs07.listener.MessageListener;
import org.osbot.rs07.script.MethodProvider;

public class trade extends Task {
    


    public trade(MethodProvider api) {
        super(api);
    }

    @Override
    public boolean canProcess() {
        return;

    }

    @Override
    public void process() {
    api.log("we have been traded");
    
        
    }

}

Link to comment
Share on other sites

  • Decode locked this topic
  • 2 weeks later...
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...