Thread: [PI] Items Kept upon death [PI]

Results 1 to 2 of 2
  1. #1 [PI] Items Kept upon death [PI] 
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Some reason when npcs/players kill anyone they don't lose items
    Help please
    Code:
    public void giveLife() {
    		c.isDead = false;
    		c.faceUpdate(-1);
    		c.freezeTimer = 0;
    		if(c.duelStatus <= 4 && !c.getPA().inPitsWait() && !c.inPits && (c.playerRights == 5 || c.playerRights == 5)) {
    			if (!c.inPits && !c.inFightCaves() && !c.inBarbDef) {
    					c.getItems().resetKeepItems();
    					if(!c.isSkulled) {
    						for (int i = 0; i < 3; i++)
    							c.getItems().keepItem(i, true);
    					}	
    					if(c.prayerActive[10] && System.currentTimeMillis() - c.lastProtItem > 700 || c.curseActive[0] && System.currentTimeMillis() - c.lastProtItem > 700) {
    						c.getItems().keepItem(3, true);
    					}
    					c.getItems().dropAllItems();
    					c.getItems().deleteAllItems();
    					if(!c.isSkulled) {
    						for (int i1 = 0; i1 < 3; i1++) {
    							if(c.itemKeptId[i1] > 0) {
    								c.getItems().addItem(c.itemKeptId[i1], 1);
    							}
    						}
    					}
     

  2. #2  
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Close... Fixed it my self lol
     


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. [REQ] Item Kept On Death [PI]
    By americanboyg in forum Help
    Replies: 0
    Last Post: 06-13-2011, 01:58 PM
  2. [PI]Items Kept On Death(Server-Sided)
    By Nutella in forum Help
    Replies: 1
    Last Post: 05-12-2011, 06:51 AM
  3. [PI] Items kept on death
    By turm0ilz in forum Help
    Replies: 7
    Last Post: 05-08-2011, 03:04 PM
  4. [PI] items kept on death [paying 4m rsgp]
    By turm0ilz in forum Requests
    Replies: 2
    Last Post: 03-27-2011, 12:44 PM
  5. A better Items Kept On Death [PI]
    By Scim in forum Tutorials
    Replies: 9
    Last Post: 10-17-2010, 01:35 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
  •