Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub EVENT_SPAWN {
- $npc->SpellEffect(478, 3000, 0, 1, 0, 0);
- #$npc->SpellEffect(469, 3000, 0, 1, 0, 0);
- }
- sub EVENT_SAY {
- my $link1 = quest::saylink("Mission",1);
- my $link2 = quest::saylink("Tasks",1);
- my $link3 = quest::saylink("Epic 7",1);
- my $link4 = quest::saylink("Epic 8",1);
- if($text=~/Hail/i){
- plugin::Whisper("Greetings, $name! I am here to upgrade your epics , first you need to get the [$link2] to upgrade your epic. Once you have that you can get your [$link1] which you will need to complete the task.");
- #quest::popup("CAUTION", "CAUTION: BE SURE TO CHANGE YOUR ARMOR INTO ITS ORIGINAL FORM (PLATE) BEFORE USING THIS NPC.. ALSO MAKE SURE YOU GIVE THE NPC THE CORRECT ITEMS OR IT WILL EAT YOUR ITEMS!!");
- }
- if($text=~/Mission/i){
- plugin::Whisper("Here is what I have to offer.");
- plugin::Whisper("[$link3]");
- plugin::Whisper("[$link4]");
- #plugin::Whisper("[$link4]");
- #plugin::Whisper("[$link5]");
- #plugin::Whisper("[$link6]");
- }
- if($text=~/Epic 7/i || ($text=~/hail/i && plugin::GetExpeditionVariable( "instance_name" ) eq "The Battle of Mistmoore Castle")){
- $expedition_description = "The Battle of Mistmoore Castle";
- plugin::HandleExpeditionOffer(
- $expedition_description, #Instance Identifier
- "Two Groups - No Bots", #Description of Adventure (Ex: Group)
- 12, #Number of Players
- 769, #Task ID Association
- $expedition_description, #Description of Adventure
- 16000, #Duration Timer (Seconds)
- 3, #Version
- "mistmoore", #ZoneSN
- 122, #Instance Destination X
- -292, #Instance Destination Y
- -177, #Instance Destination Z
- 67.5, #Instance Destination H
- 106, #Required Average Level
- 1, #Minimum # of Players
- 1, #Is Shared Task (0/1)
- 248400, #Lockout Duration
- 0, ### Boot on completion
- 0, # X Compass Loc
- 0, # Y Compass Loc
- 0, # Z Compass Loc
- 1, # Force Initial Entry
- 60, # Minimum Level
- );
- }
- if($text=~/Task/i){
- plugin::Whisper("Yes here are some things you will need to upgrade your old 6.0 please bring them to me when you get them.");
- quest::taskselector(770);
- }
- }
- sub EVENT_ITEM {
- my %h = ("Warrior" => 101033,
- "Cleric" => 101026,
- "Paladin" => 101028,
- "Ranger" => 101034,
- "Shadowknight" => 101027,
- "Druid" => 101035,
- "Monk" => 101037,
- "Bard" => 101038,
- "Rogue" => 101029,
- "Shaman" => 101032,
- "Necromancer" => 101036,
- "Wizard" => 101023,
- "Magician" => 101025,
- "Enchanter" => 101030,
- "Beastlord" => 101031,
- "Berserker" => 101024);
- if (quest::get_data($client->CharacterID()."_epic70finished")) {#CHANGEME
- plugin::Whisper("You have already done this.");
- }
- if (plugin::check_handin(\%itemcount, 101018 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 101019 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 101020 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 101021 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100848 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100849 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100850 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100851 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100852 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100853 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100854 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100855 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100856 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100857 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100858 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100859 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100860 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100861 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100862 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- if (plugin::check_handin(\%itemcount, 100863 => 1)) {
- plugin::Whisper("Task has been updated, thank you!");
- }
- elsif (!quest::get_data($client->CharacterID()."_epic70finished")) {#CHANGEME
- if (plugin::check_handin(\%itemcount, 101022 => 1) && $class ~~ @{[keys %h]}) {
- quest::summonitem($h{$class});
- plugin::Whisper("Here you are.");
- quest::set_data($client->CharacterID()."_epic70finished",'1','F');#CHANGEME
- }
- } elsif (quest::get_data($client->CharacterID()."_epic70finished")) {#CHANGEME
- plugin::Whisper("You have already given me the Power Source $name.");
- }
- plugin::return_items(\%itemcount);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement