Thread: [PI]How To Add A Custom Pking Teleport Interface[CompulsiveTutz]

Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1 [PI]How To Add A Custom Pking Teleport Interface[CompulsiveTutz] 
    Witness

    blessthefall's Avatar
    Join Date
    Nov 2011
    Age
    16
    Posts
    387
    Thanks
    155
    Thanked 62 Times in 45 Posts
    Rep Power
    76
    Hi Rune-Server,

    I really admired Project-Ecko's LoginNPk||Spawn Server, and I was looking through my C:/ and found the sprites of the PE. I will be releasing the interfaces which I remember the features for.

    R-S Admin Response  Credits

    Kurdz - For making graphics
    Compulsion - Client/Server Coding



    Media
    Spoiler for :




    Client Sided
    Spoiler for :

    Open your RSInterface class.


    Code:
    public static void pkingTab(TextDrawingArea[] tda){
    		RSInterface Interface = addTabInterface(3400);
    		addSprite(3401, 0, "Interfaces/KURDZ/BACKGROUND");
    		addHoverButton(3402, "Interfaces/KURDZ/INFO", 1, 16, 16, "Close Teleport Tab", -1, 3403, 1);
    		addHoverButton(3404, "Interfaces/KURDZ/TELE", 0, 106, 38, "Teleport to Varrock Pk", -1, 3405, 1);
    		addHoverButton(3406, "Interfaces/KURDZ/TELE", 1, 106, 38, "Teleport to Mage Bank", -1, 3407, 1);
    		addHoverButton(3408, "Interfaces/KURDZ/TELE", 2, 106, 38, "Teleport to FunPk", -1, 3409, 1);
    		addHoverButton(3410, "Interfaces/KURDZ/TELE", 3, 106, 38, "Teleport to East Dragons", -1, 3411, 1);
    		addHoverButton(3412, "Interfaces/KURDZ/TELE", 4, 106, 38, "Teleport to the Gates", -1, 3413, 1);
    		addHoverButton(3414, "Interfaces/KURDZ/TELE", 5, 106, 38, "Teleport to GDZ", -1 , 3415, 1);
    		setChildren(8,Interface);
    		setBounds(3401, 6, 20, 0, Interface);
    		setBounds(3402, 482, 23, 1, Interface);
    		setBounds(3404, 31, 109, 2, Interface);
    		setBounds(3406, 161, 109, 3, Interface);
    		setBounds(3408, 288, 109, 4, Interface);
    		setBounds(3410, 31, 239, 5, Interface);
    		setBounds(3412, 159, 239, 6, Interface);
    		setBounds(3414, 290, 239, 7, Interface);
    	}
    Still in RSInterface.java, under
    Code:
    aClass44 = streamloader;
    add
    Code:
    pkingTab(atextdrawingarea);


    Server Sided
    Spoiler for :

    Add this in ClickingButtons.java

    Code:
                            /**
    			 * Pking Teleport
    			 * @author Compulsion
    			 **/
    			case 13074: //closes interface
    				c.getPA().closeAllWindows();
    				break;
    			case 13076: //teleports to varrock pk
    				c.getPA().spellTeleport(3243, 3516, 0);
    				c.getPA().closeAllWindows();
    				break;
    			case 13078: //teleports to Mage Bank
    				c.getPA().spellTeleport(2539, 4716, 0);
    				c.getPA().closeAllWindows();
    				break;
    			case 13080: //teleports to FunPk
    				c.getPA().spellTeleport(3333, 3333, 0); //Change the coordinates to your desired funpk
    				c.getPA().closeAllWindows();
    				break;
    			case 13082: //teleports to east dragons
    				c.getPA().spellTeleport(3339, 3659, 0);
    				c.getPA().closeAllWindows();
    				break;
    			case 13084: //teleports to the gates
    				c.getPA().spellTeleport(3158, 3952, 0);
    				c.getPA().closeAllWindows();
    				break;
    			case 13086: //teleports to GDZ
    				 c.getPA().spellTeleport(3288, 3886, 0);
    				 c.getPA().closeAllWindows();
    				 break;


    Quote Originally Posted by trickboy View Post
    For Players having problems with compile this is the right uppercase sensitive!

    Links[4/15/12]
    Direct Link
    Spoiler for PASSWORD:
    Code:
    baws



    I'm pretty sure that's it, If you have any errors post them and I'll fix it.

    Spoiler for I DO IT FOR THE LULZ:
    Quote Originally Posted by Ambient View Post
    When I first tried using eclipse it looked like a big black man, so I went back to np++, then I manned up and took on that black dude
    Reply With Quote  
     

  2. #2  
    Witness

    blessthefall's Avatar
    Join Date
    Nov 2011
    Age
    16
    Posts
    387
    Thanks
    155
    Thanked 62 Times in 45 Posts
    Rep Power
    76
    Bump? :/

    Spoiler for I DO IT FOR THE LULZ:
    Quote Originally Posted by Ambient View Post
    When I first tried using eclipse it looked like a big black man, so I went back to np++, then I manned up and took on that black dude
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member Real Brandon's Avatar
    Join Date
    Jan 2010
    Posts
    368
    Thanks
    26
    Thanked 25 Times in 15 Posts
    Rep Power
    7
    looks good!
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Nov 2011
    Posts
    184
    Thanks
    50
    Thanked 8 Times in 8 Posts
    Rep Power
    17
    Looks good

    Wont use tough.
    Reply With Quote  
     

  6. #5  
    Witness

    blessthefall's Avatar
    Join Date
    Nov 2011
    Age
    16
    Posts
    387
    Thanks
    155
    Thanked 62 Times in 45 Posts
    Rep Power
    76
    Thanks for the replies guys! It took me 3-4 hours to put it together. Means a lot.

    Spoiler for I DO IT FOR THE LULZ:
    Quote Originally Posted by Ambient View Post
    When I first tried using eclipse it looked like a big black man, so I went back to np++, then I manned up and took on that black dude
    Reply With Quote  
     

  7. #6  
    Registered Member
    Archspire's Avatar
    Join Date
    May 2011
    Age
    19
    Posts
    1,637
    Thanks
    315
    Thanked 482 Times in 289 Posts
    Rep Power
    197
    Ewww, formationX client. My only negative (;

    Looks nice, I like the idea.
    "I only hope that you remember me as the one from the trees when the forests used to sing; instead of when I locked myself in the heart of the wood and threw away the key." - Make Them Suffer
    Reply With Quote  
     

  8. #7  
    ಠ_ಠ

    Joshua's Avatar
    Join Date
    May 2010
    Age
    100
    Posts
    1,318
    Thanks
    243
    Thanked 356 Times in 190 Posts
    Rep Power
    244
    Get a new person for graphics because nothing on that interface matches. Other than that, it's an ok snipplet.
    Reply With Quote  
     

  9. #8  
    Banned
    Join Date
    Apr 2011
    Posts
    90
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    0
    nice job m8. one question. for the clickingbutton.java in order for the interface to open i need to set the case 4150 to open that interface. my current case 4150 is.

    Code:
    			case 4150:
    			c.getDH().sendOption5("Mage Bank", "Green Dragons(13 Wild))", "Multi Pk Zones", "Edgeville", "Coming soon!");
    			c.teleAction = 4;
    			break;
    how can i make it so the case 4150 opens the interface with the buttons instead of it sending the options?

    is there a c.openinterface or something? and if so whats the command and interface id for this one?
    Reply With Quote  
     

  10. #9  
    Witness

    blessthefall's Avatar
    Join Date
    Nov 2011
    Age
    16
    Posts
    387
    Thanks
    155
    Thanked 62 Times in 45 Posts
    Rep Power
    76
    Quote Originally Posted by RsTurm View Post
    nice job m8. one question. for the clickingbutton.java in order for the interface to open i need to set the case 4150 to open that interface. my current case 4150 is.

    Code:
    			case 4150:
    			c.getDH().sendOption5("Mage Bank", "Green Dragons(13 Wild))", "Multi Pk Zones", "Edgeville", "Coming soon!");
    			c.teleAction = 4;
    			break;
    how can i make it so the case 4150 opens the interface with the buttons instead of it sending the options?

    is there a c.openinterface or something? and if so whats the command and interface id for this one?

    Code:
    case 4150: //actionButton 4150
    c.getPA().showInterface(3400); //Tells it to open pkingTeleInterface.
    break;
    Enjoy

    Spoiler for I DO IT FOR THE LULZ:
    Quote Originally Posted by Ambient View Post
    When I first tried using eclipse it looked like a big black man, so I went back to np++, then I manned up and took on that black dude
    Reply With Quote  
     

  11. #10  
    Registered Member trickboy's Avatar
    Join Date
    Dec 2011
    Posts
    179
    Thanks
    4
    Thanked 7 Times in 6 Posts
    Rep Power
    15
    For Players having problems with compile this is the right uppercase sensitive:

    public static void pkingTab(RSFont[] TDA){
    RSInterface Interface = addTabInterface(3400);
    addSprite(3401, 0, "Interfaces/KURDZ/BACKGROUND");
    addHoverButton(3402, "Interfaces/KURDZ/INFO", 1, 16, 16, "Close Teleport Tab", -1, 3403, 1);
    addHoverButton(3404, "Interfaces/KURDZ/TELE", 0, 106, 38, "Teleport to Varrock Pk", -1, 3405, 1);
    addHoverButton(3406, "Interfaces/KURDZ/TELE", 1, 106, 38, "Teleport to Mage Bank", -1, 3407, 1);
    addHoverButton(3408, "Interfaces/KURDZ/TELE", 2, 106, 38, "Teleport to FunPk", -1, 3409, 1);
    addHoverButton(3410, "Interfaces/KURDZ/TELE", 3, 106, 38, "Teleport to East Dragons", -1, 3411, 1);
    addHoverButton(3412, "Interfaces/KURDZ/TELE", 4, 106, 38, "Teleport to the Gates", -1, 3413, 1);
    addHoverButton(3414, "Interfaces/KURDZ/TELE", 5, 106, 38, "Teleport to GDZ", -1 , 3415, 1);
    setChildren(8,Interface);
    setBounds(3401, 6, 20, 0, Interface);
    setBounds(3402, 482, 23, 1, Interface);
    setBounds(3404, 31, 109, 2, Interface);
    setBounds(3406, 161, 109, 3, Interface);
    setBounds(3408, 288, 109, 4, Interface);
    setBounds(3410, 31, 239, 5, Interface);
    setBounds(3412, 159, 239, 6, Interface);
    setBounds(3414, 290, 239, 7, Interface);
    }
    Under:
    aClass44 = streamloader; OR aClass44 = archive; (depends on client)

    Add:
    pkingTab(rsFonts);
    I don't take credits i just wanna help players that were in the same situation with me having to change the
    (TextDrawingArea[] tda)
    With
    (RSFont[] TDA)
    Here's my Interface. Thanks a lot for your tutorial.
    Need help, I can Help! Private message Me
    Reply With Quote  
     

  12. Thankful users:



Page 1 of 3 123 LastLast
Thread Information
Users Browsing this Thread

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

Similar Threads

  1. How do i add a CUSTOM INTERFACE:
    By Albert Einstein in forum Help
    Replies: 3
    Last Post: 03-24-2012, 03:00 PM
  2. Replies: 52
    Last Post: 11-28-2011, 01:22 AM
  3. New PKing Teleport
    By +Deus Ex in forum Show-off
    Replies: 21
    Last Post: 06-18-2011, 06:22 AM
  4. My Custom Teleport Interface :)
    By Insane in forum Show-off
    Replies: 25
    Last Post: 09-24-2010, 02:11 AM
  5. Replies: 45
    Last Post: 02-02-2010, 03:14 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
  •