Jump to content
  • 0
Sign in to follow this  
nicksworld

[317 pi] how to make it so only donators can equipt an item

Question

the title basically states what i need some assistance in thanks in advance

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Go into ItemAssistant.java and find:
[CODE]public void resetItems(int WriteFrame) {[/CODE]

Then right above it add:
[CODE]public static final int[] donItems = {13344, 13342, 13340, 13370, 13336, 13362, 13358, 13360, 13355, 13354, 13352, 13348, 13346};[/CODE]

Change the numbers to the item ids you want the donor only items to be.

Next search for:
[CODE]public boolean wearItem(int wearID, int slot) {[/CODE]

In that method add:
[CODE]if(c.isDonator == 0)
for(int i : donItems)
if(wearID == i) {
c.sendMessage("@[email protected] must be a donator to wear this item.");
return false;
}[/CODE]

Share this post


Link to post
Share on other sites
Sign in to follow this  

×