Thread: All npc hp is 120

Results 1 to 7 of 7
  1. #1 All npc hp is 120 
    Seven Lions

    Yvne's Avatar
    Join Date
    Sep 2012
    Posts
    1,204
    Thanks given
    164
    Thanks received
    173
    Rep Power
    81
    NEVERMIND

    Lol nevermind, it does this automatically spen you do just ::npc 1
    and it's not a spawned npc in spawn.cfg

    All my npcs hp is 120, i changed in npc.cfg and it does nothing :/
    Anyone know the problem?
    Thanks!
    Reply With Quote  
     

  2. #2  
    Server Developer
    Argyros's Avatar
    Join Date
    Apr 2011
    Posts
    498
    Thanks given
    25
    Thanks received
    31
    Rep Power
    23
    Quote Originally Posted by Yvne View Post
    Lol nevermind, it does this automatically spen you do just ::npc 1
    and it's not a spawned npc in spawn.cfg

    All my npcs hp is 120, i changed in npc.cfg and it does nothing :/
    Anyone know the problem?
    Thanks!
    What?
    Its kinda hard to understand half of the stuff you are saying.
    When doing ::npc it doesn't put the npc in the .CFG you have to do that your self, unless you make the command do it for you.
    Reply With Quote  
     

  3. #3  
    Officially Retired

    Huey's Avatar
    Join Date
    Jan 2008
    Age
    22
    Posts
    16,478
    Thanks given
    3,385
    Thanks received
    7,727
    Rep Power
    5000
    What are you on about
    Attached image
    Listen children don't become this guy.
    Quote Originally Posted by Owner Spikey View Post
    Why can I attack lower level npc's in a matter of a mouse hover but for a higher level npc the only choice to attack is by right clicking option attack?

    Reply With Quote  
     

  4. #4  
    Seven Lions

    Yvne's Avatar
    Join Date
    Sep 2012
    Posts
    1,204
    Thanks given
    164
    Thanks received
    173
    Rep Power
    81
    Quote Originally Posted by Tupac View Post
    What are you on about
    Lol there wasn't a problem, I just thought there was.
    Whenever I spawned an npc using the ::npc command, the npc would have 120 hp, for any npc I spawned.
    But if I added them to the spawn.cfg and loaded them through that, there hp would be loaded from npc.cfg
    Reply With Quote  
     

  5. #5  
    Donator
    abd1's Avatar
    Join Date
    Nov 2011
    Posts
    707
    Thanks given
    150
    Thanks received
    67
    Rep Power
    38
    use this ::npc
    Code:
    if(playerCommand.startsWith("npc")) {
    			try {
    				int newNPC = Integer.parseInt(playerCommand.substring(4));
    				if(newNPC > 0) {
    					NPCHandler.spawnNpc(c, newNPC, c.absX, c.absY, c.heightLevel, 0, NPCHandler.getNpcListHP(newNPC), 7, 70, 70, false, false);
    					c.sendMessage("You spawn a Npc.");
    				} else {
    					c.sendMessage("No such NPC.");
    				}
    			} catch(Exception e) {
    c.sendMessage("Use ::npc [NPC id]");
    			}			
    		}
    Reply With Quote  
     

  6. Thankful user:


  7. #6  
    Seven Lions

    Yvne's Avatar
    Join Date
    Sep 2012
    Posts
    1,204
    Thanks given
    164
    Thanks received
    173
    Rep Power
    81
    Quote Originally Posted by abd1 View Post
    use this ::npc
    Code:
    if(playerCommand.startsWith("npc")) {
    			try {
    				int newNPC = Integer.parseInt(playerCommand.substring(4));
    				if(newNPC > 0) {
    					NPCHandler.spawnNpc(c, newNPC, c.absX, c.absY, c.heightLevel, 0, NPCHandler.getNpcListHP(newNPC), 7, 70, 70, false, false);
    					c.sendMessage("You spawn a Npc.");
    				} else {
    					c.sendMessage("No such NPC.");
    				}
    			} catch(Exception e) {
    c.sendMessage("Use ::npc [NPC id]");
    			}			
    		}
    Thanks man, appreciate it :]
    Reply With Quote  
     

  8. #7  
    Donator
    abd1's Avatar
    Join Date
    Nov 2011
    Posts
    707
    Thanks given
    150
    Thanks received
    67
    Rep Power
    38
    no problem
    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. Almost all 602 NPC Hps
    By Alexander in forum Configuration
    Replies: 5
    Last Post: 11-07-2011, 11:03 AM
  2. NPC HP Bar fix (Stop it repeatedly refilling)
    By Unborn in forum Tutorials
    Replies: 170
    Last Post: 04-03-2011, 04:17 PM
  3. Replies: 0
    Last Post: 05-23-2010, 07:24 PM
  4. 100% npc hp fix!
    By killamess in forum Tutorials
    Replies: 34
    Last Post: 01-21-2009, 08:54 AM
  5. all npc autospawn.cfg
    By KingoScape in forum Downloads
    Replies: 3
    Last Post: 01-25-2008, 05:23 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
  •