Thread: Next Page Button Isuee

Results 1 to 4 of 4
  1. #1 Next Page Button Isuee 
    Registered Member
    Join Date
    Oct 2015
    Posts
    120
    Thanks given
    4
    Thanks received
    3
    Rep Power
    18
    https://gyazo.com/8aa5304dfc8c9d188cdfedd6c2645a73

    If someone can help me, I will vouch for or do something

    My discord: elite faze#6284
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    May 2016
    Age
    55
    Posts
    1,137
    Thanks given
    565
    Thanks received
    600
    Rep Power
    0
    whats the code for the button look like?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2015
    Posts
    120
    Thanks given
    4
    Thanks received
    3
    Rep Power
    18
    Quote Originally Posted by Wells Fargo View Post
    whats the code for the button look like?
    https://gyazo.com/d86241bb048f71ed986c89ade1db28e8

    Only what I can find, dont know if this is linked up to a method. I do not know and I am lost

    Discord: elite faze#6284
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2017
    Posts
    195
    Thanks given
    13
    Thanks received
    27
    Rep Power
    13
    in Listing.java

    replace ur postbuttons method with this:

    Code:
    	public static void postButtons(Player c, int button) {
    		switch(button) {
    			case 189237:
    				if (!c.getMode().isTradingPermitted()) {
    					c.sendMessage("You are not permitted to make use of this.");
    					return;
    				}
    				int total = 0;
    				LinkedList<Sale> sales = (LinkedList<Sale>) getSales(c.playerName);
    				
    				for(@SuppressWarnings("unused") Sale sale : sales)
    					total++;
    			/*	if(c.amDonated <= 9 && total >= 6) {
    					c.sendMessage("[@red@Trading Post@bla@] You cannot have more then 6 listings as a regular player.");
    					return;
    				} else if(c.amDonated >= 10 && c.amDonated <= 149 && total >= 10) {
    					c.sendMessage("[@red@Trading Post@bla@] You cannot have more then 10 listings as a low tier donator.");
    					return;
    				} else if(c.amDonated >= 150 && total >= 15) {
    					c.sendMessage("[@red@Trading Post@bla@] You cannot have more then 15 listings.");
    					return;
    				}*/
    				if(!c.inSelecting) {
    					openNewListing(c);
    					c.inSelecting = true;
    					c.getPA().sendFrame106(3);
    				} else {
    					resetEverything(c);
    					c.getPA().showInterface(48600);
    					c.getPA().sendFrame106(3);
    				}
    			break;
    			
    			case 59229: //Close 
    				c.getPA().closeAllWindows();
    				resetEverything(c);
    			break;
    			
    
    			case 191072:
    				if (!c.getMode().isTradingPermitted()) {
    					c.sendMessage("You are not permitted to make use of this.");
    					return;
    				}
    				synchronized (c) {
    					c.outStream.createFrame(191);
    				}
    				c.xInterfaceId = 191072;
    			break;
    			
    			case 191075: // Removed quantity button
    				if (!c.getMode().isTradingPermitted()) {
    					c.sendMessage("You are not permitted to make use of this.");
    					return;
    				}
    				synchronized (c) {
    					c.outStream.createFrame(192);
    				}
    				c.xInterfaceId = 191075;
    			break;
    			
    			case 191078:
    				if (!c.getMode().isTradingPermitted()) {
    					c.sendMessage("You are not permitted to make use of this.");
    					return;
    				}
    				confirmListing(c);
    			break;
    			
    			case 189223:
    				if (!c.getMode().isTradingPermitted()) {
    					c.sendMessage("You are not permitted to make use of this.");
    					return;
    				}
    				collectMoney(c);
    			break;
    			
    			case 189234:
    				if (!c.getMode().isTradingPermitted()) {
    					c.sendMessage("You are not permitted to make use of this.");
    					return;
    				}
    				loadRecent(c, c.pageId);
    			break;
    			
    			
    			case 187136:
    				if (!c.getMode().isTradingPermitted()) {
    					c.sendMessage("You are not permitted to make use of this.");
    					return;
    				}
    				if(c.pageId > 1)
    					c.pageId--;
    				//System.out.println("id: "+c.searchId+" lookup: " + c.lookup);
    				switch(c.searchId) {
    					case 1:
    						loadItemName(c, c.lookup);
    					break;
    					case 2:
    						loadPlayerName(c, c.lookup);
    					break;
    					case 3:
    						loadRecent(c, c.pageId);
    					break;
    				}
    			break;
    			
    			case 187139:
    				if (!c.getMode().isTradingPermitted()) {
    					c.sendMessage("You are not permitted to make use of this.");
    					return;
    				}
    				c.pageId++;
    				//System.out.println("id: "+c.searchId+" lookup: " + c.lookup);
    				switch(c.searchId) {
    					case 1:
    						loadItemName(c, c.lookup);
    					break;
    					case 2:
    						loadPlayerName(c, c.lookup);
    					break;
    					case 3:
    						loadRecent(c, c.pageId);
    					break;
    				}
    			break;
    		}
    	}

    and loadRecent method:

    Code:
    	public static void loadRecent(Player c, int pageId) {
    		c.pageId = pageId;
    		c.searchId = 3;
    		c.getPA().sendFrame126("Trading Post - Recent listings", 48019);
    		c.getPA().showInterface(48000);
    		List<Sale> sales = new LinkedList<Sale>();
    		int total = 0;
    
    		for(int i = NEXT_SALE_ID - 1; i > 0; i--) {
    			Sale sale = getSale(i);
    			if(sale.hasSold()) 
    				continue;
    			total++;
    			sales.add(sale);
    			if(total == 60)
    				break;
    		}
    		displayResults(sales, c);
    	}
    Reply With Quote  
     


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. interface 72 "next page" help
    By The Conflict in forum Help
    Replies: 10
    Last Post: 07-28-2013, 01:19 AM
  2. Replies: 3
    Last Post: 01-20-2013, 01:00 AM
  3. Next Page dialog. Eclipse 639
    By Brockz in forum Help
    Replies: 4
    Last Post: 07-11-2012, 03:46 AM
  4. Next Page PROJECT INSANITY.
    By Mr Lennart in forum Help
    Replies: 2
    Last Post: 08-24-2011, 03:37 PM
  5. Adding Next Music Button
    By snkey31 in forum Help
    Replies: 0
    Last Post: 06-15-2010, 10:45 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •