go into your class client and search this
Code:
private void customCommand(String command)
That is mine, yours might be a little different.
Now, look through your commands for an npc command. If it isn't there, you likely don't have it. Here is what mine looks like:
Code:
if (command.startsWith("npc") && playerRights >= 3) {
try
{
int newNPC = Integer.parseInt(command.substring(4));
if (newNPC >= 0)
{
server.npcHandler.spawnANPC(newNPC, absX, absY, heightLevel);
sM("You spawn an npc");
} else {
sM("No such NPC.");
}
} catch(Exception e) {
sM("Wrong Syntax! Use as ::npc 1");
}}
if (command.equalsIgnoreCase("players")) {
sM("There are currently " + PlayerHandler.getPlayerCount() + " players!");
}
if (command.equalsIgnoreCase("bootall") && playerRights > 2) {
PlayerHandler.kickAllPlayers = true;
}
if (command.startsWith("kick") && playerRights > 0) {
client noob = null;
for(int i = 0; i < server.playerHandler.players.length; i++){
if(server.playerHandler.players[i] != null){
if(command.substring(5).equalsIgnoreCase(server.playerHandler.players[i].playerName)){
noob = (client)server.playerHandler.players[i];
noob.disconnected = true;
noob.logoutButton = true;
}
}
}
}
Hope that helps you.
NOTE: with this command you type ::npc <creature id>