Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • SOUPSOUP: just get a vpn
      August 13, 2018, 06:44:28 PM
    • jme: _^_ will answer all of your javascript questions
      August 12, 2018, 07:11:00 PM
    • doomsale: and where is boxman?
      August 10, 2018, 03:16:59 AM
    • doomsale: Where can i play the Moparscape MMORPG with the Metallica instrumentals?
      August 10, 2018, 03:16:47 AM
    • doomsale: no longer clicking on doors and dummies at east bank
      August 10, 2018, 03:16:07 AM
    • doomsale: were all grown up now huh?
      August 10, 2018, 03:15:58 AM
    • _^_: hey everyone look at my graphs [link]
      August 06, 2018, 01:52:16 PM
    • braedyn: Someone pl0x help me out with PI Lottery!!
      August 03, 2018, 02:12:25 AM
    • Travas: p3n1s
      July 26, 2018, 09:46:33 PM
    • Krackkid: You up :eggplant:
      July 23, 2018, 06:18:17 PM
    • DeathsChaos9: no
      July 23, 2018, 03:53:31 PM
    • Emulous: Come check out Emulous: [link]
      July 22, 2018, 03:37:19 PM
    • Emulous:[link]
      July 22, 2018, 03:37:00 PM
    • Travas: ur mom
      July 21, 2018, 06:04:50 PM
    • YNRDAB: Watcha big ballers up too?
      July 20, 2018, 11:01:06 AM
    • dark250: i need help for coding client
      July 19, 2018, 08:27:37 AM
    • Travas: yes
      July 14, 2018, 02:19:44 PM
    • drubrkletern: lmao racist and sexist much?
      July 14, 2018, 01:11:52 PM
    • Cole1497: yeah i got you lil boat give me a second
      July 13, 2018, 03:19:35 AM
    • B0ATY.: yo can anyone unban my ip, i got banned for saying i hope someone gets aids :p
      July 12, 2018, 09:16:00 PM

    Author Topic: Quest tab help  (Read 249 times)

    0 Members and 1 Guest are viewing this topic.

    OfflineElegant

    • Member
    • **
    • Posts: 31
    • Thanks: +0/-0
      • View Profile
    Quest tab help
    « on: April 22, 2015, 06:12:32 PM »
    How can I include the "Achievement Points" & "Contract Points" Into the quest tab? Example of my tab here -

    Here is some of my code to give you a better idea -



    This is what I can't figure out (In the red box) -
    *Do they all have to continue in order?

    here is a snippit of the code ; 
    Code: [Select]
    getPA().sendFrame126("@[email protected] Credits: @[email protected]" + Credits + "  ",
    29169);
    getPA().sendFrame126("@[email protected] Points: @[email protected]" + votingPoints + "  ",
    29170);
    getPA().sendFrame126("@[email protected] Points: @[email protected]" + pkPoints + "  ", 29171);
    getPA().sendFrame126("@[email protected] Points: @[email protected]" + dungPoints + " ",
    29172);
    getPA().sendFrame126("@[email protected] Kills: @[email protected]" + KC + " ", 29173);
    getPA().sendFrame126("@[email protected] Deaths: @[email protected]" + DC + " ", 29174);
    getPA().sendFrame126("@[email protected] Lock Status: @[email protected]" + xpLock + " ",
    29175);
    getPA().sendFrame126(
    "@[email protected] Task: @[email protected]"
    + Server.npcHandler.getNpcListName(slayerTask) + " ",
    29176);
    getPA().sendFrame126("@[email protected]: @[email protected]" + taskAmount + " ", 29177);

    Any help would be great.

    Cheers
    Runescape Gambling

    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: Quest tab help
    « Reply #1 on: April 22, 2015, 06:42:27 PM »
    Easiest way to figure out which IDs you need to use would be to add a for loop, and send packet 126 to the client.

    Something like this:
    Code: Java
    1. for(int i =29169; i <30000; i++){
    2.      getPA().sendFrame126("ID: "+ i, i);
    3. }
    Put that at the end of your code you showed us in the code tags. Compile and run.
    Now you should see what ids are what.

    Then to add your own, just copy the existing ones, and change your variables, the text, and the id.
    Runescape Gambling

    OfflineElegant

    • Member
    • **
    • Posts: 31
    • Thanks: +0/-0
      • View Profile
    Re: Quest tab help
    « Reply #2 on: April 22, 2015, 10:04:41 PM »
    Easiest way to figure out which IDs you need to use would be to add a for loop, and send packet 126 to the client.

    Something like this:
    Code: Java
    1. for(int i =29169; i <30000; i++){
    2.      getPA().sendFrame126("ID: "+ i, i);
    3. }
    Put that at the end of your code you showed us in the code tags. Compile and run.
    Now you should see what ids are what.

    Then to add your own, just copy the existing ones, and change your variables, the text, and the id.

    Okay I got that down, thank you.

    Now my last issue is making it pull the actual number -  |
    This is what my issue is -

    Thanks for the reply
    Runescape Gambling

    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: Quest tab help
    « Reply #3 on: April 22, 2015, 10:16:29 PM »
    What is the variable "contract"?

    Is it an object? Or is it a primitive datatype?

    If an object of some form, can I see the class for it?

    Find where the contract variable is defined in the player class (Or client class) and that will tell you if it's an object or not.

    OfflineElegant

    • Member
    • **
    • Posts: 31
    • Thanks: +0/-0
      • View Profile
    Re: Quest tab help
    « Reply #4 on: April 22, 2015, 10:33:12 PM »
    What is the variable "contract"?

    Is it an object? Or is it a primitive datatype?

    If an object of some form, can I see the class for it?

    Find where the contract variable is defined in the player class (Or client class) and that will tell you if it's an object or not.

    That I am not sure of, it is for a system called "contracts" that you go to a NPC () to get a contract to kill a boss in a certain amount of time. Here is the interface shop -

    Shop -

    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: Quest tab help
    « Reply #5 on: April 22, 2015, 10:47:58 PM »
    Nothing you just provided me with helps me..
    I told you how to find the variable:
    Find where the contract variable is defined in the player class (Or client class) and that will tell you if it's an object or not.
    After you find the variable, if it's an object, it will be clearly defined as one.
    Here's an example of a primitive datatype being defined.
    Code: Java
    1. privateint contract =0;
    Different primitive datatypes are:
    byte
    short
    int
    long
    float
    double
    char
    String
    boolean

    Here is how an object would be defined:
    Code: Java
    1. privateObject contracts

    However, the word "Object" may be substituted with another class name.


    Note: defining a variable as "private" is not the only way to do it. You can define it as public, protected, and some others. There are other modifiers you can use on the variable as well.
    http://www.tutorialspoint.com/java/java_modifier_types.htm There's a tutorial talking about different modifiers.



    If it is an object, then you will need to provide me with the class for it. You can do so by searching the Object name in windows explorer at the root of your project (Like "src").

    OfflineElegant

    • Member
    • **
    • Posts: 31
    • Thanks: +0/-0
      • View Profile
    Re: Quest tab help
    « Reply #6 on: April 22, 2015, 11:57:34 PM »
    Nothing you just provided me with helps me..
    I told you how to find the variable:
    Find where the contract variable is defined in the player class (Or client class) and that will tell you if it's an object or not.
    After you find the variable, if it's an object, it will be clearly defined as one.
    Here's an example of a primitive datatype being defined.
    Code: Java
    1. privateint contract =0;
    Different primitive datatypes are:
    byte
    short
    int
    long
    float
    double
    char
    String
    boolean

    Here is how an object would be defined:
    Code: Java
    1. privateObject contracts

    However, the word "Object" may be substituted with another class name.


    Note: defining a variable as "private" is not the only way to do it. You can define it as public, protected, and some others. There are other modifiers you can use on the variable as well.
    http://www.tutorialspoint.com/java/java_modifier_types.htm There's a tutorial talking about different modifiers.



    If it is an object, then you will need to provide me with the class for it. You can do so by searching the Object name in windows explorer at the root of your project (Like "src").

    It is a primitive datatype

    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: Quest tab help
    « Reply #7 on: April 23, 2015, 12:03:22 AM »
    a primitive datatype wouldn't show up like that in your text field...

    Can you show me the variable in your player/client class?

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal