DIR Return Create A Forum - Home
---------------------------------------------------------
RunePalace
HTML https://runepalaceforums.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Runescape Private Servers Help and Tutorials
*****************************************************
#Post#: 1398--------------------------------------------------
[317] - Making items Donar/Staff only - [317]
By: Hybrid Date: January 7, 2011, 10:42 pm
---------------------------------------------------------
Yes, this is easy, and should be known by all.
Go into your client.java, server sided.
Then find...
[code]public boolean wear(int wearID, int slot)[/code]
Sometimes wear, may be Equip.
Next, under the bracket...
This is for donar, so put...
[code]if(wearID == #### && donator < 1)
{
sM("You must be a donar to wear this item.");
return false;
}[/code]
Obviously, changing #### to the item ID.
Now, if you want to make it staff only, you do this...
[code]if(wearID == #### && playerRights < #)
{
sM("You must be a member of staff to wear this.");
return false;
)[/code]
Again, changing #### to the item ID.
Now, where it says playerRights < #, if you want it to be mod
only, you'd put 1, but if you don't want owners or admins to
wear it, you'd put...
[code]if(wearID == #### && (playerRights < 1 || playerRights >
1))
{
sM("You must be a member of staff to wear this.");
return false;
)[/code]
That makes it so ONLY mods can wear that item, not donars,
admins, or owners.
You can do the same thing with Admin, and owner.
Thanks
Hybrid.
*****************************************************