mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
653 B
653 B
Function: SetCharacterTitlePrefix(spawn, titleName)
Description: Set's the character title prefix of the Spawn to the title name.
Parameters:
spawn(Spawn) - Spawn object representingspawn.titleName(string) - StringtitleName.
Returns: None.
Example:
-- From SpawnScripts/IsleRefuge1/TitleBot.lua
function hailed(NPC, Spawn)
FaceTarget(NPC, Spawn)
AddMasterTitle("Lord", 1) -- create new title for all players, is prefix
AddCharacterTitle(Spawn, "Lord") -- add title to the current player
SetCharacterTitlePrefix(Spawn, "Lord") -- set the characters current prefix to the newly created title
end