Thread: Strike not working?

Results 1 to 6 of 6
  1. #1 Strike not working? 
    Registered Member
    Join Date
    Jul 2015
    Posts
    21
    Thanks given
    2
    Thanks received
    2
    Rep Power
    11
    I'm writing a handler for quests and part of it automatically strikes out text once the quest has moved to the next stage.
    Unfortunately while color effects work the strike doesn't. I can't even find where this is handled so I suppose it's client side perhaps?
    Any help with this greatly appreciated

    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2015
    Posts
    607
    Thanks given
    520
    Thanks received
    660
    Rep Power
    0
    Isn't it
    Code:
    <str>
    ?
    Reply With Quote  
     

  3. #3  
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    Quote Originally Posted by Swiffy View Post
    Isn't it
    Code:
    <str>
    ?
    depends which text engine he's using to draw the text on the interfaces.

    search for this in textdrawingarea.java
    Code:
    private int getColorByName(String s) {
    make sure that this is in there:
    Code:
    if(s.equals("str"))
    			aBoolean1499 = true;
    		if(s.equals("end"))
    			aBoolean1499 = false;

    Code:
    public void method389(boolean flag1, int i, int j, String s, int k) {
    		aBoolean1499 = false;
    		int l = i;
    		if(s == null)
    			return;
    		k -= anInt1497;
    		for(int i1 = 0; i1 < s.length(); i1++)
    			if(s.charAt(i1) == '@' && i1 + 4 < s.length() && s.charAt(i1 + 4) == '@') {
    				int j1 = getColorByName(s.substring(i1 + 1, i1 + 4));
    				if(j1 != -1)
    					j = j1;
    				i1 += 4;
    			} else {
    				char c = s.charAt(i1);
    				if(c != ' ') {
    					if(flag1)
    					method392(aByteArrayArray1491[c], i + anIntArray1494[c] + 1, k + anIntArray1495[c] + 1, anIntArray1492[c], anIntArray1493[c], 0);
    					method392(aByteArrayArray1491[c], i + anIntArray1494[c], k + anIntArray1495[c], anIntArray1492[c], anIntArray1493[c], j);
    				}
    				i += anIntArray1496[c];
    			}
    		if(aBoolean1499)
    			DrawingArea.method339(k + (int)((double)anInt1497 * 0.69999999999999996D), 0x800000, i - l, l);
    	}
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2015
    Posts
    21
    Thanks given
    2
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Retarded View Post
    depends which text engine he's using to draw the text on the interfaces.

    search for this in textdrawingarea.java
    Code:
    private int getColorByName(String s) {
    make sure that this is in there:
    Code:
    if(s.equals("str"))
    			aBoolean1499 = true;
    		if(s.equals("end"))
    			aBoolean1499 = false;

    Code:
    public void method389(boolean flag1, int i, int j, String s, int k) {
    		aBoolean1499 = false;
    		int l = i;
    		if(s == null)
    			return;
    		k -= anInt1497;
    		for(int i1 = 0; i1 < s.length(); i1++)
    			if(s.charAt(i1) == '@' && i1 + 4 < s.length() && s.charAt(i1 + 4) == '@') {
    				int j1 = getColorByName(s.substring(i1 + 1, i1 + 4));
    				if(j1 != -1)
    					j = j1;
    				i1 += 4;
    			} else {
    				char c = s.charAt(i1);
    				if(c != ' ') {
    					if(flag1)
    					method392(aByteArrayArray1491[c], i + anIntArray1494[c] + 1, k + anIntArray1495[c] + 1, anIntArray1492[c], anIntArray1493[c], 0);
    					method392(aByteArrayArray1491[c], i + anIntArray1494[c], k + anIntArray1495[c], anIntArray1492[c], anIntArray1493[c], j);
    				}
    				i += anIntArray1496[c];
    			}
    		if(aBoolean1499)
    			DrawingArea.method339(k + (int)((double)anInt1497 * 0.69999999999999996D), 0x800000, i - l, l);
    	}
    I've got identical code and it doesn't work?

    edit: my textdrawingarea.java http://pastebin.com/VG1HQAVy

    Strange though that the colors work, but not the strike hmm...
    Reply With Quote  
     

  5. #5  
    HTML5, jQuery & CSS3 Master
    Jaiden Watling's Avatar
    Join Date
    Nov 2010
    Age
    29
    Posts
    888
    Thanks given
    305
    Thanks received
    92
    Rep Power
    0
    I also have this issue, but it never really bothered me. if a fix is found i'll add it though.

    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2015
    Posts
    21
    Thanks given
    2
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Swiffy View Post
    Isn't it
    Code:
    <str>
    ?
    When I use @str@ it just appears in text, when I use <str> the <str> just becomes invisible!
    My eyes are bleeding please help me fix this:
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Client not working for You? READ!
    By Edge in forum Tutorials
    Replies: 59
    Last Post: 02-06-2020, 09:27 AM
  2. Atk Ani not working
    By `Lubricant in forum RS 503+ Client & Server
    Replies: 32
    Last Post: 09-14-2008, 08:48 PM
  3. NPCs not working.
    By FateJiki in forum Configuration
    Replies: 2
    Last Post: 02-17-2008, 02:40 PM
  4. Kevins floor editor not working.. 2 errors :(
    By newservermaker in forum RS2 Client
    Replies: 0
    Last Post: 01-03-2008, 06:47 AM
  5. Replies: 17
    Last Post: 11-30-2007, 04:15 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
  •