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]
DIR 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)
--- End 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;
}
--- End 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;
)
--- End 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;
)
--- End 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.
*****************************************************
Page 1 of 1