Lua Mob.Say() optional language parameter
A while back an optional Language parameter was added to the Perl function for having an NPC say something, so that NPCs could speak other languages besides common.
When I skimmed over the Lua API reference taking a first look, I didn't see that as an option: Code:
Mob member functions: Or, alternatively, to add like a SayLang() function that would take a language code as well as the message text? |
I'm going to add a way to do this for you.
|
You ROCK! \m/
|
As of next release you'll be able to add something like:
Code:
function eq.Say(msg, lang) Then you'll be able to use it in scripts like: Code:
if(e.message:findi("hail")) then |
Perfection. Thanks, KLS.
This can add a very nice level of flavor, and means we won't have to revert to Perl for the functionality. Thanks a ton for the quick turnaround. |
All times are GMT -4. The time now is 01:42 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.