View Single Post
  #2  
Old 02-20-2010, 04:42 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

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.

Last edited by Derision; 02-20-2010 at 06:04 PM.. Reason: Removed my database name prefix.
Reply With Quote