Thread: Quest Cape requirments

Results 1 to 10 of 10
  1. #1 Quest Cape requirments 
    Always keep 'em guessing.
    Sabbath's Avatar
    Join Date
    Mar 2009
    Posts
    156
    Thanks given
    28
    Thanks received
    4
    Rep Power
    22
    Can someone make me a code that requires the player to have completed all the quests for the Quest Cape?

    Help would be appreciated. thanks
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    Do something like this:
    Code:
    int totalQuestPoints = 6;
    calculateQuestPoints() {
    q1 += q2 = q1q2;
    q3 += q4 = q3q4;
    q5 += q6 = q5q6;
    q1q2 += q3q4 = q1q2q3q4;
    q1q2q3q4 += q5q6 = questPoints;
    }
    Then in your item equip method:
    Code:
    case ####:
    calculateQuestPoints();
    if(questPoints != totalQuestPoints) {
    sendMessage("Need to have completed all quests.");
    }
    Reply With Quote  
     

  3. #3  
    Always keep 'em guessing.
    Sabbath's Avatar
    Join Date
    Mar 2009
    Posts
    156
    Thanks given
    28
    Thanks received
    4
    Rep Power
    22
    I use a Delta source so i dont think it has quest points
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    I know, I just coded it for you.

    What are the variables for your quests? (Look in clickingMost.java, there should be like "if("
    Reply With Quote  
     

  5. #5  
    Always keep 'em guessing.
    Sabbath's Avatar
    Join Date
    Mar 2009
    Posts
    156
    Thanks given
    28
    Thanks received
    4
    Rep Power
    22
    I have 10 quests if thats what you mean q1-q10
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    Yeah, so that code should work just fine, I'll make it in a sec.
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    Code:
    int totalQuestPoints = 10;
    calculateQuestPoints() {
    q1 += q2 = q1q2;
    q3 += q4 = q3q4;
    q5 += q6 = q5q6;
    q7 += q8 = q7q8;
    q9 += q10 = q9q10
    q1q2 += q3q4 = q1q2q3q4;
    q5q6 += q7q8 = q5q6q7q8;
    q1q2q3q4 += q5q6q7q8 = q1to8;
    q1to8 += q9q10 = questPoints;
    }
    Reply With Quote  
     

  8. #8  
    Always keep 'em guessing.
    Sabbath's Avatar
    Join Date
    Mar 2009
    Posts
    156
    Thanks given
    28
    Thanks received
    4
    Rep Power
    22
    So that go's into Client.java?
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    Yep.
    Reply With Quote  
     

  10. #10  
    Extreme Donator


    Join Date
    Mar 2009
    Age
    29
    Posts
    956
    Thanks given
    29
    Thanks received
    15
    Rep Power
    215
    errr, when you finish a quest do something like

    qCape++;

    then add up your quest and do this for requirement for cape

    if(qCape == __) { **
    Quote Originally Posted by Note
    Why do you quote yourself?
    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

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