EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Setting Titles through Quests (https://www.eqemulator.org/forums/showthread.php?t=30623)

anubisrwml2 02-19-2010 06:45 PM

Setting Titles through Quests
 
I have a question regarding titles - I know how to set a title (surname or such) through the quest to whatever I want, and add it to the database. What I don't understand how to do is this:

How do I add a title to a player within their titles list so they can switch between it and another as they wish?

If this can't be done then I would like to know that as well, as I have an idea for a "herald" npc who can change your titles to one that you have earned.

Thanks!

Derision 02-20-2010 04:42 AM

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.


All times are GMT -4. The time now is 08:08 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.