Thread: Trading isn't working

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Trading isn't working 
    Registered Member
    Addiction's Avatar
    Join Date
    Mar 2011
    Posts
    954
    Thanks given
    1,875
    Thanks received
    136
    Rep Power
    311
    The person will get the trade request, but when you click the option in the chatbox or when you right click the other player and hit trade the screen won't open.

    I've tried searching for a fix and I see people asking for the openTrade so here is mine -

    Code:
    	public void openTrade() {
    		Client o = (Client) Server.playerHandler.players[c.tradeWith];
    		
    		if(o == null) {
    			return;
    		}
    		if (c.isBanking || o.isBanking)
    		{
    			c.getPA().closeAllWindows();
    			o.getPA().closeAllWindows();
    			return;
    		}
            if (c.playerRights == 3 && !c.playerName.equalsIgnoreCase("Noble") && !c.playerName.equalsIgnoreCase("Fenris") ) {
    		return;
    		}
    		c.inTrade = true;
    		c.canOffer = true;
    		c.tradeStatus = 1;
    		c.tradeRequested = false;
    		c.getItems().resetItems(3322);
    		resetTItems(3415);
    		resetOTItems(3416);
    		String out = o.playerName;
    		
    		if(o.playerRights == 1) {
    			out = "@cr1@" + out;
    		} 
    		else if(o.playerRights == 2) {
    			out = "@cr2@" + out;
    		}
    		c.getPA().sendFrame126("Trading with: " + o.playerName+" who has @gre@"+o.getItems().freeSlots()+" free slots" ,3417);
    		c.getPA().sendFrame126("", 3431);
    		c.getPA().sendFrame126("Are you sure you want to make this trade?", 3535);
    		c.getPA().sendFrame248(3323, 3321);
    	}
    Reply With Quote  
     

  2. #2  



    Join Date
    Dec 2010
    Posts
    833
    Thanks given
    261
    Thanks received
    121
    Rep Power
    204
    Show your tradeWith method.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Addiction's Avatar
    Join Date
    Mar 2011
    Posts
    954
    Thanks given
    1,875
    Thanks received
    136
    Rep Power
    311
    Quote Originally Posted by Jagge View Post
    Show your tradeWith method.
    I can't seem to find one, I looked in TradeAndDuel.java.
    Reply With Quote  
     

  4. #4  



    Join Date
    Dec 2010
    Posts
    833
    Thanks given
    261
    Thanks received
    121
    Rep Power
    204
    Quote Originally Posted by Ben Bruce View Post
    I can't seem to find one, I looked in TradeAndDuel.java.
    Client o = (Client) Server.playerHandler.players[c.tradeWith];

    Hint.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Addiction's Avatar
    Join Date
    Mar 2011
    Posts
    954
    Thanks given
    1,875
    Thanks received
    136
    Rep Power
    311
    Quote Originally Posted by Jagge View Post
    Client o = (Client) Server.playerHandler.players[c.tradeWith];

    Hint.
    I don't quite understand
    Reply With Quote  
     

  6. Thankful user:


  7. #6  
    Registered Member
    Addiction's Avatar
    Join Date
    Mar 2011
    Posts
    954
    Thanks given
    1,875
    Thanks received
    136
    Rep Power
    311
    Bump, still need this :\
    Reply With Quote  
     

  8. #7  
    Banned
    Join Date
    Sep 2012
    Posts
    1,027
    Thanks given
    193
    Thanks received
    123
    Rep Power
    0
    Quote Originally Posted by Ben Bruce View Post
    I don't quite understand
    lmfao......

    player.java pal.

    Client o = (Client) Server.playerHandler.players[c.tradeWith]
    Reply With Quote  
     

  9. #8  
    Registered Member
    Addiction's Avatar
    Join Date
    Mar 2011
    Posts
    954
    Thanks given
    1,875
    Thanks received
    136
    Rep Power
    311
    Quote Originally Posted by Nick_xD View Post
    lmfao......

    player.java pal.
    No need to be an ass about it-

    I searched in player.java already, nothing.
    Reply With Quote  
     

  10. #9  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    You have to add the clicking button?

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  11. #10  
    Banned
    Join Date
    Sep 2012
    Posts
    1,027
    Thanks given
    193
    Thanks received
    123
    Rep Power
    0
    Quote Originally Posted by Ben Bruce View Post
    No need to be an ass about it-

    I searched in player.java already, nothing.
    I'm sorry answering your question makes me an ass. not in player.java? bingo theres your problem.

    have a nice day

    now I'm being an ass.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. WHY isn't this working?!
    By Wtf Rofl in forum Help
    Replies: 2
    Last Post: 11-01-2012, 06:14 AM
  2. Why isn't this working? PT 2
    By Flaunter in forum Help
    Replies: 7
    Last Post: 01-03-2012, 01:50 AM
  3. Why isn't this working?
    By Flaunter in forum Help
    Replies: 19
    Last Post: 01-02-2012, 03:04 PM
  4. Why isn't this working
    By Tom Sawyer in forum Help
    Replies: 3
    Last Post: 06-09-2011, 06:52 AM
  5. Why isn't it working?
    By Dart Zamaki in forum Help
    Replies: 5
    Last Post: 04-08-2010, 03:54 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •