Thread: 718 - Achieving Max and Completionists capes and hoods

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31
  1. #1 718 - Achieving Max and Completionists capes and hoods 
    Banned
    Join Date
    Jan 2013
    Posts
    261
    Thanks given
    57
    Thanks received
    49
    Rep Power
    0
    Hello guys, new snippet from me!


    With this snippet you can achieve Max and Completionist cape by investigating the cape object in top floor of Varrock Museum, for more information if it's needed visit Rune Wiki.

    *Note*
    You can easily make this better good example is to make it send a interface or something that way, have fun guys. =)

    -IMAGE-
    [Only registered and activated users can see links. ]

    For the first add these with the other ints to Player.java
    Code:
    public static int isMaxed = 0;
    public static int isCompletionist = 0;

    Add this new MaxedUser.java to com.rs.game.player.content;
    Code:
    package com.rs.game.player.content;
    
    import com.rs.game.World;
    import com.rs.game.player.Player;
    import com.rs.game.player.Skills;
    import com.rs.utils.Utils;
    
    /**
     * 
     * @author JazzyYaYaYa | Nexon | Fuzen Seth
     *
     */
    public class MaxedUser {
    public static int MAXCAPE = 20767;
    public static int ONE = 1;
    public static int MAXHOOD = 20768;
    public static int COMPLETIONISTCAPE = 20770; 
    public static int COMPLETIONISTHOOD = 20771; 
    
    public static void CheckCompletionist(Player player) {
    	if (player.getSkills().getLevelForXp(Skills.ATTACK) >= 99
    	&& player.getSkills().getLevelForXp(Skills.STRENGTH) >= 99
    	&& player.getSkills().getLevelForXp(Skills.DEFENCE) >= 99
    	&& player.getSkills().getLevelForXp(Skills.CONSTRUCTION) >= 99
    	&& player.getSkills().getLevelForXp(Skills.HITPOINTS) >= 99
    	&& player.getSkills().getLevelForXp(Skills.RANGE) >= 99
    	&& player.getSkills().getLevelForXp(Skills.MAGIC) >= 99
    	&& player.getSkills().getLevelForXp(Skills.RUNECRAFTING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.FISHING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.AGILITY) >= 99
    	&& player.getSkills().getLevelForXp(Skills.COOKING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.PRAYER) >= 99
    	&& player.getSkills().getLevelForXp(Skills.THIEVING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.DUNGEONEERING) >= 120
    	&& player.getSkills().getLevelForXp(Skills.MINING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.SMITHING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.SUMMONING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.FARMING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.HUNTER) >= 99
    	&& player.getSkills().getLevelForXp(Skills.SLAYER) >= 99
    	&& player.getSkills().getLevelForXp(Skills.CRAFTING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.WOODCUTTING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.FIREMAKING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.FLETCHING) >= 99
    	&& player.getSkills().getLevelForXp(Skills.HERBLORE) >= 99
    	&& player.isCompletionist == 0) {
    		player.isCompletionist = 1;
    		World.sendWorldMessage(
    				Utils.formatPlayerNameForDisplay(player.getUsername())
    						+ "<col=800000> Has just achieved the Completionists cape!"
    						+ "</col> ", false);
    		player.sm("Congrulations, you've achieved the Completionists cape!");
    		player.getInventory().addItem(COMPLETIONISTCAPE, ONE);
    		player.getInventory().addItem(COMPLETIONISTHOOD, ONE);
    	}
    	else {
    		player.isCompletionist = 0; //<-- Added this for safety reasons.
    	}
    	}
    
    	public static void CheckMaxed(Player player) {
    		if (player.getSkills().getLevelForXp(Skills.ATTACK) >= 99
    		&& player.getSkills().getLevelForXp(Skills.STRENGTH) >= 99
    		&& player.getSkills().getLevelForXp(Skills.DEFENCE) >= 99
    		&& player.getSkills().getLevelForXp(Skills.CONSTRUCTION) >= 99
    		&& player.getSkills().getLevelForXp(Skills.HITPOINTS) >= 99
    		&& player.getSkills().getLevelForXp(Skills.RANGE) >= 99
    		&& player.getSkills().getLevelForXp(Skills.MAGIC) >= 99
    		&& player.getSkills().getLevelForXp(Skills.RUNECRAFTING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.FISHING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.AGILITY) >= 99
    		&& player.getSkills().getLevelForXp(Skills.COOKING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.PRAYER) >= 99
    		&& player.getSkills().getLevelForXp(Skills.THIEVING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.DUNGEONEERING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.MINING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.SMITHING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.SUMMONING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.FARMING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.DUNGEONEERING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.HUNTER) >= 99
    		&& player.getSkills().getLevelForXp(Skills.SLAYER) >= 99
    		&& player.getSkills().getLevelForXp(Skills.CRAFTING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.WOODCUTTING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.FIREMAKING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.FLETCHING) >= 99
    		&& player.getSkills().getLevelForXp(Skills.HERBLORE) >= 99
    		&& player.isMaxed == 0) {
    			player.isMaxed = 1;
    			World.sendWorldMessage(
    					Utils.formatPlayerNameForDisplay(player.getUsername())
    							+ "<col=800000> Has just claimed his very first Max cape."
    							+ "</col> ", false);
    			player.sm("Congrulations, you've achieved the Max cape!");
    			player.getInventory().addItem(MAXCAPE, ONE);
    			player.getInventory().addItem(MAXHOOD, ONE);
    		}
    		else {
    			player.isMaxed = 0; //<-- Added this for safety reasons.
    			player.sm("There is currently nothing for you.");
    		}
    		}
    		
    }
    Congratulations, you've completed this snippet.


    Wasn't it just easy?! Now you can create features and new things for maxed players by using:
    Code:
    if (player.isMaxed == 1) {
    //Action
    }
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Banned
    Join Date
    Jan 2013
    Posts
    261
    Thanks given
    57
    Thanks received
    49
    Rep Power
    0
    Note V2: You can make any kind of maxed player area with shop that players can re-buy capes or something whatever comes in your mind. I did that way so i didn't make any kind of way to refund, that's first cape ever and reports world-wide ingame.
    Reply With Quote  
     

  4. #3  
    Banned
    Join Date
    Jul 2012
    Posts
    730
    Thanks given
    15
    Thanks received
    115
    Rep Power
    0
    nice jazzy jay jay lmfao or whatever your skype name is re-add me on skype sorry for ddosing you D;
    Reply With Quote  
     

  5. #4  
    Banned
    Join Date
    Jan 2013
    Posts
    261
    Thanks given
    57
    Thanks received
    49
    Rep Power
    0
    Quote Originally Posted by joncoletrain View Post
    nice jazzy jay jay lmfao or whatever your skype name is re-add me on skype sorry for ddosing you D;
    Fine lol
    Reply With Quote  
     

  6. #5  
    Super Donator
    Kova+'s Avatar
    Join Date
    Jan 2012
    Posts
    938
    Thanks given
    124
    Thanks received
    249
    Rep Power
    13
    If someone pots up past level 99 they can claim the cape without being maxed. Use player.getSkills().getLevelForXp(int skill) == 99
    Reply With Quote  
     

  7. Thankful user:


  8. #6  
    Banned
    Join Date
    Jan 2013
    Posts
    261
    Thanks given
    57
    Thanks received
    49
    Rep Power
    0
    Quote Originally Posted by partyhatz View Post
    If someone pots up past level 99 they can claim the cape without being maxed. Use player.getSkills().getLevelForXp(int skill) == 99
    Thanks for telling me, will change once i woke up tomorrow.

    EDIT: ADDED FIXED VERSION
    Reply With Quote  
     

  9. #7  
    Donator


    Join Date
    Jul 2012
    Age
    23
    Posts
    1,954
    Thanks given
    1,035
    Thanks received
    459
    Rep Power
    89
    Nice, but a FULL Max Cape dialogue was released, which is neater and in my opinion nicer and more realistic way of getting the cape Good Job though
    Reply With Quote  
     

  10. #8  
    Registered Member Grown's Avatar
    Join Date
    Oct 2012
    Posts
    839
    Thanks given
    647
    Thanks received
    86
    Rep Power
    54
    My own ignorance, but what are Coordinates? For upstairs Varrock Museum.
    "Programs aren’t just built in one go, like a bridge. They are talked about,
    sketched out, prototyped, played with, refactored, tuned, tested, tweaked,
    deleted, rewritten....
    A program is not built; it is grown.
    Because a program is always growing and always changing, it must be written
    with change in mind."
    Reply With Quote  
     

  11. #9  
    Registered Member

    Join Date
    Jan 2013
    Age
    23
    Posts
    783
    Thanks given
    159
    Thanks received
    170
    Rep Power
    360
    i think dialogue is better, anyways looks nice, gj.
    Reply With Quote  
     

  12. #10  
    Banned
    Join Date
    Jun 2012
    Posts
    19
    Thanks given
    66
    Thanks received
    1
    Rep Power
    0
    looks nice gj.
    Reply With Quote  
     

Page 1 of 4 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. Capes without Hoods.
    By Demetri in forum Requests
    Replies: 0
    Last Post: 09-13-2009, 12:09 PM
  2. 100% Capes and Hoods
    By Jord0n in forum Models
    Replies: 10
    Last Post: 08-07-2008, 03:05 PM
  3. Correct Silb Hoods + Capes
    By El Elmo in forum Tutorials
    Replies: 27
    Last Post: 02-15-2008, 01:29 PM
  4. Replies: 43
    Last Post: 01-05-2008, 10:43 PM
  5. All Skill Capes And Hoods +More
    By Ukiahmiller in forum Tutorials
    Replies: 21
    Last Post: 12-26-2007, 03:02 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
  •