SetPlayerMagicCircle

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 12:45, 4 August 2026 by QCherry (talk | contribs) (Automatyczna aktualizacja dokumentacji funkcji)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

setPlayerMagicCircle

Sets the authoritative magic circle and updates the related circle skills coherently.

Syntax

bool setPlayerMagicCircle(int playerId, int circle)

Parameters

Name Type Required Description
playerId int yes The connected player to update.
circle int yes Magic circle from 0 through 6.

Returns

Returns true when the circle is accepted; otherwise returns false.

Examples

Grant the sixth circle of magic:

setPlayerMagicCircle(playerId, 6)

Notes

  • Available only in server-side resource scripts.
  • The function updates magician_level and the corresponding circle skill flags as one authoritative operation.