Thread: How to make players keep items on death but not in wilderness.

Results 1 to 5 of 5
  1. #1 How to make players keep items on death but not in wilderness. 
    Member
    Join Date
    Jun 2012
    Posts
    155
    Thanks given
    23
    Thanks received
    7
    Rep Power
    0
    How do i make it so that players keep all their items on death but not when they are in the wilderness.

    I would really appreciate the help
    Reply With Quote  
     

  2. #2  
    Donator

    Robgob69's Avatar
    Join Date
    Oct 2010
    Age
    33
    Posts
    749
    Thanks given
    71
    Thanks received
    139
    Rep Power
    117
    Don't mind me.
    Spoiler for ImAnIdiot.java:
    Im assuming this is for Project insanity, so in that case go into your PlayerAssistant.java and search for:
    Code:
    if(!c.isSkulled) {
    There should be 2lines containing that statement, replace them both with:
    Code:
    if(!c.isSkulled && !c.inWild()) {
    potatoes.
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Quote Originally Posted by Robgob69 View Post
    Im assuming this is for Project insanity, so in that case go into your PlayerAssistant.java and search for:
    Code:
    if(!c.isSkulled) {
    There should be 2lines containing that statement, replace them both with:
    Code:
    if(!c.isSkulled && !c.inWild()) {
    He means all items
    Reply With Quote  
     

  4. #4  
    Donator

    Robgob69's Avatar
    Join Date
    Oct 2010
    Age
    33
    Posts
    749
    Thanks given
    71
    Thanks received
    139
    Rep Power
    117
    Ahhh, don't mind me. im running on 2 hours of sleep and have a problem with reading things all the way through x3 i thought he didnt want them to be kept on death in the wildy. ANYWAYS. let me fix my carelessness.. x3
    potatoes.
    Reply With Quote  
     

  5. #5  
    Donator

    Robgob69's Avatar
    Join Date
    Oct 2010
    Age
    33
    Posts
    749
    Thanks given
    71
    Thanks received
    139
    Rep Power
    117
    NOW THEN, to make it so you keep all of your item son death, but not when you are in the wilderness you will have to open up your PlayerAssistant.java and search:
    Code:
    if(!c.isSkulled)
    You should see something like this:
    [/code]
    Code:
    				if(!c.isSkulled) {	// what items to keep
    						c.getItems().keepItem(0, true);
    						c.getItems().keepItem(1, true);
    						c.getItems().keepItem(2, true);
    					}
    					if(c.prayerActive[10] && System.currentTimeMillis() - c.lastProtItem > 700) {
    						c.getItems().keepItem(3, true);
    					}
    					c.getItems().dropAllItems(); // drop all items
    					c.getItems().deleteAllItems(); // delete all items
    					if(!c.isSkulled) { // add the kept items once we finish deleting and dropping them
    						for (int i1 = 0; i1 < 3; i1++) {
    							if(c.itemKeptId[i1] > 0) {
    								c.getItems().addItem(c.itemKeptId[i1], 1);
    							}
    						}
    					}
    replace it with this:

    Code:
    				if(!c.isSkulled && c.inWild()) {	// what items to keep
    						c.getItems().keepItem(0, true);
    						c.getItems().keepItem(1, true);
    						c.getItems().keepItem(2, true);
    					}
    					if(c.inWild() && c.prayerActive[10] && System.currentTimeMillis() - c.lastProtItem > 700) {
    						c.getItems().keepItem(3, true);
    					}
    					if (c.inWild()) {
    						c.getItems().dropAllItems(); // drop all items
    						c.getItems().deleteAllItems(); // delete all items
    					}
    					if(!c.isSkulled && c.inWild()) { // add the kept items once we finish deleting and dropping them
    						for (int i1 = 0; i1 < 3; i1++) {
    							if(c.itemKeptId[i1] > 0) {
    								c.getItems().addItem(c.itemKeptId[i1], 1);
    							}
    						}
    					}
    And that should work :3
    potatoes.
    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: 2
    Last Post: 01-01-2012, 02:35 AM
  2. Replies: 21
    Last Post: 12-31-2011, 03:56 AM
  3. Replies: 33
    Last Post: 08-17-2011, 06:44 AM
  4. 614 Make players lose items on death
    By zzzfishstick in forum Help
    Replies: 0
    Last Post: 06-14-2011, 07:45 PM
  5. Replies: 2
    Last Post: 09-21-2010, 06:58 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
  •