my $has_hailed = 0;
sub EVENT_ENTERZONE {
#$instance = quest::CreateInstance("tutoriala", $client->CharacterID(), 999999999);
#quest::AssignToInstance($instance);
#quest::MovePCInstance(188, $instance, 159, 18, -25.8, 348);
quest::popup("Welcome to EverQuest!", "You regain consciousness!
Click 'OK' to begin the EverQuest tutorial.", 1);
}
sub EVENT_POPUPRESPONSE {
if ($popupid == 1) {
quest::popup("Meeting Arias", "As you stagger to your feet, you realize that someone is talking to you. Check the Main Chat Window below to see what he is saying.
Click 'OK' when you are ready to continue.", 2);
quest::signalwith(188000, 1); ##Arias
}
if ($popupid == 2) {
quest::popup("Basic Movement", "Mouse Look:
Hold the right mouse button and drag the mouse to look in that direction. With the right mouse button depressed, hold the left mouse button to move forward.
WASD Keys:
W moves forward. S moves backward. A and D turn left or right.
Arrow Keys:
Up Arrow moves forward. Down Arrow moves backward. Left Arrow and Right Arrow turn left or right.
Click 'OK' to continue.", 3);
}
if ($popupid == 3) {
quest::popup("Targeting Arias", "
Arias is an NPC, short for Non-Player Character.
The first step to interacting with an NPC is to target them. Target Arias by left clicking him. Notice that, when targeted, the name above his head will blink and his name will appear in the Target Window.
Target Arias and click 'OK' to continue.", 4);
quest::signalwith(188000, 2); ##Arias
}
if ($popupid == 4) {
quest::popup("Hailing Arias", "
Many friendly NPCs will talk to you if you 'Hail' them. To hail Arias, press the H key.
Note that you will need to stand near the NPC and in most cases it is necessary to have the NPC targeted.
Hail Arias to continue.", 5);
}
if ($popupid == 5) {
quest::popup("Hailing Arias", "
Many friendly NPCs will talk to you if you 'Hail' them. To hail Arias, press the H key.
Note that you will need to stand near the NPC and in most cases it is necessary to have the NPC targeted.
Hail Arias to continue.", 5);
}
if (($popupid == 6) && (!quest::istaskactive(208))) {
quest::popup("Speaking with Arias", "
Arias responded to your hail in the Main Chat Window.
Notice that the word [escape] is highlighted blue and set apart in brackets. This indicates a key word or phrase that you can use to reply to Arias.
To respond, left click on the word [escape] in the Main Chat Window.
Tell Arias 'I want to escape.' to continue.", 6);
}
if (($popupid == 7) && (!quest::istaskactive(208))) {
quest::popup("Quests", "
You have been offered your first quest: Jail Break! The Task Window displays a verbose list of all the steps associated with this quest.
Remember:
You can press [ALT + Q] to open the Quest Journal Window and examine your quests' details.
Press 'Accept' when you are ready to begin Arias's quest.", 7);
}
if (($popupid == 8) && (quest::istaskactivityactive(208, 1))) {
quest::popup("Find the Gloomingdeep Jailor", "
You have accepted your first quest: Jail Break! The Task Window displays a verbose list of all the steps associated with this quest. You can also see the brief version of the task steps in the Quest Overlay Window.
To complete Arias's quest, you must locate the Gloomingdeep Jailor, defeat him, loot the jailor's key, and then give the jailor's key to Arias.
Explore the area until you find the Gloomingdeep Jailor
Find the Gloomingdeep Jailor to continue.", 8);
quest::signalwith(188000, 3); ##Arias
}
if (($popupid == 9) && (quest::istaskactivityactive(208, 2))) {
quest::popup("Combat", "
You've found the Gloomingdeep Jailor!
First, left click the jailor to target him. Then approach him and activate auto attack by pressing the Q key or the 'Melee Attack' button in the Hot Button Window.
Use auto attack to defeat the Gloomingdeep Jailor!", 9);
quest::signalwith(188000, 4); ##Arias
}
if (($popupid == 10) && (quest::istaskactivityactive(208, 3))) {
quest::popup("Looting the Key", "
You must acquire the Gloomingdeep Jailor's Key. Find the key displayed in the Advanced Loot Window and click the green checkmark next to the key. This will place the key in your inventory.
Note that you can hover your cursor over the icons of the items in the Advanced Loot Window to see their names.
Loot the key from the Gloomingdeep Jailor's corpse to continue.", 10);
}
if (($popupid == 11) && (quest::istaskactivityactive(208, 4))) {
quest::popup("Giving Arias the Key", "
Arias needs the key to unlock the main gate.
To give an item to another character, open the Inventory Window, by pressing the 'I' key. Left click on an item to pick it up with your cursor. Then left click on the recipient. The Give Window will appear. Confirm the trade by clicking the 'Give' button.
Give the key to Arias.", 11);
}
if ($popupid == 12) {
quest::movepc(189, 2, -146, 19.6, 303.75); #tutorialb
}
}
sub EVENT_TASKACCEPTED {
quest::popup("Find the Gloomingdeep Jailor", "
You have accepted your first quest: Jail Break! The Task Window displays a verbose list of all the steps associated with this quest. You can also see the brief version of the task steps in the Quest Overlay Window.
To complete Arias's quest, you must locate the Gloomingdeep Jailor, defeat him, loot the jailor's key, and then give the jailor's key to Arias.
Explore the area until you find the Gloomingdeep Jailor
Find the Gloomingdeep Jailor to continue.", 8);
quest::updatetaskactivity(208, 0); #Jail Break!
quest::unique_spawn(188001, 0, 0, 7, 211, -38.87, 43.59); ##The_Gloomingdeep_Jailor
quest::signalwith(188000, 3); ##Arias
}
sub EVENT_TASK_STAGE_COMPLETE {
if ($activity_id == 1) {
quest::popup("Combat", "
You've found the Gloomingdeep Jailor!
First, left click the jailor to target him. Then approach him and activate auto attack by pressing the Q key or the 'Melee Attack' button in the Hot Button Window.
Use auto attack to defeat the Gloomingdeep Jailor!", 9);
quest::signalwith(188000, 4); ##Arias
}
if ($activity_id == 2) {
quest::popup("Looting the Key", "
You must acquire the Gloomingdeep Jailor's Key. Find the key displayed in the Advanced Loot Window and click the green checkmark next to the key. This will place the key in your inventory.
Note that you can hover your cursor over the icons of the items in the Advanced Loot Window to see their names.
Loot the key from the Gloomingdeep Jailor's corpse to continue.", 10);
}
if ($activity_id == 3) {
quest::popup("Giving Arias the Key", "
Arias needs the key to unlock the main gate.
To give an item to another character, open the Inventory Window, by pressing the 'I' key. Left click on an item to pick it up with your cursor. Then left click on the recipient. The Give Window will appear. Confirm the trade by clicking the 'Give' button.
Give the key to Arias.", 11);
}
}
sub EVENT_TASK_COMPLETE {
quest::popup("Join the Gloomingdeep Slave Revolt", "
Congratulations, you've finished your first quest!
Arias will lead you deeper into the Gloomingdeep Mines where a slave rebellion is underway. The outnumbered slaves could surely use your help and you have much more to learn from them.
Note:
The EQ button will be invaluable to you in your journeys. The dropdown menus accessed from the EQ button provide a link to every interface window and many actions as well.
Click 'OK' and Arias will lead you to the Gloomingdeep slave revolt!", 12);
}