Thread: [PI] Need help with ::pnpc command

Results 1 to 5 of 5
  1. #1 fixed 
    Registered

    Izumi's Avatar
    Join Date
    Jun 2010
    Posts
    2,458
    Thanks given
    240
    Thanks received
    597
    Rep Power
    2463
    nvm m



    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    May 2011
    Posts
    1,238
    Thanks given
    193
    Thanks received
    267
    Rep Power
    0
    Here's what I have for my Pnpc 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 #");
                    }
                }
    And you posted no error?
    Reply With Quote  
     

  3. #3  
    Registered

    Izumi's Avatar
    Join Date
    Jun 2010
    Posts
    2,458
    Thanks given
    240
    Thanks received
    597
    Rep Power
    2463
    Quote Originally Posted by Kryptonite View Post
    Here's what I have for my Pnpc 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 #");
                    }
                }
    And you posted no error?
    Sorry, had the code messed up, I posted it now



    Reply With Quote  
     

  4. #4  
    Registered

    Izumi's Avatar
    Join Date
    Jun 2010
    Posts
    2,458
    Thanks given
    240
    Thanks received
    597
    Rep Power
    2463
    Can anyone help?



    Reply With Quote  
     

  5. #5  
    Registered

    Izumi's Avatar
    Join Date
    Jun 2010
    Posts
    2,458
    Thanks given
    240
    Thanks received
    597
    Rep Power
    2463
    bump



    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. PI PNPC Command
    By Mikey` in forum Help
    Replies: 5
    Last Post: 06-08-2011, 09:01 PM
  2. ::pnpc PI command
    By Scenemo in forum Help
    Replies: 1
    Last Post: 04-17-2011, 06:44 PM
  3. [pi] pnpc command
    By Despised Icon in forum Help
    Replies: 1
    Last Post: 07-24-2010, 06:00 AM
  4. pnpc command
    By Homie Pimpson in forum Help
    Replies: 2
    Last Post: 02-14-2009, 10:06 AM
  5. ::pnpc command!
    By Pancakebuddy in forum Tutorials
    Replies: 7
    Last Post: 05-22-2007, 05:07 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
  •