Examples
Shop NPC
Create a shop NPC that gives items when clicked:
/npc create Shop Notch
/npc lines Shop add &6&lItem Shop
/npc lines Shop add &7Click to buy items
/npc action Shop add MESSAGE:&aYou bought a diamond!
/npc action Shop add CONSOLE:give %player% diamond 1
Teleporter NPC
Create an NPC that teleports players:
/npc create Teleporter Steve
/npc lines Teleporter add &b&lTeleporter
/npc lines Teleporter add &7Click to teleport to spawn
/npc action Teleporter add MESSAGE:&aTeleporting to spawn...
/npc action Teleporter add CONSOLE:tp %player% 0 100 0
Quest NPC
Create a quest giver NPC:
/npc create QuestGiver Herobrine
/npc rename QuestGiver &5Quest Giver
/npc lines QuestGiver add &5&lQuest Giver
/npc lines QuestGiver add &7Click to start quest
/npc action QuestGiver add MESSAGE:&eYou started the quest!
/npc action QuestGiver add CONSOLE:give %player% compass 1
/npc action QuestGiver add PLAYER:say I accepted the quest!