You are viewing an old version of this page. Return to the latest version.
Version of 15:21, 11 February 2021 by Vlash Nytefall
Difference between revisions of "LUAAddMasterTitle"
(Created page with "{{LUAFunction |Name = AddMasterTitle |Description = Creates a new title that can be used by all characters |Param1 = string |Param1Desc = is the title name to create |Param2 =...") |
|||
| Line 9: | Line 9: | ||
<pre> | <pre> | ||
function hailed(NPC, Spawn) | function hailed(NPC, Spawn) | ||
| − | AddMasterTitle ("Antonica Guru" 0) | + | AddMasterTitle ("Antonica Guru", 0) |
end | end | ||
</pre> | </pre> | ||
Latest revision as of 14:15, 12 February 2021
LUA:AllFunctions - AddMasterTitle
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Creates a new title that can be used by all characters
Syntax
AddMasterTitle(param1, param2)
Parameters
- Required - param1 (string), param2 (int8)
- param1 is the title name to create
- param2 sets if the title is a prefix or suffix
Example
function hailed(NPC, Spawn)
AddMasterTitle ("Antonica Guru", 0)
end
a NPC with this function will create a suffix title Antonica Guru that can be given to players or other NPC's
Notes
This sores not assign the title, just creates it in the database.
0 = suffix 1 = prefix