peq-quests/tutorialb/Absor.pl
2023-12-31 11:30:14 -05:00

77 lines
No EOL
7 KiB
Raku

#zone: tutorialb
# items: 9997, 59950, 9998, 59951, 9999, 59952, 55623, 59953, 54229, 54230, 54231, 54232, 54233, 59954, 54235, 54236, 54237, 54238
sub EVENT_SAY {
if ($text=~/hail/i) {
quest::say("Hello, $name. Before the slave revolt, I was forging picks and shovels. Now I'm making weapons so we can fight back. Mainly swords and spears. Simple stuff. If you give me your weapon, I can make you a better one.");
quest::popup("Weapons", "<br>Absor is a weapon maker. You should already have a weapon equipped from your escape with Arias, but Absor can make it better. Open your inventory and remove your weapon from the lower left slot. This is your primary weapon slot where you hold weapons that are you are currently using.<br><br><c \"#F07F00\">Give your weapon to Absor to continue.</c>");
}
}
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 9997 => 1)) { #Dagger*
quest::summonitem(59950); #Sharpened Dagger
quest::emote("takes the weapon from you and begins to polish and balance it. When he hands it back to you it scarcely resembles the decaying old thing that you were using. 'There you go. That should work much better.'");
quest::popup("Weapons", "<br>Absor has fixed up your weapon and placed it back in your inventory. Pick up the improved weapon in your inventory and drop it on the rectangular icon in the middle of your inventory window. This will auto-equip the weapon back in your primary weapon slot.<br><br> <c \"#F07F00\">Open your Quest Window [ALT + Q] to check the next step in your Basic Training.<br><br>Hint: Use the find command (CTRL + F) to find the next npc for your basic training.</c>");
quest::updatetaskactivity(1448, 2); #Task: Basic Training
}
elsif (plugin::check_handin(\%itemcount, 9998 => 1)) { #Short Sword*
quest::summonitem(59951); #Sharpened Short Sword
quest::emote("takes the weapon from you and begins to polish and balance it. When he hands it back to you it scarcely resembles the decaying old thing that you were using. 'There you go. That should work much better.'");
quest::popup("Weapons", "<br>Absor has fixed up your weapon and placed it back in your inventory. Pick up the improved weapon in your inventory and drop it on the rectangular icon in the middle of your inventory window. This will auto-equip the weapon back in your primary weapon slot.<br><br> <c \"#F07F00\">Open your Quest Window [ALT + Q] to check the next step in your Basic Training.<br><br>Hint: Use the find command (CTRL + F) to find the next npc for your basic training.</c>");
quest::updatetaskactivity(1448, 2); #Task: Basic Training
}
elsif (plugin::check_handin(\%itemcount, 9999 => 1)) { #Club*
quest::summonitem(59952); #Polished Club
quest::emote("takes the weapon from you and begins to polish and balance it. When he hands it back to you it scarcely resembles the decaying old thing that you were using. 'There you go. That should work much better.'");
quest::popup("Weapons", "<br>Absor has fixed up your weapon and placed it back in your inventory. Pick up the improved weapon in your inventory and drop it on the rectangular icon in the middle of your inventory window. This will auto-equip the weapon back in your primary weapon slot.<br><br> <c \"#F07F00\">Open your Quest Window [ALT + Q] to check the next step in your Basic Training.<br><br>Hint: Use the find command (CTRL + F) to find the next npc for your basic training.</c>");
quest::updatetaskactivity(1448, 2); #Task: Basic Training
}
elsif (plugin::check_handin(\%itemcount, 55623 => 1)) { #Dull Axe*
quest::summonitem(59953); #Sharpened Axe
quest::emote("takes the weapon from you and begins to polish and balance it. When he hands it back to you it scarcely resembles the decaying old thing that you were using. 'There you go. That should work much better.'");
quest::popup("Weapons", "<br>Absor has fixed up your weapon and placed it back in your inventory. Pick up the improved weapon in your inventory and drop it on the rectangular icon in the middle of your inventory window. This will auto-equip the weapon back in your primary weapon slot.<br><br> <c \"#F07F00\">Open your Quest Window [ALT + Q] to check the next step in your Basic Training.<br><br>Hint: Use the find command (CTRL + F) to find the next npc for your basic training.</c>");
quest::updatetaskactivity(1448, 2); #Task: Basic Training
}
elsif (plugin::check_handin(\%itemcount, 54229 => 1)) {
#Chunk of Bronze -> Bronze Gloomingdeep weapons
quest::say("Now let me see... Ah ha! Here ya go! A much better weapon to help fend off those nasties!");
if($class eq 'Warrior'){quest::summonitem(quest::ChooseRandom(54230,54231,54232));}
elsif($class eq 'Cleric'){quest::summonitem(54232);}
elsif($class eq 'Paladin'){quest::summonitem(quest::ChooseRandom(54231,54232));}
elsif($class eq 'Ranger'){quest::summonitem(quest::ChooseRandom(54230,54231,54232));}
elsif($class eq 'Shadowknight'){quest::summonitem(quest::ChooseRandom(54230,54231,54232));}
elsif($class eq 'Druid'){quest::summonitem(54232);}
elsif($class eq 'Monk'){quest::summonitem(54232);}
elsif($class eq 'Bard'){quest::summonitem(quest::ChooseRandom(54230,54231,54232));}
elsif($class eq 'Rogue'){quest::summonitem(quest::ChooseRandom(54230,54231,54232));}
elsif($class eq 'Shaman'){quest::summonitem(54232);}
elsif($class eq 'Necromancer'){quest::summonitem(54230);}
elsif($class eq 'Wizard'){quest::summonitem(54230);}
elsif($class eq 'Magician'){quest::summonitem(54230);}
elsif($class eq 'Enchanter'){quest::summonitem(54230);}
elsif($class eq 'Beastlord'){quest::summonitem(quest::ChooseRandom(54230,54232));}
elsif($class eq 'Berserker'){quest::summonitem(54233);}
}
elsif (plugin::check_handin(\%itemcount, 59954 => 1)) {
#Chunk of Iron -> Iron Gloomingdeep weapons
quest::say("Now let me see... Ah ha! Here ya go! A spiffy, new weapon to aid you in your adventures!");
if($class eq 'Warrior'){quest::summonitem(quest::ChooseRandom(54235,54236,54237));}
elsif($class eq 'Cleric'){quest::summonitem(54237);}
elsif($class eq 'Paladin'){quest::summonitem(quest::ChooseRandom(54236,54237));}
elsif($class eq 'Ranger'){quest::summonitem(quest::ChooseRandom(54235,54236,54237));}
elsif($class eq 'Shadowknight'){quest::summonitem(quest::ChooseRandom(54235,54236,54237));}
elsif($class eq 'Druid'){quest::summonitem(54237);}
elsif($class eq 'Monk'){quest::summonitem(54237);}
elsif($class eq 'Bard'){quest::summonitem(quest::ChooseRandom(54235,54236,54237));}
elsif($class eq 'Rogue'){quest::summonitem(quest::ChooseRandom(54235,54236,54237));}
elsif($class eq 'Shaman'){quest::summonitem(54237);}
elsif($class eq 'Necromancer'){quest::summonitem(54235);}
elsif($class eq 'Wizard'){quest::summonitem(54235);}
elsif($class eq 'Magician'){quest::summonitem(54235);}
elsif($class eq 'Enchanter'){quest::summonitem(54235);}
elsif($class eq 'Beastlord'){quest::summonitem(quest::ChooseRandom(54235,54237));}
elsif($class eq 'Berserker'){quest::summonitem(54238);}
}
plugin::return_items(\%itemcount);
}