Thread: Need a mod+ code. or some error fixing.

Results 1 to 6 of 6
  1. #1 Need a mod+ code. or some error fixing. 
    .:Programing God:.
    Guest
    I need a code. I am skilled at coding but I havent been really doing all of my codes for very long and I have yet to learn how to make a whip or a p ring mod+ can anyone direct me to a tutorial about it or please tell me right on this forum? I would greatly appreciate it, add me on MSN: [email protected] Thanks!

    I tried this code:


    if(itemID == 773 || itemID == 4151){
    if(playerRights > 1){
    }else {
    sendMessage("You must be staff to wear this ring!");
    }
    }



    And go these errors:

    client.java:16082: cannot find symbol
    symbol : variable ItemID
    location: class client
    if(ItemID == 773 || ItemID == 4151){
    ^
    client.java:16082: cannot find symbol
    symbol : variable ItemID
    location: class client
    if(ItemID == 773 || ItemID == 4151){
    ^
    Note: stream.java uses or overrides a deprecated API.
    Note: Recompile with -Xlinteprecation for details.
    2 errors
    Finished!
    Press any key to continue . . .


    Please help me if you know how to fix these errors or know the proper code to be able to make items into a mod+ item.
     

  2. #2  
    Registered Member
    Core's Avatar
    Join Date
    Sep 2007
    Posts
    4,194
    Thanks given
    11
    Thanks received
    393
    Rep Power
    1985
    Code:
    if(itemID == 773 || itemID == 4151) && (playerRights > 1) {
    sendMessage("You must be staff to wear this ring!");
    } else {
    addItem(RingId, 1);
    }
     

  3. #3  
    Registered Member
    ViperSniper's Avatar
    Join Date
    Apr 2007
    Age
    30
    Posts
    2,417
    Thanks given
    367
    Thanks received
    82
    Rep Power
    976
    Added you on msn, dw everyone ill help him lol.
    Core he wants it so they cannot wield, i think?
    :indeed:
     

  4. #4  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    itemID is only in parseIncomingPackets() method
     

  5. #5  
    Registered Member
    ViperSniper's Avatar
    Join Date
    Apr 2007
    Age
    30
    Posts
    2,417
    Thanks given
    367
    Thanks received
    82
    Rep Power
    976
    You going to accept my Addy so i can help you ?
    :indeed:
     

  6. #6  
    .:Programing God:.
    Guest
    Sorry, went offline for a few, I added you.
     


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
  •