Welcome to RuneLocus! If you are new, register now —or—

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1

    Join Date
    Nov 2010
    Posts
    215
    Thanks
    0
    Mentioned
    0 times
    Tagged
    0 Thread(s)

    [PI] Quest Tab Tutorial

    Josh's Tutorial to Project Insanity's Quest Tab

    First off, here is the code of the quest tab that is (gasp), in order! (Minus one, which I cannot seem to find)
    Code:
            getPA().sendFrame126("", 7332);
    	getPA().sendFrame126("", 7333);
    	getPA().sendFrame126("",7334);
    	getPA().sendFrame126("", 7336);
    	getPA().sendFrame126("", 7383);
    	getPA().sendFrame126("", 7383);
    	getPA().sendFrame126("", 7339);
    	getPA().sendFrame126("", 7338);
    	getPA().sendFrame126("", 7340);
    	getPA().sendFrame126("" 7346);
    	getPA().sendFrame126("", 7341);
    	getPA().sendFrame126("", 7342);
    	getPA().sendFrame126("", 7337);
    	getPA().sendFrame126("", 7343);
    	getPA().sendFrame126("", 7335);
    	getPA().sendFrame126("", 7344);
    	getPA().sendFrame126("", 7345);
    	getPA().sendFrame126("", 7347);
    	getPA().sendFrame126("", 7348);
    	/*Members Quests*/
    	getPA().sendFrame126("", 12772);
    	getPA().sendFrame126("", 673);
    	getPA().sendFrame126("", 7352);
    	//4th one is missing
    	getPA().sendFrame126("", 7353);
    	getPA().sendFrame126("", 12129);
    	getPA().sendFrame126("", 8438);
    	getPA().sendFrame126("", 12852);
    	getPA().sendFrame126("", 15841);
    	getPA().sendFrame126("", 7354);
    	getPA().sendFrame126("", 7355);
    	getPA().sendFrame126("", 7356);
    	getPA().sendFrame126("", 8679);
    	getPA().sendFrame126("", 7459);
    	getPA().sendFrame126("", 16149);
    	getPA().sendFrame126("", 6987);
    	getPA().sendFrame126("", 7357);
    	getPA().sendFrame126("", 12836);
    	getPA().sendFrame126("", 7358);
    	getPA().sendFrame126("", 7359);
    	getPA().sendFrame126("", 14169);
    	getPA().sendFrame126("", 10115);
    	getPA().sendFrame126("", 14604);
    	getPA().sendFrame126("", 7360);
    	getPA().sendFrame126("", 12282);
    	getPA().sendFrame126("", 13577);
    	getPA().sendFrame126("", 12839);
    	getPA().sendFrame126("", 7361); 
    	getPA().sendFrame126("", 16128);
    	getPA().sendFrame126("", 11857);
    	getPA().sendFrame126("", 7362);
    	getPA().sendFrame126("", 7363);
    	getPA().sendFrame126("", 7364);
    	getPA().sendFrame126("", 10135);
    	getPA().sendFrame126("", 4508);
    	getPA().sendFrame126("", 18517);
    	getPA().sendFrame126("", 11907);
    	getPA().sendFrame126("", 7365);
    	getPA().sendFrame126("", 7366);
    	getPA().sendFrame126("", 7367);
    	getPA().sendFrame126("", 13389);
    	getPA().sendFrame126("", 15487);
    	getPA().sendFrame126("", 7368);
    	getPA().sendFrame126("", 11132);
    	getPA().sendFrame126("", 7369);
    	getPA().sendFrame126("", 12389);
    	getPA().sendFrame126("", 13974);
    	getPA().sendFrame126("", 7370);
    	getPA().sendFrame126("", 8137);
    	getPA().sendFrame126("", 7371);
    	getPA().sendFrame126("", 12345);
    	getPA().sendFrame126("", 7372);
    	getPA().sendFrame126("", 8115);
    	getPA().sendFrame126("", 18684);
    	getPA().sendFrame126("", 15499);
    	getPA().sendFrame126("", 668);
    	getPA().sendFrame126("", 8576);
    	getPA().sendFrame126("", 12139);
    	getPA().sendFrame126("", 14912);
    	getPA().sendFrame126("", 7373);
    	getPA().sendFrame126("", 7374);
    	getPA().sendFrame126("", 8969);
    	getPA().sendFrame126("", 15352);
    	getPA().sendFrame126("", 7375);
    	getPA().sendFrame126("", 7376);
    	getPA().sendFrame126("", 15098);
    	getPA().sendFrame126("", 15592);
    	getPA().sendFrame126("", 249);
    	getPA().sendFrame126("", 1740);
    	getPA().sendFrame126("", 15235);
    	getPA().sendFrame126("", 3278);
    	getPA().sendFrame126("", 7378);
    	getPA().sendFrame126("", 6518);
    	getPA().sendFrame126("", 7379);
    	getPA().sendFrame126("", 7380);
    	getPA().sendFrame126("", 7381);
    	getPA().sendFrame126("", 11858);
    	getPA().sendFrame126("", 191);
    	getPA().sendFrame126("", 9927);
    	getPA().sendFrame126("", 6024);
    	getPA().sendFrame126("", 7349);
    	getPA().sendFrame126("", 7350);
    	getPA().sendFrame126("", 7351);
    	getPA().sendFrame126("", 13356);
    	/*END OF ALL QUESTS*/
    I recommend that you place that under

    Code:
    	public void initialize() {
    in Client.java

    That was the 'meat' of the quest tab.
    For the top part, (where most servers have a 'player count'), put this;

    Code:
    		getPA().sendFrame126("Players Online: "+PlayerHandler.getPlayerCount(), 640);
    If you would like a quest tab option that can update, like a constantly updating PlayerCount, place your quest tab sections under
    Code:
    	public void process() {
    Remember, you don't have to place your WHOLE quest tab here, only things that you want to constantly update. The more that is down here, the higher chance that lag might exist.


    You can obviously edit the contents to your liking.

    Now for an actually tutorial;

    Color list:
    Code:
    @red@
    @gre@
    @blu@
    @or2@
    @yel@
    To use these; here is an example:

    Code:
            getPA().sendFrame126("@gre@ Hey @blu@ there @or2@ "+playerName+"", 7332);
    The last part;
    Code:
    "+playerName+"
    , inserts in an int. In this case, the playerName.
    You can do that with out ints as well; here are a few examples:
    Code:
    "+earningPotential+"
    Code:
    "+pkPoints+"
    Just remember the "+ +", and fill in the middle with the int that you chose. Then you are good to go.

    Now, if you would like to make your quest tab do something, figure out the case #, and go to ClickingButtons.java, and search to find the case. If there isn't one, add one!
    It should look like this;

    Code:
    			case ####:
    
    			break;
    Now, you can make it do things. For example; when I click my "EP: " part on my quest tab, I give a description of EP.

    Code:
    			case 28174:
                            c.sendMessage("EP is earning potential. The higher your EP; the more likely you are to get a bonus drop while PKing!");
    			break;
    Very simple, yet gets the job done.

    Any questions? Post below.
    Last edited by A Pro Pker; February 26th, 2011 at 23:23.

  2. #2

    Join Date
    Aug 2010
    Posts
    891
    Thanks
    25
    Mentioned
    0 times
    Tagged
    0 Thread(s)
    Nice

  3. #3

    Join Date
    Jan 2011
    Posts
    143
    Thanks
    0
    Mentioned
    0 times
    Tagged
    0 Thread(s)
    would be nice to see one for delta

  4. #4

    Join Date
    Nov 2010
    Posts
    215
    Thanks
    0
    Mentioned
    0 times
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mexxel View Post
    would be nice to see one for delta
    Switch to PI, it may take a little bit of time to re-learn some shit, but its worth it.

  5. #5

    Join Date
    Jan 2011
    Posts
    143
    Thanks
    0
    Mentioned
    0 times
    Tagged
    0 Thread(s)
    why? i looked at a PI server once before lol its very confusing but why is it worth it?

  6. #6

    Join Date
    Nov 2010
    Posts
    215
    Thanks
    0
    Mentioned
    0 times
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mexxel View Post
    why? i looked at a PI server once before lol its very confusing but why is it worth it?
    More stable and much more flexibility (in my opinion).

  7. #7

    Join Date
    Jan 2011
    Posts
    143
    Thanks
    0
    Mentioned
    0 times
    Tagged
    0 Thread(s)
    yeah but Rawr Pkz is best 317 source i have seen yet. only problem with it is adding gwd maps. Plus I have seen more Delta tuts out there. Well, on runelocus at least. And Delta is easier to edit. Main issue though is the tutorials...without knowing all of java coding and rsps coding you can't really code without tutorials..

  8. #8

    Join Date
    Sep 2010
    Posts
    449
    Thanks
    2
    Mentioned
    0 times
    Tagged
    0 Thread(s)
    Pi is more organized than.... "delta"



  9. #9

    Join Date
    Nov 2010
    Posts
    215
    Thanks
    0
    Mentioned
    0 times
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mexxel View Post
    .without knowing all of java coding and rsps coding you can't really code without tutorials..
    Everyone has to start somewhere, I learned from tutorials and just messing around in java.
    Delta, while easier, is a bad choice in the long run. Trust me.

  10. #10

    Join Date
    Jun 2010
    Posts
    737
    Thanks
    67
    Mentioned
    0 times
    Tagged
    0 Thread(s)
    Good tutorial, but why use the process?

    Quote Originally Posted by Angel` View Post
    Pi is more organized than.... "delta"
    Delta had gotten a horrible name because people used his base and didn't do anything with it, except for making idiotic servers. Few people have organized Delta and actually cleaned it up enough to call it a decent source. The only thing I have against PI is that many people use the base so it's just too common.

    I've worked on Delta and actually packaged, cleaned, renamed, and changed most of the methods and how things are sent and received. I love PI because it's stable and it has excellent combat.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •