Code:
sub EVENT_SAY {
if ($text=~/hail/i && $flyer == 1) {
quest::say("May you travel with the Fives' blessing, $name.");
}
if ($flyer == 0) {
if ($text=~/Hail/i) {
quest::say("Ahh, hello young $race, what brings you to the Orders Library? You wouldnt happen to be responding to one of the [flyers] I sent out now would you?");
}
if ($text=~/flyer/i) {
quest::say("Ah good, good. Just give the flyer back to me and we shall begin.");
}
if ($text=~/ready/i) {
quest::say("Here. This item will return you to our fair city. It holds enchantments that will make you more powerful as well. Ill start you off on something simple. The councils scouts have recently discovered a strange new race of humanoids dwelling in a place they call Crushbone. The council wishes to gain further information on the humanoids in Crushbone. An Ambassador was sent a few days ago. He returned with a few missing body parts. The scouts report seeing small books on a few of the more intelligent looking humanoids there. Bring back at least four of these books for the council to study. The council does not care how you obtain them. Feel free to get them by any means necessary. Upon your return, find my apprentice. He will handle the books accordingly.");
quest::summonitem(1002);
quest::setglobal("flyer",1,0,"M2");
}
}
}