Log in

View Full Version : Quest saylink issues help


phentop
09-10-2017, 01:23 AM
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
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.