/* **************************************************** *
** **************************************************** **
** Filename:    skillInf.js                             **
** Author:      Kain McBride (Leprichaun)               **
** Purpose:     Cross Platform Skill Information Set	**
**              for use by members of Vampires: The 	**
**              Dark Alleyway, created by Raven Black.	**
** Start Date:  06.12.2008                              **
** Completed:   06.12.2008                              **
** Total Lines: Javascript: 299; HTML: 57; TOTAL: 356   **
** **************************************************** **
 * **************************************************** */
var stQUOTE = "'";

function selectGUILD()
 {
  iGUILD = document.getElementById('guilds').selectedIndex;
  var stHTML = "<select id='skillNames' class='selLIAM2' size=10 style='width:100%;' onChange='getSkillInf();'>";
  switch (iGUILD)
   {
    case 0:
     stHTML = stHTML + getALL();
     break;
    case 1:
     stHTML = stHTML + getAG();
     break;
    case 2:
     stHTML = stHTML + getEM();
     break;
    case 3:
     stHTML = stHTML + getIM();
     break;
    case 4:
     stHTML = stHTML + getTH();
     break;
    case 5:
     stHTML = stHTML + getTR();
     break;
   }
  stHTML = stHTML + "</select>";
  document.getElementById('skillSet').innerHTML = stHTML;
 }

function getAG()
 {
  return "<option value='3'>Charisma 1</option><option value='4'>Charisma 2</option><option value='5'>Charisma 3</option><option value='9'>Perception</option>";
 }

function getEM()
 {
  return "<option value='6'>Locate 1</option><option value='7'>Locate 2</option><option value='8'>Locate 3</option><option value='18'>Surprise</option>";
 }

function getIM()
 {
  return "<option value='14'>Stamina 1</option><option value='15'>Stamina 2</option><option value='16'>Stamina 3</option><option value='17'>Suction</option>";
 }

function getTH()
 {
  return "<option value='11'>Shadows 1</option><option value='12'>Shadows 2</option><option value='13'>Shadows 3</option><option value='22'>Thievery 1</option><option value='23'>Thievery 2</option><option value='24'>Thievery 3</option>";
 }

function getTR()
 {
  return "<option value='0'>Celerity 1</option><option value='1'>Celerity 2</option><option value='2'>Celerity 3</option><option value='19'>Telepathy 1</option><option value='20'>Telepathy 2</option><option value='21'>Telepathy 3</option>";
 }

function getALL()
 {
  return "<option value='0'>Celerity 1</option><option value='1'>Celerity 2</option><option value='2'>Celerity 3</option><option value='3'>Charisma 1</option><option value='4'>Charisma 2</option><option value='5'>Charisma 3</option><option value='6'>Locate 1</option><option value='7'>Locate 2</option><option value='8'>Locate 3</option><option value='9'>Perception</option><option value='10'>Second Sight</option><option value='11'>Shadows 1</option><option value='12'>Shadows 2</option><option value='13'>Shadows 3</option><option value='14'>Stamina 1</option><option value='15'>Stamina 2</option><option value='16'>Stamina 3</option><option value='17'>Suction</option><option value='18'>Surprise</option><option value='19'>Telepathy 1</option><option value='20'>Telepathy 2</option><option value='21'>Telepathy 3</option><option value='22'>Thievery 1</option><option value='23'>Thievery 2</option><option value='24'>Thievery 3</option>";
 }

