Noverwyn Documentation
API set:
148

‹ All natives

Namespace: CLIENT API set: client Language: C Improve

nov_connect

int32_t nov_connect(NovClient* c, const char* address, const char* name, const char* key, const double* spawn);

Connects to a server.

The connection goes on during calls to nov_tick. The result arrives as NOV_WELCOME or NOV_CLOSED.

Parameters#

  • c (NovClient*): client returned by nov_create
  • address (const char*): "ip:port"
  • name (const char*): player name; replaced by the ticket's when there is one
  • key (const char*): server's public key, 64 hexadecimal characters, or empty
  • spawn (const double*): requested position (server in development mode), or null

Returns#

int32_t: 1 if the connection has started; 0 if the address or key is invalid, or if the client is already connected

Example#

NovClient* c = nov_create();
nov_set_ticket(c, ticket);
nov_connect(c, "203.0.113.10:27100", "Ana", serverKey, NULL);

Notes#

  • With a key, a server that does not have it is refused. Always give it outside development.

Namespace: PLAYER

Namespace: ENTITY

Namespace: ZONE

Namespace: TIME

Namespace: SCRIPT

Namespace: EVENT

Namespace: CLIENT

Namespace: CLIENT EVENT

Namespace: UNIFORM

Namespace: WAND

Namespace: LOOK

Namespace: CONTROL

Namespace: GAIT

Namespace: VOICE

Namespace: ATELIER

Namespace: TOOL