Thread: 718 help with totallevel requirement for comp cape

Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1 718 help with totallevel requirement for comp cape 
    Donator

    Join Date
    Mar 2012
    Posts
    110
    Thanks given
    13
    Thanks received
    3
    Rep Power
    11
    Ok so i tried adding 2496 total level requirement for comp cape but it dont count up like everything else does here what i add
    in player.java i add this
    Code:
    public int totallevel = 0;
    in item constants i added this
    Code:
    if (player.totallevel < 2496) {
    				player.getPackets().sendGameMessage("Type ::milestones to see the requirements for this cape.");
    				return false;
    			}
    in commands.java i added this
    Code:
    "I must have the highest possible level in every skill. " +player.totallevel + "/2496");
    i get no errors or anything it just dont count up like how many logs you got chopped and stuff
    Reply With Quote  
     

  2. #2  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Just look for the method in Skills.java for the total level.

    If you don't change it, totallevel is always gonna be constant. As for the wood stuff, try posting your ;; milestones cmd.

    Oh and use camelCase for easier readability.

    CamelCase - Wikipedia, the free encyclopedia
    Project thread
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Mar 2012
    Posts
    110
    Thanks given
    13
    Thanks received
    3
    Rep Power
    11
    heres my milestones cmd
    Code:
    	if (cmd[0].equalsIgnoreCase("milestones")) {
    				player.getInterfaceManager().sendInterface(275);
    for (int i = 0; i < 60; i++){
    			player.getPackets().sendIComponentText(275, i, " ");
    			}
    			player.getPackets().sendIComponentText(275, 1, "ScapinScape Milestones");
                                                          player.getPackets().sendIComponentText(275, 15, "Requirements for the Completionist Cape:");
    			player.getPackets().sendIComponentText(275, 16, "I must have the highest possible level in every skill. " +player.totallevel + "/2496");
    			player.getPackets().sendIComponentText(275, 18, "You must kill 100 bosses in the Dominion Tower. (trimmed only)");
    			player.getPackets().sendIComponentText(275, 19, "You must kill Lucien " +player.lucien + "/1 time. (trimmed only)");
    			player.getPackets().sendIComponentText(275, 20, "You must kill General Graardor " +player.bandos + "/20 times.");
    			player.getPackets().sendIComponentText(275, 21, "You must kill Kree'arra " +player.armadyl + "/10 times.");
    			player.getPackets().sendIComponentText(275, 22, "You must kill " +player.npckills + "/2000 NPC's.");
    			player.getPackets().sendIComponentText(275, 23, " ");
                                                          player.getPackets().sendIComponentText(275, 24, "Minigames and Quests");
    			player.getPackets().sendIComponentText(275, 25, " ");
    			player.getPackets().sendIComponentText(275, 26, "You must kill the Queen Black Dragon once. (trimmed only)");
    			player.getPackets().sendIComponentText(275, 27, "You must complete Troll Invasion " +player.trollcomplete + "/2 times.");
                                                          player.getPackets().sendIComponentText(275, 28, "You must complete the Fight Caves " +player.fightcavesc + "/2 times.");
    			player.getPackets().sendIComponentText(275, 29, "You must complete the Child's Quest. (trimmed only)");
    			player.getPackets().sendIComponentText(275, 30, "You must complete Cook's Assistant.");
                                                          player.getPackets().sendIComponentText(275, 31, "You must complete Nomad's Requiem. (trimmed only)");
    			player.getPackets().sendIComponentText(275, 33, "Skilling");
    			player.getPackets().sendIComponentText(275, 34, " ");
    			player.getPackets().sendIComponentText(275, 35, "You must mine " +player.oresmined + "/250 ores of any kind.");
    			player.getPackets().sendIComponentText(275, 36, "You must cut " +player.logscutted + "/200 logs of any kind.");
    			player.getPackets().sendIComponentText(275, 37, "You must burn " +player.logsburned + "/200 logs of any kind.");
    			player.getPackets().sendIComponentText(275, 38, "You must farm " +player.mariofarmed + "/20 Marigolds.");
    			player.getPackets().sendIComponentText(275, 39, "You must catch " +player.fishedfish + "/500 fishes of any kind.");
    			player.getPackets().sendIComponentText(275, 40, "You must steal " +player.thievedc + "/300 times.");
    			player.getPackets().sendIComponentText(275, 41, "You must complete " +player.lapsgnome + "/25 laps on the Gnome Agility Course.");
    			player.getPackets().sendIComponentText(275, 42, " ");
    			player.getPackets().sendIComponentText(275, 43, "Miscellaneous");
    			player.getPackets().sendIComponentText(275, 44, " ");
    			player.getPackets().sendIComponentText(275, 45, "None");
    			player.getPackets().sendIComponentText(275, 45, " ");
    			return true;
    			}
    Reply With Quote  
     

  4. #4  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Look for where it modifies player.logscutted. Probably woodcutting.java in actions.
    Project thread
    Reply With Quote  
     

  5. #5  
    Donator

    Join Date
    Mar 2012
    Posts
    110
    Thanks given
    13
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by clem585 View Post
    Look for where it modifies player.logscutted. Probably woodcutting.java in actions.
    yah its in woodcutting.java
    Reply With Quote  
     

  6. #6  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by bkp231 View Post
    yah its in woodcutting.java
    Hm see anything wrong with it? If not post it.

    Idk what it would be though...
    Project thread
    Reply With Quote  
     

  7. #7  
    Donator

    Join Date
    Mar 2012
    Posts
    110
    Thanks given
    13
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by clem585 View Post
    Hm see anything wrong with it? If not post it.

    Idk what it would be though...
    would there be a way instead of saying this player.totallevel to this maybe Skills.gettotallevel
    Reply With Quote  
     

  8. #8  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by bkp231 View Post
    would there be a way instead of saying this player.totallevel to this maybe Skills.gettotallevel
    Ye that's what I said in my first post, there should already be a method for this that you can use. Just like you said, probably something like getTotalLevel ().
    Project thread
    Reply With Quote  
     

  9. #9  
    Donator

    Join Date
    Mar 2012
    Posts
    110
    Thanks given
    13
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by clem585 View Post
    Ye that's what I said in my first post, there should already be a method for this that you can use. Just like you said, probably something like getTotalLevel ().
    ok ille try it
    Reply With Quote  
     

  10. #10  
    Donator

    Join Date
    Mar 2012
    Posts
    110
    Thanks given
    13
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by clem585 View Post
    Ye that's what I said in my first post, there should already be a method for this that you can use. Just like you said, probably something like getTotalLevel ().
    i found this in skills.java

    Code:
    public int getTotalLevel(Player player) {
        int totallevel = 0;
        for(int i = 0; i <= 24; i++) {
            totallevel += player.getSkills().getLevelForXp(i);
        }
        return totallevel;
    }
    Reply With Quote  
     

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)


User Tag List

Similar Threads

  1. Replies: 1
    Last Post: 03-13-2013, 04:34 AM
  2. Replies: 1
    Last Post: 02-17-2009, 04:43 PM
  3. Need help with auto restarter for my VPS
    By Decimation in forum Help
    Replies: 1
    Last Post: 02-11-2009, 06:43 AM
  4. Adding Cool Requirements for Summoning Cape
    By Bulby Strife in forum Tutorials
    Replies: 10
    Last Post: 02-07-2008, 07:40 PM
  5. Replies: 7
    Last Post: 12-24-2007, 02:36 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
  •