Create your new custom titles in the database and give each a unique 'title_set' value, e.g. in this example I have created a new title with title_set 10:
Code:
INSERT INTO `titles` (
`id` ,
`skill_id` ,
`min_skill_value` ,
`max_skill_value` ,
`min_aa_points` ,
`max_aa_points` ,
`class` ,
`gender` ,
`char_id` ,
`status` ,
`item_id` ,
`prefix` ,
`suffix` ,
`title_set`
)
VALUES (
NULL , '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', 'My Title Prefix', 'My Title Suffix', '10'
);
Then to award that title to someone via a quest:
Code:
sub EVENT_SAY
{
if($text =~/Hail/i)
{
quest::enabletitle(10);
}
}
If you have different titles for male and female, you should be able to insert two rows with the same title_set number, but one with gender 0 and one with gender 1. The same applies with race/class etc.