Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2010, 06:45 PM
anubisrwml2
Sarnak
 
Join Date: Feb 2008
Posts: 38
Default 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!
Reply With Quote
  #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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:38 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3