Thread: [PI]Npc respawn

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 [PI]Npc respawn 
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    After I catch an Impling, how would I make it despawn then respawn 30 seconds later?

    Wasn't able to find anything to help me
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2012
    Posts
    336
    Thanks given
    3
    Thanks received
    29
    Rep Power
    101
    Make a timer for it


    VOUCHES
    [SPOIL]
    Quote Originally Posted by SacredPK View Post
    Vouch for African
    Quote Originally Posted by Raw Envy View Post
    Vouch for African seems like a nice guy and trustworthy
    [/SPOIL]
    Reply With Quote  
     

  3. #3  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    Quote Originally Posted by light View Post
    how would i make it despawn
    (╯°□°)╯
    Reply With Quote  
     

  4. #4  
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    You have a method doing it for you in npcHandler.java 'getRespawnTime'

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  5. #5  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Is the impling in your npc.config or wherever you store your npc information?
    In there should be a set timer. All you'll have to do is make the npc "die" and it'll start that timer. Then when at 0 it'll respawn at the same spot.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  6. #6  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    Quote Originally Posted by Infexis View Post
    You have a method doing it for you in npcHandler.java 'getRespawnTime'
    I know this, but I'm not quite sure how to make it despawn once caught.

    Quote Originally Posted by dkiller View Post
    Is the impling in your npc.config or wherever you store your npc information?
    In there should be a set timer. All you'll have to do is make the npc "die" and it'll start that timer. Then when at 0 it'll respawn at the same spot.
    How would I make it 'die' once caught?
    Reply With Quote  
     

  7. #7  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by Light View Post
    I know this, but I'm not quite sure how to make it despawn once caught.



    How would I make it 'die' once caught?
    Check throw your npcHandler or whereever you npc died code is stored. Should be something similar to that.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  8. #8  
    Super Donator


    Join Date
    Feb 2011
    Age
    27
    Posts
    1,126
    Thanks given
    180
    Thanks received
    178
    Rep Power
    243
    Is it not simplar to just go to npchandlar and add respawn time on the NPC Code under Respawntime?
    Reply With Quote  
     

  9. #9  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    Quote Originally Posted by dkiller View Post
    Check throw your npcHandler or whereever you npc died code is stored. Should be something similar to that.
    Tried a lot of things with isDead and applyDead, and all I got was it trying to catch the npc 1000 times a second, lol.


    Quote Originally Posted by Gnakos View Post
    Is it not simplar to just go to npchandlar and add respawn time on the NPC Code under Respawntime?
    No because it's not actually being attacked.
    Reply With Quote  
     

  10. #10  
    Super Donator


    Join Date
    Feb 2011
    Age
    27
    Posts
    1,126
    Thanks given
    180
    Thanks received
    178
    Rep Power
    243
    hmm true.. because it goes away i think the server register as it dies.. i am not sure but i think so , some hunter systems are made like that.. or else if you can upload the hunter.java file i can check in there if i find a way to make it possible other else you can do it self
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Help Npc respawn [PI]
    By Defiled-X in forum Help
    Replies: 2
    Last Post: 02-15-2013, 04:38 PM
  2. Replies: 14
    Last Post: 12-13-2010, 10:40 AM
  3. NPC respawn time
    By addinol in forum Help
    Replies: 1
    Last Post: 04-03-2010, 07:47 AM
  4. NPC Respawn
    By King Vexille in forum Help
    Replies: 3
    Last Post: 06-09-2009, 05:37 PM
  5. NPC Respawn Fix
    By Palidino in forum Tutorials
    Replies: 8
    Last Post: 11-24-2008, 09:45 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
  •