Thread: NPCs dont die ? [pi]

Results 1 to 8 of 8
  1. #1 NPCs dont die ? [pi] 
    Registered Member Coruption's Avatar
    Join Date
    Aug 2010
    Posts
    440
    Thanks given
    115
    Thanks received
    49
    Rep Power
    8
    Hey, I was trying to add something and somehow i messed up NPC's dieing.. When you get them to 0 hp they just stand there on 0 hp.. I don't know what I did but can anyone please tell me how to fix it? :/
    Thanks
    Quote Originally Posted by maffia-rpg View Post
    I have read some were that apache said it wasn't a malicious. Its a command that shutdowns a computer < or something like that. Matrix didn't had added that. RuneScape did.
    Reply With Quote  
     

  2. #2  
    Registered Member Coruption's Avatar
    Join Date
    Aug 2010
    Posts
    440
    Thanks given
    115
    Thanks received
    49
    Rep Power
    8
    bump
    Quote Originally Posted by maffia-rpg View Post
    I have read some were that apache said it wasn't a malicious. Its a command that shutdowns a computer < or something like that. Matrix didn't had added that. RuneScape did.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2010
    Posts
    194
    Thanks given
    7
    Thanks received
    25
    Rep Power
    37
    Posting what you changed would be really helpful to find out what you did wrong.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Return's Avatar
    Join Date
    Dec 2011
    Posts
    348
    Thanks given
    2
    Thanks received
    19
    Rep Power
    145
    No BackUp?
    http://www.rune-server.org/static/signaturepic/sigpic181420_6.gif

    last activity 11/10/2015 Wow! Everyone has to start somewhere., right? : )
    Reply With Quote  
     

  5. #5  
    Registered Member Coruption's Avatar
    Join Date
    Aug 2010
    Posts
    440
    Thanks given
    115
    Thanks received
    49
    Rep Power
    8
    Lol i have a very old back up. I was working on a project, but there is a way to fix it without using a backup lol. And i can't post what i changed because it was a long time ago.. well around a week ago but after it happened i just couldn't be bothered fixing at the time.
    Quote Originally Posted by maffia-rpg View Post
    I have read some were that apache said it wasn't a malicious. Its a command that shutdowns a computer < or something like that. Matrix didn't had added that. RuneScape did.
    Reply With Quote  
     

  6. #6  
    Registered Member Coruption's Avatar
    Join Date
    Aug 2010
    Posts
    440
    Thanks given
    115
    Thanks received
    49
    Rep Power
    8
    bump still need help
    Quote Originally Posted by maffia-rpg View Post
    I have read some were that apache said it wasn't a malicious. Its a command that shutdowns a computer < or something like that. Matrix didn't had added that. RuneScape did.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Oct 2010
    Posts
    194
    Thanks given
    7
    Thanks received
    25
    Rep Power
    37
    No one can help you just guessing at what you did, you have actually got to do some work for your self and find out. Compare your old code with your current to see what has changed.
    Reply With Quote  
     

  8. #8  
    Registered Member
    vovik ukr's Avatar
    Join Date
    Aug 2010
    Posts
    1,240
    Thanks given
    136
    Thanks received
    187
    Rep Power
    278
    check if you have this in NPCHandler.java public void process() { if you don't than add it.

    Code:
    					} else if (npcs[i].actionTimer == 0 && npcs[i].needRespawn == true && npcs[i].npcType != 1158) {					
    						if(npcs[i].spawnedBy > 0) {
    							npcs[i] = null;
    						} else {
    							int old1 = npcs[i].npcType;
    							int old2 = npcs[i].makeX;
    							int old3 = npcs[i].makeY;
    							int old4 = npcs[i].heightLevel;
    							int old5 = npcs[i].walkingType;
    							int old6 = npcs[i].MaxHP;
    							int old7 = npcs[i].maxHit;
    							int old8 = npcs[i].attack;	
    							int old9 = npcs[i].defence;
    							
    							npcs[i] = null;
    							newNPC(old1, old2, old3, old4, old5, old6, old7, old8, old9);
    						}
    					}
    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. Npc's dont die..
    By .Rex in forum Help
    Replies: 7
    Last Post: 01-13-2012, 02:53 PM
  2. [PI] PLayers dont lose items when they die
    By JokerScape in forum Help
    Replies: 3
    Last Post: 10-16-2011, 01:59 PM
  3. Replies: 0
    Last Post: 10-26-2010, 11:23 PM
  4. fix if u dont loose customs when u die.
    By jh_angel in forum Snippets
    Replies: 8
    Last Post: 01-04-2010, 11:14 AM
  5. Replies: 3
    Last Post: 08-31-2009, 06:37 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
  •