Thread: [PI] Interface Help

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 [PI] Interface Help 
    Registered Member
    Join Date
    Mar 2012
    Posts
    96
    Thanks given
    75
    Thanks received
    3
    Rep Power
    39
    I'm using Poesy's 317 client loading 474 interfaces. Currently when I open lunars, it disconnects. I'm guessing the reason is because the server's trying to load the old interfaces. I have no idea what the new interfaces are, so I figured this was the best place to try.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    Find this in RSINTERFACE.java

    [SPOIL]
    configureLunar(textDrawingAreas);
    [/SPOIL]


    It should look like this

    [SPOIL]
    }
    aClass44 = streamLoader;
    prayerTab(textDrawingAreas);
    emoteTab();
    optionTab(textDrawingAreas);
    clanChatTab(textDrawingAreas);
    Sidebar0(textDrawingAreas);
    friendsTab(textDrawingAreas);
    ignoreTab(textDrawingAreas);
    Pestpanel(textDrawingAreas);
    Pestpanel2(textDrawingAreas);
    equipmentScreen(textDrawingAreas);
    magicTab(textDrawingAreas);
    ancientMagicTab(textDrawingAreas);
    configureLunar(textDrawingAreas);
    aMRUNodes_238 = null;
    }
    [/SPOIL]

    Under any of those place this

    [SPOIL]
    constructLunar();
    [/SPOIL]

    It should now look like this

    [SPOIL]
    }
    aClass44 = streamLoader;
    prayerTab(textDrawingAreas);
    emoteTab();
    optionTab(textDrawingAreas);
    clanChatTab(textDrawingAreas);
    Sidebar0(textDrawingAreas);
    friendsTab(textDrawingAreas);
    ignoreTab(textDrawingAreas);
    Pestpanel(textDrawingAreas);
    Pestpanel2(textDrawingAreas);
    equipmentScreen(textDrawingAreas);
    magicTab(textDrawingAreas);
    ancientMagicTab(textDrawingAreas);
    configureLunar(textDrawingAreas);
    constructLunar();
    aMRUNodes_238 = null;
    }
    [/SPOIL]
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2012
    Posts
    96
    Thanks given
    75
    Thanks received
    3
    Rep Power
    39
    I don't have that in RSInterface. Here's mine:

    Code:
    // Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html
    // Decompiler options: packimports(3) 
    
    public final class RSInterface {
    
    	public void swapInventoryItems(int i, int j) {
    		int k = inv[i];
    		inv[i] = inv[j];
    		inv[j] = k;
    		k = invStackSizes[i];
    		invStackSizes[i] = invStackSizes[j];
    		invStackSizes[j] = k;
    	}
    
    	public static void unpack(StreamLoader streamLoader, TextDrawingArea textDrawingAreas[], StreamLoader streamLoader_1) {
    		aMRUNodes_238 = new MRUNodes(50000);
    		Stream stream = new Stream(streamLoader.getDataForName("data"));
    		int i = -1;
    		int j = stream.readUnsignedWord();
    		interfaceCache = new RSInterface[j + 10000];
    		while(stream.currentOffset < stream.buffer.length) {
    			int k = stream.readUnsignedWord();
    			if(k == 65535) {
    				i = stream.readUnsignedWord();
    				k = stream.readUnsignedWord();
    			}
    			RSInterface rsInterface = interfaceCache[k] = new RSInterface();
    			rsInterface.id = k;
    			rsInterface.parentID = i;
    			rsInterface.type = stream.readUnsignedByte();
    			rsInterface.atActionType = stream.readUnsignedByte();
    			rsInterface.contentType = stream.readUnsignedWord();
    			rsInterface.width = stream.readUnsignedWord();
    			rsInterface.height = stream.readUnsignedWord();
    			rsInterface.aByte254 = (byte) stream.readUnsignedByte();
    			rsInterface.mOverInterToTrigger = stream.readUnsignedByte();
    			if(rsInterface.mOverInterToTrigger != 0)
    				rsInterface.mOverInterToTrigger = (rsInterface.mOverInterToTrigger - 1 << 8) + stream.readUnsignedByte();
    			else
    				rsInterface.mOverInterToTrigger = -1;
    			int i1 = stream.readUnsignedByte();
    			if(i1 > 0) {
    				rsInterface.anIntArray245 = new int[i1];
    				rsInterface.anIntArray212 = new int[i1];
    				for(int j1 = 0; j1 < i1; j1++) {
    					rsInterface.anIntArray245[j1] = stream.readUnsignedByte();
    					rsInterface.anIntArray212[j1] = stream.readUnsignedWord();
    				}
    
    			}
    			int k1 = stream.readUnsignedByte();
    			if(k1 > 0) {
    				rsInterface.valueIndexArray = new int[k1][];
    				for(int l1 = 0; l1 < k1; l1++) {
    					int i3 = stream.readUnsignedWord();
    					rsInterface.valueIndexArray[l1] = new int[i3];
    					for(int l4 = 0; l4 < i3; l4++)
    						rsInterface.valueIndexArray[l1][l4] = stream.readUnsignedWord();
    
    				}
    
    			}
    			if(rsInterface.type == 0) {
    				rsInterface.drawsTransparent = false;
    				rsInterface.scrollMax = stream.readUnsignedWord();
    				rsInterface.isMouseoverTriggered = stream.readUnsignedByte() == 1;
    				int i2 = stream.readUnsignedWord();
    				rsInterface.children = new int[i2];
    				rsInterface.childX = new int[i2];
    				rsInterface.childY = new int[i2];
    				for(int j3 = 0; j3 < i2; j3++) {
    					rsInterface.children[j3] = stream.readUnsignedWord();
    					rsInterface.childX[j3] = stream.readSignedWord();
    					rsInterface.childY[j3] = stream.readSignedWord();
    				}
    			}
    			if(rsInterface.type == 1) {
    				stream.readUnsignedWord();
    				stream.readUnsignedByte();
    			}
    			if(rsInterface.type == 2) {
    				rsInterface.inv = new int[rsInterface.width * rsInterface.height];
    				rsInterface.invStackSizes = new int[rsInterface.width * rsInterface.height];
    				rsInterface.aBoolean259 = stream.readUnsignedByte() == 1;
    				rsInterface.isInventoryInterface = stream.readUnsignedByte() == 1;
    				rsInterface.usableItemInterface = stream.readUnsignedByte() == 1;
    				rsInterface.aBoolean235 = stream.readUnsignedByte() == 1;
    				rsInterface.invSpritePadX = stream.readUnsignedByte();
    				rsInterface.invSpritePadY = stream.readUnsignedByte();
    				rsInterface.spritesX = new int[20];
    				rsInterface.spritesY = new int[20];
    				rsInterface.sprites = new Sprite[20];
    				for(int j2 = 0; j2 < 20; j2++) {
    					int k3 = stream.readUnsignedByte();
    					if(k3 == 1) {
    						rsInterface.spritesX[j2] = stream.readSignedWord();
    						rsInterface.spritesY[j2] = stream.readSignedWord();
    						String s1 = stream.readString();
    						if(streamLoader_1 != null && s1.length() > 0) {
    							int i5 = s1.lastIndexOf(",");
    							rsInterface.sprites[j2] = method207(Integer.parseInt(s1.substring(i5 + 1)), streamLoader_1, s1.substring(0, i5));
    						}
    					}
    				}
    				rsInterface.actions = new String[5];
    				for(int l3 = 0; l3 < 5; l3++) {
    					rsInterface.actions[l3] = stream.readString();
    					if(rsInterface.actions[l3].length() == 0)
    						rsInterface.actions[l3] = null;
    				}
    			}
    			if(rsInterface.type == 3)
    				rsInterface.aBoolean227 = stream.readUnsignedByte() == 1;
    			if(rsInterface.type == 4 || rsInterface.type == 1) {
    				rsInterface.centerText = stream.readUnsignedByte() == 1;
    				int k2 = stream.readUnsignedByte();
    				if(textDrawingAreas != null)
    					rsInterface.textDrawingAreas = textDrawingAreas[k2];
    				rsInterface.textShadow = stream.readUnsignedByte() == 1;
    			}
    			if(rsInterface.type == 4) {
    				rsInterface.message = stream.readString();
    				rsInterface.aString228 = stream.readString();
    			}
    			if(rsInterface.type == 1 || rsInterface.type == 3 || rsInterface.type == 4)
    				rsInterface.textColor = stream.readDWord();
    			if(rsInterface.type == 3 || rsInterface.type == 4) {
    				rsInterface.anInt219 = stream.readDWord();
    				rsInterface.anInt216 = stream.readDWord();
    				rsInterface.anInt239 = stream.readDWord();
    			}
    			if(rsInterface.type == 5) {
    				rsInterface.drawsTransparent = false;
    				String s = stream.readString();
    				if(streamLoader_1 != null && s.length() > 0) {
    					int i4 = s.lastIndexOf(",");
    					rsInterface.sprite1 = method207(Integer.parseInt(s.substring(i4 + 1)), streamLoader_1, s.substring(0, i4));
    				}
    				s = stream.readString();
    				if(streamLoader_1 != null && s.length() > 0) {
    					int j4 = s.lastIndexOf(",");
    					rsInterface.sprite2 = method207(Integer.parseInt(s.substring(j4 + 1)), streamLoader_1, s.substring(0, j4));
    				}
    			}
    			if(rsInterface.type == 6) {
    				int l = stream.readUnsignedByte();
    				if(l != 0) {
    					rsInterface.anInt233 = 1;
    					rsInterface.mediaID = (l - 1 << 8) + stream.readUnsignedByte();
    				}
    				l = stream.readUnsignedByte();
    				if(l != 0) {
    					rsInterface.anInt255 = 1;
    					rsInterface.anInt256 = (l - 1 << 8) + stream.readUnsignedByte();
    				}
    				l = stream.readUnsignedByte();
    				if(l != 0)
    					rsInterface.anInt257 = (l - 1 << 8) + stream.readUnsignedByte();
    				else
    					rsInterface.anInt257 = -1;
    				l = stream.readUnsignedByte();
    				if(l != 0)
    					rsInterface.anInt258 = (l - 1 << 8) + stream.readUnsignedByte();
    				else
    					rsInterface.anInt258 = -1;
    				rsInterface.modelZoom = stream.readUnsignedWord();
    				rsInterface.modelRotation1 = stream.readUnsignedWord();
    				rsInterface.modelRotation2 = stream.readUnsignedWord();
    			}
    			if(rsInterface.type == 7) {
    				rsInterface.inv = new int[rsInterface.width * rsInterface.height];
    				rsInterface.invStackSizes = new int[rsInterface.width * rsInterface.height];
    				rsInterface.centerText = stream.readUnsignedByte() == 1;
    				int l2 = stream.readUnsignedByte();
    				if(textDrawingAreas != null)
    					rsInterface.textDrawingAreas = textDrawingAreas[l2];
    				rsInterface.textShadow = stream.readUnsignedByte() == 1;
    				rsInterface.textColor = stream.readDWord();
    				rsInterface.invSpritePadX = stream.readSignedWord();
    				rsInterface.invSpritePadY = stream.readSignedWord();
    				rsInterface.isInventoryInterface = stream.readUnsignedByte() == 1;
    				rsInterface.actions = new String[5];
    				for(int k4 = 0; k4 < 5; k4++) {
    					rsInterface.actions[k4] = stream.readString();
    					if(rsInterface.actions[k4].length() == 0)
    						rsInterface.actions[k4] = null;
    				}
    
    			}
    			if(rsInterface.atActionType == 2 || rsInterface.type == 2) {
    				rsInterface.selectedActionName = stream.readString();
    				rsInterface.spellName = stream.readString();
    				rsInterface.spellUsableOn = stream.readUnsignedWord();
    			}
    
    			if(rsInterface.type == 8)
    				rsInterface.message = stream.readString();
    
    			if(rsInterface.atActionType == 1 || rsInterface.atActionType == 4 || rsInterface.atActionType == 5 || rsInterface.atActionType == 6) {
    				rsInterface.tooltip = stream.readString();
    				if(rsInterface.tooltip.length() == 0) {
    					if(rsInterface.atActionType == 1)
    						rsInterface.tooltip = "Ok";
    					if(rsInterface.atActionType == 4)
    						rsInterface.tooltip = "Select";
    					if(rsInterface.atActionType == 5)
    						rsInterface.tooltip = "Select";
    					if(rsInterface.atActionType == 6)
    						rsInterface.tooltip = "Continue";
    				}
    			}
    		}
    		aClass44 = streamLoader;
    		aMRUNodes_238 = null;
    	}
    
    	public static void addText(int id, String text, TextDrawingArea tda[], int idx, int color, boolean center, boolean shadow) {
    		RSInterface tab = addTabInterface(id);
    		tab.parentID = id;
    		tab.id = id;
    		tab.type = 4;
    		tab.atActionType = 0;
    		tab.width = 0;
    		tab.height = 11;
    		tab.contentType = 0;
    		tab.aByte254 = 0;
    		tab.mOverInterToTrigger = -1;
    		tab.centerText = center;
    		tab.textShadow = shadow;
    		tab.textDrawingAreas = tda[idx];
    		tab.message = text;
    		tab.aString228 = "";
    		tab.textColor = color;
    		tab.anInt219 = 0;
    		tab.anInt216 = 0;
    		tab.anInt239 = 0;	
    	}
    
    	public static void addButton(int id, int sid, String spriteName, String tooltip, int w, int h) {
    		RSInterface tab = interfaceCache[id] = new RSInterface();
    		tab.id = id;
    		tab.parentID = id;
    		tab.type = 5;
    		tab.atActionType = 1;
    		tab.contentType = 0;
    		tab.aByte254 = (byte)0;
    		tab.mOverInterToTrigger = 52;
    		tab.sprite1 = imageLoader(sid, spriteName);
    		tab.sprite2 = imageLoader(sid, spriteName);
    		tab.width = w;
    		tab.height = h;
    		tab.tooltip = tooltip;
    	}
    
    	public static void addSprite(int id, int spriteId, String spriteName) {
    		RSInterface tab = interfaceCache[id] = new RSInterface();
    		tab.id = id;
    		tab.parentID = id;
    		tab.type = 5;
    		tab.atActionType = 0;
    		tab.contentType = 0;
    		tab.aByte254 = (byte)0;
    		tab.mOverInterToTrigger = 52;
    		tab.sprite1 = imageLoader(spriteId, spriteName);
    		tab.sprite2 = imageLoader(spriteId, spriteName); 
    		tab.width = 512;
    		tab.height = 334;
    	}
    
    	public static void addHoverButton(int i, String imageName, int j, int width, int height, String text, int contentType, int hoverOver, int aT) {//hoverable button
    		RSInterface tab = addTabInterface(i);
    		tab.id = i;
    		tab.parentID = i;
    		tab.type = 5;
    		tab.atActionType = aT;
    		tab.contentType = contentType;
    		tab.aByte254 = 0;
    		tab.mOverInterToTrigger = hoverOver;
    		tab.sprite1 = imageLoader(j, imageName);
    		tab.sprite2 = imageLoader(j, imageName);
    		tab.width = width;
    		tab.height = height;
    		tab.tooltip = text;
    	}
    
    	public static void addHoveredButton(int i, String imageName, int j, int w, int h, int IMAGEID) {//hoverable button
    		RSInterface tab = addTabInterface(i);
    		tab.parentID = i;
    		tab.id = i;
    		tab.type = 0;
    		tab.atActionType = 0;
    		tab.width = w;
    		tab.height = h;
    		tab.isMouseoverTriggered = true;
    		tab.aByte254 = 0;
    		tab.mOverInterToTrigger = -1;
    		tab.scrollMax = 0;
    		addHoverImage(IMAGEID, j, j, imageName);
    		tab.totalChildren(1);
    		tab.child(0, IMAGEID, 0, 0);
    	}
    
    	public static void addHoverImage(int i, int j, int k, String name) {
    		RSInterface tab = addTabInterface(i);
    		tab.id = i;
    		tab.parentID = i;
    		tab.type = 5;
    		tab.atActionType = 0;
    		tab.contentType = 0;
    		tab.width = 512;
    		tab.height = 334;
    		tab.aByte254 = 0;
    		tab.mOverInterToTrigger = 52;
    		tab.sprite1 = imageLoader(j, name);
    		tab.sprite2 = imageLoader(k, name);
    	}
    
    	public static void addTransparentSprite(int id, int spriteId, String spriteName) {
    		RSInterface tab = interfaceCache[id] = new RSInterface();
    		tab.id = id;
    		tab.parentID = id;
    		tab.type = 5;
    		tab.atActionType = 0;
    		tab.contentType = 0;
    		tab.aByte254 = (byte)0;
    		tab.mOverInterToTrigger = 52;
    		tab.sprite1 = imageLoader(spriteId, spriteName);
    		tab.sprite2 = imageLoader(spriteId, spriteName); 
    		tab.width = 512;
    		tab.height = 334;
    		tab.drawsTransparent = true;
    	}
    
    	public static RSInterface addScreenInterface(int id) {
    		RSInterface tab = interfaceCache[id] = new RSInterface();
    		tab.id = id;
    		tab.parentID = id;
    		tab.type = 0;
    		tab.atActionType = 0;
    		tab.contentType = 0;
    		tab.width = 512;
    		tab.height = 334;
    		tab.aByte254 = (byte)0;
    		tab.mOverInterToTrigger = 0;
    		return tab;
    	}
    
    	public static RSInterface addTabInterface(int id) {
    		RSInterface tab = interfaceCache[id] = new RSInterface();
    		tab.id = id;//250
    		tab.parentID = id;//236
    		tab.type = 0;//262
    		tab.atActionType = 0;//217
    		tab.contentType = 0;
    		tab.width = 512;//220
    		tab.height = 700;//267
    		tab.aByte254 = (byte)0;
    		tab.mOverInterToTrigger = -1;//Int 230
    		return tab;
    	}
    
    	private static Sprite imageLoader(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 void child(int id, int interID, int x, int y) {
    		children[id] = interID;
    		childX[id] = x;
    		childY[id] = y;
    	}
    
    	public void totalChildren(int t) {
    		children = new int[t];
    		childX = new int[t];
    		childY = new int[t];
    	}
    
    	private Model method206(int i, int j)
    	{
    		Model model = (Model) aMRUNodes_264.insertFromCache((i << 16) + j);
    		if(model != null)
    			return model;
    		if(i == 1)
    			model = Model.method462(j);
    		if(i == 2)
    			model = EntityDef.forID(j).method160();
    		if(i == 3)
    			model = Client.myPlayer.method453();
    		if(i == 4)
    			model = ItemDef.forID(j).method202(50);
    		if(i == 5)
    			model = null;
    		if(model != null)
    			aMRUNodes_264.removeFromCache(model, (i << 16) + j);
    		return model;
    	}
    
    	private static Sprite method207(int i, StreamLoader streamLoader, 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(streamLoader, s, i);
    			aMRUNodes_238.removeFromCache(sprite, l);
    		} catch(Exception _ex) {
    			return null;
    		}
    		return sprite;
    	}
    
    	public static void method208(boolean flag, Model model) {
    		int i = 0;//was parameter
    		int j = 5;//was parameter
    		if(flag)
    			return;
    		aMRUNodes_264.unlinkAll();
    		if(model != null && j != 4)
    			aMRUNodes_264.removeFromCache(model, (j << 16) + i);
    	}
    
    	public Model method209(int j, int k, boolean flag) {
    		Model model;
    		if(flag)
    			model = method206(anInt255, anInt256);
    		else
    			model = method206(anInt233, mediaID);
    		if(model == null)
    			return null;
    		if(k == -1 && j == -1 && model.anIntArray1640 == null)
    			return model;
    		Model model_1 = new Model(true, Class36.method532(k) & Class36.method532(j), false, model);
    		if(k != -1 || j != -1)
    			model_1.method469();
    		if(k != -1)
    			model_1.method470(k);
    		if(j != -1)
    			model_1.method470(j);
    		model_1.method479(64, 768, -50, -10, -50, true);
    			return model_1;
    	}
    
    	public RSInterface() {}
    
    	public static StreamLoader aClass44;
    	public boolean drawsTransparent;
    	public Sprite sprite1;
    	public int anInt208;
    	public Sprite sprites[];
    	public static RSInterface interfaceCache[];
    	public int anIntArray212[];
    	public int contentType;//anInt214
    	public int spritesX[];
    	public int anInt216;
    	public int atActionType;
    	public String spellName;
    	public int anInt219;
    	public int width;
    	public String tooltip;
    	public String selectedActionName;
    	public boolean centerText;
    	public int scrollPosition;
    	public String actions[];
    	public int valueIndexArray[][];
    	public boolean aBoolean227;
    	public String aString228;
    	public int mOverInterToTrigger;
    	public int invSpritePadX;
    	public int textColor;
    	public int anInt233;
    	public int mediaID;
    	public boolean aBoolean235;
    	public int parentID;
    	public int spellUsableOn;
    	private static MRUNodes aMRUNodes_238;
    	public int anInt239;
    	public int children[];
    	public int childX[];
    	public boolean usableItemInterface;
    	public TextDrawingArea textDrawingAreas;
    	public int invSpritePadY;
    	public int anIntArray245[];
    	public int anInt246;
    	public int spritesY[];
    	public String message;
    	public boolean isInventoryInterface;
    	public int id;
    	public int invStackSizes[];
    	public int inv[];
    	public byte aByte254;
    	private int anInt255;
    	private int anInt256;
    	public int anInt257;
    	public int anInt258;
    	public boolean aBoolean259;
    	public Sprite sprite2;
    	public int scrollMax;
    	public int type;
    	public int anInt263;
    	private static final MRUNodes aMRUNodes_264 = new MRUNodes(30);
    	public int anInt265;
    	public boolean isMouseoverTriggered;
    	public int height;
    	public boolean textShadow;
    	public int modelZoom;
    	public int modelRotation1;
    	public int modelRotation2;
    	public int childY[];
    
    }
    Reply With Quote  
     

  4. #4  
    xd


    Join Date
    Oct 2007
    Age
    28
    Posts
    6,078
    Thanks given
    98
    Thanks received
    488
    Rep Power
    5000
    Might you try to add the error it gives in the batch file

    (thanks)
    Quote Originally Posted by clem585 View Post
    Wat. Reading java doc isn't going to teach you anything. It's like reading the dictionary to learn grammatical rules.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Mar 2012
    Posts
    96
    Thanks given
    75
    Thanks received
    3
    Rep Power
    39
    Quote Originally Posted by Austin_ View Post
    Might you try to add the error it gives in the batch file

    (thanks)
    Using Eclipse. The interface for lunars in most clients is 29999. When I try this, I get this t2:
    Code:
    Error: T2 - 97,65,81 - 2,3087,3498 - 117,47,
    I'm just trying to find the interface ID's, so this is server-sided, not client.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    Where it says

    [SPOIL]
    aClass44 = streamLoader;
    aMRUNodes_238 = null;
    [/SPOIL]


    Put this

    [SPOIL]
    constructLunar();
    [/SPOIL]
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Mar 2012
    Posts
    96
    Thanks given
    75
    Thanks received
    3
    Rep Power
    39
    constructLunar(); isn't a defined method. I just need to figure out how to find the new interface ID's
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    This is the method for constructLunar();

    add this anywhere below that


    [SPOIL]
    public static void constructLunar(){
    RSInterface Interface = addInterface(29999);
    setChildren(71, Interface);
    setBounds(30000, 11, 10, 0, Interface);
    setBounds(30017, 40, 9, 1, Interface);
    setBounds(30025, 71, 12, 2, Interface);
    setBounds(30032, 103, 10, 3, Interface);
    setBounds(30040, 135, 12, 4, Interface);
    setBounds(30048, 165, 10, 5, Interface);
    setBounds(30056, 8, 38, 6, Interface);
    setBounds(30064, 39, 39, 7, Interface);
    setBounds(30075, 71, 39, 8, Interface);
    setBounds(30083, 103, 39, 9, Interface);
    setBounds(30091, 135, 39, 10, Interface);
    setBounds(30099, 165, 37, 11, Interface);
    setBounds(30106, 12, 68, 12, Interface);
    setBounds(30114, 42, 68, 13, Interface);
    setBounds(30122, 71, 68, 14, Interface);
    setBounds(30130, 103, 68, 15, Interface);
    setBounds(30138, 135, 68, 16, Interface);
    setBounds(30146, 165, 68, 17, Interface);
    setBounds(30154, 14, 97, 18, Interface);
    setBounds(30162, 42, 97, 19, Interface);
    setBounds(30170, 71, 97, 20, Interface);
    setBounds(30178, 101, 97, 21, Interface);
    setBounds(30186, 135, 98, 22, Interface);
    setBounds(30194, 168, 98, 23, Interface);
    setBounds(30202, 11, 125, 24, Interface);
    setBounds(30210, 42, 124, 25, Interface);
    setBounds(30218, 74, 125, 26, Interface);
    setBounds(30226, 103, 125, 27, Interface);
    setBounds(30234, 135, 125, 28, Interface);
    setBounds(30242, 164, 126, 29, Interface);
    setBounds(30250, 10, 155, 30, Interface);
    setBounds(30258, 42, 155, 31, Interface);
    setBounds(30266, 71, 155, 32, Interface);
    setBounds(30274, 103, 155, 33, Interface);
    setBounds(30282, 136, 155, 34, Interface);
    setBounds(30290, 165, 155, 35, Interface);
    setBounds(30298, 13, 185, 36, Interface);
    setBounds(30306, 42, 185, 37, Interface);
    setBounds(30314, 71, 184, 38, Interface);
    setBounds(30322, 104, 184, 39, Interface);
    setBounds(30001, 6, 184, 40, Interface);//hover
    setBounds(30018, 5, 176, 41, Interface);//hover
    setBounds(30026, 5, 176, 42, Interface);//hover
    setBounds(30033, 5, 163, 43, Interface);//hover
    setBounds(30041, 5, 176, 44, Interface);//hover
    setBounds(30049, 5, 176, 45, Interface);//hover
    setBounds(30057, 5, 176, 46, Interface);//hover
    setBounds(30065, 5, 176, 47, Interface);//hover
    setBounds(30076, 5, 163, 48, Interface);//hover
    setBounds(30084, 5, 176, 49, Interface);//hover
    setBounds(30092, 5, 176, 50, Interface);//hover
    setBounds(30100, 5, 176, 51, Interface);//hover
    setBounds(30107, 5, 176, 52, Interface);//hover
    setBounds(30115, 5, 163, 53, Interface);//hover
    setBounds(30123, 5, 176, 54, Interface);//hover
    setBounds(30131, 5, 163, 55, Interface);//hover
    setBounds(30139, 5, 163, 56, Interface);//hover
    setBounds(30147, 5, 163, 57, Interface);//hover
    setBounds(30155, 5, 176, 58, Interface);//hover
    setBounds(30163, 5, 176, 59, Interface);//hover
    setBounds(30171, 5, 176, 60, Interface);//hover
    setBounds(30179, 5, 163, 61, Interface);//hover
    setBounds(30187, 5, 176, 62, Interface);//hover
    setBounds(30195, 5, 149, 63, Interface);//hover
    setBounds(30203, 5, 176, 64, Interface);//hover
    setBounds(30211, 5, 163, 65, Interface);//hover
    setBounds(30219, 5, 163, 66, Interface);//hover
    setBounds(30227, 5, 176, 67, Interface);//hover
    setBounds(30235, 5, 149, 68, Interface);//hover
    setBounds(30243, 5, 176, 69, Interface);//hover
    setBounds(30251, 5, 176, 70, Interface);//hover
    }
    [/SPOIL]

    You shouldn't get that error now.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Mar 2012
    Posts
    96
    Thanks given
    75
    Thanks received
    3
    Rep Power
    39
    Quote Originally Posted by SpawnInsanity View Post
    This is the method for constructLunar();

    add this anywhere below that


    [SPOIL]
    public static void constructLunar(){
    RSInterface Interface = addInterface(29999);
    setChildren(71, Interface);
    setBounds(30000, 11, 10, 0, Interface);
    setBounds(30017, 40, 9, 1, Interface);
    setBounds(30025, 71, 12, 2, Interface);
    setBounds(30032, 103, 10, 3, Interface);
    setBounds(30040, 135, 12, 4, Interface);
    setBounds(30048, 165, 10, 5, Interface);
    setBounds(30056, 8, 38, 6, Interface);
    setBounds(30064, 39, 39, 7, Interface);
    setBounds(30075, 71, 39, 8, Interface);
    setBounds(30083, 103, 39, 9, Interface);
    setBounds(30091, 135, 39, 10, Interface);
    setBounds(30099, 165, 37, 11, Interface);
    setBounds(30106, 12, 68, 12, Interface);
    setBounds(30114, 42, 68, 13, Interface);
    setBounds(30122, 71, 68, 14, Interface);
    setBounds(30130, 103, 68, 15, Interface);
    setBounds(30138, 135, 68, 16, Interface);
    setBounds(30146, 165, 68, 17, Interface);
    setBounds(30154, 14, 97, 18, Interface);
    setBounds(30162, 42, 97, 19, Interface);
    setBounds(30170, 71, 97, 20, Interface);
    setBounds(30178, 101, 97, 21, Interface);
    setBounds(30186, 135, 98, 22, Interface);
    setBounds(30194, 168, 98, 23, Interface);
    setBounds(30202, 11, 125, 24, Interface);
    setBounds(30210, 42, 124, 25, Interface);
    setBounds(30218, 74, 125, 26, Interface);
    setBounds(30226, 103, 125, 27, Interface);
    setBounds(30234, 135, 125, 28, Interface);
    setBounds(30242, 164, 126, 29, Interface);
    setBounds(30250, 10, 155, 30, Interface);
    setBounds(30258, 42, 155, 31, Interface);
    setBounds(30266, 71, 155, 32, Interface);
    setBounds(30274, 103, 155, 33, Interface);
    setBounds(30282, 136, 155, 34, Interface);
    setBounds(30290, 165, 155, 35, Interface);
    setBounds(30298, 13, 185, 36, Interface);
    setBounds(30306, 42, 185, 37, Interface);
    setBounds(30314, 71, 184, 38, Interface);
    setBounds(30322, 104, 184, 39, Interface);
    setBounds(30001, 6, 184, 40, Interface);//hover
    setBounds(30018, 5, 176, 41, Interface);//hover
    setBounds(30026, 5, 176, 42, Interface);//hover
    setBounds(30033, 5, 163, 43, Interface);//hover
    setBounds(30041, 5, 176, 44, Interface);//hover
    setBounds(30049, 5, 176, 45, Interface);//hover
    setBounds(30057, 5, 176, 46, Interface);//hover
    setBounds(30065, 5, 176, 47, Interface);//hover
    setBounds(30076, 5, 163, 48, Interface);//hover
    setBounds(30084, 5, 176, 49, Interface);//hover
    setBounds(30092, 5, 176, 50, Interface);//hover
    setBounds(30100, 5, 176, 51, Interface);//hover
    setBounds(30107, 5, 176, 52, Interface);//hover
    setBounds(30115, 5, 163, 53, Interface);//hover
    setBounds(30123, 5, 176, 54, Interface);//hover
    setBounds(30131, 5, 163, 55, Interface);//hover
    setBounds(30139, 5, 163, 56, Interface);//hover
    setBounds(30147, 5, 163, 57, Interface);//hover
    setBounds(30155, 5, 176, 58, Interface);//hover
    setBounds(30163, 5, 176, 59, Interface);//hover
    setBounds(30171, 5, 176, 60, Interface);//hover
    setBounds(30179, 5, 163, 61, Interface);//hover
    setBounds(30187, 5, 176, 62, Interface);//hover
    setBounds(30195, 5, 149, 63, Interface);//hover
    setBounds(30203, 5, 176, 64, Interface);//hover
    setBounds(30211, 5, 163, 65, Interface);//hover
    setBounds(30219, 5, 163, 66, Interface);//hover
    setBounds(30227, 5, 176, 67, Interface);//hover
    setBounds(30235, 5, 149, 68, Interface);//hover
    setBounds(30243, 5, 176, 69, Interface);//hover
    setBounds(30251, 5, 176, 70, Interface);//hover
    }
    [/SPOIL]

    You shouldn't get that error now.

    Not compatible with my client. I don't know much about client-sided stuff, but it needs renaming.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    Declare these in rsinterface.java

    [SPOIL]
    public static void setBounds(int ID, int X, int Y, int frame, RSInterface RSinterface){
    RSinterface.children[frame] = ID;
    RSinterface.childX[frame] = X;
    RSinterface.childY[frame] = Y;
    }

    public static void addButton(int i, int j, String name, int W, int H, String S, int AT) {
    RSInterface RSInterface = addInterface(i);
    RSInterface.id = i;
    RSInterface.parentID = i;
    RSInterface.type = 5;
    RSInterface.atActionType = AT;
    RSInterface.contentType = 0;
    RSInterface.aByte254 = 0;
    RSInterface.mOverInterToTrigger = 52;
    RSInterface.sprite1 = imageLoader(j,name);
    RSInterface.sprite2 = imageLoader(j,name);
    RSInterface.width = W;
    RSInterface.height = H;
    RSInterface.tooltip = S;

    [/SPOIL]
    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. [PI] Interface Help - Server Sided
    By Alpi in forum Help
    Replies: 7
    Last Post: 09-25-2011, 02:41 AM
  2. Replies: 6
    Last Post: 07-14-2011, 02:17 PM
  3. PI Interface Help
    By gomomo11 in forum Help
    Replies: 2
    Last Post: 04-09-2011, 09:44 PM
  4. PI Interface Help
    By gomomo11 in forum Help
    Replies: 4
    Last Post: 10-23-2010, 02:05 AM
  5. [PI] Interface help [$5]
    By Patrity in forum Requests
    Replies: 2
    Last Post: 06-23-2010, 05:37 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
  •