Thread: 317 Death handled twice

Results 1 to 3 of 3
  1. #1 317 Death handled twice 
    Registered Member
    Join Date
    Dec 2012
    Posts
    102
    Thanks given
    7
    Thanks received
    8
    Rep Power
    11
    Solved, the method applyDead was calling itself. O.o
    Reply With Quote  
     

  2. #2  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    19
    Posts
    3,291
    Thanks given
    6,714
    Thanks received
    1,750
    Rep Power
    2079
    Show me your method that controls death.


    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    Check out my game I am making: [Only registered and activated users can see links. ] - a 2D battle-royale where time is of the essence!
    List of my work [Only registered and activated users can see links. ]!

    Spoiler for servers I support:

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2012
    Posts
    102
    Thanks given
    7
    Thanks received
    8
    Rep Power
    11
    Code:
    public void youdied()
    		{
    for(int r=0; r<playerEquipment.length; r++) {
    	try {
    		int item = playerEquipment[r];
    		if((item > 0) && (item < 20000)) {
    			remove(item, r);
    		}
    	} catch(Exception e) { sendMessage("ERROR: Removing Equipment"); }
    }
    for(int rr=0; rr<playerItems.length; rr++) {
    	try {
    		if(playerItems[rr] > 0 && playerItems[rr] < 20000) {
    			//createItem(currentX,currentY,playerItems[rr]-1);
    			ItemHandler.addItem(playerItems[rr]-1, absX, absY, playerItemsN[rr], KillerId, false);
                            //createGroundItem(playerItems[rr]-1, absX, absY, playerItemsN[i]);
    			deleteItem(playerItems[rr]-1, getItemSlot(playerItems[rr]-1), playerItemsN[rr]); 
    		}
    	} catch(Exception e) {  }
    }
    removeAllItems();
    			teleportToX = 3210;
    			teleportToY = 3424;
    			//pEmote = 15;
    			//pWalk = 13;
    			sendMessage("newb! you died haha!");
    			hitDiff = 0;	
    			updateRequired = true; appearanceUpdateRequired = true;
    			addItem(4151, 1);
    		}
    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. 100% cooking, handled
    By Icy Whip in forum Tutorials
    Replies: 59
    Last Post: 12-15-2011, 11:57 AM
  2. 95% handled
    By fabjan in forum Tutorials
    Replies: 1
    Last Post: 02-01-2008, 03:29 PM
  3. [Handled]Level-up
    By Mrquarter2 in forum Tutorials
    Replies: 5
    Last Post: 09-29-2007, 03:09 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
  •