Thread: (PI) How do i make so when a NPC has half of its HP, more NPC spawn and attack? (PI)

Results 1 to 7 of 7
  1. #1 (PI) How do i make so when a NPC has half of its HP, more NPC spawn and attack? (PI) 
    Registered Member
    Join Date
    May 2011
    Posts
    36
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    well, im making a new minigame, that will need you to kill someone, when it reach to its half HP, about 4+ NPCs spawn and attack, which you need to kill to kill the main BOSS, if you know what i mean.. i have searched for minigame tuts on how to make some, but couldnt find. help..?
    Reply With Quote  
     

  2. #2  
    <3

    Join Date
    Jun 2011
    Posts
    190
    Thanks given
    43
    Thanks received
    28
    Rep Power
    10
    This sounds like a plan, I am actually going to do this now.
    Rune-Server Rules!
    1.Leave RSPS
    2.Never Come Back
    3.Have a Better life!
    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 Ix LMFAO xI View Post
    This sounds like a plan, I am actually going to do this now.
    And I bet this helped the user a ton.


    This sounds just like Jad, have a look around for a fully working Jad and if you're lucky you'll get one, if not then I'm sure someone would be willing to sell it for a few $$
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2011
    Posts
    36
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    wow lol any other help?
    Reply With Quote  
     

  5. #5  
    Super Donator


    Join Date
    Sep 2008
    Age
    30
    Posts
    1,894
    Thanks given
    677
    Thanks received
    776
    Rep Power
    456
    lol.... you guys clearly don't use your brains...

    in the method that handles npc attacking
    if statement asking if the npc has less than half hp and some boolean is false
    if so, spawn npcs, set boolean true
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Nov 2008
    Posts
    253
    Thanks given
    2
    Thanks received
    7
    Rep Power
    19
    For a PI I think you could do something like.

    if (newNPC.npcType == #### && newNPC.HP <= ##) {
    spawnNpc(infohere);
    }
    Not entirely sure, this is assuming the boss was spawned as well using that. I havn't done this before, so I can't give you a clear answer on it. Sorry if this didn't help.
    Reply With Quote  
     

  7. #7  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    Code:
    newNPC.npcType
    this is wrong
    Code:
    npcs[i].npcType
    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. make a npc spawn for a quest w/arrow
    By Edd - in forum Help
    Replies: 3
    Last Post: 03-14-2012, 04:16 AM
  2. [562] Make object spawn Npc!
    By Niator in forum Help
    Replies: 12
    Last Post: 08-26-2010, 03:17 AM
  3. How do i make npc attack another npc?
    By zaradomin in forum Help
    Replies: 3
    Last Post: 02-03-2010, 11:08 PM
  4. Replies: 1
    Last Post: 04-08-2009, 11:27 PM
  5. Replies: 4
    Last Post: 02-23-2009, 08:07 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
  •