Code:if(itemID == 773 || itemID == 4151) && (playerRights > 1) { sendMessage("You must be staff to wear this ring!"); } else { addItem(RingId, 1); }
|
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.
Code:if(itemID == 773 || itemID == 4151) && (playerRights > 1) { sendMessage("You must be staff to wear this ring!"); } else { addItem(RingId, 1); }
Added you on msn, dw everyone ill help him lol.
Core he wants it so they cannot wield, i think?
itemID is only in parseIncomingPackets() method
You going to accept my Addy so i can help you ?
Sorry, went offline for a few, I added you.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |