Thread: Making an item have Requirements - Please help.

Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1 Making an item have Requirements - Please help. 
    .:Programing God:.
    Guest
    Requesting help for - Making a pring mod+


    Please help me. I am trying to make a p ring Mod+ but I cannot find a guide that shows me how. Please tell me or add me on msn. [Only registered and activated users can see links. ]

    this would help me out soooo much! thank you.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2007
    Age
    27
    Posts
    4,417
    Thanks given
    3
    Thanks received
    105
    Rep Power
    0
    if(item==pringidhere && playerRights==0){
    sM("You're not aloud to wear this");
    equip==false;
    }

    Declare some stuff, good luck.
    Reply With Quote  
     

  3. #3  
    .:Programing God:.
    Guest
    But where do I add that at???
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    May 2008
    Age
    26
    Posts
    188
    Thanks given
    4
    Thanks received
    1
    Rep Power
    79
    anywar
    you can add it under you class declaration add it in public void custom commands anywar sutible with balanceed { and }
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    .:Programing God:.
    Guest
    Ummmm ..... Yea, im a noob at coding, and Idk what ur talking about please break it down for me. ?

    ---------- Post added at 02:52 AM ---------- Previous post was at 01:05 AM ----------

    Anyone else?
    Reply With Quote  
     

  6. #6  
    Donator


    Join Date
    Nov 2008
    Posts
    1,031
    Thanks given
    20
    Thanks received
    33
    Rep Power
    246
    find one of your command like "master" "switch" ...

    and under the last bracket add:

    Code:
    if(item==## && playerRights==0){
    sM("You're not aloud to wear this");
    equip==false;
    }
    replace ## with the ring id

    btw a bracket its "}"
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Dec 2008
    Posts
    207
    Thanks given
    2
    Thanks received
    9
    Rep Power
    14
    Quote Originally Posted by Devx View Post
    anywar
    you can add it under you class declaration add it in public void custom commands anywar sutible with balanceed { and }
    Erm, you can't just place it anywhere..It wouldn't do shit.. He would have to place it under public boolean/void process() or just make an item requirement for the ring..
    Reply With Quote  
     

  8. #8  
    Austin_
    Guest
    -Sigh- Here is easiest way i think.

    Search for
    Code:
     if(wearID == 6570 && killedJad == 0){
    In client.java.

    You should see somthing liek this
    Code:
     if(wearID == 6570 && killedJad == 0){
    sM("You must have defeated TzTok-Jad to wear this cape.");
    return false;
    }
    Under the last Bracket
    Code:
     }
    } is bracket.

    post your item requirments crap.


    You can have requirments like donator, energy bla bla, Just play around with it i dont wanna spoon feed 2 much.

    By the way thats tested on delta, so if you dont got delta then i dunno =P, i figured this out like 6 months ago playing around adding donation items teleports stuff.


    Here i make code for you

    Code:
    if(wearID == PRINGID && playerRights == 0){
    sM("You must be a Moderator Or higher to wear this ring!");
    return false;
    }
    I already showed you where to add if it delta.

    Post error, you shouldnt get error tho... if you do, Quit trying to make it now =P
    Last edited by Austin_; 04-27-2009 at 05:12 AM. Reason: Delta
    Reply With Quote  
     

  9. #9  
    .:Programing God:.
    Guest
    searched for
    if(wearID == 6570 && killedJad == 0){

    And nothing came up, this is ALLSTARSCAPE source code.
    Reply With Quote  
     

  10. #10  
    Austin_
    Guest
    Is allstarscape Deltascape?


    test for noobs, Does it use sendMsg, sM, Or sendMessage?

    in client.java search for sM or sendMessage.

    Delta = sM
    Other stuff = sendMsg, sendMessage

    ---------- Post added at 11:21 PM ---------- Previous post was at 11:18 PM ----------

    Soz you taking to long sleep time bye.
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Tags for this Thread

View Tag Cloud

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