AddLanguage(Spawn: Player, Int32: LanuageID)
Pre-Requisite(s)
- None
Parameter(s)
Spawn: Player - Spawn LUA Pointer of Player type only.
Int32: LanguageID - Language ID from Language List
Return(s)
- None
Example(s)
– Taken from ItemScripts/DwarvenLanguagePrimer.lua
function obtained(Item, Spawn)
if not HasLanguage(Spawn,3) then
AddLanguage(Spawn, 3) — Dwarven language id 3
SendMessage(Spawn, "You have learned the basics of the Dwarven language.", "White")
RemoveItem(Spawn, 900)
end
end
Result
Additional Notes