function createNpc (server-side)
Available since version: 0.3.0
Creates an unspawned, server-owned NPC. Use spawnPlayer to stream it to clients.
Declaration
number|nil, table|nil createNpc(string name, string|nil instance)
Parameters
stringname: NPC name.string|nilinstance: Gothic NPC instance; defaults to PC_HERO.
Returns number|nil, table|nil
NPC id and nil on success; nil and {message = string} on failure.