Thread: Inferno couple of fixes

Results 1 to 2 of 2
  1. #1 Inferno couple of fixes 
    Registered Member

    Join Date
    Feb 2015
    Posts
    830
    Thanks given
    12
    Thanks received
    200
    Rep Power
    118
    Heres a couple of fixes for interfaces on Inferno.

    I decided not to use the base as a project.

    If you use, credit me... and if you need any help just pm me

    In widget.java client sided, replace your tradescreen2 with this:

    Code:
    public static void tradeScreen2(GameFont[] tda) { 
    		Widget interface_ = addTabInterface(52250);
    		addSprite(52251, 855);
    		addText(52252, "Are you sure you want to make this trade?", tda, 1, 0x00ffff, true, true);
    		addText(52253, "There is <col=ff0000>NO WAY</col> to reverse a trade if you change your mind.", tda, 0, 0xffffff, true, true);
    		addText(52254, "You are about to give:", tda, 0, 0xffff00, true, true);
    		addText(52255, "(Value: <col=ffffff>0</col> coins)", tda, 0, 0xffff00, true, true);
    		addText(52256, "In return you will receive:", tda, 0, 0xffff00, true, true);
    		addText(52257, "(Value: <col=ffffff>0</col> coins)", tda, 0, 0xffff00, true, true);
    		addText(52258, "Trading with:", tda, 2, 0x00ffff, true, true);
    		addText(52259, "", tda, 2, 0x00ffff, true, true);
    		for(int i = 0; i < 28; i++) {
    			addText(52260 + i, "", tda, 2, 0xff9040, true, true);
    		}
    		for(int i = 0; i < 28; i++) {
    			addText(52290 + i, "", tda, 2, 0xff9040, true, true);
    		}
    		addButtonWithoutSprite(52319, "Accept", 30, 50);
    		addButtonWithoutSprite(52320, "Decline", 30, 50);
    		int x = 135, y = 85;
    		int tradeChild = 0;
    		interface_.totalChildren(67);
    		interface_.child(tradeChild++, 52251, 15, 14);
    		interface_.child(tradeChild++, 52252, 255, 20);
    		interface_.child(tradeChild++, 52253, 255, 35);
    		interface_.child(tradeChild++, 52254, 135, 59);
    		interface_.child(tradeChild++, 52255, 135, 69);
    		interface_.child(tradeChild++, 52256, 375, 59);
    		interface_.child(tradeChild++, 52257, 375, 69);
    		interface_.child(tradeChild++, 52258, 100, 285);
    		interface_.child(tradeChild++, 52259, 100, 297);
    		interface_.child(tradeChild++, 52319, 190, 285);
    		interface_.child(tradeChild++, 52320, 270, 285);
    		for(int i = 0; i < 28; i++) {
    			interface_.child(tradeChild++, 52260 + i, x, y);
    			y += 13;
    		}
    		y = 84;
    		x = 375;
    		for(int i = 0; i < 28; i++) {
    			interface_.child(tradeChild++, 52290 + i, x, y);
    			y += 13;
    		}
    	}
    In trading.java server side replace STATUS_FRAME_2 with mine:
    and trading buttons in ButtonClickPacketListener:
    Code:
    private static final int STATUS_FRAME_2 = 52252;
    
    case TRADE_ACCEPT_BUTTON_1:
    		case TRADE_ACCEPT_BUTTON_2:
    			player.getTrading().acceptTrade();
    			break;
    			
    		case 52101:
    		case 52320:
    			player.getTrading().closeTrade();
    			break;
    Reply With Quote  
     

  2. #2  
    Skotos Founder


    Join Date
    Jan 2017
    Age
    24
    Posts
    954
    Thanks given
    178
    Thanks received
    191
    Rep Power
    199
    Tyyy
    Attached image
    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. Replies: 2
    Last Post: 12-05-2015, 03:22 PM
  2. Replies: 3
    Last Post: 03-21-2013, 02:13 PM
  3. [pi] couple of fixes
    By Spooky in forum Snippets
    Replies: 13
    Last Post: 06-28-2012, 05:04 PM
  4. A couple of tuts.
    By мя נαмιε ¢υятιs in forum Tutorials
    Replies: 7
    Last Post: 12-09-2007, 03:26 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
  •