PDA

View Full Version : Qyenos Hills: Rat Ear Pie


Andrew80k
04-11-2008, 10:54 PM
Rephas.pl


################################################## ####
# NPC: Rephas
# Zone: qeytoqrg
# Quest: Rat Ear Pie
# Author: Andrew80k
################################################## ####

sub EVENT_SAY {

if ($text=~/hail/i) {
quest::say("Aagggh.. Get away from here.. Go, run.. Far away.. Or I shall call [Karana's] wrath upon you!");
}

if ($text=~/karana\'s/i) {
quest::say("Heh!.. Ignorant one! Begone, and take your stupidity with you!");
}

}

sub EVENT_ITEM {

if (plugin::check_handin(\%itemcount,13072 => 1)) {

quest::say("Ahh yes.. These are a little small, but still some good eating, if you know how to cook 'em of course.. Here ya go, enjoy and may Karana keep your fields lush and green.");
quest::faction(11,2); # Arcane Scientists
quest::faction(184,2); # Knights of Truth
quest::faction(105,-3); # Freeport Militia
quest::faction(235,-3); # Opal Dark Briar

quest::summonitem(13719);

} elsif (plugin::check_handin(\%itemcount,13719=>1)) {
quest::say("Wha?.. Ah, I guess it's a bit of an acquired taste.. Oh well, your loss.. Here, take this.. They ain't no ears, but it's the least I could do.. And if ya find any more rat ears, good ol' Rephas here will be glad to take 'em off your hands for ya!");
quest::faction(11,2); # Arcane Scientists
quest::faction(184,2); # Knights of Truth
quest::faction(105,-3); # Freeport Militia
quest::faction(235,-3); # Opal Dark Briar

quest::summonitem(13076);
} elsif (plugin::check_handin(\%itemcount,13050=>4)) {
quest::say("Wow!.. How big was the dang varmint that these come off of?! Bigger'n a ol' grizzly, I bet! You've earned this, my friend! It's my own secret recipe for rat ear pie.. sure is tasty, easy to make, and keeps your belly full while you're running about in the hills and such. Take care, and may Karana keep your path clear and our lakes full.");
quest::faction(11,2); # Arcane Scientists
quest::faction(184,2); # Knights of Truth
quest::faction(105,-3); # Freeport Militia
quest::faction(235,-3); # Opal Dark Briar
quest::summonitem(18103);
} elsif (plugin::check_handin(\%itemcount,13050=>1)) {
quest::say("Hey.. wow.. Now THESE are some good, meaty ears.. These will make one great rat ear pie.. Tell ya what, kid.. bring me a few more o' these beauties, and I'll give you my secret recipe for cooking 'em.");
quest::faction(11,2); # Arcane Scientists
quest::faction(184,2); # Knights of Truth
quest::faction(105,-3); # Freeport Militia
quest::faction(235,-3); # Opal Dark Briar
}
}

cavedude
04-12-2008, 08:51 AM
Committed, the only thing to watch out for make sure you use the existing code. You left out the pre-existing hand-in for Arcane Order Task.

Andrew80k
04-12-2008, 11:58 AM
Committed, the only thing to watch out for make sure you use the existing code. You left out the pre-existing hand-in for Arcane Order Task.
Hmmm. The one that I had, had a bunch of stuff in it and at the top just said that the text was totally made up. Thanks for adding that back in though.

craig2009
11-10-2009, 03:12 AM
Hi all!
I've just visited this forum. Happy to get acquainted with you. Thanks.