Thread: Item reqs in devo.. REPPING ! :D

Results 1 to 7 of 7
  1. #1 Item reqs in devo.. REPPING ! :D 
    Community Veteran


    Join Date
    Nov 2006
    Posts
    531
    Thanks given
    6
    Thanks received
    21
    Rep Power
    489
    Anyone know how to add item reqs to say legends cape

    Idk where to look like trying to learn new stuff

    thx very much will rep!
    Reply With Quote  
     

  2. #2  
    Eren
    Guest
    Like a certain level? or a certain accomplishment completed.
    Reply With Quote  
     

  3. #3  
    Community Veteran


    Join Date
    Nov 2006
    Posts
    531
    Thanks given
    6
    Thanks received
    21
    Rep Power
    489
    I want legends cape to have a 90 strength requirement
    Reply With Quote  
     

  4. #4  
    Registered Member
    Hunter's Avatar
    Join Date
    Jun 2009
    Age
    33
    Posts
    857
    Thanks given
    3
    Thanks received
    23
    Rep Power
    216
    Packet 41..aka case 41 is where "wear item" is modified.

    Add something along these lines:

    Code:
    if((wearID == legendscapeidthingyhere) && (playerLevel[2] < 90)) {
    sendMessage("You require 90 strength to wear this cape.");
    return;
    }
    I dunno what base you're using so I can't say for sure if that will work or not..I don't know how your wearing is handled.
    Reply With Quote  
     

  5. #5  
    Eren
    Guest
    Im just gonna guess you have a Wearing.java in there..So why not edit it there....Find the items that require a strength requirement and add the cape there to it.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    public void wear(int

    search that

    in it add somthing like

    if(wearID == #### && playerLevel[playerStrength] < 90){
    return false;
    }
    Reply With Quote  
     

  7. #7  
    Community Veteran


    Join Date
    Nov 2006
    Posts
    531
    Thanks given
    6
    Thanks received
    21
    Rep Power
    489
    thx all, btw how do i add more than one req? i tried and it gave me errors
    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

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