Thread: [667] Editing login button link

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 [667] Editing login button link 
    Banned
    Join Date
    Oct 2014
    Posts
    638
    Thanks given
    74
    Thanks received
    54
    Rep Power
    0


    So basically, when I click recover your password it redirects me to http://www.extinction.com/l=0/a=0/p=...swordchoice.ws

    I can't find it in buttonhandler or interfacemanager and I don't know where else to look!


    What would most likely be the file containing the redirect to that website?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    http://www.rune-server.org/runescape...rks-718-a.html

    Same concept for 667, don't expect to copy paste.
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Oct 2014
    Posts
    638
    Thanks given
    74
    Thanks received
    54
    Rep Power
    0
    Quote Originally Posted by Mayne View Post
    http://www.rune-server.org/runescape...rks-718-a.html

    Same concept for 667, don't expect to copy paste.
    I don't think you understand. The system is already in just I need to change the website link. Checked all of the files in the tuts, couldn't find the web address that it redirects me too =/
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Quote Originally Posted by Rodogs7 View Post
    I don't think you understand. The system is already in just I need to change the website link. Checked all of the files in the tuts, couldn't find the web address that it redirects me too =/
    I do understand, follow that tutorial and it will solve your question.
    There is no direct link for the change password button.
    Reply With Quote  
     

  5. #5  
    Registered Member Still Blazin's Avatar
    Join Date
    Aug 2014
    Posts
    204
    Thanks given
    45
    Thanks received
    16
    Rep Power
    5
    Quote Originally Posted by Mayne View Post
    I do understand, follow that tutorial and it will solve your question.
    There is no direct link for the change password button.
    So how did he add the link if theres not even
    Code:
    	public static String recoverPassLink(byte i) {
    		return "http://yourwebsitelink.com/recoverpass/";
    	}
    on the ClientScriptMap.java
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Quote Originally Posted by Gert View Post
    So how did he add the link if theres not even
    Code:
    	public static String recoverPassLink(byte i) {
    		return "http://yourwebsitelink.com/recoverpass/";
    	}
    on the ClientScriptMap.java
    I'm not going to bother.
    Have fun
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Oct 2014
    Posts
    638
    Thanks given
    74
    Thanks received
    54
    Rep Power
    0
    Quote Originally Posted by Mayne View Post
    I'm not going to bother.
    Have fun
    Quote Originally Posted by Gert View Post
    So how did he add the link if theres not even
    Code:
    	public static String recoverPassLink(byte i) {
    		return "http://yourwebsitelink.com/recoverpass/";
    	}
    on the ClientScriptMap.java
    I have no god damn clue!

    Heres my clientscriptmap.java

    Code:
    package com.rs.cache.loaders;
    
    import java.io.IOException;
    import java.util.HashMap;
    import java.util.concurrent.ConcurrentHashMap;
    
    import com.rs.cache.Cache;
    import com.rs.io.InputStream;
    import com.rs.utils.Utils;
    
    public final class ClientScriptMap {
    
    	@SuppressWarnings("unused")
    	private char aChar6337;
    	@SuppressWarnings("unused")
    	private char aChar6345;
    	private String defaultStringValue;
    	private int defaultIntValue;
    	private HashMap<Long, Object> values;
    
    	private static final ConcurrentHashMap<Integer, ClientScriptMap> interfaceScripts = new ConcurrentHashMap<Integer, ClientScriptMap>();
    
    	public static void main(String[] args) throws IOException {
    		// Cache.STORE = new Store("C:/.jagex_cache_32/runescape/");
    		Cache.init();
    		ClientScriptMap names = ClientScriptMap.getMap(1345);
    		ClientScriptMap hint1 = ClientScriptMap.getMap(952);
    		ClientScriptMap hint2 = ClientScriptMap.getMap(1349);
    		System.out.println(hint1);
    		for (Object v : names.values.values()) {
    			int key = (int) ClientScriptMap.getMap(1345).getKeyForValue(v);
    			int id = ClientScriptMap.getMap(1351).getIntValue(key);
    
    			/*
    			 * String text = hint.getStringValue(key);
    			 * if(text.equals("automatically.")) System.out.println(id);
    			 */
    			String hint = hint1.getValues().containsKey((long) key) ? hint1
    					.getStringValue(key) : hint2.getStringValue(key);
    
    			System.out.println(id + ", " + v + "; " + hint + ", ");
    		}
    	}
    
    	/*
    	 * int musicIndex = (int)
    	 * InterfaceScript.getInterfaceScript(1345).getKeyForValue
    	 * ("Astea Frostweb"); int id =
    	 * InterfaceScript.getInterfaceScript(1351).getIntValue(musicIndex);
    	 * System.out.println(id);
    	 */
    	//
    
    	public static final ClientScriptMap getMap(int scriptId) {
    		ClientScriptMap script = interfaceScripts.get(scriptId);
    		if (script != null)
    			return script;
    		byte[] data = Cache.STORE.getIndexes()[17].getFile(
    				scriptId >>> 0xba9ed5a8, scriptId & 0xff);
    		script = new ClientScriptMap();
    		if (data != null)
    			script.readValueLoop(new InputStream(data));
    		interfaceScripts.put(scriptId, script);
    		return script;
    
    	}
    
    	public HashMap<Long, Object> getValues() {
    		return values;
    	}
    
    	public Object getValue(long key) {
    		if (values == null)
    			return null;
    		return values.get(key);
    	}
    
    	public long getKeyForValue(Object value) {
    		for (Long key : values.keySet()) {
    			if (values.get(key).equals(value))
    				return key;
    		}
    		return -1;
    	}
    
    	public int getSize() {
    		return values.size();
    	}
    
    	public int getIntValue(long key) {
    		if (values == null)
    			return defaultIntValue;
    		Object value = values.get(key);
    		if (value == null || !(value instanceof Integer))
    			return defaultIntValue;
    		return (Integer) value;
    	}
    
    	public String getStringValue(long key) {
    		if (values == null)
    			return defaultStringValue;
    		Object value = values.get(key);
    		if (value == null || !(value instanceof String))
    			return defaultStringValue;
    		return (String) value;
    	}
    
    	private void readValueLoop(InputStream stream) {
    		for (;;) {
    			int opcode = stream.readUnsignedByte();
    			if (opcode == 0)
    				break;
    			readValues(stream, opcode);
    		}
    	}
    
    	private void readValues(InputStream stream, int opcode) {
    		if (opcode == 1)
    			aChar6337 = Utils.method2782((byte) stream.readByte());
    		else if (opcode == 2)
    			aChar6345 = Utils.method2782((byte) stream.readByte());
    		else if (opcode == 3)
    			defaultStringValue = stream.readString();
    		else if (opcode == 4)
    			defaultIntValue = stream.readInt();
    		else if (opcode == 5 || opcode == 6 || opcode == 7 || opcode == 8) {
    			int count = stream.readUnsignedShort();
    			int loop = opcode == 7 || opcode == 8 ? stream.readUnsignedShort()
    					: count;
    			values = new HashMap<Long, Object>(Utils.getHashMapSize(count));
    			for (int i = 0; i < loop; i++) {
    				int key = opcode == 7 || opcode == 8 ? stream
    						.readUnsignedShort() : stream.readInt();
    				Object value = opcode == 5 || opcode == 7 ? stream.readString()
    						: stream.readInt();
    				values.put((long) key, value);
    			}
    		}
    	}
    
    	private ClientScriptMap() {
    		defaultStringValue = "null";
    	}
    }
    Dont know how or why it redirects it to that site =/
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Quote Originally Posted by Rodogs7 View Post
    I have no god damn clue!

    Heres my clientscriptmap.java

    Code:
    package com.rs.cache.loaders;
    
    import java.io.IOException;
    import java.util.HashMap;
    import java.util.concurrent.ConcurrentHashMap;
    
    import com.rs.cache.Cache;
    import com.rs.io.InputStream;
    import com.rs.utils.Utils;
    
    public final class ClientScriptMap {
    
    	@SuppressWarnings("unused")
    	private char aChar6337;
    	@SuppressWarnings("unused")
    	private char aChar6345;
    	private String defaultStringValue;
    	private int defaultIntValue;
    	private HashMap<Long, Object> values;
    
    	private static final ConcurrentHashMap<Integer, ClientScriptMap> interfaceScripts = new ConcurrentHashMap<Integer, ClientScriptMap>();
    
    	public static void main(String[] args) throws IOException {
    		// Cache.STORE = new Store("C:/.jagex_cache_32/runescape/");
    		Cache.init();
    		ClientScriptMap names = ClientScriptMap.getMap(1345);
    		ClientScriptMap hint1 = ClientScriptMap.getMap(952);
    		ClientScriptMap hint2 = ClientScriptMap.getMap(1349);
    		System.out.println(hint1);
    		for (Object v : names.values.values()) {
    			int key = (int) ClientScriptMap.getMap(1345).getKeyForValue(v);
    			int id = ClientScriptMap.getMap(1351).getIntValue(key);
    
    			/*
    			 * String text = hint.getStringValue(key);
    			 * if(text.equals("automatically.")) System.out.println(id);
    			 */
    			String hint = hint1.getValues().containsKey((long) key) ? hint1
    					.getStringValue(key) : hint2.getStringValue(key);
    
    			System.out.println(id + ", " + v + "; " + hint + ", ");
    		}
    	}
    
    	/*
    	 * int musicIndex = (int)
    	 * InterfaceScript.getInterfaceScript(1345).getKeyForValue
    	 * ("Astea Frostweb"); int id =
    	 * InterfaceScript.getInterfaceScript(1351).getIntValue(musicIndex);
    	 * System.out.println(id);
    	 */
    	//
    
    	public static final ClientScriptMap getMap(int scriptId) {
    		ClientScriptMap script = interfaceScripts.get(scriptId);
    		if (script != null)
    			return script;
    		byte[] data = Cache.STORE.getIndexes()[17].getFile(
    				scriptId >>> 0xba9ed5a8, scriptId & 0xff);
    		script = new ClientScriptMap();
    		if (data != null)
    			script.readValueLoop(new InputStream(data));
    		interfaceScripts.put(scriptId, script);
    		return script;
    
    	}
    
    	public HashMap<Long, Object> getValues() {
    		return values;
    	}
    
    	public Object getValue(long key) {
    		if (values == null)
    			return null;
    		return values.get(key);
    	}
    
    	public long getKeyForValue(Object value) {
    		for (Long key : values.keySet()) {
    			if (values.get(key).equals(value))
    				return key;
    		}
    		return -1;
    	}
    
    	public int getSize() {
    		return values.size();
    	}
    
    	public int getIntValue(long key) {
    		if (values == null)
    			return defaultIntValue;
    		Object value = values.get(key);
    		if (value == null || !(value instanceof Integer))
    			return defaultIntValue;
    		return (Integer) value;
    	}
    
    	public String getStringValue(long key) {
    		if (values == null)
    			return defaultStringValue;
    		Object value = values.get(key);
    		if (value == null || !(value instanceof String))
    			return defaultStringValue;
    		return (String) value;
    	}
    
    	private void readValueLoop(InputStream stream) {
    		for (;;) {
    			int opcode = stream.readUnsignedByte();
    			if (opcode == 0)
    				break;
    			readValues(stream, opcode);
    		}
    	}
    
    	private void readValues(InputStream stream, int opcode) {
    		if (opcode == 1)
    			aChar6337 = Utils.method2782((byte) stream.readByte());
    		else if (opcode == 2)
    			aChar6345 = Utils.method2782((byte) stream.readByte());
    		else if (opcode == 3)
    			defaultStringValue = stream.readString();
    		else if (opcode == 4)
    			defaultIntValue = stream.readInt();
    		else if (opcode == 5 || opcode == 6 || opcode == 7 || opcode == 8) {
    			int count = stream.readUnsignedShort();
    			int loop = opcode == 7 || opcode == 8 ? stream.readUnsignedShort()
    					: count;
    			values = new HashMap<Long, Object>(Utils.getHashMapSize(count));
    			for (int i = 0; i < loop; i++) {
    				int key = opcode == 7 || opcode == 8 ? stream
    						.readUnsignedShort() : stream.readInt();
    				Object value = opcode == 5 || opcode == 7 ? stream.readString()
    						: stream.readInt();
    				values.put((long) key, value);
    			}
    		}
    	}
    
    	private ClientScriptMap() {
    		defaultStringValue = "null";
    	}
    }
    Dont know how or why it redirects it to that site =/
    Because everything is done client-side...
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Oct 2014
    Posts
    638
    Thanks given
    74
    Thanks received
    54
    Rep Power
    0
    Quote Originally Posted by Mayne View Post
    Because everything is done client-side...
    I checked all the files in the tut and none of them have the website link in them?
    Reply With Quote  
     

  10. #10  
    Extreme Donator

    Bennie's Avatar
    Join Date
    Jun 2013
    Posts
    2,095
    Thanks given
    868
    Thanks received
    796
    Rep Power
    5000
    Just go to your client folder, search for that website name and hope you find the file its in.
    Attached image
    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. 667| Adding Working Buttons On Login Interface
    By romo173 in forum Snippets
    Replies: 10
    Last Post: 07-25-2012, 08:59 PM
  2. LoginBox And Login Button
    By IPhoenix in forum Graphics
    Replies: 4
    Last Post: 05-30-2009, 06:23 PM
  3. [req]login button +box [rep++
    By A2 Alex in forum Requests
    Replies: 2
    Last Post: 07-06-2008, 11:02 PM
  4. Making Login Buttons/Boxs (FREE!)
    By ThatGuyGlazed in forum Graphics
    Replies: 7
    Last Post: 03-08-2008, 03:51 PM
  5. Login Buttons ==Free==
    By ThatGuyGlazed in forum Graphics
    Replies: 34
    Last Post: 02-22-2008, 03:36 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
  •