Thread: 718 Master capes require 99 dung too, help fix?

Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1 718 Master capes require 99 dung too, help fix? 
    Registered Member
    Join Date
    Jun 2012
    Posts
    96
    Thanks given
    22
    Thanks received
    3
    Rep Power
    11
    Hey all,

    I have master capes in my source, and recently came across the problem of how they require 99 dung to wear as well, so I did a bit of changing in the itemConstants and set this under the canWear method:

    Code:
    	public static boolean canWear(Item item, Player player) {
    		String itemName = ItemDefinitions.getItemDefinitions(item.getId()).getName().toLowerCase();
    		/* --------- MASTER CAPES ----------*/
    		if (item.getId() == 29983 && player.getSkills().getXp(Skills.ATTACK) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29982 && player.getSkills().getXp(Skills.AGILITY) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29981 && player.getSkills().getXp(Skills.COOKING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29980 && player.getSkills().getXp(Skills.DEFENCE) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29979 && player.getSkills().getXp(Skills.CRAFTING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29978 && player.getSkills().getXp(Skills.FARMING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29976 && player.getSkills().getXp(Skills.FISHING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29975 && player.getSkills().getXp(Skills.FLETCHING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29974 && player.getSkills().getXp(Skills.HERBLORE) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29973 && player.getSkills().getXp(Skills.HITPOINTS) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29972 && player.getSkills().getXp(Skills.MAGIC) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29971 && player.getSkills().getXp(Skills.MINING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29970 && player.getSkills().getXp(Skills.PRAYER) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29969 && player.getSkills().getXp(Skills.RANGE) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29968 && player.getSkills().getXp(Skills.RUNECRAFTING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29967 && player.getSkills().getXp(Skills.SLAYER) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29966 && player.getSkills().getXp(Skills.SMITHING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29965 && player.getSkills().getXp(Skills.STRENGTH) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29964 && player.getSkills().getXp(Skills.THIEVING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29963 && player.getSkills().getXp(Skills.WOODCUTTING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 19709 && player.getSkills().getXp(Skills.DUNGEONEERING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}

    When I have 99 dung, it says this:
    Code:
    You need 200m experience to wear this cape.
    When I have 200m xp but not 99 dung, it says:
    Code:
    You need a dungeoneering level of 99 to wear this cape.

    Any ideas? I've checked almost everything, and even tried using index to search for a string such as "You need a dungeoneering level of 99 to wear this cape", got nothing.

    I'll post any code that you request!

    THINGS TO NOTE: This is for all master capes, not just dung cape. They all tell me I need 99 dungeoneering to wear them, but also tell me I need 200M xp

    -Also, I have tried searching for the message for 99 dung, can't find anything
    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
    Quote Originally Posted by drewdubeast View Post
    Hey all,

    I have master capes in my source, and recently came across the problem of how they require 99 dung to wear as well, so I did a bit of changing in the itemConstants and set this under the canWear method:

    Code:
    	public static boolean canWear(Item item, Player player) {
    		String itemName = ItemDefinitions.getItemDefinitions(item.getId()).getName().toLowerCase();
    		/* --------- MASTER CAPES ----------*/
    		if (item.getId() == 29983 && player.getSkills().getXp(Skills.ATTACK) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29982 && player.getSkills().getXp(Skills.AGILITY) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29981 && player.getSkills().getXp(Skills.COOKING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29980 && player.getSkills().getXp(Skills.DEFENCE) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29979 && player.getSkills().getXp(Skills.CRAFTING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29978 && player.getSkills().getXp(Skills.FARMING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29976 && player.getSkills().getXp(Skills.FISHING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29975 && player.getSkills().getXp(Skills.FLETCHING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29974 && player.getSkills().getXp(Skills.HERBLORE) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29973 && player.getSkills().getXp(Skills.HITPOINTS) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29972 && player.getSkills().getXp(Skills.MAGIC) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29971 && player.getSkills().getXp(Skills.MINING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29970 && player.getSkills().getXp(Skills.PRAYER) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29969 && player.getSkills().getXp(Skills.RANGE) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29968 && player.getSkills().getXp(Skills.RUNECRAFTING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29967 && player.getSkills().getXp(Skills.SLAYER) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29966 && player.getSkills().getXp(Skills.SMITHING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29965 && player.getSkills().getXp(Skills.STRENGTH) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29964 && player.getSkills().getXp(Skills.THIEVING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 29963 && player.getSkills().getXp(Skills.WOODCUTTING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}
    		if (item.getId() == 19709 && player.getSkills().getXp(Skills.DUNGEONEERING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m experience to wear this cape.");
    			return false;
    		}

    When I have 99 dung, it says this:
    Code:
    You need 200m experience to wear this cape.
    When I have 200m xp but not 99 dung, it says:
    Code:
    You need a dungeoneering level of 99 to wear this cape.

    Any ideas? I've checked almost everything, and even tried using index to search for a string such as "You need a dungeoneering level of 99 to wear this cape", got nothing.

    I'll post any code that you request!
    Where does it say:

    Code:
    You need a dungeoneering level of 99 to wear this cape.
    Project thread
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2012
    Posts
    96
    Thanks given
    22
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by clem585 View Post
    Where does it say:

    Code:
    You need a dungeoneering level of 99 to wear this cape.
    The weird thing is I searched that many times and found nothing:/

    I can't find where it sendGameMessages that
    Reply With Quote  
     

  4. #4  
    Donator
    Chappie's Avatar
    Join Date
    Jun 2016
    Posts
    175
    Thanks given
    65
    Thanks received
    6
    Rep Power
    32
    Its not going to be that easy to find as the method for telling the player its not able to wear that item is not set out like that in the line of code for the player message,have you checked ItemConstants.java?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2012
    Posts
    96
    Thanks given
    22
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by ExecutionX View Post
    Its not going to be that easy to find as the method for telling the player its not able to wear that item is not set out like that in the line of code for the player message,have you checked ItemConstants.java?

    Yeah, the code I posted in main thread is what I put in itemConstants.java under canWear(). There is NOTHING that mentions dungeoneering anywhere in there besides for dung cape.
    Reply With Quote  
     

  6. #6  
    Donator
    Chappie's Avatar
    Join Date
    Jun 2016
    Posts
    175
    Thanks given
    65
    Thanks received
    6
    Rep Power
    32
    Quote Originally Posted by drewdubeast View Post
    Yeah, the code I posted in main thread is what I put in itemConstants.java under canWear(). There is NOTHING that mentions dungeoneering anywhere in there besides for dung cape.
    the cape its probz added into where 99 skill capes are this is why your getting the problem of saying 99
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jun 2012
    Posts
    96
    Thanks given
    22
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by ExecutionX View Post
    the cape its probz added into where 99 skill capes are this is why your getting the problem of saying 99
    Would that be an itemconstant problem? Because it's not defined anywhere else
    Reply With Quote  
     

  8. #8  
    Donator
    Chappie's Avatar
    Join Date
    Jun 2016
    Posts
    175
    Thanks given
    65
    Thanks received
    6
    Rep Power
    32
    Quote Originally Posted by drewdubeast View Post
    Would that be an itemconstant problem? Because it's not defined anywhere else
    Add me on skype i have some spare time i can help you i guess


    Skype = ExecutionX-rsps
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Apr 2016
    Posts
    54
    Thanks given
    0
    Thanks received
    3
    Rep Power
    0
    Just search your client for "You need a dungeoneering level of 99 to wear this cape."

    *source, not client.
    #1 pre-eoc rsps pking commentary, please watch!
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jun 2012
    Posts
    96
    Thanks given
    22
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by scimitar2 View Post
    Just search your client for "You need a dungeoneering level of 99 to wear this cape."

    *source, not client.
    I have done this. Nothing
    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: 4
    Last Post: 07-22-2014, 10:37 AM
  2. [718] Max Cape requirements?
    By arcen in forum Requests
    Replies: 18
    Last Post: 02-26-2014, 06:52 PM
  3. Replies: 12
    Last Post: 10-20-2013, 03:43 PM
  4. [PI] Skill cape requires 99 stat
    By Harambe_ in forum Help
    Replies: 4
    Last Post: 10-05-2011, 03:55 PM
  5. Replies: 6
    Last Post: 08-01-2011, 02:46 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
  •