Thread: "Unspawn" a NPC?

Results 1 to 2 of 2
  1. #1 "Unspawn" a NPC? 
    Registered Member
    Join Date
    Nov 2012
    Posts
    174
    Thanks given
    3
    Thanks received
    4
    Rep Power
    11
    So basically I have this command:

    Code:
    if (playerCommand.startsWith("pnpc"))
                    {
                    try {
                        int newNPC = Integer.parseInt(playerCommand.substring(5));
                        if (newNPC <= 200000 && newNPC >= 0) {
                            c.npcId2 = newNPC;
                            c.isNpc = true;
                            c.updateRequired = true;
                            c.setAppearanceUpdateRequired(true);
                        } 
                        else {
                            c.sendMessage("No such P-NPC.");
                        }
                    } catch(Exception e) {
                        c.sendMessage("Wrong Syntax! Use as ::pnpc #");
                    }
                }
    How do I make a command what "deletes" the spawned NPC with the used command above?
    Reply With Quote  
     

  2. #2  
    Registered Member austinb555's Avatar
    Join Date
    Jul 2011
    Posts
    826
    Thanks given
    0
    Thanks received
    42
    Rep Power
    41
    that command shouldnt even spawn a npc...it should make your character a npc..but if you want the npc deleted from the command that actually spawns one then just restart the server.
    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. Replies: 24
    Last Post: 10-09-2012, 01:33 AM
  2. Replies: 5
    Last Post: 04-14-2011, 08:14 AM
  3. "hed","head","headicon" command like ::emote Rep++
    By «I Gf I» ©£ in forum Help
    Replies: 12
    Last Post: 10-06-2009, 05:30 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
  •