I like the idea of having the option for silent as well as visible saylink responses.
If one is not using silent saylinks, I also like the idea of being able to specify the text being said by the player when they click on the link, instead of making it always the text of the link itself. "Hail, Player! Would you be interested in helping me with this [task]?" *click [task]* "What task is that?" ...as opposed to: *click [task]* "task" - Shendare |
Sion already mentioned a way to do that with Perl, but I do agree that it would be nice to have the option to do it directly with the command.
The only reason to have a table for saylinks is so the server knows what phrase to associate with whichever saylink is being clicked. So, basically whatever gets put into that table is what the server will use to parse (or have the client /say) when the link is clicked. This means that we should be able to set a second argument for the command that is optional. If the second argument is set, then that second phrase/argument would be the one that appears in the actual link in the text of the NPC. I am not that great with coding optional arguments for quest commands yet, but I can maybe try to add that in as well at some point. Again, most of the code needed for this to work should already be there. Basically, the saylink() command would just need to check for a second argument and if one exists, it uses that argument for creating the actual itemlink, but it still does the query of the saylink table based on the first argument. If this functionality was added, it should work something like this: Code:
sub EVENT_SAY { |
I added a new bool option for the saylink command to allow them to be silent. More info can be found on the wiki page here about it:
http://www.eqemulator.net/wiki/wikka.php?wakka=SayLink |
Quote:
Code:
my $task = quest::saylink("What task is that?", 0, "task"); |
All times are GMT -4. The time now is 06:16 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.