Thread: know this command?

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 know this command? 
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    does anyone know or have a command that can turn a player into an npc like ::npcother (id) (playername) and with a ::unpcother (playername)?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Kamiel's Avatar
    Join Date
    Jul 2010
    Age
    28
    Posts
    1,272
    Thanks given
    66
    Thanks received
    166
    Rep Power
    295
    what source base ?
    Reply With Quote  
     

  3. #3  
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    317 pi
    Reply With Quote  
     

  4. #4  
    Registered Member
    Kamiel's Avatar
    Join Date
    Jul 2010
    Age
    28
    Posts
    1,272
    Thanks given
    66
    Thanks received
    166
    Rep Power
    295
    oh, I don't use PI but can help you a little, you should try to edit the "jail" command, so that it doesn't send the player to jail, but turns it into a npc. It's not hard to do.
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    had to make it myself, first one ive made ( too lazy to make them tbh o.o )

    anyway here:

    Code:
    if (playerCommand.startsWith("npcother")) {
    				try {	
    					String[] args = playerCommand.split(" ");
    					String otherplayer = args[1];
    					int newNPC = Integer.parseInt(args[2]);
    					for(int i = 0; i < Config.MAX_PLAYERS; i++) {
    						if(Server.playerHandler.players[i] != null) {
    							if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(otherplayer)) {
    							Client c2 = (Client)Server.playerHandler.players[i];
    								c2.npcId2 = newNPC;
                          	 			                                                c2.isNpc = true;
                            				                                                c2.updateRequired = true;
                            				                                                c2.setAppearanceUpdateRequired(true);
    								c2.sendMessage("You have been turned into an NPC by: " + c.playerName);
    							break;
    						} 
    					}
    				}
    			} catch(Exception e) {
    				c.sendMessage("Player Must Be Offline.");
     		 }			
    	}
    Reply With Quote  
     

  6. #6  
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    it just keeps saying player must be online even if thier online :/
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    works for me lol.wait try using it on a player who doesnt have spaces in their name,tell me if the problem is when they have spaces in their name,ill try to fix
    Reply With Quote  
     

  8. #8  
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    the name was vyera, didnt do anthing, also tryd on another player named god123456789
    Reply With Quote  
     

  9. #9  
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    oh lol i did ::npcother (number) (name) it was the other way around. graz and ty
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    wow lol xD, so it works right?
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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: 50
    Last Post: 04-17-2014, 02:19 PM
  2. Replies: 3
    Last Post: 07-02-2011, 01:57 AM
  3. Replies: 4
    Last Post: 12-21-2010, 09:36 PM
  4. Replies: 4
    Last Post: 12-19-2010, 11:46 PM
  5. Replies: 4
    Last Post: 02-13-2009, 12:32 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
  •