You are viewing an old version of this page. Return to the latest version.
Version of 20:12, 15 October 2012 by I need to Update My Profile
Difference between revisions of "LUA:AddSpellBookEntry"
(Created page with "= LUA Functions: AddSpellBookEntry() = Adds a spell to the given player ==== Syntax ==== AddSpellBookEntry(param1, param2, param3) ==== Parameters ==== ; Required - ''param1'...") |
|||
| Line 21: | Line 21: | ||
</pre> | </pre> | ||
| − | Adds | + | Adds an apprentice (tier 1) spell 1000 to the player. |
Revision as of 20:13, 15 October 2012
LUA Functions: AddSpellBookEntry()
Adds a spell to the given player
Syntax
AddSpellBookEntry(param1, param2, param3)
Parameters
- Required - param1 (Spawn), param2 (int16), param3 (int16)
- param1 is the player to give the spell to, must be a player
- param2 is the id of the spell to give
- param3 is the tier of the spell to give
Usage
function hailed(NPC, Spawn)
AddSpellBookEntry(Spawn, 1000, 1)
end
Adds an apprentice (tier 1) spell 1000 to the player.