No categories assigned

LUAAddMasterTitle


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