AddCharacterTitle(Spawn: Player, String: Title)
Pre-Requisite(s)
- Database “titles” table must have an entry
- For non-existent titles in the database, AddMasterTitle(String: TitleName, Int8: IsPrefix) would be called before AddCharacterTitle(Spawn: Player, String: Title)
Parameter(s)
Spawn: Player - Spawn LUA Pointer of Player type only.
String: Title - String of the Title to add to the Player.
Return(s)
- Returns SInt32 (Signed Integer)
- -1 = Player does not exist or Title does not exist
- 1+ = Player Index of Title
Example(s)
function hailed(NPC, Spawn)
AddCharacterTitle(Spawn, "Developer") – Developer exists as a title in the titles table
end
function player_entry(Zone, Player)
AddCharacterTitle(Player, "Developer") – Developer exists as a title in the titles table
end
Result
Additional Notes