Thread: [PI] NPCs not spawning

Results 1 to 3 of 3
  1. #1 [PI] NPCs not spawning 
    Registered Member
    Join Date
    Oct 2011
    Posts
    83
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    When you click an object, 4 NPCs are suppose to spawn, but only the first one does. What happened to the other three?

    Void:
    Code:
        public static void spawnPirates(Client c) {
            Server.npcHandler.spawnNpc(c,184,3225,9333,0,1,60,20,180,210,false,false);
            Server.npcHandler.spawnNpc(c,184,3206,9329,0,1,60,20,180,210,false,false);
            Server.npcHandler.spawnNpc(c,184,3221,9316,0,1,60,20,180,210,false,false);
            Server.npcHandler.spawnNpc(c,184,3208,9311,0,1,60,20,180,210,false,false);
        }
    Calling:
    Code:
    		spawnPirates(c);
    Anyone know what'a wrong/have a solution?
    NPChandler should print out if there's an overflow of NPCs. There isn't any print out.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2011
    Posts
    82
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    I'm not into the whole "clean" code thing, so this is what I would do.

    Code:
    spawnPirate1(c);
    spawnPirate2(c);
    Code:
    public static void spawnPirate1(Client c) {
        Server.npcHandler.spawnNpc(c,184,3225,9333,0,1,60,20,180,210,false,false);
    }
    public static void spawnPirate2(Client c) {
        Server.npcHandler.spawnNpc(c,184,3206,9329,0,1,60,20,180,210,false,false);
    }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2011
    Posts
    83
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Changing it had no effect :L
    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. [Matrix] Spawning NPCs
    By dragonkk in forum Tutorials
    Replies: 44
    Last Post: 03-11-2014, 09:50 PM
  2. [PI] No NPCs Spawning!
    By Slawth Baws in forum Help
    Replies: 6
    Last Post: 11-18-2011, 10:11 AM
  3. Spawning npcs if under 150hp
    By Purple in forum Help
    Replies: 5
    Last Post: 10-08-2010, 05:11 PM
  4. Help with projectiles and npcs spawning npcs.
    By arr0wtohell in forum Help
    Replies: 7
    Last Post: 03-15-2010, 05:29 PM
  5. spawning npcs
    By massacre561 in forum Help
    Replies: 5
    Last Post: 11-27-2009, 08:04 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
  •