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

Development::Feature Requests Post suggestions/feature requests here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-31-2014, 11:22 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

As of next release you'll be able to add something like:

Code:
function eq.Say(msg, lang)
	local owner = eq.get_owner();
	if(owner.null) then
		return;
	end
	
	if(lang == nil) then		
		owner:Say(msg);
	else
		local entity_list = eq.get_entity_list();
		
		entity_list:ChannelMessage(owner, 8, lang, msg);
	end
end
in your lua_modules/general_ext.lua

Then you'll be able to use it in scripts like:

Code:
if(e.message:findi("hail")) then
	eq.Say("Test string 1");
elseif(e.message:findi("there")) then
	eq.Say("Test string in thieve's cant.", 10);
end
In the same way quest::say is used in perl more or less.
Reply With Quote
 

Thread Tools
Display Modes

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