Thread: Chaz right click examine player

Results 1 to 6 of 6
  1. #1 Chaz right click examine player 
    Registered Member
    Join Date
    Mar 2015
    Posts
    22
    Thanks given
    23
    Thanks received
    0
    Rep Power
    11
    I've gotten it to work, however, I'm unable to find the code or method that indicates Quest Points
    Here is the code of WorldPacketsDecoder.java:
    } else if (packetId == PLAYER_OPTION_6_PACKET) { @SuppressWarnings("unused")
    boolean unknown = stream.readByte() == 1;
    int playerIndex = stream.readUnsignedShortLE128();
    Player other = World.getPlayers().get(playerIndex);
    if (other == null || other.isDead() || other.hasFinished()
    || !player.getMapRegionsIds().contains(other.getRegio nId()))
    return;
    if (player.getLockDelay() > Utils.currentTimeMillis())
    return;
    if (player.getInterfaceManager().containsScreenInter( )) {
    player.getPackets()
    .sendGameMessage("The other player is busy.");
    return;
    }
    if (!other.withinDistance(player, 14)) {
    player.getPackets().sendGameMessage(
    "Unable to find target");
    return;
    }
    if (player.getAttackedByDelay() + 10000 > Utils.currentTimeMillis()) {
    player.getPackets()
    .sendGameMessage(
    "<col=B00000>You can't examine others until 10 seconds after the end of combat.");
    return;
    }
    player.getInterfaceManager().sendInterface(1314);
    player.getPackets().sendIComponentText(1314, 91,
    other.getDisplayName());
    player.getPackets().sendIComponentText(1314, 90,
    "");
    player.getPackets().sendIComponentText(1314, 61,
    "" + other.getSkills().getLevel(0));
    player.getPackets().sendIComponentText(1314, 62,
    "" + other.getSkills().getLevel(2));
    player.getPackets().sendIComponentText(1314, 63,
    "" + other.getSkills().getLevel(1));
    player.getPackets().sendIComponentText(1314, 65,
    "" + other.getSkills().getLevel(4));
    player.getPackets().sendIComponentText(1314, 66,
    "" + other.getSkills().getLevel(5));
    player.getPackets().sendIComponentText(1314, 64,
    "" + other.getSkills().getLevel(6));
    player.getPackets().sendIComponentText(1314, 78,
    "" + other.getSkills().getLevel(20));
    player.getPackets().sendIComponentText(1314, 81,
    "" + other.getSkills().getLevel(22));
    player.getPackets().sendIComponentText(1314, 76,
    "" + other.getSkills().getLevel(24));
    player.getPackets().sendIComponentText(1314, 82,
    "" + other.getSkills().getLevel(3));
    player.getPackets().sendIComponentText(1314, 83,
    "" + other.getSkills().getLevel(16));
    player.getPackets().sendIComponentText(1314, 84,
    "" + other.getSkills().getLevel(15));
    player.getPackets().sendIComponentText(1314, 80,
    "" + other.getSkills().getLevel(17));
    player.getPackets().sendIComponentText(1314, 70,
    "" + other.getSkills().getLevel(12));
    player.getPackets().sendIComponentText(1314, 85,
    "" + other.getSkills().getLevel(9));
    player.getPackets().sendIComponentText(1314, 77,
    "" + other.getSkills().getLevel(18));
    player.getPackets().sendIComponentText(1314, 79,
    "" + other.getSkills().getLevel(21));
    player.getPackets().sendIComponentText(1314, 68,
    "" + other.getSkills().getLevel(14));
    player.getPackets().sendIComponentText(1314, 69,
    "" + other.getSkills().getLevel(13));
    player.getPackets().sendIComponentText(1314, 74,
    "" + other.getSkills().getLevel(10));
    player.getPackets().sendIComponentText(1314, 75,
    "" + other.getSkills().getLevel(7));
    player.getPackets().sendIComponentText(1314, 73,
    "" + other.getSkills().getLevel(11));
    player.getPackets().sendIComponentText(1314, 71,
    "" + other.getSkills().getLevel(8));
    player.getPackets().sendIComponentText(1314, 72,
    "" + other.getSkills().getLevel(19));
    player.getPackets().sendIComponentText(1314, 67,
    "" + other.getSkills().getLevel(23));
    player.getPackets().sendIComponentText(1314, 87,
    "" + other.getMaxHitpoints());
    player.getPackets().sendIComponentText(1314, 86,
    "" + other.getSkills().getCombatLevelWithSummoning());
    player.getPackets().sendIComponentText(1314, 88,
    "" + other.getSkills().getTotalLevel(other));
    player.getPackets().sendIComponentText(1314, 89,
    "" + other.getSkills().getTotalXp(other));
    player.getTemporaryAttributtes().put("finding_play er",
    Boolean.FALSE);
    I can't find a other.getQuestPoints method anywhere yet this picture still shows.


    EVEN IF I HAVE COMPLETED A QUEST. As seen above it says 1 in the subtext heading which is actually my questpoints from player.questPoints
    Whats the problem? I could easily create a new method for Quest Points but thats not the problem. The problem is it's showing that text on interface and there's no code to show it as seen above.
    Reply With Quote  
     

  2. #2  
    wat u gon do lol ¯\_(ツ)_/¯
    Nills's Avatar
    Join Date
    Feb 2013
    Posts
    339
    Thanks given
    82
    Thanks received
    36
    Rep Power
    54
    'Other' is still a player, except it's referring to another player in the server so it should have all the methods "player" does.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2015
    Posts
    22
    Thanks given
    23
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Nills View Post
    'Other' is still a player, except it's referring to another player in the server so it should have all the methods "player" does.
    But is it an instanced object or a separate class? I'm unable to find a Other.java and when I search up other.questPoints it returns 0 results, even though it has "Quest Points 00000000" in the interface, I can't find the code that made it.
    And sorry I didn't make it clear, I'm trying to REMOVE the thing that says Quest Points above.

    Edit: Found Player other = World.getPlayers().get(playerIndex); object in the OPTION_6_PACKET
    But that doesn't explain the Quest Points still showing as seen in this picture.


    I added a "Hi" or other random word to all the "" in the lines of code yet the Quest Points text seem to be unaffected, still displays "Quest Points 000000000"

    (Please tell me if the image goes down or becomes something different, I have not used Postimage.org, and am only using it because upload.ee is down for me)
    Reply With Quote  
     

  4. #4  
    wat u gon do lol ¯\_(ツ)_/¯
    Nills's Avatar
    Join Date
    Feb 2013
    Posts
    339
    Thanks given
    82
    Thanks received
    36
    Rep Power
    54
    Quote Originally Posted by neinscape View Post
    But is it an instanced object or a separate class? I'm unable to find a Other.java and when I search up other.questPoints it returns 0 results, even though it has "Quest Points 00000000" in the interface, I can't find the code that made it.
    And sorry I didn't make it clear, I'm trying to REMOVE the thing that says Quest Points above.

    Edit: Found Player other = World.getPlayers().get(playerIndex); object in the OPTION_6_PACKET
    But that doesn't explain the Quest Points still showing as seen in this picture.


    I added a "Hi" or other random word to all the "" in the lines of code yet the Quest Points text seem to be unaffected, still displays "Quest Points 000000000"

    (Please tell me if the image goes down or becomes something different, I have not used Postimage.org, and am only using it because upload.ee is down for me)
    "Other" is not a class, it's still a player object except that it's not referring to the player that is currently logged in, but another player in the world, so all the methods still apply.
    For example, this would send a message to me.
    Code:
    Player other = World.getPlayerByDisplayName("Nills");
    other.getPackets().sendGameMessage("Hi");
    I don't know how that interface is done, might be cache or client sided. But try looping all the component ID's in the interface, there's a command for it but I can't remember what it is, it basically shows every component ID on the interface.

    Code:
    Player other = World.getPlayers().get(playerIndex);
    That's referring to the player you right clicked.
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Registered Member
    Join Date
    Mar 2015
    Posts
    22
    Thanks given
    23
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Nills View Post
    "Other" is not a class, it's still a player object except that it's not referring to the player that is currently logged in, but another player in the world, so all the methods still apply.
    For example, this would send a message to me.
    Code:
    Player other = World.getPlayerByDisplayName("Nills");
    other.getPackets().sendGameMessage("Hi");
    I don't know how that interface is done, might be cache or client sided. But try looping all the component ID's in the interface, there's a command for it but I can't remember what it is, it basically shows every component ID on the interface.

    Code:
    Player other = World.getPlayers().get(playerIndex);
    That's referring to the player you right clicked.
    Got it thanks. The reason it had Quest Points 000000 was because the component wasn't even configured. You're right, I'll just find the id and do
    Code:
    player.getPackets().sendIComponentText(1314, componentId,
    "" + other.questPoints());
    Thanks
    Reply With Quote  
     

  7. #6  
    wat u gon do lol ¯\_(ツ)_/¯
    Nills's Avatar
    Join Date
    Feb 2013
    Posts
    339
    Thanks given
    82
    Thanks received
    36
    Rep Power
    54
    Quote Originally Posted by neinscape View Post
    Got it thanks. The reason it had Quest Points 000000 was because the component wasn't even configured. You're right, I'll just find the id and do
    Code:
    player.getPackets().sendIComponentText(1314, componentId,
    "" + other.questPoints());
    Thanks
    No problem.
    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. [PI and RuneSource/Azure]Right click ban player
    By thim slug in forum Tutorials
    Replies: 23
    Last Post: 08-20-2014, 04:43 AM
  2. Right clicking a player and you get "Skill-1079"
    By ....>§exy<.... in forum Help
    Replies: 0
    Last Post: 12-31-2011, 07:53 AM
  3. Replies: 3
    Last Post: 12-19-2011, 07:31 AM
  4. Replies: 2
    Last Post: 08-01-2011, 01:10 AM
  5. making a pickpocket option when u right click a player!
    By k1ng 0f k1ngs in forum Tutorials
    Replies: 2
    Last Post: 07-06-2008, 11:57 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •