Thread: Price checker interface[NON-RENAMED]

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 44
  1. #1 Price checker interface[NON-RENAMED] 
    Registered Member
    Join Date
    Jan 2009
    Posts
    282
    Thanks given
    12
    Thanks received
    1
    Rep Power
    32
    Well was bored so i logged in RS and realized that there were new interface so i decided to made it for RSPS...pretty easy took about 15 min anyway here the code:

    REDO THIS TUT IF U DONT HAVE THE EQUIPMENT TAB!

    Add this where you add your interface code
    Code:
    	public static void PriceChecker(Class30_Sub2_Sub1_Sub4[] wid)
    	{
    		Class9 class9 = addTab(20000);
    		addText(15126, "Click on the object in your inventory to see their value.", wid, 1, 0xff9040);
    		addText(15128, "Total Value :", wid, 0, 0xff9040);
    		addText(15129, "0", wid, 0, 0xff9040);
    		addText(15130, "Coded by Jeff", wid, 0, 0xff9040);
    		addText(15131, "Proud owner of JeffScape", wid, 0, 0xff9040);
    		addText(15138, "", wid, 0, 0xff9040);
    		addText(15139, "", wid, 0, 0xff9040);
    		addText(15162, "", wid, 0, 0xff9040);
    		addText(15161, "", wid, 0, 0xff9040);
    		addText(15160, "", wid, 0, 0xff9040);
    		addText(15149, "", wid, 0, 0xff9040);
    		addText(15143, "", wid, 0, 0xff9040);
    		addText(15144, "", wid, 0, 0xff9040);
    		addText(15145, "", wid, 0, 0xff9040);
    		addText(15146, "", wid, 0, 0xff9040);
    		addText(15147, "", wid, 0, 0xff9040);
    		addText(15148, "", wid, 0, 0xff9040);
    		addJeffScapeSprite2(15106, 15106, 15106, "Sprite");
    		addJeffScapeSprite(15127, 15127, 15127, 16, 16, "Close");
    		addInv(15132, 15132, 33, 31);
    		addInv(15133, 15133, 33, 31);
    		addInv(15134, 15134, 33, 31);
    		addInv(15135, 15135, 33, 31);
    		addInv(15136, 15136, 33, 31);
    		addInv(15137, 15137, 33, 31);		
    		class9.aBoolean266 = false;
            class9.anInt261 = 0;
    		class9.anIntArray240 = new int[25];
    		class9.anIntArray241 = new int[25];
    		class9.anIntArray272 = new int[25];
    		class9.anIntArray240[0] = 15106;
    		class9.anIntArray241[0] = 12;
    		class9.anIntArray272[0] = 20;
    		class9.anIntArray240[1] = 15127;
    		class9.anIntArray241[1] = 473;
    		class9.anIntArray272[1] = 23;
    		class9.anIntArray240[2] = 15126;
    		class9.anIntArray241[2] = 65;
    		class9.anIntArray272[2] = 166;
    		class9.anIntArray240[3] = 15128;
    		class9.anIntArray241[3] = 93;
    		class9.anIntArray272[3] = 297;
    		class9.anIntArray240[4] = 15130;
    		class9.anIntArray241[4] = 339;
    		class9.anIntArray272[4] = 297;
    		class9.anIntArray240[5] = 15129;
    		class9.anIntArray241[5] = 127;
    		class9.anIntArray272[5] = 309;
    		class9.anIntArray240[6] = 15131;
    		class9.anIntArray241[6] = 339;
    		class9.anIntArray272[6] = 309;
    		class9.anIntArray240[7] = 15132;
    		class9.anIntArray241[7] = 53;
    		class9.anIntArray272[7] = 64;
    		class9.anIntArray240[8] = 15133;
    		class9.anIntArray241[8] = 118;
    		class9.anIntArray272[8] = 64;
    		class9.anIntArray240[9] = 15134;
    		class9.anIntArray241[9] = 183;
    		class9.anIntArray272[9] = 64;
    		class9.anIntArray240[10] = 15135;
    		class9.anIntArray241[10] = 248;
    		class9.anIntArray272[10] = 64;	
    		class9.anIntArray240[11] = 15136;
    		class9.anIntArray241[11] = 313;
    		class9.anIntArray272[11] = 64;	
    		class9.anIntArray240[12] = 15137;
    		class9.anIntArray241[12] = 378;
    		class9.anIntArray272[12] = 64;
    		class9.anIntArray240[13] = 15138;
    		class9.anIntArray241[13] = 53;
    		class9.anIntArray272[13] = 99;	
    		class9.anIntArray240[14] = 15139;
    		class9.anIntArray241[14] = 53;
    		class9.anIntArray272[14] = 110;	
    		class9.anIntArray240[15] = 15162;
    		class9.anIntArray241[15] = 118;
    		class9.anIntArray272[15] = 99;
    		class9.anIntArray240[16] = 15161;
    		class9.anIntArray241[16] = 118;
    		class9.anIntArray272[16] = 110;	
    		class9.anIntArray240[17] = 15160;
    		class9.anIntArray241[17] = 183;
    		class9.anIntArray272[17] = 99;
    		class9.anIntArray240[18] = 15149;
    		class9.anIntArray241[18] = 183;
    		class9.anIntArray272[18] = 110;	
    		class9.anIntArray240[19] = 15143;
    		class9.anIntArray241[19] = 248;
    		class9.anIntArray272[19] = 99;
    		class9.anIntArray240[20] = 15144;
    		class9.anIntArray241[20] = 248;
    		class9.anIntArray272[20] = 110;	
    		class9.anIntArray240[21] = 15145;
    		class9.anIntArray241[21] = 313;
    		class9.anIntArray272[21] = 99;
    		class9.anIntArray240[22] = 15146;
    		class9.anIntArray241[22] = 313;
    		class9.anIntArray272[22] = 110;
    		class9.anIntArray240[23] = 15147;
    		class9.anIntArray241[23] = 378;
    		class9.anIntArray272[23] = 99;
    		class9.anIntArray240[24] = 15148;
    		class9.anIntArray241[24] = 378;
    		class9.anIntArray272[24] = 110;		
    	}
    Here the code for the equipment Tab:
    Code:
    	public static void EquipmentTab(Class30_Sub2_Sub1_Sub4[] wid)
    	{
    		Class9 t = aClass9Array210[1644];
    		/*addActionButton(ID, SpriteON, SpriteOFF, SpriteX, SpriteY, "SpriteText");*/
    		addJeffScapeSprite(15101, 15101, 15101, 40, 39, "Afficher les Stats d'équipement");
    		addJeffScapeSprite(15102, 15102, 15102, 40, 39, "Afficher les objets conservés après la mort");
    		addJeffScapeSprite(15103, 15103, 15103, 40, 39, "Afficher Vérificateur de prix");
    		/*removeSomething(ID)*/
    		removeSomething(15104);
    
    		t.anIntArray240[23] = 15101;
    		t.anIntArray241[23] = 21;
    		t.anIntArray272[23] = 212;
    		t.anIntArray240[24] = 15102;
    		t.anIntArray241[24] = 129;
    		t.anIntArray272[24] = 212;
    		t.anIntArray240[25] = 15103;
    		t.anIntArray241[25] = 75;
    		t.anIntArray272[25] = 212;
    		t.anIntArray240[26] = 15104;
    		t.anIntArray241[26] = 41+39+30;
    		t.anIntArray272[26] = 212;
    	}
    then search for this:
    Code:
    aclass44 =
    and under this add:
    Code:
    PriceChecker(aclass30_sub2_sub1_sub4);
    EquipmentTab(aclass30_sub2_sub1_sub4);
    then add these 5 method:
    Code:
    private static Class30_Sub2_Sub1_Sub1 JeffScapeLoader(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(signlink.findcachedir()+"/JeffScape/"+s+" "+i+".png");
    aClass12_238.method223(class30_sub2_sub1_sub1, l, (byte)2);
    } catch(Exception exception) {
    return null;
    }
    return class30_sub2_sub1_sub1;
    }
    Code:
    	
    	    public static void removeSomething(int i)
        {
            Class9 class9 = aClass9Array210[i] = new Class9();
            class9.anInt250 = i;
            class9.anInt236 = i;
            class9.anInt262 = 5;
            class9.anInt217 = 1;
            class9.anInt214 = 0;
            class9.aByte254 = 0;
            class9.anInt230 = 52;
        }
    public static void addJeffScapeSprite2(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 = JeffScapeLoader(j, "CUSTOM");
            class9.aClass30_Sub2_Sub1_Sub1_260 = JeffScapeLoader(k, "CUSTOM");
            class9.aString221 = s;
        }
    Code:
    	public static void addInv(int id, int pID, int h, int w)
    {
    Class9 Tab = aClass9Array210[id] = new Class9();
    Tab.anIntArray253 = new int[w * h];
    Tab.anIntArray252 = new int[w * h];
    for(int i1 = 0; i1 < w * h; i1++)
                    {
    Tab.anIntArray252[i1] = 0;
    Tab.anIntArray253[i1] = 0;
    }
    Tab.anIntArray247 = new int[20];
    Tab.anIntArray215 = new int[20];
    for(int i2 = 0; i2 < 20; i2++)
    {
    Tab.anIntArray247[i2] = 0;
    Tab.anIntArray215[i2] = 0;
    }
    
    Tab.anInt220 = w;
    Tab.anInt230 = -1;
    Tab.anInt236 = pID;
    Tab.anInt250 = id;
    Tab.anInt261 = 0;
    Tab.anInt262 = 2;
    Tab.anInt267 = h;
    }
    Code:
    	public static void addJeffScapeSprite(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 = JeffScapeLoader(j, "custom");
            class9.aClass30_Sub2_Sub1_Sub1_260 = JeffScapeLoader(k, "custom");
            class9.aString221 = s;
        }
    Create a folder named JeffScape in your cache folder and put those sprite in it:
    http://**********/8H2INT

    RENAMED VERSION:
    Code:
    Add this where you add your interface code
    Code:
    	public static void PriceChecker(Class30_Sub2_Sub1_Sub4[] wid)
    	{
    		RSInterface rsinterface = addTab(20000);
    		addText(15126, "Click on an object in your inventory to see it value.", wid, 1, 0xff9040);
    		addText(15128, "Total Value :", wid, 0, 0xff9040);
    		addText(15129, "0", wid, 0, 0xff9040);
    		addText(15130, "Made by Jeff", wid, 0, 0xff9040);
    		addText(15131, "Proud owner of JeffScape", wid, 0, 0xff9040);
    		addJeffScapeSprite2(15106, 15106, 15106, "Sprite");
    		addJeffScapeSprite(15127, 15127, 15127, 16, 16, "Close");
    		
    		rsinterface.aBoolean266 = false;
            rsinterface.scrollMax = 0;
    		rsinterface.children = new int[7];
    		rsinterface.childX = new int[7];
    		rsinterface.clildY = new int[7];
    		rsinterface.children[0] = 15106;
    		rsinterface.childX[0] = 12;
    		rsinterface.clildY[0] = 20;
    		rsinterface.children[1] = 15127;
    		rsinterface.childX[1] = 473;
    		rsinterface.clildY[1] = 23;
    		rsinterface.children[2] = 15126;
    		rsinterface.childX[2] = 65;
    		rsinterface.clildY[2] = 166;
    		rsinterface.children[3] = 15128;
    		rsinterface.childX[3] = 93;
    		rsinterface.clildY[3] = 297;
    		rsinterface.children[4] = 15130;
    		rsinterface.childX[4] = 339;
    		rsinterface.clildY[4] = 297;
    		rsinterface.children[5] = 15129;
    		rsinterface.childX[5] = 127;
    		rsinterface.clildY[5] = 309;
    		rsinterface.children[6] = 15131;
    		rsinterface.childX[6] = 339;
    		rsinterface.clildY[6] = 309;	
    	}
    then search for this:
    Code:
    aMRUNodes_238
    and under this add:
    Code:
    PriceChecker(textDrawingAreas);
    then add these 3 method:
    Code:
    private static Sprite JeffScapeLoader(int i, String s) 
    {
    long l = (Class50.method585((byte)1, s) << 8) + (long)i;
    Sprite sprite = (Sprite)aMRUNodes_238.method222(l);
    if(sprite != null) {
    return sprite;
    }
    try {
    sprite = new Sprite(signlink.findcachedir()+"/JeffScape/"+s+" "+i+".png");
    aMRUNodes_238.method223(sprite, l, (byte)2);
    } catch(Exception exception) {
    return null;
    }
    return sprite;
    }
    	public static void addJeffScapeSprite2(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.anInt214 = 0;
            rsinterface.width = 1;
            rsinterface.height = 1;
            rsinterface.aByte254 = 0;
            rsinterface.anInt230 = 52;
            rsinterface.sprite1 = JeffScapeLoader(j, "CUSTOM");
            rsinterface.sprite2 = JeffScapeLoader(k, "CUSTOM");
            rsinterface.tooltip = s;
        }
    	public static void addJeffScapeSprite(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.anInt214 = 0;
            rsinterface.width = width;
            rsinterface.height = height;
            rsinterface.aByte254 = 0;
            rsinterface.anInt230 = 52;
            rsinterface.sprite1 = JeffScapeLoader(j, "custom");
            rsinterface.sprite2 = JeffScapeLoader(k, "custom");
            rsinterface.tooltip = s;
        }
    Create a folder named JeffScape in your cache folder and put those sprite in it:
    http://**********/8H2INT
    Thanks to Avatarscape for renaming it.
    Note: the renamed version won't allow you to add item on this interface since Avatarscape renamed it before
    I add the code that allow you to add item.

    Enjoy =)

    Pic:


    Btw, mine is in french but dont worry urs wont be...

    Credits:
    Me
    Ascheriit for the addInv method.
    Jagex
    Reply With Quote  
     

  2. #2  
    Unstoppable
    Guest
    leet nice
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jun 2008
    Posts
    913
    Thanks given
    30
    Thanks received
    94
    Rep Power
    0
    Picture would be nice.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2009
    Posts
    282
    Thanks given
    12
    Thanks received
    1
    Rep Power
    32
    2 sec ill add picture
    Reply With Quote  
     

  5. #5  
    Donator
    Sonico's Avatar
    Join Date
    May 2008
    Posts
    1,173
    Thanks given
    93
    Thanks received
    65
    Rep Power
    349
    Thanks looks nice
    Reply With Quote  
     

  6. #6  
    Donator


    Join Date
    Sep 2007
    Age
    27
    Posts
    2,426
    Thanks given
    125
    Thanks received
    505
    Rep Power
    386
    Well was bored so i logged in RS and realized that there were new interface so i decided to made it for RSPS...pretty easy took about 15 min anyway here the code:

    Add this where you add your interface code
    Code:
    	public static void PriceChecker(Class30_Sub2_Sub1_Sub4[] wid)
    	{
    		RSInterface rsinterface = addTab(20000);
    		addText(15126, "Click on an object in your inventory to see it value.", wid, 1, 0xff9040);
    		addText(15128, "Total Value :", wid, 0, 0xff9040);
    		addText(15129, "0", wid, 0, 0xff9040);
    		addText(15130, "Made by Jeff", wid, 0, 0xff9040);
    		addText(15131, "Proud owner of JeffScape", wid, 0, 0xff9040);
    		addJeffScapeSprite2(15106, 15106, 15106, "Sprite");
    		addJeffScapeSprite(15127, 15127, 15127, 16, 16, "Close");
    		
    		rsinterface.aBoolean266 = false;
            rsinterface.scrollMax = 0;
    		rsinterface.children = new int[7];
    		rsinterface.childX = new int[7];
    		rsinterface.clildY = new int[7];
    		rsinterface.children[0] = 15106;
    		rsinterface.childX[0] = 12;
    		rsinterface.clildY[0] = 20;
    		rsinterface.children[1] = 15127;
    		rsinterface.childX[1] = 473;
    		rsinterface.clildY[1] = 23;
    		rsinterface.children[2] = 15126;
    		rsinterface.childX[2] = 65;
    		rsinterface.clildY[2] = 166;
    		rsinterface.children[3] = 15128;
    		rsinterface.childX[3] = 93;
    		rsinterface.clildY[3] = 297;
    		rsinterface.children[4] = 15130;
    		rsinterface.childX[4] = 339;
    		rsinterface.clildY[4] = 297;
    		rsinterface.children[5] = 15129;
    		rsinterface.childX[5] = 127;
    		rsinterface.clildY[5] = 309;
    		rsinterface.children[6] = 15131;
    		rsinterface.childX[6] = 339;
    		rsinterface.clildY[6] = 309;	
    	}
    then search for this:
    Code:
    aMRUNodes_238
    and under this add:
    Code:
    PriceChecker(textDrawingAreas);
    then add these 3 method:
    Code:
    private static Sprite JeffScapeLoader(int i, String s) 
    {
    long l = (Class50.method585((byte)1, s) << 8) + (long)i;
    Sprite sprite = (Sprite)aMRUNodes_238.method222(l);
    if(sprite != null) {
    return sprite;
    }
    try {
    sprite = new Sprite(signlink.findcachedir()+"/JeffScape/"+s+" "+i+".png");
    aMRUNodes_238.method223(sprite, l, (byte)2);
    } catch(Exception exception) {
    return null;
    }
    return sprite;
    }
    	public static void addJeffScapeSprite2(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.anInt214 = 0;
            rsinterface.width = 1;
            rsinterface.height = 1;
            rsinterface.aByte254 = 0;
            rsinterface.anInt230 = 52;
            rsinterface.sprite1 = JeffScapeLoader(j, "CUSTOM");
            rsinterface.sprite2 = JeffScapeLoader(k, "CUSTOM");
            rsinterface.tooltip = s;
        }
    	public static void addJeffScapeSprite(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.anInt214 = 0;
            rsinterface.width = width;
            rsinterface.height = height;
            rsinterface.aByte254 = 0;
            rsinterface.anInt230 = 52;
            rsinterface.sprite1 = JeffScapeLoader(j, "custom");
            rsinterface.sprite2 = JeffScapeLoader(k, "custom");
            rsinterface.tooltip = s;
        }
    Create a folder named JeffScape in your cache folder and put those sprite in it:
    http://**********/CKPO68
    There, renamed it for yah
    Attached image
    Reply With Quote  
     

  7. #7  
    Haxd
    Guest
    Nice one
    Keep it up
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jan 2009
    Posts
    282
    Thanks given
    12
    Thanks received
    1
    Rep Power
    32
    thanks for renaming, added code at the top, and thanks for all comment.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Ares's Avatar
    Join Date
    Jan 2009
    Age
    31
    Posts
    357
    Thanks given
    1
    Thanks received
    3
    Rep Power
    177
    Nice job, and someone finally used the snippet i posted =D.
    Edit: You should add text lines for each item slot + clicking items to add to the interface.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jan 2009
    Posts
    282
    Thanks given
    12
    Thanks received
    1
    Rep Power
    32
    thanks and yea ill edit post to give u some credit, wasnt sure who did the addinv method
    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
  •