function getSkillDescription()
 {
  var stCOST = "<textarea rows=10 class='taLIAM2' style='width:100%'>Cost and Description\n";
  var iSKILL = document.getElementById('skillNames').options[document.getElementById('skillNames').selectedIndex].value;
  switch (parseInt(iSKILL))
   {
    case 0:
     /* Celerity 1 */
     stCOST = stCOST + "\nPrice: 4,000 coin\n($3 through donation)\n\nDesctiption\n\nCelerity 1 is a great skill to get, it will reduce your AP Regen time from 30 minutes / AP, to 25 minutes / AP. Doesn't seem like a whole lot, but it's one small step toward Celerity 3, and it does make a very big difference in how fast you can get somewhere.";
     break;
    case 1:
     /* Celerity 2 */
     stCOST = stCOST + "\nPrice: 8,000 coin\n($5 through donation)\n\nDescription\n\nCelerity 2 is a great skill to get, like Celerity 1, it will reduce your AP Regen time, only this time it'll reduce it from 25 minutes to 20 minutes. That's 3 AP / Hour instead of 2, making some serious progress here. :)";
     break;
    case 2:
     /* Celerity 3 */
     stCOST = stCOST + "\nPrice: 17,500 coin\n($10 through donation)\n\nDescription\n\nCelerity 3 is the ultimate in celerity, it will reduce your AP regen time from 20 minutes, to 15. That's 4 AP regenerated every hour, a huge difference from that horrible 2 AP / hour. The city is yours, run with it.";
     break;
    case 3:
     /* Charisma 1 */
     stCOST = stCOST + "\nPrice: 1,000 coin\n($3 through donation)\n\nDescription\n\nCharisma 1 will get you on your way to being a more charismatic vampire. Charisma 1 will reduce prices at shops (except the cloyster of secrets) by 3%. (diamond ring, normal: 100,000 coin, charisma 1: 97,000 coin). It will also reduce the cost of asking a human for directions from 5 ap to 4 ap. Beyond that, it reduces the prices at the pubs. All around, a great skill to get, and not a very difficult quest. If you don't know a lot of vampires in the city, go to the COVE and submit your quest to their quests database. Please clear your quest when you're finished. (http://groups.yahoo.com/group/The_Center_Of_Vampiric_Enlightenment)";
     break;
    case 4:
     /* Charisma 2 */
     stCOST = stCOST + "\nPrice: 3,000 coin\n($5 through donation)\n\nDescription\n\nWith Charisma 2 you are a more charismatic vampire. Charisma 2 will reduce prices at shops (except the cloyster of secrets) by 7%. (diamond ring, normal: 100,000 coin, charisma 2: 93,000 coin). It will also reduce the cost of asking a human for directions from 5 ap to 2 ap. Beyond that, it reduces the prices at the pubs. All around, a great skill to get, and not a very difficult quest. If you don't know a lot of vampires in the city, go to the COVE and submit your quest to their quests database. Please clear your quest when you're finished. (http://groups.yahoo.com/group/The_Center_Of_Vampiric_Enlightenment)";
     break;
    case 5:
     /* Charisma 3 */
     stCOST = stCOST + "\nPrice: 5,000 coin\n($10 through donation)\n\nDescription\n\nWith Charisma 3, charisma is your middle name. Charisma 3 will reduce prices at shops (except the cloyster of secrets) by 10%, ontop of that, the shop keeper gives you a coin back for every item you purchase. (diamond ring, normal: 100,000 coin, charisma 1: 89,999 coin). It will also reduce the cost of asking a human for directions from 5 ap to 1 ap. Beyond that, it reduces the prices at the pubs. A definate 'must' for warriors or drinkers in the city. If you don't know a lot of vampires in the city, go to the COVE and submit your quest to their quests database. Please clear your quest when you're finished. (http://groups.yahoo.com/group/The_Center_Of_Vampiric_Enlightenment)";
     break;
    case 6:
     /* Locate 1 */
     stCOST = stCOST + "\nPrice: 1,500 coin\n($3 through donation)\n\nDescription\n\nWith Locate 1, well, you can know what direction someone you're looking for is in. Its not all that helpful, but has its moments I guess. Mind you, I can't think of any off hand.";
     break;
    case 7:
     /* Locate 2 */
     stCOST = stCOST + "\nPrice: 4,000 coin\n($5 through donation)\n\nDescription\n\nWith Locate 2, you now know which direction the target is in, and how many AP away they are. Still not extreemly useful, but there are a couple places Locate 2 is better than locate 3. Look at the bottom of quest information if you're tryin to figure out what situations this might be more helpful in.";
     break;
    case 8:
     /* Locate 3 */
     stCOST = stCOST + "\nPrice: 15,000 coin\n($10 through donation)\n\nDescription\n\nWith Locate 3, you know where the target is! Or, at least which street intersection they're on. Still, very useful! Use it through second sight if you have it to save some AP and get more information.";
     break;
    case 9:
     /* Perception */
     stCOST = stCOST + "\nPrice: 7,500 coin\n($5 through donation)\n\nDescription\n\nPerception allows you to see Vampire Hunters 'before' you run into them. They appear as green humans, allowing you to avoid them if you so choose. Also, it indicates if vampires have coin on hand, originally this was to list vampires who had a certain amount of coin (minimum) on hand, but now seems to be effected by damn near anyone who has coin on hand, and some who don't.";
     break;
    case 10:
     /* Second Sight */
     stCOST = stCOST + "\nPrice: n/a\n($5 through donation)\n(comes with a free level 1 power)\n\nDescription\n\nSecond Sight lets you see information about a vampire. This information includes their current powers, childers, siblings, sire, blood level, id number, and location based on your level of locate. No locate, no location.";
     break;
    case 11:
     /* Shadows 1 */
     stCOST = stCOST + "\nPrice: 1,000 coin\n($3 through donation)\n\nDescription\n\nShadows 1 will allow you to slip into the shadows faster, it use to be 4 days to slip into the shadows, and 4 more days to slip into the deep shadows, moved to 3 and 3 with shadows 1, but looking at the 'whats new' section recently, I'm not entirely sure if this has remained the same.";
     break;
    case 12:
     /* Shadows 2 */
     stCOST = stCOST + "\nPrice: 2,000 coin\n($5 through donation)\n\nDescription\n\nShadows 2 will allow you to slip into the shadows faster, it use to be 3 days to slip into the shadows with shadows 1, and 3 more days to slip into the deep shadows, moved to 2 and 2 with shadows 2, but looking at the 'whats new' section recently, I'm not entirely sure if this has remained the same.";
     break;
    case 13:
     /* Shadows 3 */
     stCOST = stCOST + "\nPrice: 4,000 coin\n($10 through donation)\n\nDescription\n\nShadows 3 will allow you to slip into the shadows faster, it use to be 2 days to slip into the shadows with shadows 2, and 2 more days to slip into the deep shadows, moved to 1 and 1 with shadows 3, but looking at the 'whats new' section recently, I'm not entirely sure if this has remained the same.";
     break;
    case 14:
     /* Stamina 1 */
     stCOST = stCOST + "\nPrice: 1,000 coin + 500 Blood\n($3 through donation)\n\nDescription\n\nStamina 1 will give you more stamina, very straight forward, no? It increases your maximum AP by 10, though your AP may fall because of the blood you lose, but when you get back the 500 pints you lost through this quest, your max AP will be 10 higher than it was before.";
     break;
    case 15:
     /* Stamina 2 */
     stCOST = stCOST + "\nPrice: 2,500 coin + 1000 Blood\n($5 through donation)\n\nDescription\n\nStamina 2 will give you even more stamina! It increases your maximum AP by another 10, though your AP may fall because of the blood you lose, but when you get back the 1000 pints you lost through this quest, your max AP will be 10 higher than it was before.";
     break;
    case 16:
     /* Stamina 3 */
     stCOST = stCOST + "\nPrice: 5,000 coin + 1500 Blood\n($10 through donation)\n\nDescription\n\nStamina 3 will give you more stamina... It increases your maximum AP by yet another 10, though your AP may fall because of the blood you lose, but when you get back the 1500 pints you lost through this quest, your max AP will be 10 higher than it was before.";
     break;
    case 17:
     /* Suction */
     stCOST = stCOST + "\nPrice: 7,500 coin\n($5 through donation)\n\nDescription\n\nSuction will elongate your fangs, allowing you to drain an aditional pint with every bite. This means you will get 2 pints from fellow vampires, and 2 to 4 pints from humans.";
     break;
    case 18:
     /* Surprise */
     stCOST = stCOST + "\nPrice: 20,000 coin\n($5 through donation)\n\nDescription\n\nCostly, no? I guess this is so costly because it saves you on scrolls of turning (500 coin each), so over all you'll save coin. Anyway, with surprise you're able to walk into those blue squares you see sometimes on the map. Sometimes a blue square is packed beyond the point that surprise will work on it though. Oh well, usually it'll let you get into a blue bank.";
     break;
    case 19:
     /* Telepathy 1 */
     stCOST = stCOST + "\nPrice: 2,500 coin + 10AP\n($3 through donation)\n\nDescription\n\nNo, its not a perminant loss of 10 ap, it just takes 10 ap to complete the training. Anyway, Telepathy 1 will allow you to send telepathic messages to other vampires. These messages will not be seen by the other vampires in the square. Good for saying things you might not want everyone to see. It does take a lot of AP though, 10 AP to send a telepathic message to a random vampire, 5 ap to send a telepathic message to a sire or childer.";
     break;
    case 20:
     /* Telepathy 2 */
     stCOST = stCOST + "\nPrice: 5,000 coin + 10AP\n($5 through donation)\n\nDescription\n\n... If you got the AP back after Telepathy 1, of course you'll get it back after telepathy 2... Telepathy 2 is the same as Telepathy 1, but it allows you to send messages to random vampires for 6 ap, sires and childers for 3 ap. Much more cost effective on the AP side of things...";
     break;
    case 21:
     /* Telepathy 3 */
     stCOST = stCOST + "\nPrice: 10,000 coin + 10AP\n($10 through donation)\n\nDescription\n\n... yes... you lose your ap forever, they're gone...\n\nok, no you keep your ap, they regen, not a big deal. Anyway, Telepathy 3 reduces the cost of sending messages even further, 2 AP for random vampires, 1 ap for sire and children.";
     break;
    case 22:
     /* Thievery 1 */
     stCOST = stCOST + "\nPrice: 2,000 coin\n($3 through donation)\n\nDescription\n\nFinally, a way to get your hands in other people's pockets... With thievery 1 you can steal UP TO 25%, means 0% to 25% of the coin your target has on hand.";
     break;
    case 23:
     /* Thievery 2 */
     stCOST = stCOST + "\nPrice: 5,000 coin\n($5 through donation)\n\nDescription\n\nSo you're a full fledged pick pocket eh? Good for you! 0% to 50% of what your target has on hand now, congrats!";
     break;
    case 24:
     /* Thievery 3 */
     stCOST = stCOST + "\nPrice: 10,000 coin\n($10 through donation)\n\nDescription\n\nwhats mine is mine, whats yours is... also... mine... Peaking out at 75% of what your target has on hand, you got a good deep reach into them deep pockets. Unfortunately, it still bottoms out at 0% so you might not always get a lot...";
     break;
   }
  stCOST = stCOST + "</TEXTAREA>"; 
  document.getElementById('skillDescription').innerHTML = stCOST;
 }

