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 09-23-2013, 12:34 PM
Robregen
Developer
 
Join Date: May 2011
Posts: 108
Default

I haven't tried this yet. but there is a documentation on saylink in git wiki.

Quote:
Void say_link(String phrase, Boolean silent, String link_name);
This is listed as a general functions so it would have be eq.say_link("something",0, "say something"); or something like that. You'll just have to experiment with it. If you get it working. Post it on here so other can see to use as example.
Reply With Quote
  #2  
Old 09-23-2013, 02:59 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

I tried every combination I can think of, other things in the same class seem to work like depop(). I know very little C++ but from looking at the code the existing Perl function returns a link, the Lua one returns void.

An existing one would be something like this in Perl.
Code:
 my $sl1 = quest::saylink("blessings", 1);
 $client->Message(315, "$NPCName says, 'Hail, $name. Have you come for my $sl1");
According to the documentation the Lua on would be like this I think. I cannot see how that would even work, it seems like the Lua implementation would need to return something so you could put it in a say back to the client.
Code:
eq.say_link("Hail, $name. Have you come for my %s", 0, "blessings");
It definitely is no big deal, I am tinkering with it though. figuring these things out helps me learn C++ and Lua so something is gained by messing with it.
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 11:58 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3