mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
793 B
793 B
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.
Example:
-- From ItemScripts/ForgeryFreeportCitizenshipPapers.lua
function Task3(Item,Player)
local Race = GetRace(Player)
if Race == 11 then --Kerra
if HasQuest(Player,LA_F) then
SetStepComplete(Player,LA_F,14)
end