This could be done through perl, I could try putting something together for you if you want.
Was bored and wrote a thing.... and this should work I hope (may want to do some testing :p)
I tested it for awhile and it seemed to work fine for me
Place this inside the plugins folder...
https://perl.pastebin.mozilla.org/8841427
This is an example quest.. that uses it...
Code:
sub EVENT_SAY {
if($text=~/hail/i) {
plugin::Whisper("FREE SHIT BRO");
$client->Message(315, "::" . quest::saylink("summon shit",1));
} elsif($text=~/summon shit/i) {
plugin::summon_into_inventory($client, 9990, 60); #60 skin of milk.
}
}