|
|
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;
Congratulations, you've completed this snippet.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."); } } }
Wasn't it just easy?! Now you can create features and new things for maxed players by using:
Code:if (player.isMaxed == 1) { //Action }
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.![]()
nice jazzy jay jay lmfao or whatever your skype name is re-add me on skypesorry for ddosing you D;
If someone pots up past level 99 they can claim the cape without being maxed. Use player.getSkills().getLevelForXp(int skill) == 99

Nice, but a FULL Max Cape dialogue was released, which is neater and in my opinion nicer and more realistic way of getting the capeGood Job though
My own ignorance, but what are Coordinates? For upstairs Varrock Museum.

i think dialogue is better, anyways looks nice, gj.
looks nice gj.
| « RPG Scrolling text (really any revision) | [700+, Quick Fix] Matrix Exploit, easy, better than most. Seems to work :3 » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |