Thread: Making Skillcapes require 99

Results 1 to 6 of 6
  1. #1 Making Skillcapes require 99 
    Registered Member
    Join Date
    Mar 2012
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I'm using the source InsidiaX and atm, players don't need lvl 99 in the skill to wear the skillcape itself. I want to make it so they need the 99 to wear it so can anyone please help me with this?
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    You have to make all the requirements for every single skill like it does for strength attack mage range and add it in the wear method

    I could give you wat i use in my source but you have to cover it alittle
    Reply With Quote  
     

  3. #3  
    Hella Hard Homie


    Join Date
    Jan 2011
    Posts
    600
    Thanks given
    185
    Thanks received
    43
    Rep Power
    111
    ItemAssistant.java

    Quote Originally Posted by Winston Churchill
    "Success is the ability to go from one failure to another with no loss of enthusiasm"
    Austin still owes me $43
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Mar 2012
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by gf2u View Post
    use the tuts released...if you dont know how to follow tuts then i can do it if your paying O_O.
    There are no tuts for this that i've seen. If there are it would have been more helpful if you would've provided a link to one...

    Quote Originally Posted by Nighel15 View Post
    You have to make all the requirements for every single skill like it does for strength attack mage range and add it in the wear method

    I could give you wat i use in my source but you have to cover it alittle
    I could do that, i'll pm you.

    Quote Originally Posted by Aekramer View Post
    ItemAssistant.java
    This tells me where but not what to change...I searched the ID's for skillcapes inside and nothing came up so this doesn't help.
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Quote Originally Posted by Shadowownz View Post
    There are no tuts for this that i've seen. If there are it would have been more helpful if you would've provided a link to one...



    I could do that, i'll pm you.



    This tells me where but not what to change...I searched the ID's for skillcapes inside and nothing came up so this doesn't help.
    There is prob a easyer way to do it but i just did it like this

    Code:
    	if(Config.itemRequirements) {
    		if(targetSlot == 10 || targetSlot == 7 || targetSlot == 5 || targetSlot == 4 || targetSlot == 0 || targetSlot == 9 || targetSlot == 10) {
    		if(attackLevelReq > 0) {
    			if(getLevelForXP(playerXP[0]) < attackLevelReq) {
    				sM("You need a attack level of "+attackLevelReq+" to wear this item.");
    				GoFalse = true;
    			}
    		}
    		if(rangeLevelReq > 0) {
    			if(getLevelForXP(playerXP[4]) < rangeLevelReq) {
    				sM("You need a range level of "+rangeLevelReq+" to wear this item.");
    				GoFalse = true;
    			}
    		}
    		if(magicLevelReq > 0) {
    			if(getLevelForXP(playerXP[6]) < magicLevelReq) {
    				sM("You need a magic level of "+magicLevelReq+" to wear this item.");
    				GoFalse = true;
    			}
    		}
    		if(hitpointsLevelReq > 0) { // Hitpoints
    			if(getLevelForXP(playerXP[3]) < hitpointsLevelReq) {
    				sM("You need an hitpoint level of "+hitpointsLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(strengthLevelReq > 0) { // Strength
    			if(getLevelForXP(playerXP[2]) < strengthLevelReq) {
    				sM("You need an strength level of "+strengthLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(defenceLevelReq > 0) { // 
    			if(getLevelForXP(playerXP[1]) < defenceLevelReq) {
    				sM("You need an defence  level of "+defenceLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(herbloreLevelReq > 0) { // Herblore
    			if(getLevelForXP(playerXP[15]) < herbloreLevelReq) {
    				sM("You need an herblore level of "+herbloreLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(thievingLevelReq > 0) { // Thieving
    			if(getLevelForXP(playerXP[17]) < thievingLevelReq) {
    				sM("You need an thieving level of "+thievingLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(smithingLevelReq > 0) { // Smithig 
    			if(getLevelForXP(playerXP[13]) < smithingLevelReq) {
    				sM("You need an smithing level of "+smithingLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(farmingLevelReq > 0) { // Farming
    			if(getLevelForXP(playerXP[19]) < farmingLevelReq) {
    				sM("You need an farming level of "+farmingLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(fletchingLevelReq > 0) { // Fletching
    			if(getLevelForXP(playerXP[9]) < fletchingLevelReq) {
    				sM("You need an fletching level of "+fletchingLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(firemakingLevelReq > 0) { // Firemaking
    			if(getLevelForXP(playerXP[11]) < firemakingLevelReq) {
    				sM("You need an firemaking level of "+firemakingLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(cookingLevelReq > 0) { // Cooking
    			if(getLevelForXP(playerXP[7]) < cookingLevelReq) {
    				sM("You need an cooking level of "+cookingLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(fishingLevelReq > 0) { // Fishing
    			if(getLevelForXP(playerXP[10]) < fishingLevelReq) {
    				sM("You need an fishing level of "+fishingLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(runecraftingLevelReq > 0) { // Runecrafting
    			if(getLevelForXP(playerXP[20]) < runecraftingLevelReq) {
    				sM("You need an runecrafting level of "+runecraftingLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(woodcuttingLevelReq > 0) { // Woodcutting
    			if(getLevelForXP(playerXP[8]) < woodcuttingLevelReq) {
    				sM("You need an woodcutting level of "+woodcuttingLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(miningLevelReq > 0) { // Mining
    			if(getLevelForXP(playerXP[14]) < miningLevelReq) {
    				sM("You need an mining level of "+miningLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(slayerLevelReq > 0) { // Slayer
    			if(getLevelForXP(playerXP[18]) < slayerLevelReq) {
    				sM("You need an slayer level of "+slayerLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(prayerLevelReq > 0) { // Prayer
    			if(getLevelForXP(playerXP[5]) < prayerLevelReq) {
    				sM("You need an prayer level of "+prayerLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(agilityLevelReq > 0) { // Agility
    			if(getLevelForXP(playerXP[16]) < agilityLevelReq) {
    				sM("You need an agility level of "+agilityLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(craftingLevelReq > 0) { // Crafting
    			if(getLevelForXP(playerXP[12]) < craftingLevelReq) {
    				sM("You need an crafting level of "+craftingLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    	}
    
    	if(targetSlot == 3) {
    		if(attackLevelReq > 0) {
    			if(getLevelForXP(playerXP[0]) < attackLevelReq) {
    				sM("You need a attack level of "+attackLevelReq+" to wear this item.");
    				GoFalse = true;
    			}
    		}
    		if(rangeLevelReq > 0) {
    			if(getLevelForXP(playerXP[4]) < rangeLevelReq) {
    				sM("You need a range level of "+rangeLevelReq+" to wear this item.");
    				GoFalse = true;
    			}
    		}
    		if(magicLevelReq > 0) {
    			if(getLevelForXP(playerXP[6]) < magicLevelReq) {
    				sM("You need a magic level of "+magicLevelReq+" to wear this item.");
    				GoFalse = true;
    			}
    		}
    		if(strengthLevelReq > 0) { // Strength
    			if(getLevelForXP(playerXP[2]) < strengthLevelReq) {
    				sM("You need an strength level of "+strengthLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(slayerLevelReq > 0) { // Slayer
    			if(getLevelForXP(playerXP[18]) < slayerLevelReq) {
    				sM("You need an slayer level of "+slayerLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    		if(prayerLevelReq > 0) { // Prayer
    			if(getLevelForXP(playerXP[5]) < prayerLevelReq) {
    				sM("You need an prayer level of "+prayerLevelReq+" to wield this.");
    				GoFalse = true;
    			}
    		}
    	}
    }
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Mar 2012
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I have tried googling it and came up with only a few people asking the same thing...it would be very helpful if someone could actually give me a link to a tut/snippet.
    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

Similar Threads

  1. making doors require keys.
    By Tamatea in forum Snippets
    Replies: 4
    Last Post: 09-01-2011, 01:41 AM
  2. [PI]Making a teleport require a certain slayer level?
    By leftbehind20 in forum Requests
    Replies: 2
    Last Post: 08-24-2011, 11:04 PM
  3. Making teleports not require runes
    By Xellic in forum Help
    Replies: 1
    Last Post: 04-03-2011, 10:34 PM
  4. Making your server require YOUR client
    By Smakt in forum Snippets
    Replies: 28
    Last Post: 03-14-2010, 08:27 AM
  5. Making something require a stat to wear
    By bcdutton in forum Tutorials
    Replies: 3
    Last Post: 02-15-2008, 03:50 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
  •