SetPlayerMagicCircle: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Automatyczna aktualizacja dokumentacji funkcji
 
Complete Lua function catalog
 
Line 30: Line 30:
* The function updates <code>magician_level</code> and the corresponding circle skill flags as one authoritative operation.
* The function updates <code>magician_level</code> and the corresponding circle skill flags as one authoritative operation.


[[Category:Lua Functions]]
[[Category:Server Functions]]
[[Category:Server Functions]]
[[Category:Magic Functions]]
[[Category:Magic Functions]]
[[Category:Progression Functions]]
[[Category:Progression Functions]]

Latest revision as of 09:55, 15 August 2026

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.