shaznito
02-26-2008, 04:57 PM
Hello, Since I have a live account now I am able to do these quest alot more sufficient. me and my wife doubled check everything and made sure it functioned properly.
All works and if you're wondering why I put $race in there, that is because no one but "Halflings" can do this quest I tested with other races including a level 52 half-elf ect all on live. plus I added database support being that there was no berries to forage. I'm pretty sure there is some extra stuff I'll add over time if missing.
#############
#Quest Name:Cleric Supplies
#Author:Shaznito
#NPCs Involved:Beek Guinders
#Items Involved:Berries, Black Wolf Skin, Ruined Wolf Pelt
#################
sub EVENT_SAY {
if($text=~/hail/i){
quest::say("waves enthusiastically and says, 'Hay, ho, there, young Halfling! I'd love to yak it up with you but I'm a bit busy at the moment, trying to find some [help].");
}
if($text=~/what help/i){
quest::say("Well, we're experimenting with some tanning methods but we're running low on supplies. We need to find someone to go out and [gather some things]. Seems no one wants to do an honest day's work any more. I'd do it myself but, errrr, my, uhhh, foot hair has been hurting lately... yes, that's it.");
}
if($text=~/I will gather some things/i){
quest::say("Ahhh, excellent! Okay, first, we'll need a couple of wolf pelts. They don't have to be perfect, completely ruined would work just fine, hehe. I'll also need a black wolf skin and a handful of berries. The berries you should be able to find out in the Thicket. I hear they grow in a small canyon near the lone tower. Hurry, hurry!");
}
}
sub EVENT_ITEM {
if ($itemcount{13045} == 1 && $itemcount{13782} == 2 && $itemcount{13758} == 1) {
if ($race 'Human', 'Barbarian', 'Erudite', 'Wood Elf', 'High Elf', 'Dark Elf', 'Half Elf', 'Dwarf', 'Troll', 'Ogre', 'Gnome', 'Vah Shir', 'Froglok' 'Iksar',)
quest::say("Hey, great! You found the materials! We'll get to work right away. If you find any more, please come by again. Here's a little something for your troubles, friend.");
quest::summonitem(15207);
quest::faction(259, 10);
quest::faction(208, 10);
quest::faction(133, 10);
quest::exp(50);
quest::givecash(23,13,0,0);
}
plugin::return_items(\%itemcount);
}
#END of FILE Zone:rivervale ID:19111 -- Beek_Guinders
This is for the database
INSERT INTO `forage`(`id`,`zoneid`,`Itemid`,`level`,`chance`) values (429,33,13045,0,100)
INSERT INTO `forage`(`id`,`zoneid`,`Itemid`,`level`,`chance`) values (429,202,13045,0,100)
INSERT INTO `forage`(`id`,`zoneid`,`Itemid`,`level`,`chance`) values (429,3,13045,0,100)
INSERT INTO `forage`(`id`,`zoneid`,`Itemid`,`level`,`chance`) values (429,224,13045,0,100)
Please let me know what you think and make sure I'm not overlooking anything.
All works and if you're wondering why I put $race in there, that is because no one but "Halflings" can do this quest I tested with other races including a level 52 half-elf ect all on live. plus I added database support being that there was no berries to forage. I'm pretty sure there is some extra stuff I'll add over time if missing.
#############
#Quest Name:Cleric Supplies
#Author:Shaznito
#NPCs Involved:Beek Guinders
#Items Involved:Berries, Black Wolf Skin, Ruined Wolf Pelt
#################
sub EVENT_SAY {
if($text=~/hail/i){
quest::say("waves enthusiastically and says, 'Hay, ho, there, young Halfling! I'd love to yak it up with you but I'm a bit busy at the moment, trying to find some [help].");
}
if($text=~/what help/i){
quest::say("Well, we're experimenting with some tanning methods but we're running low on supplies. We need to find someone to go out and [gather some things]. Seems no one wants to do an honest day's work any more. I'd do it myself but, errrr, my, uhhh, foot hair has been hurting lately... yes, that's it.");
}
if($text=~/I will gather some things/i){
quest::say("Ahhh, excellent! Okay, first, we'll need a couple of wolf pelts. They don't have to be perfect, completely ruined would work just fine, hehe. I'll also need a black wolf skin and a handful of berries. The berries you should be able to find out in the Thicket. I hear they grow in a small canyon near the lone tower. Hurry, hurry!");
}
}
sub EVENT_ITEM {
if ($itemcount{13045} == 1 && $itemcount{13782} == 2 && $itemcount{13758} == 1) {
if ($race 'Human', 'Barbarian', 'Erudite', 'Wood Elf', 'High Elf', 'Dark Elf', 'Half Elf', 'Dwarf', 'Troll', 'Ogre', 'Gnome', 'Vah Shir', 'Froglok' 'Iksar',)
quest::say("Hey, great! You found the materials! We'll get to work right away. If you find any more, please come by again. Here's a little something for your troubles, friend.");
quest::summonitem(15207);
quest::faction(259, 10);
quest::faction(208, 10);
quest::faction(133, 10);
quest::exp(50);
quest::givecash(23,13,0,0);
}
plugin::return_items(\%itemcount);
}
#END of FILE Zone:rivervale ID:19111 -- Beek_Guinders
This is for the database
INSERT INTO `forage`(`id`,`zoneid`,`Itemid`,`level`,`chance`) values (429,33,13045,0,100)
INSERT INTO `forage`(`id`,`zoneid`,`Itemid`,`level`,`chance`) values (429,202,13045,0,100)
INSERT INTO `forage`(`id`,`zoneid`,`Itemid`,`level`,`chance`) values (429,3,13045,0,100)
INSERT INTO `forage`(`id`,`zoneid`,`Itemid`,`level`,`chance`) values (429,224,13045,0,100)
Please let me know what you think and make sure I'm not overlooking anything.