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:04 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default Lua say links

Are Lua say links completely implemented? I read through the Lua documentation on Git but for the life of me I cannot get say links working. Other functions I tried worked fine though Lua, just not say links. I also looked though the converted Quests and could not find any examples of Saylinks in those.
Reply With Quote
  #2  
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
  #3  
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
  #4  
Old 09-23-2013, 03:20 PM
Robregen
Developer
 
Join Date: May 2011
Posts: 108
Default

oh I learn that in lua, when you are using a boolean. you have to put it in as false or true instead of 0 or 1.
Reply With Quote
  #5  
Old 09-23-2013, 03:26 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Yeah, I read that in the official docs. I think I tried true/false last night with the same results.
Reply With Quote
  #6  
Old 09-25-2013, 05:01 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

Lua Say Links were accidentally given an incorrect type. So atm they don't work, I'll put it in with my next set of fixes.
Reply With Quote
  #7  
Old 09-25-2013, 05:04 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

No worry, I thought that was what happened. Your C++ Kung Fu is greater than mine by far.
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 03:05 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