Thread: [667] How to make certain items protect on death

Results 1 to 3 of 3
  1. #1 [667] How to make certain items protect on death 
    Registered Member
    Join Date
    Apr 2014
    Posts
    39
    Thanks given
    3
    Thanks received
    1
    Rep Power
    10
    I've been sitting here trying to code this in for hours and it's frustrating me. I've tried many different things. I know where it is obviously.

    Player class, search for senditemsondeath

    however i cannot seem to make it where the items that you get kept don't show up in the drops. any help?
    Reply With Quote  
     

  2. #2  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    20
    Posts
    3,377
    Thanks given
    7,120
    Thanks received
    1,879
    Discord
    View profile
    Rep Power
    3454
    Make an array with item names then loop the array and while looping make an if statement for if the items name equalsIgnoreCase the names in the array.
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work [Only registered and activated users can see links. ]!
    Reply With Quote  
     

  3. #3  
    Husband. Father.
    Loyalty_'s Avatar
    Join Date
    Aug 2013
    Age
    25
    Posts
    1,171
    Thanks given
    74
    Thanks received
    129
    Rep Power
    64
    add in Settings.java
    Code:
    public static int[] PROTECTON_DEATH_ITEMS = { 995, etc, };
    and add a method to senddeath
    Loyalty_





    Quote Originally Posted by Falconpunch View Post
    Player.java buddy. find init() or something like that and find where it adds the starter and do what someone mentioned above (Although an int is 4 scrublords)
    Reply With Quote  
     


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: 9
    Last Post: 03-08-2013, 09:15 PM
  2. Replies: 8
    Last Post: 12-03-2012, 03:11 AM
  3. Replies: 4
    Last Post: 08-17-2012, 05:18 PM
  4. 667 How to make wear item
    By Zond in forum Help
    Replies: 0
    Last Post: 03-29-2012, 08:35 PM
  5. how to make an item usable on an object
    By OodlesOfNoodles in forum Help
    Replies: 4
    Last Post: 08-03-2011, 05:39 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •