Thread: [PI] Item Requirement Problem

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 [PI] Item Requirement Problem 
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    When ever I try to add the item requirement for my abyssal tentacle, it doesn't work I tried using these following methods under my requirement public void in my itemassistant class and they still don't work:

    Code:
    case 12000:
    			c.attackLevelReq = 75;
    		return;
    even tried it with break; instead of return; and still doesn't work.

    Code:
    if (itemName.contains("tentacle")) {
    			c.attackLevelReq = 75;
    		}
    How can I fix this problem?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2014
    Posts
    13
    Thanks given
    3
    Thanks received
    1
    Rep Power
    11
    Put it under where it says guthan and all that
    Reply With Quote  
     

  3. #3  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    Quote Originally Posted by lbjake98 View Post
    Put it under where it says guthan and all that
    I don't think that will make a difference.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    In this method

    Code:
    public void getRequirements(String itemName, int itemId) {
    Search for something like this

    Code:
    switch(itemId) {
    			case 8839:
    			case 8840:
    			case 8842:
    			case 11663:
    			case 11664:
    			case 11665:
    			c.attackLevelReq = 42;
    			c.rangeLevelReq = 42;
    			c.strengthLevelReq = 42;
    			c.magicLevelReq = 42;
    			c.defenceLevelReq = 42;
    			return;
    			case 10551:
    under
    Code:
    switch(itemId) {
    put this

    [SPOIL]
    case 12000:
    c.attackLevelReq = 75;
    return;
    [/SPOIL]
    Reply With Quote  
     

  5. #5  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    Quote Originally Posted by SpawnInsanity View Post
    In this method

    Code:
    public void getRequirements(String itemName, int itemId) {
    Search for something like this

    Code:
    switch(itemId) {
    			case 8839:
    			case 8840:
    			case 8842:
    			case 11663:
    			case 11664:
    			case 11665:
    			c.attackLevelReq = 42;
    			c.rangeLevelReq = 42;
    			c.strengthLevelReq = 42;
    			c.magicLevelReq = 42;
    			c.defenceLevelReq = 42;
    			return;
    			case 10551:
    under
    Code:
    switch(itemId) {
    put this

    [SPOIL]
    case 12000:
    c.attackLevelReq = 75;
    return;
    [/SPOIL]
    Lol I already stated that I did it this way. It didn't work.
    Reply With Quote  
     

  6. #6  
    Registered Member Eberwolf's Avatar
    Join Date
    Nov 2008
    Age
    30
    Posts
    210
    Thanks given
    10
    Thanks received
    17
    Rep Power
    34
    Probably not going to help if you haven't altered item equipping but humor me and make sure the getRequirements method is actually being called when equipping items.


    Reply With Quote  
     

  7. #7  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    Quote Originally Posted by Eberwolf View Post
    Probably not going to help if you haven't altered item equipping but humor me and make sure the getRequirements method is actually being called when equipping items.
    I tried replacing the getrequirement method but it still does the same thing, it only does this with customs that I add and also for the anchor. I never had this problem before also the base I'm using is biohazard v3.
    Reply With Quote  
     

  8. #8  
    Member of the Imagine Cult

    Join Date
    Feb 2013
    Posts
    519
    Thanks given
    21
    Thanks received
    7
    Rep Power
    59
    Quote Originally Posted by 2nubs1cup View Post
    I tried replacing the getrequirement method but it still does the same thing, it only does this with customs that I add and also for the anchor. I never had this problem before also the base I'm using is biohazard v3.
    Does it even check for the requirements?
    Reply With Quote  
     

  9. #9  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    Quote Originally Posted by FiveRiverFlo View Post
    Does it even check for the requirements?
    Yes because it works with other items it's just for like barrelchest anchor and new osrs items that I've added.
    Reply With Quote  
     

  10. #10  
    Member of the Imagine Cult

    Join Date
    Feb 2013
    Posts
    519
    Thanks given
    21
    Thanks received
    7
    Rep Power
    59
    Are the items added into item.cfg? Not sure if that would cause a problem o.O Just curious.
    Reply With Quote  
     

Page 1 of 2 12 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. [PI]item requirements (prayer and hp)
    By dubby in forum Help
    Replies: 7
    Last Post: 10-13-2012, 10:07 PM
  2. [pi] item requirment bug help
    By Right man in forum Help
    Replies: 10
    Last Post: 09-04-2011, 10:01 PM
  3. PI item Requirments?
    By Someone in forum Help
    Replies: 4
    Last Post: 03-18-2011, 01:07 AM
  4. [PI]Project Insanity Item Requirements[PI]
    By Akeid in forum Tutorials
    Replies: 13
    Last Post: 11-16-2010, 01:01 PM
  5. Need item requirement for object move [PI]
    By invalid-name in forum Requests
    Replies: 0
    Last Post: 07-16-2010, 07:19 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •