Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-09-2009, 02:27 PM
realityincarnate
Developer
 
Join Date: Dec 2007
Posts: 122
Default Quest::say with languages

I added the ability to have npcs speak in different languages to the quest::say function. The original function is unchanged, but a language number can now be added as a second parameter.

I also added a new quest variable, $langid, which is exported to the perl say events (EVENT_SAY, EVENT_AGGRO_SAY, and EVENT_PROXIMITY_SAY). This holds the number corresponding to the language spoken to trigger the event and can be used to make npcs only respond to things said in certain languages.

Example use:
Code:
sub EVENT_SAY {
  if ($langid == 9) {
    quest::say("Welcome to Rivervale, friend", 9);
  }
  else {
    quest::say("Don't speak your outsider tongue to me!");
  }
}
Reply With Quote
 


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 12:44 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3