//EO-RED Questfile
//by Redrocco
//3-18-2012
//NPC/Quest ID: Class Recruiter 362/13 Parvo 421/1301 Karsun 422/1302
//Cody 423/1303 Nathan 424/1304 Derwin 420/1305 Brother John 402/83
//Father Mithras 403/84 Adriene 426/1306 Oskar 427/1308 Edson 428/1308
//Maldor 429/1309 Captain Hans 430/13010 Captain Bryce 427/13011
//Juilet 388/91
//================================================================
Main
{
questname "Class Recruitment"
version 1.0
}
State Begin
{
desc "Talk with the Recruiter"
action addnpctext(13,"As the millennium of the Great Cataclysm approaches, a general unrest is felt amongst the leaders of the various classes.");
action addnpctext(13,"Because of this it was deemed prudent to recruit willing adventurers for training into the classes they feel an affinity for.");
action addnpctext(13,"You should not make a decision lightly, as class assignment cannot be undone easily. Some say that divine intervention is needed.);
action addnpcinput(13,1,"Tell me about classes.");
action addnpcinput(13,2,"I am ready now.");
action addnpcinput(13,3,"I need to think it over more.");
rule inputnpc(1) goto about
rule inputnpc(2) goto class
rule inputnpc(3) goto nope
}
state class
{
action addnpctext(13,"Consider your choice carefully. Short of divine intervention, class selection is permanent.");
action addnpcinput(13,1,"Make me a Warrior");
action addnpcinput(13,2,"Make me a Archer");
action addnpcinput(13,3,"Make me a Mage");
action addnpcinput(13,4,"Make me a Cleric");
action addnpcinput(13,5,"I need more time to consider");
rule inputnpc(1) goto setw
rule inputnpc(2) goto seta
rule inputnpc(3) goto setm
rule inputnpc(4) goto setc
rule inputnpc(4) goto nope
}
//Archer
state seta
{
action addnpctext(13,"As I am only a recruiter, I cannot set your full class. After you talk with me you will need to seek out a trainer in one of the 4 major cities, Krinrode, Kamir, Rudona and Vejas.");
action addnpctext(13,"This trainer will give you a simple task to perform, after which he will award you your class and starting items.");
action setclass(22);
action giveitem(673,1);
action giveitem(674,1);
rule talkedtonpc(13) goto atrain
}
state atrain
{
desc "Seek out a trainer"
// Krinrode Archer
action addnpctext(1306,"So you want to be an Archer? Excellent choice. No need to get up close and personal with your killing. That is for meat-headed Warriors to do.")
action addnpctext(1306,"Although you obviously have the skills that it takes to become a full fledged Archer, you must still prove yourself through a light task.");
action addnpctext(1306,"Prove your skill by killing 5 red foxes.");
//Kamir Archer
action addnpctext(1307,"Greetings. You must be the new Hunter I was told about.");
action addnpctext(1307,"The rules say I have to put you to the test before I allow you to become a full fledged Archer.");
action addnpctext(1307,"I expect you to hunt, Hunter. First, go kill 10 geggimes. Don't forget to collect any fur dropped. Sometimes I have need of those.");
//Rudona Archer
action addnpctext(1308,"Hello, I have been expecting you.");
action addnpctext(1308,"It is my duty to assign you a suitable task in order for you to prove your worth.");
action addnpctext(1308,"The Barbarians have become a nuisance along the trail to the East. I need you to travel to their village and teach them a lesson.");
rule talkedtonpc(1308) goto rud.at1
rule talkedtonpc(1307) goto kam.at1
rule talkedtonpc(1306) goto krin.at1
}
//Rudona Archer Task
state rud.at1
{
desc "Kill 20 Barbarians"
rule killednpcs(11,20) goto rud.at2
}
state rud.at2
{
desc "Return to Edson"
action addnpctext(1308,"Excellent job. The Barbarians should think twice now before interfering with traffic on the trail.");
action addnpctext(1308,"The last caravan they raided was coming here from Krinrode. I need you to take word of the masacre to the Merchant's Association representitive there.");
rule talkedtonpc(1308) goto rudat3
}
state rud.at3
{
desc "Talk to Julliet"
action addnpctext(91,"That makes 3 caravans lost on that route this year. We should start hiring guards I suppose.");
action addnpctext(91,"I will notify the next of kin. Thank you for reporting this to me. Here is a little something for your trouble.");
action showhint("You have recieved 100 gold.");
action giveitems(1,100);
action giveitems(670,1);
rule talkedtonpc(91) goto rud.at4
}
state rud.at4
{
action addnpctext(91,"As far as I am concerned you have proven yourself. I am telling Edson so in this dispatch.");
rule talkedtonpc(91) goto rud.at5
}
state rud.at5
{
desc "Return to Edson"
action addnpctext(1308,"Welcome back. I see from the report that Juiliet thought highly of you. Good she is usually a good judge of character.");
action addnpctext(1308,"The Merchants Association can be a decent source of income, they usually have a recruiter hanging around the guild hall looking for adventurers to take a task.");
action addnpctext(1308,"This completes your probationary period, it is my pleasure to welcome you into the ranks of the Archers. May your aim always be true.");
rule talkedtonpc(1308) goto rud.at.payout
}
state rud.at.payout
{
desc "Archer"
action giveexp(2500);
action setclass(5);
action playsound(61);
action giveitems(676,1);
}
//Kamir Archer Task
state kam.at1
{
desc "Kill 10 Geggimes"
rule killednpcs(103,10) goto kam.at2
}
state kam.at2
{
desc "Return to Oskar"
action addnpctext(1307,"So,... You can hunt. You may actually make a passable Archer.");
action addnpctext(1307,"Deliver this dispatch to Captain Bryce at Gorria Tower. He may have an additional task for you. Good Luck.");
action giveitems(670,1);
rule talkedtonpc(1307) goto kam.at3
}
state kam.at3
{
desc "Talk to Bryce"
action addnpctext(1311,"You must be the hunter Oskar told me about. He recommends you for further training.");
action addnpctext(1311,"I need you to travel to the icy region of Krinrode. Black Penguin feathers are needed for repairs to some of the equipment here");
rule talkedtonpc(1311) goto kam.at4
rule lostitems(670,1) goto kam.at2
}
state kam.at4
{
desc "Aquire 5 Black Penguin Feathers"
action removeitems(670,1);
rule gotitems(555,5) goto kam.at5
}
state kam.at5
{
desc "Return to Bryce"
action addnpctext(1311,"Good job Hunter, now I can make some repairs around here.");
action addnpctext(1311,"I have given you an up-check on your evaluation, return the dispatch to Oskar and he should complete your registration into the ranks of the Archers.");
action giveitems(670,1);
rule talkedtonpc(1311) goto kam.at6
rule lostitems(555,5) goto kam.at4
}
state kam.at6
{
desc "Return to Oskar"
action addnpctext(1307,"Ah, you have returned. I hope Bryce wasnt too hard on you.");
action addnpctext(1307,"Judging from this report you will make an excellent Archer. Welcome to the Brotherhood.");
rule talkedtonpc(1307) goto kam.at.payout
rule lostitems(670,1) goto kam.at5
}
state kam.at.payout
{
desc "Archer"
action removeitems(670,1);
action giveitems(675,2);
action giveexp(2500);
action playsound(61);
}
//Krinrode Archer Task
state krin.at1
{
desc "Kill 10 Red Foxes"
rule killednpcs(278,10) goto krin.at2
}
state krin.at2
{
desc "Return to Adriene"
action addnpctext(1306,"Back already? Well, that didn't take long.");
action addnpctext(1306,"I need you do deliver a message to the guard Captain at Skarpina tower. Just deliver the dispatch and return here.");
action giveitems(670,1);
rule talkedtonpc(1306) goto krin.at3
}
state krin.at3
{
desc "Deliver the dispatch to Skarpina tower"
action addnpctext(13010,"A message from Adriene? I don't hear from her often enough. We were engaged once, you know.");
action addnpctext(13010,"This was before I entered Imperial service, we were both very young.");
action addnpctext(13010,"After I joined the guard, we were apart so much that we decided it was best if we went our separate ways. She rose quickly in the class hierarchy, becoming the Master trainer for the Krinrode region as you know.");
action addnpctext(13010,"I want to include something special in my reply, she always loved flowers. Bring me a couple of flowies to put in it, please.");
rule lostitems(670,1) goto krin.at2
rule talkedtonpc(13010) goto krin.at4
}
state krin.at4
{
desc "Collect flowies for Hans"
action removeitems(670,1);
rule gotitems(480,3) goto krin.at5
}
state krin.at5
{
desc "Take the flowies to Hans"
action addnpctext(13010,"You got them? Great, I am sure she will be pleased. Thanks for helping me out with her.");
action addnpctext(13010,"You have been a great help and I will be giving you a good review on your evaluation. Take this to Adriene.");
action giveitems(670,1);
rule lostitems(480,3) goto krin.at4
rule talkedtonpc(13010) goto krin.at6
}
state krin.at6
{
desc "Return to Adriene"
action removeitems(480,3);
action addnpctext(1306,"Wonderful, you have returned. Hans is an old friend, it was sweet of him to send the flowies."
action addnpctext(1306,"You have proven yourself worthy to be admitted to the ranks of the Archer class, entitled to all the privileges thereof.");
rule lostitems(670,1) goto krin.at5
rule talkedtonpc(1306) goto krin.at.payout
}
state krin.at.payout
{
desc "Archer"
action removeitems(670,1);
action giveexp(2500);
action giveitem(507,1);
action giveitem(297,1);
action removeitems(673,1);
action playsound(61);
}
// Warrior
state setw
{
action addnpctext(13,"As I am only a recruiter, I cannot set your full class. After you talk with me you will need to seek out a trainer in one of the 4 major cities, Krinrode, Kamir, Rudona and Vejas.");
action addnpctext(13,"This trainer will give you a simple task to perform, after which he will award you your class and starting items.");
action setclass(7);
rule talkedtonpc(13) goto wtrain
}
state wtrain
{
desc "Seek out a trainer"
// Krinrode Warrior
action addnpctext(1301,"Ah, a new recruit. Glad to have you with us, if the legends are true we will need every able-bodied warrior soon");
action addnpctext(1301,"But first, I have a minor task for you.");
action addnpctext(1301,"Deliver this dispatch to the Captain of the Guard at the Kamir guard tower. He may have additional instructions for you. Complete your task and return here.");
action giveitem(670,1);
// Kamir Warrior
action addnpctext(1302,"So you decided you want to be a Warrior? Truly this was a wise choice. Everyone knows that Warriors will be the ones to rule when all is said and done.");
action addnpctext(1302,"Although you are certainly capable, you must still perform a small task to prove yourself. It is a mere formality, I assure you.");
action addnpctext(1302,"South of here there is a forest where geggimes make their lair, if you could bring me 3 geggime furs it would be proof enough of your ability for me. You will find the entrance to the forest on the west side of the Kamir road.");
// Rudona Warrior
action addnpctext(1303,"You? A warrior?");
action addnpctext(1303,"I suppose I have to let you try, seeing as how you have already been recruited at the cadet level.");
action addnpctext(1303,"That means I have to find an appropriate task for you to complete. Hmmmm Father Mithras could use someone to retrieve the Blessed Bottle. I suppose that will suffice. Go to the church and get the details from him");
// Vejas Warrior
action addnpctext(1304,"Another Cadet, good. Recruitment seems to be picking up of late.");
action addnpctext(1304,"There has been trouble lately in the Catacombs beneath the grave yard here in Vejas. Old Grect is reporting the dead are increasingly restless.");
action addnpctext(1304,"If you were to go kill a few skeletons it would be a service to the city of Vejas.");
rule talkedtonpc(1301) goto krin.wt1
rule talkedtonpc(1302) goto kam.wt1
rule talkedtonpc(1303) goto rud.wt1
rule talkedtonpc(1304) goto vej.wt1
}
// Vejas Warrior Task
state vej.wt1
{
desc "Kill 20 skeletons."
rule killednpcs(17,20) goto vej.wt2
}
state vej.wt2
{
desc "Return to your trainer"
action addnpctext(1304,"Well done, old Grect can do his job a little easier now because of you.");
action addnpctext(1304,"With all these new cadets, demand for weapons has increased. We currently have an arrangement with the forge in Lizard Lick to supply us with iron bars.");
action addnpctext(1304,"I need you to deliver this dispatch to Derwin, in Lizard Lick. I am asking them if they can increase production.");
action giveitems(670,1);
rule talkedtonpc(1304) goto vej.wt3
}
state vej.wt3
{
desc "Deliver the dispatch to Derwin"
action addnpctext(1305,"I was wondering when someone would show up.");
action addnpcinput(1305,1,"I have a dispatch for you.");
rule inputnpc(1) goto vej.wt4
}
state vej.wt4
{
action addnpctext(1305,"They want us to increase production? The timing is really bad. It is cactus season and I have to spend some time gathering cactus juice.");
action addnpctext(1305,"You will need to gather some for me while I make arrangements for the new orders. 15 should be enough".);
rule talkedtonpc(1305) goto vej.wt5
}
state vej.wt5
{
desc "Gather 15 vials of Cactus Juice"
rule gotitems(577,15) goto vej.wt6
}
state vej.wt6
{
desc "Return the juice to Derwin"
action addnpctext(1305,"Ah good, you are back. I hope you didn't have any problems.");
rule talkedtonpc(1305) goto vej.wt7
rule lostitems(577,15) goto vej.wt5
}
state vej.wt7
{
action removeitems(577,15);
action addnpctext(1305,"Tell Nathan that we should be able to increase production. All of my workers are willing to make the extra effort.");
rule talkedtonpc(1305) goto vej.wt8
}
state vej.wt8
{
desc "Return to Nathan"
action addnpctext(1304,"Excellent, you have returned from Lizard Lick. Everything went well I hope?");
action addnpcinput(1304,1,"Yes, Derwin sends his regards.");
rule inputnpc(1) goto vej.wt.payout
}
state vej.wt.payout
{
desc "Warrior"
action setclass(6);
action giveexp(2500);
action giveitem(416,1);
action giveitem(27,1);
action playsound(61);
}
// Rudona Warrior Task
state rud.wt1
{
desc "Talk to Father Mithras"
action addnpctext(84,"Ah good, I see they found someone to retrieve the Blessed Bottle for me");
action addnpctext(84,"It was needed in Vejas, but now it needs to return here to its traditional resting place.");
action addnpctext(84,"Currently Brother John has possession of it. Please travel to Vejas and retrieve it for me, you should have no difficulty.");
rule talkedtonpc(84) goto rud.wt2
}
state rud.wt2
desc "Talk to Brother John"
action addnpctext(83,"I would like to return the Bottle but I am afraid it is impossible at this time.");
action addnpctext(83,"One of my parishioners is deathly sick and I need the Bottle to craft the cure. Unfortunately, I still need 5 more skeleton bones to complete it. I cant allow you to have the Bottle until I have those.");
rule talkedtonpc(83) goto rud.wt3
}
state rud.wt3
{
desc "Acquire 5 Skeleton Bones"
rule gotitems(261,5) goto rud.wt4
}
state rud.wt4
{
desc "Talk to Brother John"
action addnpctext(83,"Great job, now I can craft a cure, and you can have the bottle");
rule lostitems(261,5) goto rud.wt3
rule talkedtonpc(83) goto rud.wt5
}
state rud.wt5
{
desc "Return to Father Mithras"
action removeitem(261,5);
action giveitem(660,1);
action addnpctext(84,"You have returned the Blessed Bottle. Now I will no longer worry over its security, many alchemists covet it for its transmutational powers.");
action addnpctext(Your trainer will surely reward you suitably.");
rule talkedtonpc(84) goto rud.wt6
}
state rud.wt6
{
desc "Talk to your trainer"
action addnpctext(1303,"Mithras tells me you retrieved the relic for him, good job. This means you have passed your initiation into the ranks of the Warrior class.");
action removeitems(660,1);
rule talkedtonpc(1303) goto rud.wt.payout
}
state rud.wt.payout
{
action setclass(6);
action giveitem(179,1);
action giveitem(447,1);
action giveexp(2000);
action playsound(61);
}
// Kamir Warrior Task
state kam.wt1
{
desc "Acquire 3 Geggime Furs"
rule killednpcs(103,3) goto kam.wt2
}
state kam.wt2
{
desc "Return with the furs"
action addnpctext(1302,"Great, I knew you could do it.");
action addnpctext(1302,"All thats left is to deliver your registration to the main office in Vejas. Once you have taken care of that your class assignment will be official.");
action addnpctext(1302,"We can no longer complete the process here due to some discrepancies in the books left by my predecessor. We are trying to become rectified though.");
action giveitem(670,1);
rule talkedtonpc(1302) goto kam.wt3
rule lostitems(103,3) goto kam.wt1
}
state kam.wt3
{
desc "Deliver your registration"
action addnpctext(1304,"Ah, a recruit from Kamir. Things seem to be improving at that office.");
action addnpctext(1304,"It says here you completed your training successfully and are fully qualified for our class.");
action addnpcinput(1304,1,"I am female");
action addnpcinput(1304,2,I am Male");
rule inputnpc(1) goto kam.wt.fpayout
rule inputnpc(2) goto kam.wt.mpayout
}
state kam.wt.fpayout
{
desc "Warrior"
action giveitem(345,1);
action giveexp(2500);
action giveitem(209,1);
action setclass(6);
action playsound(61);
}
state kam.wt.mpayout
{
desc "Warrior"
action giveitem(344,1);
action giveexp(2500);
action giveitem(209,1);
action setclass(6);
action playsound(61);
}
//===================================================
// Krinrode Warrior Task
state krin.wt1
{
desc "Talk to the Captain at Kamir"
action addnpctext(13011,"Well, you proved you can get from point A to point B at any rate");
action addnpctext(13011,"Let's see how well you handle yourself in melee. We don't have a training area here, as this facility is being used as a prison. The nearest training room is at the Gorria tower, you may have passed it on the way here.");
action addnpctext(13011,"Report to the Captain there, he will give you further instruction.");
rule lostitems(670,1) goto wtrain
rule talkedtonpc(13011) goto krin.wt2
}
state krin.wt2
{
desc "Report to Gorria Tower"
action addnpctext(13012,"Another recruit to train? Where do they keep finding you guys?");
action addnpctext(13012,"Orders are orders though. Here's the deal, theres a training room in the basement. Go down there and kill 25 of the training golums. If you cant manage that you have no business being a warrior.");
action removeitem(671,1)
rule talkedtonpc(13012) goto krin.wt3
}
state krin.wt3
{
desc "Kill 25 Practice Golums"
rule killednpcs(1302,25) goto krin.wt4
}
state krin.wt4
{
desc "Return to the Captain"
action addnpctext(13012,"Well it seems as if you can handle yourself after all, congratulations, I will endorse your papers.");
action addnpctext(13012,"Take this dispatch back to the Master in Krinrode to be entered into our rolls.");
action giveitem(670,1);
rule talkedtonpc(13012) goto krin.wt5
}
state krin.wt5
{
desc "Return to the Trainer in Krinrode"
action addnpctext(1301,"Excellent. I see you have returned");
action addnpctext(1301,"According to this report you completed your training successfully. That means you can be inducted into the Warrior class and enjoy the perks and benefits that come with it.");
rule lostitems(670,1) goto krin.wt4
rule talkedtonpc(1301) goto krin.wt.payout
}
state krin.wt.payout
{
desc "Warrior"
action setclass(6);
action giveexp(2500);
action removeitems(670,1);
action giveitem(209,1);
action giveitem(207,1);
action playsound(61);
}
state nope
{
reset();
}
state about
{
action addnpcinput(13,1,"Tell me about Warriors.");
action addnpcinput(13,2,"Tell me about Mages.");
action addnpcinput(13,3,"Tell me about Clerics.");
action addnpcinput(13,4,"Tell me about Archers.");
rule InputNpc(0) goto nope
rule InputNpc(1) goto warrior
rule InputNpc(2) goto mage
rule InputNpc(3) goto cleric
rule InputNpc(4) goto archer
}
state warrior
{
action AddNpcText(1, "Warriors are the tanks of Worlds Apart and are capable of standing toe to toe with monsters while absorbing massive damage.");
action addnpctext(1,"Warriors gain 1 damage for every 2 str. 1 accuracy for every 4 agi. 1 evasion for every 3 agi. And 1 defense for every 2 con.");
rule talkedtonpc(1) goto endit
}
state mage
{
action AddNpcText(1, "Mages are the wielders of offensive magic. Although they are among the weakest characters for melee they are capable of doing the more damage than any other class.");
action addnpctext(1,"Mages gain 1 damage for every 2 int. 1 accuracy for every 3 wis. 1 evasion for every 3 agi. And 1 defense for every 4 con.");
rule talkedtonpc(1) goto endit
}
state cleric
{
action AddNpcText(1, "Clerics are the healers of Worlds Apart. A high level Cleric is almost essential for partying in some of the more advanced areas.");
action addnpctext(1,"Clerics gain 1 damage for every 3 wis. 1 accuracy for every 2 int. 1 evasion for every 3 agi. And 1 defense for every 2.5 con.");
rule talkedtonpc(1) goto endit
}
state archer
{
action AddNpcText(1,"Archers are very powerful characters in Worlds Apart. Although they are not very capable at melee they do high damage from a distance. Archers work best when partied with a Warrior.");
action addnpctext(1,"Archers gain 1 damage for every 2.5 agi. 1 accuracy for every 3.75 agi. 1 evasion for every 2 cha. And 1 defense for every 3 con.");
rule talkedtonpc(1) goto endit
}