Thread: Donator only items

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 Donator only items 
    Registered Member
    Join Date
    Nov 2012
    Posts
    247
    Thanks given
    12
    Thanks received
    1
    Rep Power
    11
    hey well i want to make it so that all pvp item's are donator only so you must be donator to wield them. any help with this ?
    Reply With Quote  
     

  2. #2  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22
    Ye go to wielditem method in itemass And add:
    Just under the void.


    if(itemId == itemid && c.donator >= 0) {
    wielditem part here
    } else {
    c.sendMessage("You need to a be big ass donator to wear this BITCH");
    return;
    }


    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2012
    Posts
    247
    Thanks given
    12
    Thanks received
    1
    Rep Power
    11
    what do u mean by the wield part here?
    Reply With Quote  
     

  4. #4  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22


    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2012
    Posts
    247
    Thanks given
    12
    Thanks received
    1
    Rep Power
    11
    what.?
    Reply With Quote  
     

  6. #6  
    Donator
    Darkness's Avatar
    Join Date
    Nov 2012
    Age
    26
    Posts
    876
    Thanks given
    121
    Thanks received
    75
    Rep Power
    47
    Open item assistant and Find :

    Code:
    		public boolean wearItem(int wearID, int slot) {
    		synchronized(c) {
    			int targetSlot=0;
    			if(targetSlot == 3) {
    				c.usingSpecial = false;
    				addSpecialBar(wearID);
    			}
    Just add

    Code:
    if(c.isDonator == 0)
    for(int i : donItems)
    if(wearID == i) {
    c.sendMessage("You must be a donator to wear this item.");
    return false;
    }
    And at the top of the file, put this :
    Code:
    	public static final int[] donItems = {XXXX,XXXX,XXXX};
    Replace xxxx by the item id's
    Attached image
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Mar 2013
    Posts
    3,036
    Thanks given
    82
    Thanks received
    375
    Rep Power
    0
    Add in
    Code:
    if(c.itemId == ITEMID && c.isDonator) {
    //action
    } else {
    c.sendMessage("You need to be a donator to wield this item);
    }
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Nov 2012
    Posts
    247
    Thanks given
    12
    Thanks received
    1
    Rep Power
    11
    Didnt work
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Mar 2013
    Posts
    3,036
    Thanks given
    82
    Thanks received
    375
    Rep Power
    0
    Quote Originally Posted by coldest View Post
    Didnt work
    What do you want the item to do? Equip it?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Nov 2012
    Posts
    247
    Thanks given
    12
    Thanks received
    1
    Rep Power
    11
    yes so only donators can equip it
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 27
    Last Post: 10-29-2011, 06:35 PM
  2. Replies: 24
    Last Post: 07-14-2011, 05:05 AM
  3. Donator Only Items
    By Gargamele in forum Help
    Replies: 2
    Last Post: 06-11-2011, 12:09 PM
  4. PI] Donator only items [PI
    By oblivion-rs in forum Help
    Replies: 10
    Last Post: 05-28-2011, 12:58 AM
  5. Donator Only Items [PI]
    By Xuzk in forum Help
    Replies: 5
    Last Post: 07-28-2010, 02:00 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •