Thread: Changing Item Requirements [Future718 source]

Results 1 to 5 of 5
  1. #1 Changing Item Requirements [Future718 source] 
    Registered Member
    Join Date
    Sep 2014
    Posts
    21
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Hey guys, i'm getting pretty annoyed with this certain problem, and that is i can't find the file used to edit item requirements.. i've seen people mention 'Itemdefinition', 'Itemassistant' ect and neither of them exist on this source.

    The simple thing i want to change is the requirements of Master capes within the server to have 200m exp needed to wear them compared to level 99 which you apparently need atm, is there a way to do this on Future718 source?
    Reply With Quote  
     

  2. #2  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Check your equipment packet, then add a check for it in there. If you cant find it try using an ide like eclipse and make it look throw all the files after the itemId.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2014
    Posts
    21
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    i dont have anything under the name 'Equiptment' pal. confusing as anything
    Reply With Quote  
     

  4. #4  
    Registered Member PhaseGFX's Avatar
    Join Date
    Oct 2012
    Age
    28
    Posts
    156
    Thanks given
    19
    Thanks received
    42
    Rep Power
    51
    Quote Originally Posted by ElysiumINC View Post
    i dont have anything under the name 'Equiptment' pal. confusing as anything
    Should be in Itemdefinitions, my code for the completionist cape is:
    Code:
    if (name.contains("Completionist") || name.contains("Max")) {
                    itemRequiriments.put(Skills.ATTACK, 99);
                    itemRequiriments.put(Skills.STRENGTH, 99);
                    itemRequiriments.put(Skills.DEFENCE, 99);
                    itemRequiriments.put(Skills.HITPOINTS, 99);
                    itemRequiriments.put(Skills.RANGE, 99);
                    itemRequiriments.put(Skills.MAGIC, 99);
                    itemRequiriments.put(Skills.PRAYER, 99);
                    itemRequiriments.put(Skills.RUNECRAFTING, 99);
                    itemRequiriments.put(Skills.AGILITY, 99);
                    itemRequiriments.put(Skills.HERBLORE, 99);
                    itemRequiriments.put(Skills.THIEVING, 99);
                    itemRequiriments.put(Skills.CRAFTING, 99);
                    itemRequiriments.put(Skills.FLETCHING, 99);
                    itemRequiriments.put(Skills.SLAYER, 99);
                    itemRequiriments.put(Skills.HUNTER, 99);
                    itemRequiriments.put(Skills.MINING, 99);
                    itemRequiriments.put(Skills.SMITHING, 99);
                    itemRequiriments.put(Skills.FISHING, 99);
                    itemRequiriments.put(Skills.COOKING, 99);
                    itemRequiriments.put(Skills.FIREMAKING, 99);
                    itemRequiriments.put(Skills.WOODCUTTING, 99);
                    itemRequiriments.put(Skills.FARMING, 99);
                    itemRequiriments.put(Skills.SUMMONING, 99);
                    itemRequiriments.put(Skills.DUNGEONEERING,
                            name.contains("Max") ? 99 : 120);
                }
    Reply With Quote  
     

  5. #5  
    Extreme Donator

    TaterMater's Avatar
    Join Date
    Aug 2011
    Posts
    1,511
    Thanks given
    218
    Thanks received
    375
    Rep Power
    121
    If you're just wanting one check, use this but if you're wanting all capes to require 200m in their respected skill you should handle it better. In ButtonHandler class you should have two sendWear methods (sendWear and sendWear2), add this just after itemName string is declared:

    Code:
    if(itemId == CAPE_ID && player.getSkills().getXp(Skills.DUNGEONEERING) < 200000000) {
    			player.getPackets().sendGameMessage("You need 200m dung xp to wear this cape.");
    			return false;
    		}

    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. Replies: 1
    Last Post: 02-07-2014, 10:20 AM
  2. change item requirements
    By Iored94 in forum Help
    Replies: 4
    Last Post: 04-16-2012, 11:48 PM
  3. Changing Item Requirements
    By AndrewBlakeM in forum Help
    Replies: 3
    Last Post: 12-18-2011, 05:35 AM
  4. Replies: 5
    Last Post: 10-25-2010, 10:46 AM
  5. Replies: 7
    Last Post: 11-23-2008, 04:45 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
  •