Thread: [PI]Project Insanity Item Requirements[PI]

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 [PI]Project Insanity Item Requirements[PI] 
    Registered Member Akeid's Avatar
    Join Date
    May 2009
    Posts
    911
    Thanks given
    22
    Thanks received
    15
    Rep Power
    37
    This is a very easy little snippet tutorial. This is for newcomers who dont know how to add item requirements to your custom items or any item in general. This is very basic so dont flame please lol.

    Ok so first of all you will need to navigate to ItemAssistant.java . Ok so once you are there, you will need to find this by pressing ctrl+F, for those of you who didnt know , You will need to find the following lines.

    Code:
    		
    case 837:
    c.rangeLevelReq = 61;
    break;
    It should be two above the seercul requirement.

    Ok so how the following is worked is through a switch statement, this mean if you scroll to the top of the requirements, you will see a switch (itemId) {
    so for every item's requirement you will need to add a case xxxx: where xxxx is the item id. flowed by the requirement, ten by a break;

    So the format should look like this.
    Code:
    		
                            case xxxx:
    			c.rangeLevelReq = 61; //can be any level requirement.
    			break;
    Ok so you will need to add this under the line we found.
    If you want to add a whole type of an item, for example royal armor, you want all royal items to have a level 50 defense requirement, do the following.

    Scroll up or find this
    Code:
    		if(itemName.contains("godsword")) {
    			c.attackLevelReq = 75;
    		}
    under that you can add
    Code:
    		if(itemName.contains("royal")) {
    			c.defenceLevelReq = 50;
    		}
    Ok guys, i hope this helps lol, i seen this asked before so i thought i just might post for the community. Thanks :coolface:
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    MSN: [email protected]
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Stay Schemmmminnnnn
    Itz_'s Avatar
    Join Date
    Dec 2009
    Posts
    245
    Thanks given
    4
    Thanks received
    5
    Rep Power
    5
    hey umm i know this is off topic from this but can you log on msn i need your help please =/
    Chilling In The Clouds - 420Eryday
    Reply With Quote  
     

  4. #3  
    Registered Member Akeid's Avatar
    Join Date
    May 2009
    Posts
    911
    Thanks given
    22
    Thanks received
    15
    Rep Power
    37
    shit sry man , i got ur messages, but im on my laptop. Will be on msn tomarrow
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    MSN: [email protected]
    Reply With Quote  
     

  5. #4  
    Stay Schemmmminnnnn
    Itz_'s Avatar
    Join Date
    Dec 2009
    Posts
    245
    Thanks given
    4
    Thanks received
    5
    Rep Power
    5
    aha alright can you help me with useing event manager or w.e for fishing skill because i dont no how to to use it never did b4
    Chilling In The Clouds - 420Eryday
    Reply With Quote  
     

  6. #5  
    ve ve ve
    The Steven's Avatar
    Join Date
    Nov 2008
    Age
    30
    Posts
    310
    Thanks given
    14
    Thanks received
    8
    Rep Power
    12
    Good job.

    Rep + for this as I see you actually teach not just copy paste.
    Reply With Quote  
     

  7. #6  
    Registered Member Akeid's Avatar
    Join Date
    May 2009
    Posts
    911
    Thanks given
    22
    Thanks received
    15
    Rep Power
    37
    lol yea ty steven, if it was copy and paste it would be like 5 lines. I also taught a lil bout switch statements which i love now lol.
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    MSN: [email protected]
    Reply With Quote  
     

  8. #7  
    ve ve ve
    The Steven's Avatar
    Join Date
    Nov 2008
    Age
    30
    Posts
    310
    Thanks given
    14
    Thanks received
    8
    Rep Power
    12
    Thats why I repped mate.
    Reply With Quote  
     

  9. #8  
    Registered Member
    Join Date
    Jun 2010
    Posts
    16
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Thanks for the Tutorial..

    Very helpful especially for people (like me) who just entered the Realm of RSPS.
    Reply With Quote  
     

  10. #9  
    Registered Member Akeid's Avatar
    Join Date
    May 2009
    Posts
    911
    Thanks given
    22
    Thanks received
    15
    Rep Power
    37
    lol no problem nick
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    MSN: [email protected]
    Reply With Quote  
     

  11. #10  
    Fuckin PRO Derek's Avatar
    Join Date
    May 2008
    Posts
    1,259
    Thanks given
    38
    Thanks received
    86
    Rep Power
    67
    Thanks. Simple, but helpful.
    Thank me if I helped you.





    [Only registered and activated users can see links. ]
    or
    [Only registered and activated users can see links. ]
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •