EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Quest saylink issues help (https://www.eqemulator.org/forums/showthread.php?t=41506)

phentop 09-10-2017 01:23 AM

Quest saylink issues help
 
In the following quest script, how do I get "join" in saylink to be recognized. The NPC will only respond to the 1st saylink "trust".


sub EVENT_SAY {
if($text=~/hail/i) {
plugin::Whisper("Har $name. Me " . quest::saylink("brothers", 1) . ". must have sent ye.");
}
elsif($text=~/brothers/i) {
plugin::Whisper("Ye either earned their " . quest::saylink("trust", 1) . " or ye were sent to " . quest::saylink("join", 1) . " me, which is it?");
}
elsif($text=~/trust/i) {
plugin::Whisper("Ohhhh, Har! I see it now! The " . quest::saylink("glow", 1) . " from the locker draws you in, does it not?");
}
elsif($text=~/join/i) {
plugin::shout("join me it is then $name!");
}

atrayas 09-10-2017 02:09 AM

Need a } at the end of the script. Remember, if you open something it has to be closed or something will break.

phentop 09-11-2017 04:50 AM

Quote:

Originally Posted by atrayas (Post 255732)
Need a } at the end of the script. Remember, if you open something it has to be closed or something will break.

This was just the first part of the quest the other } was further down. Even with the missing } from my post, it still will not respond to the "join" in the script.

atrayas 09-11-2017 10:22 AM

try using quest::shout , not plugin::shout

phentop 09-13-2017 09:05 AM

Thanks atrayas! Working great now.


All times are GMT -4. The time now is 05:25 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.