Making items mod/admin only

Experienced Elementalist
Joined
Apr 13, 2010
Messages
280
Reaction score
18
Helpful userlevels
  • Owner = 3
  • Admin = 2
  • Moderator = 1
  • User = 0

Ok first near the bottom of the client.java search for
Code:
	public boolean wear(int wearID, int slot) {

On my delta base i can see just under it
Code:
		if (wearID == 5509) {
			emptySmallPouch();
			return false;
		}

Ok so insert this code here
Code:
if(wearID == 35 && playerRights == 0)
{
sM("This is a staff weapon");
return false;
)

This would make AGS staff only. Simply replace
Code:
playerRights == 1

With any of the following


This would make it donators only
Code:
donator < 1

Moderator only
Code:
playerRights == 1

Admin Only
Code:
playerRights == 2

Owner Only
Code:
playerRights == 3

You can also replace the
Code:
==

With any of the following

This is greater than
Code:
<

Less than
Code:
>

Not equal to
Code:
!=



Enjoy :D.
 
Back