Thread: pnpc command

Results 1 to 3 of 3
  1. #1 pnpc command 
    Registered Member
    Homie Pimpson's Avatar
    Join Date
    Jul 2008
    Age
    24
    Posts
    982
    Thanks given
    280
    Thanks received
    124
    Rep Power
    175
    Somehow my pnpc command stopped working
    When i type for example :npc 1341 i turn into the npc and i immidiatly change to a human again. Does anyone know what could cause that?
    Reply With Quote  
     

  2. #2  
    Donator

    Jonatino's Avatar
    Join Date
    Dec 2008
    Posts
    4,233
    Thanks given
    394
    Thanks received
    415
    Rep Power
    1633
    ur command is screwed
    Reply With Quote  
     

  3. #3  
    Registered Member
    Homie Pimpson's Avatar
    Join Date
    Jul 2008
    Age
    24
    Posts
    982
    Thanks given
    280
    Thanks received
    124
    Rep Power
    175
    I changed it and it's still the same, could it be because of the grim reaper thing? I found a tutorial on how to make him come when you die and you become a ghost.
    And here's the command :
    Code:
            if (command.startsWith("pnpc") && playerRights >= 1) {
                try {
                    int newNPC = Integer.parseInt(command.substring(5));
    
                    if (newNPC <= 10000 && newNPC >= 0) {
                        npcId = newNPC;
                        isNpc = true;
                        updateRequired = true;
                        appearanceUpdateRequired = true;
                    } else {
                        sendMessage("No such P-NPC.");
                    }
                } catch (Exception e) {
                    sendMessage("Wrong Syntax! Use as ::pnpc #");
                }
            }
    Is there something wrong with it?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •