Adblock breaks this site

[PI/Slashscape]Adding GWD killcount interface

Discussion in 'RuneScape Miscellaneous' started by Royal Crown, Jul 8, 2010.

Thread Status:
Not open for further replies.
  1. Royal Crown

    Royal Crown Member
    Banned

    Joined:
    Jul 4, 2010
    Posts:
    77
    Referrals:
    0
    Sythe Gold:
    0
    [PI/Slashscape]Adding GWD killcount interface

    Well here it is :p -

    In rsinterface.java search for:
    Code:
    aClass44 = streamLoader;
    Under it add:
    Code:
    GodWars(textDrawingAreas);
    Now search for (still in rsinterface)
    Code:
    public boolean aBoolean227;
    Under it add:
    Code:
    public boolean aBoolean266;
    Now add this anywhere:
    Code:
    public static void GodWars(TextDrawingArea[] tda)
    {
    RSInterface rsinterface = addtabInterface(16210);
    addText(16211, "    NPC killcount", tda, 1, 0xff9040, true, true);
    addText(16212, "    Armadyl kills", tda, 1, 0xff9040, true, true);
    addText(16213, "    Bandos kills", tda, 1, 0xff9040, true, true);
    addText(16214, "    Saradomin kills", tda, 1, 0xff9040, true, true);
    addText(16215, "    Zamorak kills", tda, 1, 0xff9040, true, true);
    addText(16216, "    0", tda, 1, 0x66FFFF, true, true);//armadyl
    addText(16217, "    0", tda, 1, 0x66FFFF, true, true);//bandos
    addText(16218, "    0", tda, 1, 0x66FFFF, true, true);//saradomin
    addText(16219, "    0", tda, 1, 0x66FFFF, true, true);//zamorak
    rsinterface.scrollMax = 0;
    rsinterface.aBoolean266 = false;
    rsinterface.children = new int[9];
    rsinterface.childX = new int[9];
    rsinterface.childY = new int[9];
    rsinterface.children[0] = 16211;
    rsinterface.childX[0] = -52+375;
    rsinterface.childY[0] = 7;
    rsinterface.children[1] = 16212;
    rsinterface.childX[1] = -52+374;
    rsinterface.childY[1] = 30;
    rsinterface.children[2] = 16213;
    rsinterface.childX[2] = -52+372;
    rsinterface.childY[2] = 44;
    rsinterface.children[3] = 16214;
    rsinterface.childX[3] = -52+381;
    rsinterface.childY[3] = 58;
    rsinterface.children[4] = 16215;
    rsinterface.childX[4] = -52+375;
    rsinterface.childY[4] = 73;
    rsinterface.children[5] = 16216;
    rsinterface.childX[5] = -52+455;
    rsinterface.childY[5] = 31;
    rsinterface.children[6] = 16217;
    rsinterface.childX[6] = -52+455;
    rsinterface.childY[6] = 45;
    rsinterface.children[7] = 16218;
    rsinterface.childX[7] = -52+455;
    rsinterface.childY[7] = 59;
    rsinterface.children[8] = 16219;
    rsinterface.childX[8] = -52+455;
    rsinterface.childY[8] = 74;
    }
    
    Server Sided -
    Open up player.java and search for:
    Code:
    public boolean inBarrows() {
    You should see:
    Code:
    	public boolean inBarrows() {		
    		if(absX > 3520 && absX < 3598 && absY > 9653 && absY < 9750) {
    			return true;
    		}
    		return false;
    	}
    Under that whole code add this:
    Code:
    public boolean inGWD() {
    if (absX > 2900 && absX < 2922 && absY > 3599 && absY < 3626) {
    return true;
    }
    return false;
    }
    That is for the original Pi area, you will have to change the coords yourself,
    - You want your X coordinate to be > than the pink circle, but < than the blue
    - You want your Y coordinate to be > than the yellow circle, but < than the green
    [​IMG]
    Last thing is to add this in client.java under:
    Code:
    public class Client extends Player {
    Code:
    public int ArmadylkillCount = 0;
    public int BandoskillCount = 0;
    public int SarakillCount = 0;
    public int ZammykillCount = 0;
    Still in client.java look for:
    Code:
    } else if(inBarrows()){
    You should see:
    Code:
    		} else if(inBarrows()){
    			getPA().sendFrame99(2);
    			getPA().sendFrame126("Kill Count: "+barrowsKillCount, 4536);
    			getPA().walkableInterface(4535);
    Under the whole code add:
    Code:
    } else if(inGWD()){
    
    			getPA().walkableInterface(16210);
    Also has been posted on R-S.
    100% credits to me
     
< The #1 Server Is Back!!!!!!!!!!! 24/7 | [PI/Slashscape]Fixing animations >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site