function getSkillQuest()
 {
  var stQUEST = "<textarea rows=10 class='taLIAM2' style='width:100%'>Quest Information\n";
  var iSKILL = document.getElementById('skillNames').options[document.getElementById('skillNames').selectedIndex].value;
  switch (parseInt(iSKILL))
   {
    case 0:
     /* Celerity 1 */
     stQUEST = stQUEST + "\nThe guild keeper will hand you an object, you must run with it to the pub he or she designates. There, you must order a drink from the bartender, who will in turn give you another item. That bartender will send you to another bartender, and then one more beyond that.\n\nExtra Information\nCelerity 1 is the hardest quest in the game; don't be surprised if you fail it the first time. Why is it so hard? Well, odds are your quest won't be entirely possible. I suggest you buy at least 1 teleport before starting this quest, if you have a sire or companion who you speak to often, and can get them to agree to help with your quest, bypass the teleport and buy some scrolls of succour.\n\nYou cannot use a transit on this quest, you do not have to buy blood when they say to. Run fast, don't bite humans along the way; get your quest done.\n\nYou have 3 days to make it to each pub, after you reach a pub and buy your drink, you are given another 3 days.";
     break;
    case 1:
     /* Celerity 2 */
     stQUEST = stQUEST + "\nThe guild keeper will hand you an object, unlike celerity 1, you must go to 6 pubs this time. I'm not going to write it out, so if you need further explanation, look at celerity 1. This quest is easier than celerity 1, even though it's longer; I still suggest you carry a teleport or scrolls of succour. Even an appropriately used scroll of displacement, or sprint potions can help.\n\nYou have 3 days to make it to each pub, after you reach a pub and buy your drink, you are given another 3 days.";
     break;
    case 2:
     /* Celerity 3 */
     stQUEST = stQUEST + "\nLook at Celerity 1, the difference here is you have to go to 9 pubs for items. Your AP Regen time for this quest is 20 minutes / ap, meaning you can regen 216 ap over the period of the quest. This means, its not possible to fail if you stay on track and don't bite a lot of humans / vampires or rob people on your way. As such, you don't need a teleport or succours for this quest, but if you use them, you can accellorate this quest to be completed in 1 day (like the rest of them).\n\nYou have 3 days to make it to each pub, after you reach a pub and buy your drink, you are given another 3 days.";
     break;
    case 3:
     /* Charisma 1 */
     stQUEST = stQUEST + "\nTalk to the guild keeper, he or she will inform you of a pub in the city which is having hard times. Not a whole lot of customers coming in, so help them out. Send 3 vampires there who have 500 or more pints of blood, they must say: " + stQUOTE + "[your vamp name here] sent me" + stQUOTE + " (for instance, Leprichaun sent me). Once all 3 have said it, your quest is complete. Do not step in the pub during the quest or you will fail instantly.\n\nYou have 10 days to complete this quest.";
     break;
    case 4:
     /* Charisma 2 */
     stQUEST = stQUEST + "\nTalk to the guild keeper, he or she will inform you of a pub in the city which is having hard times. Not a whole lot of customers coming in, so help them out. Send 6 vampires there who have 500 or more pints of blood, they must say: " + stQUOTE + "[your vamp name here] sent me" + stQUOTE + " (for instance, Leprichaun sent me). Once all 6 have said it, your quest is complete. Do not step in the pub during the quest or you will fail instantly.\n\nYou have 10 days to complete this quest.";
     break;
    case 5:
     /* Charisma 3 */
     stQUEST = stQUEST + "\nTalk to the guild keeper, he or she will inform you of a pub in the city which is having hard times. Not a whole lot of customers coming in, so help them out. Send 9 vampires there who have 500 or more pints of blood, they must say: " + stQUOTE + "[your vamp name here] sent me" + stQUOTE + " (for instance, Leprichaun sent me). Once all 9 have said it, your quest is complete. Do not step in the pub during the quest or you will fail instantly.\n\nYou have 10 days to complete this quest.";
     break;
    case 6:
     /* Locate 1 */
     stQUEST = stQUEST + "\nTalk to the guildkeeper, they will instruct you to run to Aardvark and 1st, there you must say 'Check-Point'. You will kneel to the ground and spill 10 pints of your own blood. From there, you must run to Aardvark and 100th, say 'Check-Point' and drain your blood again. Then onto Zestless and 100th, say 'Check-Point', spill your blood, and finally run to Zestless and 1st, say 'Check-Point' and spill your blood to gain a level of Locate.\n\nYou have 5 days between each Check-Point, and you can use transits. Transits are helpful on the Locate 1 quest, reducing your travel distance by 100 AP each for each leg of the quest.";
     break;
    case 7:
     /* Locate 2 */
     stQUEST = stQUEST + "\nTalk to the guildkeeper, they will instruct you to run to Aardvark and 50th, say 'Check-Point', spill 15 pints of blood, and continue on your way to Zestless and 50th. Use a transit, save 100 ap for this crossing. Repeat the process, 'Check-Point', spill 15 pints of blood, go to the next location (Zelkova and 1st). Using the transit will not help you on this leg of the quest, so just walk it. Say 'Check-Point', spill your blood, proceed to Zelkova and 100th. Use the transit this time, you'll save 100 AP of walking, say checkpoint, spill your blood, you're done your quest.\n\nLocate 2 has some advantages over Locate 3, in the case of spotting someone's exact location. For instance, if a target is in the shadows, locate 3 would say they are at Ennui and 3rd, giving you a 1 in 4 chance of actually finding them, standing at Ennui and 3rd and using Locate 2 will tell you which corner they're in. (Target is 1AP North-East of you for example).";
     break;
    case 8:
     /* Locate 3 */
     stQUEST = stQUEST + "\nTalk to the guildkeeper, they will instruct you to run to Sycamore and 38th, say 'Check-Point', spill 25 pints of blood, continue to Sycamore and 63rd, say 'Check-Point', spill some blood, continue to Gypsum and 63rd, say 'Check-Point', spill 25 pints of blood, then finally continue to Gypsum and 38th, say 'Check-Point', spill 25 pints of blood; congrats, you're done your Locate 3 quest.";
     break;
    case 9:
     /* Perception */
     stQUEST = stQUEST + "\nSo you want to be a perceptive vampire, well, its worth it. The guildkeeper will instruct you to hunt down a Vampire Hunter and kill it within the next 10 days; do that, and you're done your quest. Save up your AP so you can chase them down if you find one.";
     break;
    case 10:
     /* Second Sight */
     stQUEST = stQUEST + "\nGuildkeeper? Nope, instead go to the FAQ section of Vampires!. From here, click through the 'how do i donate, etc' stuff and make a donation. You will get a free level 1 power with the purchase of second sight.";
     break;
    case 11:
     /* Shadows 1 */
     stQUEST = stQUEST + "\nSee the guild keeper, pay to start the quest; quest is done. I suggest you get Thievery 1 while you're here.";
     break;
    case 12:
     /* Shadows 2 */
     stQUEST = stQUEST + "\nSee the guild keeper, pay to start the quest; quest is done. I suggest you get Thievery 2 while you're here.";
     break;
    case 13:
     /* Shadows 3 */
     stQUEST = stQUEST + "\nSee the guild keeper, pay to start the quest; quest is done. I suggest you get Thievery 3 while you're here.";
     break;
    case 14:
     /* Stamina 1 */
     stQUEST = stQUEST + "\nStamina comes at a heafty price, Stamina 1 is the least expencive of these quests. Coin wise, it's very inexpencive, but it does take a toll on your blood. See the guild keeper, they'll tell you where to go to finish your quest; when you're there, say 'EXACTLY' what you are told to say, no quotes. If you forget, no worries, the word is listed in your 'My Vampire' page.";
     break;
    case 15:
     /* Stamina 2 */
     stQUEST = stQUEST + "\nStamina comes at a heafty price, not coin wise, but in blood. Pay the guild keeper, they'll tell you where to go and what to say, do what they say exactly and you will complete your quest.";
     break;
    case 16:
     /* Stamina 3 */
     stQUEST = stQUEST + "\nStamina comes at a heafty price, and Stamina 3 costs the most. Pay the guild keeper, run to where they tell you, say what they say to say, and feel the burn.";
     break;
    case 17:
     /* Suction */
     stQUEST = stQUEST + "\nSuction is a fairly expencive quest to start, but it's relatively easy to complete. You get 3 days for each section of this quest, and if you have a really low blood level when you start it, you can finish this quest in 1 day. You must drink from 20 vampires who are more powerful than yourself (have more blood than you), nice to get a friend to holy water or garlic spray you before you start.";
     break;
    case 18:
     /* Surprise */
     stQUEST = stQUEST + "\nPay the guildkeeper, and Surprise! Your quest is done.";
     break;
    case 19:
     /* Telepathy 1 */
     stQUEST = stQUEST + "\nPay the guildkeeper... you're done... this will however take 10 ap to complete. If you have 1 Ap when you start the quest, you will finish with -9";
     break;
    case 20:
     /* Telepathy 2 */
     stQUEST = stQUEST + "\nPay the guildkeeper... you're done... this will however take 10 ap to complete. If you have 1 Ap when you start the quest, you will finish with -9";
     break;
    case 21:
     /* Telepathy 3 */
     stQUEST = stQUEST + "\nPay the guildkeeper... you're done... this will however take 10 ap to complete. If you have 1 Ap when you start the quest, you will finish with -9";
     break;
    case 22:
     /* Thievery 1 */
     stQUEST = stQUEST + "\nPay the guildkeeper... Quest complete... now, lets see if you can get some of that coin back.";
     break;
    case 23:
     /* Thievery 2 */
     stQUEST = stQUEST + "\nPay the guildkeeper... Quest completed... now, lets see how much of that coin you can get back..?";
     break;
    case 24:
     /* Thievery 3 */
     stQUEST = stQUEST + "\nPay the guildkeeper... Congrats on getting thievery 3! Now, go get your coin back!";
     break;
   }
  stQUEST = stQUEST + "</TEXTAREA>"; 
  document.getElementById('skillQuest').innerHTML = stQUEST;
 }

function getSkillInf()
 {
  getSkillDescription();
  getSkillQuest();
 }
