function createNpc (client-side)
Available since version: 0.1.1
By default npcs won't be added to world. In order to do that, you have to call spawnNpc.
Npc id will always begins from max slots value.
This function will create npc.
int createNpc(string name)
stringname: the name of the npc.
The id of created npc. If id is set to
-1 then creation of npc failed.