Function: AddSpellBookEntry(player, spellid, tier, add_silently, add_to_hotbar)
Description:
Adds a spell book entry for the Player with the spellid and tier provided. The add_silently (false by default), add_to_hotbar (true by default)
Parameters:
player(Spawn) - Spawn object representingplayer.spellid(uint32) - Integer valuespellid.tier(uint16) - Integer valuetier.add_silently(bool) - Boolean flagadd_silently.add_to_hotbar(bool) - Boolean flagadd_to_hotbar.
Returns: None.
Connection lifetime: Each player or group-member connection resolved by this function is retained through the native call. A disconnect or reconnect during a callback cannot destroy that retained connection or switch the ongoing call to a replacement. A later Lua call resolves the current connection. This does not extend the lifetime of unrelated spawn or item userdata.