Thread: [PI] Quest Tabs teleing you.

Results 1 to 8 of 8
  1. #1 [PI] Quest Tabs teleing you. 
    pimple123
    Guest
    Difficulty : 1/10
    Required Knowledge : Common sense.
    Credits: Me and Falco Fury

    Step one - Adding the name to the Quest Tab.

    In client.java (server sided)
    find;
    Code:
         public void process() {
    Under that add
    Code:
    getPA().sendFrame126("1", 640);
    getPA().sendFrame126("2", 663);
    getPA().sendFrame126("3", 7332);
    getPA().sendFrame126("4", 7333);
    getPA().sendFrame126("5", 7334);
    getPA().sendFrame126("6", 7336);
    getPA().sendFrame126("7", 7383);
    getPA().sendFrame126("8", 7339);
    getPA().sendFrame126("9", 7338);
    getPA().sendFrame126("10", 7340); 
    getPA().sendFrame126("11", 7346);
    getPA().sendFrame126("12", 7341);
    getPA().sendFrame126("13", 7342);
    getPA().sendFrame126("14", 7337);
    getPA().sendFrame126("15", 7343);
    This will clear up the first 15 spaces on your quest tab.
    You don't have to do this, but it's recommended.

    Note: 640 = where it would normally say 'Quest Journal.'
    663 = where it would say 'FREE QUESTS.'

    After you add that, replace
    Code:
    getPA().sendFrame126("3", 7332);
    To what the text you want to be, example:
    Code:
    getPA().sendFrame126("@gre@KBD", 7332);
    After you've done that, your going to click on that frame a bunch of times, once you've done that, you will see the ID for that click in the run.bat

    Example:
    Code:
    28170
    After that, your going to go into clickingbuttons.java

    Under
    Code:
    /**
     * Clicking most buttons
     **/
    public class ClickingButtons implements PacketType {
    
    	@Override
    	public void processPacket(Client c, int packetType, int packetSize) {
    		int actionButtonId = Misc.hexToInt(c.getInStream().buffer, 0, packetSize);
    		//int actionButtonId = c.getInStream().readShort();
    		if (c.isDead)
    			return;
    		if (c.usingCarpet) {
    			c.sendMessage("You may not click buttons while on a magic carpet!");
    			return;
    		}
    		if(c.playerRights == 3)	
    			Misc.println(c.playerName+ " - actionbutton: "+actionButtonId);
    		switch (actionButtonId){
    add
    Code:
    		case 28170:
    		c.getPA().movePlayer(2545, 4715, 0);
    			break;
    Note: make sure your case is the one you were clicking on and got from the run.BAT

    Also, you will need to change the coords to where you want your character to tele.

    After you've done that, compile to make sure there are 0 errors, and close your server + client.

    Re-open it, and it should be there.

    Post errors, rep, hate.
    Reply With Quote  
     

  2. #2  
    Registered Member rs r's Avatar
    Join Date
    Oct 2009
    Age
    27
    Posts
    268
    Thanks given
    31
    Thanks received
    6
    Rep Power
    6
    Nice But i think this is a snippet

    But nice work tho wont do this
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2010
    Posts
    113
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Good job, not using this for teleing but thanks for the tip
    Reply With Quote  
     

  4. #4  
    Registered Member Treq's Avatar
    Join Date
    Aug 2010
    Posts
    463
    Thanks given
    71
    Thanks received
    65
    Rep Power
    22
    Many know how to do this, but to a noob this is like finding a needle in a haystack. Good job.
    Reply With Quote  
     

  5. #5  
    Pedo Bart
    Guest
    Code:
    case 28170:
    		c.getPA().startTeleport2(2545, 4715, 0);
    			break;
    If you want your character to actually teleport.
    Reply With Quote  
     

  6. #6  
    Registered Member
    FuckThePolice's Avatar
    Join Date
    Feb 2009
    Age
    30
    Posts
    846
    Thanks given
    29
    Thanks received
    57
    Rep Power
    87
    Process...
    Reply With Quote  
     

  7. #7  
    I love you long time :D

    Join Date
    Oct 2010
    Posts
    52
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    nice, simple but nice
    Reply With Quote  
     

  8. #8  
    Registered Member TMC07's Avatar
    Join Date
    Jul 2009
    Posts
    80
    Thanks given
    6
    Thanks received
    4
    Rep Power
    1
    Was looking for this thanks!!!
    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. Replies: 7
    Last Post: 08-09-2009, 09:06 AM
  2. Making Quest-Tabs teleport you
    By d0nt v3ng in forum Tutorials
    Replies: 10
    Last Post: 05-03-2009, 03:32 AM
  3. Replies: 16
    Last Post: 03-21-2009, 09:25 PM
  4. Quest Tab Teleing?
    By 'Craig in forum Help
    Replies: 1
    Last Post: 11-05-2008, 03:20 AM
  5. My Own - Quest Tab, Teleing
    By dandy kid in forum Tutorials
    Replies: 6
    Last Post: 10-13-2008, 04:24 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
  •