Thread: Reserved Items [OMFG EASAY!]

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 45
  1. #1 Reserved Items [OMFG EASAY!] 
    Member #35, most veteran member left? :D


    Join Date
    Jul 2006
    Age
    27
    Posts
    2,663
    Thanks given
    53
    Thanks received
    331
    Rep Power
    925
    WARNING! This tutorial is extremely simple and easy. Please do not call me a newb/noob.

    On with the tutorial! What this does is make items un-equipable if a player does not have sufficient rights to do so. You can make it effected by playerRights, username, status, etc. Have fun with it!

    Note: The example I'm giving you looks a bit unclean, but it condenses it in the long run

    Step 1: Search for "public boolean process()" in your client.java.

    Step 2: Add this somewhere under it (you can add multiple instances of this one code):
    Code:
    		/* Reserved/Disabled Armor/Weapons/Etc. */
    		if(playerEquipment[playerWeapon] == ITEM ID && NEEDED TO USE)
    			{ remove(playerEquipment[TYPE], TYPE); sendMessage("MESSAGE"); }
    Replace the following with...
    - ITEM ID: The item ID you wish to reserve/disable.
    - NEEDED TO USE: This is the condition that player can/cannot have to use.
    - TYPE: All of these needed to be replaced with the equipment type, such as "playerWeapon" or "playerShield."
    - MESSAGE: What message you want to send after un-equipping the item.

    That should do it! If you like and/or used this code, please give me some Rep+ and don't leech. Also, post here with comments or if you need help with this code. Thanks
    [Only registered and activated users can see links. ]

    `Ex-global moderator x3 (resigned)
     

  2. #2  
    ~Kajakas~
    Guest
    simple and works rep+.
     

  3. #3  
    Member #35, most veteran member left? :D


    Join Date
    Jul 2006
    Age
    27
    Posts
    2,663
    Thanks given
    53
    Thanks received
    331
    Rep Power
    925
    Thanks kajakas. I'm glad you like it and it works (which I knew it did ).
    [Only registered and activated users can see links. ]

    `Ex-global moderator x3 (resigned)
     

  4. #4  
    Bot a bing
    Guest
    very nice runite you shall also get rep+ for this.
     

  5. #5  
    Member #35, most veteran member left? :D


    Join Date
    Jul 2006
    Age
    27
    Posts
    2,663
    Thanks given
    53
    Thanks received
    331
    Rep Power
    925
    Quote Originally Posted by Bot a bing View Post
    very nice runite you shall also get rep+ for this.
    Thanks, but I don't think that's possible because of that stupid rep spread thing (which is good for mass repping the same person, though...
    [Only registered and activated users can see links. ]

    `Ex-global moderator x3 (resigned)
     

  6. #6  
    Bot a bing
    Guest
    ya i got to spread some rep around lol.
     

  7. #7  
    Registered Member
    Join Date
    Jul 2007
    Posts
    358
    Thanks given
    0
    Thanks received
    0
    Rep Power
    26
    nice, but you can trick it, you put some legs on, like a veracs skirt, then put dharok platelegs in your advent, and fill the rest of your advent with food, then select weild dharok platelegs, then it works.

    Can This be fixed?
    ~Violated Removed
     

  8. #8  
    Legend Rene
    Guest
    Very nice tut , this can be used for membership , rep+ for you
     

  9. #9  
    mstier s
    Guest
    just wanting some extra rep from dumb newbie coders huh runite?
     

  10. #10  
    ipwnjagex
    Guest
    dude if i posted everything i do like this i'd have 100 tuts no seriously dude why cant we only post when it's a big tutorial and this is basic you can get it in any java manual i mean seriosuly and duh it can be used for membership i added mebership to my server with this took 20 seconds seriously runite i mean ur a vet i expected better from you =(
     

Page 1 of 5 123 ... 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. Omfg like, the difference between variables and constants omfg
    By Ecstasy in forum Application Development
    Replies: 14
    Last Post: 03-09-2010, 11:45 PM
  2. Bruno got demoted omfg panic wtf omfg help
    By Reverolls in forum Chat
    Replies: 0
    Last Post: 11-12-2009, 02:49 AM
  3. Reserved Clients
    By Eleclion in forum Tutorials
    Replies: 7
    Last Post: 12-19-2007, 03:53 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
  •