SetPlayerMagicCircle
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_leveland the corresponding circle skill flags as one authoritative operation.