Thread: [NON]Custom PC Reward Interface

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 49
  1. #1 [NON]Custom PC Reward Interface[Updated - August 31, 2009] 
    Extreme Donator


    Join Date
    Mar 2009
    Age
    29
    Posts
    956
    Thanks given
    29
    Thanks received
    15
    Rep Power
    215
    IF it did not work for you re-do it! Updated - August 31, 2009

    Well since I hated the one that Regular PC Reward Interface I just started to make this interface, so hope you enjoy it...



    Purpose: To make a Custom Pc reward Interface.

    Difficulty: 0-2/10

    Tested On: Bluurr's Client (Should work on all Non-Renamed clients).

    Interface ID - 14400

    If you convert to RENAMED please don't release just post it here and I'll give credit!

    Download Sprites Here

    In class9 add...
    Code:
        public static String PCSprite = "./Files/Spirts/PestControl/";
    ^loading path

    Code:
    	public static void pestreward(Class30_Sub2_Sub1_Sub4[] wid)
    	{
    		Class9 class9 = addTab(14400);
    		addPCSprite(14401, 1, 1, "Sprite");//screen
    
    		addText(14403, "Void Knight Point Exchange", wid, 2, 0xe4a146);
    		addText(14405, "Top", wid, 0, 0xe4a146);
    		addText(14406, "40 Prayer", wid, 0, 0xe4a146);
    		addText(14407, "40 Defence", wid, 0, 0xe4a146);
    		addText(14408, "250 Points", wid, 0, 0xe4a146);
    
    		addText(14410, "Bottoms", wid, 0, 0xe4a146);
    		addText(14411, "40 Prayer", wid, 0, 0xe4a146);
    		addText(14412, "40 Defence", wid, 0, 0xe4a146);
    		addText(14413, "250 Points", wid, 0, 0xe4a146);
    
    		addText(14415, "Gloves", wid, 0, 0xe4a146);
    		addText(14416, "40 Prayer", wid, 0, 0xe4a146);
    		addText(14417, "40 Defence", wid, 0, 0xe4a146);
    		addText(14418, "150 Points", wid, 0, 0xe4a146);
    
    		addText(14420, "Mace", wid, 0, 0xe4a146);
    		addText(14421, "40 Attack", wid, 0, 0xe4a146);
    		addText(14422, "40 Magic", wid, 0, 0xe4a146);
    		addText(14423, "250 Points", wid, 0, 0xe4a146);
    
    		addText(14425, "Melee", wid, 0, 0xe4a146);
    		addText(14426, "40 Attack", wid, 0, 0xe4a146);
    		addText(14427, "40 Defence", wid, 0, 0xe4a146);
    		addText(14428, "200 Points", wid, 0, 0xe4a146);
    
    		addText(14430, "Range", wid, 0, 0xe4a146);
    		addText(14431, "40 Range", wid, 0, 0xe4a146);
    		addText(14432, "40 Defence", wid, 0, 0xe4a146);
    		addText(14433, "200 Points", wid, 0, 0xe4a146);
    
    		addText(14435, "Mage", wid, 0, 0xe4a146);
    		addText(14436, "40 Magic", wid, 0, 0xe4a146);
    		addText(14437, "40 Defence", wid, 0, 0xe4a146);
    		addText(14438, "200 Points", wid, 0, 0xe4a146);
    
    		addText(14439, "Information: You still need more levels to", wid, 0, 0xe4a146);
    		addText(14440, "wear void armour.", wid, 0, 0xe4a146);
    		addText(14442, "Points: 0", wid, 0, 0xe4a146);
    		addText(14443, "Spending: 100", wid, 0, 0xe4a146);
    		addText(14444, "Accept", wid, 1, 0x00C000);
    
    	addPCButton(14402, 9, 9, 16, 16, "Close Window");
    /*addActionButton(ID, SpriteON, SpriteOFF, SpriteX, SpriteY, "SpriteText");*/
    	addPCButton(14404, 8, 8, 61, 72, "Buy Void Knight Top");
    	addPCButton(14409, 2, 2, 61, 72, "Buy Void Knight Bottom");
    	addPCButton(14414, 3, 3, 61, 72, "Buy Void Knight Gloves");
    	addPCButton(14419, 7, 7, 61, 72, "Buy Void Knight Mace");
    	addPCButton(14424, 4, 4, 61, 72, "Buy Void Melee Helmet");
    	addPCButton(14429, 6, 6, 61, 72, "Buy Void Range Helmet");
    	addPCButton(14434, 5, 5, 61, 72, "Buy Void Mage Helmet");
    	addPCButton(14441, 10, 10, 72, 32, "Accept");
    
    class9.anInt261 = 0;
    class9.aBoolean266 = false;
    class9.anIntArray240 = new int[44];
    class9.anIntArray241 = new int[44];
    class9.anIntArray272 = new int[44];
    
    		class9.anIntArray240[0] = 14401;//screen
    		class9.anIntArray241[0] = 4;
    		class9.anIntArray272[0] = 15;
    		class9.anIntArray240[1] = 14402;//close
    		class9.anIntArray241[1] = 482;
    		class9.anIntArray272[1] = 22;
    		class9.anIntArray240[2] = 14403;//title
    		class9.anIntArray241[2] = 156;
    		class9.anIntArray272[2] = 28;
    		class9.anIntArray240[3] = 14404;//void
    		class9.anIntArray241[3] = 29;
    		class9.anIntArray272[3] = 54;
    		class9.anIntArray240[4] = 14405;//text
    		class9.anIntArray241[4] = 52;
    		class9.anIntArray272[4] = 58;
    		class9.anIntArray240[5] = 14406;//text
    		class9.anIntArray241[5] = 34;
    		class9.anIntArray272[5] = 97;
    		class9.anIntArray240[6] = 14407;//text
    		class9.anIntArray241[6] = 34;
    		class9.anIntArray272[6] = 110;
    		class9.anIntArray240[7] = 14408;//text
    		class9.anIntArray241[7] = 32;
    		class9.anIntArray272[7] = 129;
    
    		class9.anIntArray240[8] = 14409;//void
    		class9.anIntArray241[8] = 93;
    		class9.anIntArray272[8] = 54;
    		class9.anIntArray240[9] = 14410;//text
    		class9.anIntArray241[9] = 105;
    		class9.anIntArray272[9] = 58;
    		class9.anIntArray240[10] = 14411;//text
    		class9.anIntArray241[10] = 98;
    		class9.anIntArray272[10] = 97;
    		class9.anIntArray240[11] = 14412;//text
    		class9.anIntArray241[11] = 98;
    		class9.anIntArray272[11] = 110;
    		class9.anIntArray240[12] = 14413;//text
    		class9.anIntArray241[12] = 95;
    		class9.anIntArray272[12] = 129;
    
    		class9.anIntArray240[13] = 14414;//void
    		class9.anIntArray241[13] = 157;
    		class9.anIntArray272[13] = 54;
    		class9.anIntArray240[14] = 14415;//text
    		class9.anIntArray241[14] = 170;
    		class9.anIntArray272[14] = 58;
    		class9.anIntArray240[15] = 14416;//text
    		class9.anIntArray241[15] = 162;
    		class9.anIntArray272[15] = 97;
    		class9.anIntArray240[16] = 14417;//text
    		class9.anIntArray241[16] = 162;
    		class9.anIntArray272[16] = 110;
    		class9.anIntArray240[17] = 14418;//text
    		class9.anIntArray241[17] = 159;
    		class9.anIntArray272[17] = 129;
    
    		class9.anIntArray240[18] = 14419;//void
    		class9.anIntArray241[18] = 221;
    		class9.anIntArray272[18] = 54;
                    class9.anIntArray240[19] = 14420;//text
                    class9.anIntArray241[19] = 242;
                    class9.anIntArray272[19] = 58;
                    class9.anIntArray240[20] = 14421;//text
                    class9.anIntArray241[20] = 226;
                    class9.anIntArray272[20] = 97;
                    class9.anIntArray240[21] = 14422;//text
                    class9.anIntArray241[21] = 226;
                    class9.anIntArray272[21] = 110;
                    class9.anIntArray240[22] = 14423;//text
                    class9.anIntArray241[22] = 223;
                    class9.anIntArray272[22] = 129;
    
                    class9.anIntArray240[23] = 14424;//void
                    class9.anIntArray241[23] = 285;
                    class9.anIntArray272[23] = 54;
                    class9.anIntArray240[24] = 14425;//text
                    class9.anIntArray241[24] = 302;
                    class9.anIntArray272[24] = 58;
                    class9.anIntArray240[25] = 14426;//text
                    class9.anIntArray241[25] = 290;
                    class9.anIntArray272[25] = 97;
                    class9.anIntArray240[26] = 14427;//text
                    class9.anIntArray241[26] = 290;
                    class9.anIntArray272[26] = 110;
                    class9.anIntArray240[27] = 14428;//text
                    class9.anIntArray241[27] = 287;
                    class9.anIntArray272[27] = 129;
    
                    class9.anIntArray240[28] = 14429;//void
                    class9.anIntArray241[28] = 349;
                    class9.anIntArray272[28] = 54;
                    class9.anIntArray240[29] = 14430;//text
                    class9.anIntArray241[29] = 364;
                    class9.anIntArray272[29] = 58;
                    class9.anIntArray240[30] = 14431;//text
                    class9.anIntArray241[30] = 354;
                    class9.anIntArray272[30] = 97;
                    class9.anIntArray240[31] = 14432;//text
                    class9.anIntArray241[31] = 354;
                    class9.anIntArray272[31] = 110;
                    class9.anIntArray240[32] = 14433;//text
                    class9.anIntArray241[32] = 351;
                    class9.anIntArray272[32] = 129;
    
                    class9.anIntArray240[33] = 14434;//void
                    class9.anIntArray241[33] = 413;
                    class9.anIntArray272[33] = 54;
                    class9.anIntArray240[34] = 14435;//text
                    class9.anIntArray241[34] = 430;
                    class9.anIntArray272[34] = 58;
                    class9.anIntArray240[35] = 14436;//text
                    class9.anIntArray241[35] = 418;
                    class9.anIntArray272[35] = 97;
                    class9.anIntArray240[36] = 14437;//text
                    class9.anIntArray241[36] = 418;
                    class9.anIntArray272[36] = 110;
                    class9.anIntArray240[37] = 14438;//text
                    class9.anIntArray241[37] = 415;
                    class9.anIntArray272[37] = 129;
    
    			/*Box*/
                    class9.anIntArray240[38] = 14439;//text
                    class9.anIntArray241[38] = 162;
                    class9.anIntArray272[38] = 211;
    
                    class9.anIntArray240[39] = 14440;//text
                    class9.anIntArray241[39] = 220;
                    class9.anIntArray272[39] = 224;
    
                    class9.anIntArray240[40] = 14441;//accept
                    class9.anIntArray241[40] = 285;
                    class9.anIntArray272[40] = 235;
    
                    class9.anIntArray240[41] = 14442;//text
                    class9.anIntArray241[41] = 180;
                    class9.anIntArray272[41] = 240;
    
                    class9.anIntArray240[42] = 14443;//text
                    class9.anIntArray241[42] = 180;
                    class9.anIntArray272[42] = 255;
    
                    class9.anIntArray240[43] = 14444;//text
                    class9.anIntArray241[43] = 302;
                    class9.anIntArray272[43] = 243;
    
    	}
    Methods
    Code:
        public static void addPCSprite(int i, int j, int k, String s)
        {
            Class9 class9 = aClass9Array210[i] = new Class9();
            class9.anInt250 = i;
            class9.anInt236 = i;
            class9.anInt262 = 5;
            class9.anInt217 = 1;
            class9.anInt214 = 0;
            class9.anInt220 = 1;
            class9.anInt267 = 1;
            class9.aByte254 = 0;
            class9.anInt230 = 52;
            class9.aClass30_Sub2_Sub1_Sub1_207 = PCLoader(j, "PEST");
            class9.aClass30_Sub2_Sub1_Sub1_260 = PCLoader(k, "PEST");
            class9.aString221 = s;
        }
    
        public static void addPCButton(int i, int j, int k, int width, int height, String s)
        {
            Class9 class9 = aClass9Array210[i] = new Class9();
            class9.anInt250 = i;
            class9.anInt236 = i;
            class9.anInt262 = 5;
            class9.anInt217 = 1;
            class9.anInt214 = 0;
            class9.anInt220 = width;
            class9.anInt267 = height;
            class9.aByte254 = 0;
            class9.anInt230 = 52;
            class9.aClass30_Sub2_Sub1_Sub1_207 = PCLoader(j, "PEST");
            class9.aClass30_Sub2_Sub1_Sub1_260 = PCLoader(k, "PEST");
            class9.aString221 = s;
        }
        private static Class30_Sub2_Sub1_Sub1 PCLoader(int i, String s) 
        {
    	long l = (Class50.method585((byte)1, s) << 8) + (long)i;
    	Class30_Sub2_Sub1_Sub1 class30_sub2_sub1_sub1 = (Class30_Sub2_Sub1_Sub1)aClass12_238.method222(l);
    	if(class30_sub2_sub1_sub1 != null) {
    	return class30_sub2_sub1_sub1;
    	}
    	try {
    	class30_sub2_sub1_sub1 = new Class30_Sub2_Sub1_Sub1(PCSprite+""+s+" "+i+".png");
    	aClass12_238.method223(class30_sub2_sub1_sub1, l, (byte)2);
    	} catch(Exception exception) {
    	return null;
    	}
    	return class30_sub2_sub1_sub1;
        }
    public static void addText(int id, String text, Class30_Sub2_Sub1_Sub4 wid[], int idx, int color) {
    		Class9 Tab = addTab(id);
    		Tab.anInt250 = id;
    		Tab.anInt236 = id;
    		Tab.anInt262 = 4;
    		Tab.anInt217 = 0;
    		Tab.anInt220 = 174;
    		Tab.anInt267 = 11;
    		Tab.anInt214 = 0;
    		Tab.aByte254 = 0;
    		Tab.anInt230 = -1;
    		Tab.aBoolean223 = false;
    		Tab.aBoolean268 = true;
    		Tab.aClass30_Sub2_Sub1_Sub4_243 = wid[idx];
    		Tab.aString248 = text;
    		Tab.aString228 = "";
    		Tab.anInt232 = color;
    		Tab.anInt219 = 0;
    		Tab.anInt216 = 0;
    		Tab.anInt239 = 0;	
    	}
    Under aClass44 = aClass44; add...
    Code:
    pestreward(aclass30_sub2_sub1_sub4);
    Your all done now GOODJOB!


    GALKONS REFACTORED - BY: A nipple
    Quote Originally Posted by A nipple View Post
    Here it is renamed for Galkon's Refactored

    Interface:
    Code:
    	public static void pestreward(TextDrawingArea[] tda)
    	{
    		RSInterface rsinterface = addTabInterface(14400);
    		addPCSprite(14401, 1, 1, "Sprite");//screen
    
    		addText2(14403, "Void Knight Point Exchange", tda, 2, 0xe4a146);
    		addText2(14405, "Top", tda, 0, 0xe4a146);
    		addText2(14406, "40 Prayer", tda, 0, 0xe4a146);
    		addText2(14407, "40 Defence", tda, 0, 0xe4a146);
    		addText2(14408, "250 Points", tda, 0, 0xe4a146);
    
    		addText2(14410, "Bottoms", tda, 0, 0xe4a146);
    		addText2(14411, "40 Prayer", tda, 0, 0xe4a146);
    		addText2(14412, "40 Defence", tda, 0, 0xe4a146);
    		addText2(14413, "250 Points", tda, 0, 0xe4a146);
    
    		addText2(14415, "Gloves", tda, 0, 0xe4a146);
    		addText2(14416, "40 Prayer", tda, 0, 0xe4a146);
    		addText2(14417, "40 Defence", tda, 0, 0xe4a146);
    		addText2(14418, "150 Points", tda, 0, 0xe4a146);
    
    		addText2(14420, "Mace", tda, 0, 0xe4a146);
    		addText2(14421, "40 Attack", tda, 0, 0xe4a146);
    		addText2(14422, "40 Magic", tda, 0, 0xe4a146);
    		addText2(14423, "250 Points", tda, 0, 0xe4a146);
    
    		addText2(14425, "Melee", tda, 0, 0xe4a146);
    		addText2(14426, "40 Attack", tda, 0, 0xe4a146);
    		addText2(14427, "40 Defence", tda, 0, 0xe4a146);
    		addText2(14428, "200 Points", tda, 0, 0xe4a146);
    
    		addText2(14430, "Range", tda, 0, 0xe4a146);
    		addText2(14431, "40 Range", tda, 0, 0xe4a146);
    		addText2(14432, "40 Defence", tda, 0, 0xe4a146);
    		addText2(14433, "200 Points", tda, 0, 0xe4a146);
    
    		addText2(14435, "Mage", tda, 0, 0xe4a146);
    		addText2(14436, "40 Magic", tda, 0, 0xe4a146);
    		addText2(14437, "40 Defence", tda, 0, 0xe4a146);
    		addText2(14438, "200 Points", tda, 0, 0xe4a146);
    
    		addText2(14439, "Information: You still need more levels to", tda, 0, 0xe4a146);
    		addText2(14440, "wear void armour.", tda, 0, 0xe4a146);
    		addText2(14442, "Points: 0", tda, 0, 0xe4a146);
    		addText2(14443, "Spending: 100", tda, 0, 0xe4a146);
    		addText2(14444, "Accept", tda, 1, 0x00C000);
    
    	addPCButton(14402, 9, 9, 16, 16, "Close Window");
    /*addActionButton(ID, SpriteON, SpriteOFF, SpriteX, SpriteY, "SpriteText");*/
    	addPCButton(14404, 8, 8, 61, 72, "Buy Void Knight Top");
    	addPCButton(14409, 2, 2, 61, 72, "Buy Void Knight Bottom");
    	addPCButton(14414, 3, 3, 61, 72, "Buy Void Knight Gloves");
    	addPCButton(14419, 7, 7, 61, 72, "Buy Void Knight Mace");
    	addPCButton(14424, 4, 4, 61, 72, "Buy Void Melee Helmet");
    	addPCButton(14429, 6, 6, 61, 72, "Buy Void Range Helmet");
    	addPCButton(14434, 5, 5, 61, 72, "Buy Void Mage Helmet");
    	addPCButton(14441, 10, 10, 72, 32, "Accept");
    
    rsinterface.scrollMax = 0;
    rsinterface.isMouseoverTriggered = false;
    rsinterface.children = new int[44];
    rsinterface.childX = new int[44];
    rsinterface.childY = new int[44];
    
    		rsinterface.children[0] = 14401;//screen
    		rsinterface.childX[0] = 4;
    		rsinterface.childY[0] = 15;
    		rsinterface.children[1] = 14402;//close
    		rsinterface.childX[1] = 482;
    		rsinterface.childY[1] = 22;
    		rsinterface.children[2] = 14403;//title
    		rsinterface.childX[2] = 156;
    		rsinterface.childY[2] = 28;
    		rsinterface.children[3] = 14404;//void
    		rsinterface.childX[3] = 29;
    		rsinterface.childY[3] = 54;
    		rsinterface.children[4] = 14405;//text
    		rsinterface.childX[4] = 52;
    		rsinterface.childY[4] = 58;
    		rsinterface.children[5] = 14406;//text
    		rsinterface.childX[5] = 34;
    		rsinterface.childY[5] = 97;
    		rsinterface.children[6] = 14407;//text
    		rsinterface.childX[6] = 34;
    		rsinterface.childY[6] = 110;
    		rsinterface.children[7] = 14408;//text
    		rsinterface.childX[7] = 32;
    		rsinterface.childY[7] = 129;
    
    		rsinterface.children[8] = 14409;//void
    		rsinterface.childX[8] = 93;
    		rsinterface.childY[8] = 54;
    		rsinterface.children[9] = 14410;//text
    		rsinterface.childX[9] = 105;
    		rsinterface.childY[9] = 58;
    		rsinterface.children[10] = 14411;//text
    		rsinterface.childX[10] = 98;
    		rsinterface.childY[10] = 97;
    		rsinterface.children[11] = 14412;//text
    		rsinterface.childX[11] = 98;
    		rsinterface.childY[11] = 110;
    		rsinterface.children[12] = 14413;//text
    		rsinterface.childX[12] = 95;
    		rsinterface.childY[12] = 129;
    
    		rsinterface.children[13] = 14414;//void
    		rsinterface.childX[13] = 157;
    		rsinterface.childY[13] = 54;
    		rsinterface.children[14] = 14415;//text
    		rsinterface.childX[14] = 170;
    		rsinterface.childY[14] = 58;
    		rsinterface.children[15] = 14416;//text
    		rsinterface.childX[15] = 162;
    		rsinterface.childY[15] = 97;
    		rsinterface.children[16] = 14417;//text
    		rsinterface.childX[16] = 162;
    		rsinterface.childY[16] = 110;
    		rsinterface.children[17] = 14418;//text
    		rsinterface.childX[17] = 159;
    		rsinterface.childY[17] = 129;
    
    		rsinterface.children[18] = 14419;//void
    		rsinterface.childX[18] = 221;
    		rsinterface.childY[18] = 54;
                    rsinterface.children[19] = 14420;//text
                    rsinterface.childX[19] = 242;
                    rsinterface.childY[19] = 58;
                    rsinterface.children[20] = 14421;//text
                    rsinterface.childX[20] = 226;
                    rsinterface.childY[20] = 97;
                    rsinterface.children[21] = 14422;//text
                    rsinterface.childX[21] = 226;
                    rsinterface.childY[21] = 110;
                    rsinterface.children[22] = 14423;//text
                    rsinterface.childX[22] = 223;
                    rsinterface.childY[22] = 129;
    
                    rsinterface.children[23] = 14424;//void
                    rsinterface.childX[23] = 285;
                    rsinterface.childY[23] = 54;
                    rsinterface.children[24] = 14425;//text
                    rsinterface.childX[24] = 302;
                    rsinterface.childY[24] = 58;
                    rsinterface.children[25] = 14426;//text
                    rsinterface.childX[25] = 290;
                    rsinterface.childY[25] = 97;
                    rsinterface.children[26] = 14427;//text
                    rsinterface.childX[26] = 290;
                    rsinterface.childY[26] = 110;
                    rsinterface.children[27] = 14428;//text
                    rsinterface.childX[27] = 287;
                    rsinterface.childY[27] = 129;
    
                    rsinterface.children[28] = 14429;//void
                    rsinterface.childX[28] = 349;
                    rsinterface.childY[28] = 54;
                    rsinterface.children[29] = 14430;//text
                    rsinterface.childX[29] = 364;
                    rsinterface.childY[29] = 58;
                    rsinterface.children[30] = 14431;//text
                    rsinterface.childX[30] = 354;
                    rsinterface.childY[30] = 97;
                    rsinterface.children[31] = 14432;//text
                    rsinterface.childX[31] = 354;
                    rsinterface.childY[31] = 110;
                    rsinterface.children[32] = 14433;//text
                    rsinterface.childX[32] = 351;
                    rsinterface.childY[32] = 129;
    
                    rsinterface.children[33] = 14434;//void
                    rsinterface.childX[33] = 413;
                    rsinterface.childY[33] = 54;
                    rsinterface.children[34] = 14435;//text
                    rsinterface.childX[34] = 430;
                    rsinterface.childY[34] = 58;
                    rsinterface.children[35] = 14436;//text
                    rsinterface.childX[35] = 418;
                    rsinterface.childY[35] = 97;
                    rsinterface.children[36] = 14437;//text
                    rsinterface.childX[36] = 418;
                    rsinterface.childY[36] = 110;
                    rsinterface.children[37] = 14438;//text
                    rsinterface.childX[37] = 415;
                    rsinterface.childY[37] = 129;
    
    			/*Box*/
                    rsinterface.children[38] = 14439;//text
                    rsinterface.childX[38] = 162;
                    rsinterface.childY[38] = 211;
    
                    rsinterface.children[39] = 14440;//text
                    rsinterface.childX[39] = 220;
                    rsinterface.childY[39] = 224;
    
                    rsinterface.children[40] = 14441;//accept
                    rsinterface.childX[40] = 285;
                    rsinterface.childY[40] = 235;
    
                    rsinterface.children[41] = 14442;//text
                    rsinterface.childX[41] = 180;
                    rsinterface.childY[41] = 240;
    
                    rsinterface.children[42] = 14443;//text
                    rsinterface.childX[42] = 180;
                    rsinterface.childY[42] = 255;
    
                    rsinterface.children[43] = 14444;//text
                    rsinterface.childX[43] = 302;
                    rsinterface.childY[43] = 243;
    
    	}
    Methods:
    Code:
    	    public static void addPCSprite(int i, int j, int k, String s)
        {
            RSInterface rsinterface = interfaceCache[i] = new RSInterface();
            rsinterface.id = i;
            rsinterface.parentID = i;
            rsinterface.type = 5;
            rsinterface.atActionType = 1;
            rsinterface.contentType = 0;
            rsinterface.width = 1;
            rsinterface.height = 1;
            rsinterface.aByte254 = 0;
            rsinterface.mOverInterToTrigger = 52;
            rsinterface.sprite1 = PCLoader(j, "PEST");
            rsinterface.sprite2 = PCLoader(k, "PEST");
            rsinterface.tooltip = s;
        }
    	   public static void addPCButton(int i, int j, int k, int width, int height, String s)
        {
            RSInterface rsinterface = interfaceCache[i] = new RSInterface();
            rsinterface.id = i;
            rsinterface.parentID = i;
            rsinterface.type = 5;
            rsinterface.atActionType = 1;
            rsinterface.contentType = 0;
            rsinterface.width = width;
            rsinterface.height = height;
            rsinterface.aByte254 = 0;
            rsinterface.mOverInterToTrigger = 52;
            rsinterface.sprite1 = PCLoader(j, "PEST");
            rsinterface.sprite2 = PCLoader(k, "PEST");
            rsinterface.tooltip = s;
        }
    	    private static Sprite PCLoader(int i, String s) 
        {
    		long l = (TextClass.method585(s) << 8) + (long)i;
    		Sprite sprite = (Sprite) aMRUNodes_238.insertFromCache(l);
    		if(sprite != null)
    			return sprite;
    		try {
    			sprite = new Sprite(s+" "+i);
    			aMRUNodes_238.removeFromCache(sprite, l);
    		} catch(Exception exception) {
    			return null;
    		}
    		return sprite;
    	}
    	public static void addText2(int id, String text,TextDrawingArea tda[], int idx, int color) {
    		RSInterface Tab = addTabInterface(id);
    		Tab.id = id;
    		Tab.parentID = id;
    		Tab.type = 4;
    		Tab.atActionType = 0;
    		Tab.width = 174;
    		Tab.height = 11;
    		Tab.contentType = 0;
    		Tab.aByte254 = 0;
    		Tab.mOverInterToTrigger = -1;
    		Tab.centerText = false;
    		Tab.textShadow = true;
    		Tab.textDrawingAreas = tda[idx];
    		Tab.message = text;
    		Tab.aString228 = "";
    		Tab.textColor = color;
    		Tab.anInt219 = 0;
    		Tab.anInt216 = 0;
    		Tab.anInt239 = 0;	
    	}
    Add this into Sprite.java
    Code:
    										for(int i = 0; i <= 10; i++) {
    				if (img.equalsIgnoreCase("PEST "+i)) {
    					myWidth = 502;
    					myHeight = 303;
    				}
    			}



    Server Side

    (only for delta)

    In player.java add
    Code:
    public int pcPoints;
    public int option;
    public int chosen = 0;
    (might only need public int chosen = 0;

    ALERT - Process!

    Search for process() and under that line add...

    Code:
    sendQuest("Points: "+pcPoints+" ", 14442);
    sendQuest("Spending: "+chosen+"", 14443);
    IDK if you need this or not but add...
    Code:
    c.sendQuest("Points: "+c.pcPoints+" ", 14442);
    c.sendQuest("Spending: "+c.chosen+"", 14443);
    In texthandler.java

    Now last Part in ClickingMost.java delete your pc interface triggers and add this one...
    Code:
    case 56066:
    c.closeInterface();
    c.chosen -= c.chosen;
    break;
    
    case 56068:
    c.option = 1;
    c.chosen = 250;
    c.sM("You choose the Void Knight Top.");
    break;
    
    case 56073:
    c.option = 2;
    c.chosen = 250;
    c.sM("You choose the Void Knight Bottoms.");
    break;
    
    case 56078:
    c.option = 3;
    c.chosen = 150;
    c.sM("You choose the Void Knight Gloves.");
    break;
    
    case 56083:
    //c.option = 4;
    //c.chosen = 250;
    c.chosen = 0;
    c.sM("Void mace is unavailable.");
    break;
    
    case 56088:
    c.option = 5;
    c.chosen = 200;
    c.sM("You choose the Void Knight Melee helm.");
    break;
    
    case 56093:
    c.option = 6;
    c.chosen = 200;
    c.sM("You choose the Void Knight Range helm.");
    break;
    
    case 56098:
    c.option = 7;
    c.chosen += 200;
    c.sM("You choose the Void Knight Mage helm.");
    break;
    //void knights
    case 56105:
    if(c.option == 0 || c.chosen == 0){
    if(System.currentTimeMillis() - c.lastAction > c.actionInterval) {
    c.sM("You have not chosen a reward!");
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }}
    if(c.option == 1 && c.pcPoints > 249 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.addItem(2520, 1);
    c.pcPoints -= 250;
    c.closeInterface();
    c.chosen -= c.chosen;
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    if(c.option == 1 && c.pcPoints < 250 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.sM("You do not have enough points!");
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    if(c.option == 2 && c.pcPoints > 249 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.addItem(2522, 1);
    c.pcPoints -= 250;
    c.closeInterface();
    c.chosen -= c.chosen;
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    if(c.option == 2 && c.pcPoints < 250 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.sM("You do not have enough points!");
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    if(c.option == 3 && c.pcPoints > 149 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.addItem(2528, 1);
    c.pcPoints -= 150;
    c.closeInterface();
    c.chosen -= c.chosen;
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    if(c.option == 3 && c.pcPoints < 150 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.sM("You do not have enough points!");
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    /*if(c.option == 4 && c.pcPoints > 249 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.addItem( , );
    c.pcPoints -= 250;
    c.closeInterface();
    c.chosen -= c.chosen;
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    if(c.option == 4 && c.pcPoints < 250 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.sM("You do not have enough points!");
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }*/
    if(c.option == 5 && c.pcPoints > 199 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.addItem(2526, 1);
    c.pcPoints -= 200;
    c.closeInterface();
    c.chosen -= c.chosen;
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    if(c.option == 5 && c.pcPoints < 200 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.sM("You do not have enough points!");
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    if(c.option == 6 && c.pcPoints > 199 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.addItem(2524, 1);
    c.pcPoints -= 200;
    c.closeInterface();
    c.chosen -= c.chosen;
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    if(c.option == 6 && c.pcPoints < 200 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.sM("You do not have enough points!");
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    if(c.option == 7 && c.pcPoints > 199 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.addItem(2518, 1);
    c.pcPoints -= 200;
    c.closeInterface();
    c.chosen -= c.chosen;
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    if(c.option == 7 && c.pcPoints < 200 && System.currentTimeMillis() - c.lastAction > c.actionInterval){
    c.sM("You do not have enough points!");
    c.actionInterval = 6000;
    c.lastAction = System.currentTimeMillis();
    }
    (I know it's longer than it should be but I don't care)

    Credits -
    Poisoned I V
    Quote Originally Posted by Note
    Why do you quote yourself?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Sanity's Avatar
    Join Date
    Dec 2008
    Posts
    2,062
    Thanks given
    22
    Thanks received
    362
    Rep Power
    762
    Looks very nice, good job
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    May 2009
    Posts
    1,387
    Thanks given
    21
    Thanks received
    14
    Rep Power
    0
    PLEASE make a harder anti-leech. I knew EXACTLY what to look for when I saw that you had anti-leech in it, only took me a matter of seconds lol.

    On topic: This interface is SEXY, good job. Non-renamed though, it's a shame it isn't renamed .

    PS: Void is 42 defence etc, not 40 .
    Reply With Quote  
     

  4. #4  
    Community Veteran

    .Zach's Avatar
    Join Date
    Nov 2006
    Age
    32
    Posts
    1,894
    Thanks given
    46
    Thanks received
    55
    Rep Power
    613
    I like it, just I don't like how you used pics for the top, bottom, gloves and mace. But the helms look like you used models
    Attached image
    Reply With Quote  
     

  5. #5  
    Extreme Donator


    Join Date
    Mar 2009
    Age
    29
    Posts
    956
    Thanks given
    29
    Thanks received
    15
    Rep Power
    215
    I know anti is easy I don't want newbies to get this interface and if someone says fix i'm changing it to another "easy" anti leech lol.
    Quote Originally Posted by Note
    Why do you quote yourself?
    Reply With Quote  
     

  6. #6  
    Registered Member partyhat101's Avatar
    Join Date
    Jun 2009
    Posts
    212
    Thanks given
    0
    Thanks received
    1
    Rep Power
    40
    Nice, i like it
    Reply With Quote  
     

  7. #7  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    29
    Posts
    7,987
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    I like it Nice man. Rep++ for looking good.


    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Sep 2008
    Posts
    131
    Thanks given
    3
    Thanks received
    2
    Rep Power
    3
    looks nice but if i use id make it more organised

    nice anti leech btw

    [SPOIL]/*addActionButton(ID, SpriteON, SpriteOFF, SpriteX, SpriteY, "SpriteText");*/[/SPOIL]

    Reply With Quote  
     

  9. #9  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    Why didn't you just make the real one?
    Free Filehost Premium Accounts
    Click Here
    Reply With Quote  
     

  10. #10  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    29
    Posts
    7,987
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Quote Originally Posted by r u natural View Post
    looks nice but if i use id make it more organised

    nice anti leech btw

    [SPOIL]/*addActionButton(ID, SpriteON, SpriteOFF, SpriteX, SpriteY, "SpriteText");*/[/SPOIL]
    Thats not antileech. He is using commenting to describe the usage of his method.

    This is the antileech:
    Code:
    class9.anIntArray240 = new int[43];
    class9.anIntArray241 = new int[43];
    class9.anIntArray272 = new int[43];
    Arrays start at an index of "0". He uses 44. So the new int[43] should be 44. Enjoy.


    Reply With Quote  
     

Page 1 of 5 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •