viewing paste Unknown #227 | Athena

Posted on the
  1. //===== rAthena Script =======================================
  2. //=
  3. //===== By: ==================================================
  4. //=
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= rAthena
  9. //===== Description: =========================================
  10. //= [Aegis Conversion]
  11. //= Original filename:
  12. //= NPC list:
  13. //= - Magic Book Master Velof (geffen_in 176 105)
  14. //= - Lea (geffen_in 175 112)
  15. //= - Galfos (mid_camp 255 244)
  16. //= - Mysterious Documents#0004 (dic_in01 25 190) 
  17. //= - Powerful Lava Energy#33 (thor_v02 163 104)
  18. //= - Powerful Flame Energy#33 (thor_v01 185 91)
  19. //= - Powerful Glacier Energy#33 (ice_dun03 137 148)
  20. //= - Powerfull Fossil Energy#33 (ein_dun02 181 124)
  21. //= - Powerful Storm Energy#33 (gon_dun02 252 198)
  22. //= Variables in use:
  23. //= - wm_book (max 1)
  24. //= - mac_book (max 4)
  25. //===== Additional Comments: =================================
  26. //= 1.0 Converted from the official Aegis script.
  27. //============================================================
  28.  
  29. geffen_in,176,105,4	script	Magic Book Master Velof	64,{
  30.         set .@now_weight, MaxWeight - Weight;
  31.         if (checkweight(1201,1) == 0) {
  32.                 mes "You're carrying too many items. Please make some room in your bag first.";
  33.                 close;
  34.         }
  35.         if (.@now_weight < 1000) {
  36.                 mes "You're overweight with items. Please lose some item weight first.";
  37.                 close;
  38.         }
  39.         if (IsBaby == 1) {
  40.                 mes "[Magic Book Master Velof]";
  41.                 mes "What are you, a baby?";
  42.                 mes "I'm not here to babysit. Get lost!";
  43.                 close;
  44.         }
  45.         if ((Class != Job_Warlock) && (Class != Job_Warlock_T)) {
  46.                 mes "[Magic Book Master Velof]";
  47.                 mes "Ha ha, are you also seeking new knowledge?";
  48.                 next;
  49.                 mes "[Magic Book Master Velof]";
  50.                 mes "I'm sorry, but my knowledge doesn't concern you.";
  51.                 close;
  52.         }
  53.         if (!getskilllv("WL_RELEASE")) {
  54.                 mes "[Magic Book Master Velof]";
  55.                 mes "Well you've met all the qualifications except one: you need the Release spell.";
  56.                 next;
  57.                 mes "[Magic Book Master Velof]";
  58.                 mes "Learn the spell first. I've got so many things to tell you.";
  59.                 close;
  60.         }
  61.         if ((getskilllv("WL_RELEASE")) && (Class == Job_Warlock) || (Class == Job_Warlock_T)) {
  62.                 mes "[Magic Book Master Velof]";
  63.                 mes "Welcome, my friend.";
  64.                 mes "Congratulations on entering a brand new world of magic.";
  65.                 next;
  66.                 mes "[Magic Book Master Velof]";
  67.                 mes "We magic practitioners are always thirsty for new knowledge and power.";
  68.                 next;
  69.                 mes "[Magic Book Master Velof]";
  70.                 mes "We endure great hardship and pain to achieve what we want. When we finally do, the sense of accomplishment defies description. That's why both you and I have chosen the way of magic.";
  71.                 next;
  72.                 mes "[Magic Book Master Velof]";
  73.                 mes "By the way, what brings you to me today?";
  74.                 next;
  75.                 switch (select("Nothing.:Do you know the Reading Spell Book?:What's the Freezing Spell?:Can I have a Magic Book?:Can I use the Reading Spell Book without the Freezing Spell?:About the Ultimate Magic Book")) {
  76.                 case 1:
  77.                         mes "[Magic Book Master Velof]";
  78.                         mes "Hah! You're silly.";
  79.                         close;
  80.                 break;
  81.                 case 2:
  82.                         mes "[Magic Book Master Velof]";
  83.                         mes "Reading Spell Book literally means 'read a spell book.' Do you know how to use Magic Books?";
  84.                         next;
  85.                         switch (select("Yes, I do.:No, I don't.")) {
  86.                         case 1:
  87.                                 mes "[Magic Book Master Velof]";
  88.                                 mes "Well then, you don't need an additional lecture.";
  89.                                 close;
  90.                         break;
  91.                         case 2:
  92.                                 mes "[Magic Book Master Velof]";
  93.                                 mes "Magic Books are an advanced type of magic scroll. While spells on scrolls disappear after one use, the ones in Magic Books can be cast multiple times.";
  94.                                 next;
  95.                                 mes "[Magic Book Master Velof]";
  96.                                 mes "Let's compare a spell on a scroll to a wire. When the wire is used to open a door or do something else, it's bent and crushed, losing its original shape. A spell from a Magic Book is more like a shape memory alloy.";
  97.                                 next;
  98.                                 mes "[Magic Book Master Velof]";
  99.                                 mes "Huh, don't you now what shape memory alloy is? Eh, just remember this: a wire made from shape memory alloy restores its shape over time.";
  100.                                 next;
  101.                                 mes "[Magic Book Master Velof]";
  102.                                 mes "Like the alloy, a spell on a Magic Book remains after a use, although reusing the spell has a downtime for its restoration.";
  103.                                 next;
  104.                                 mes "[Magic Book Master Velof]";
  105.                                 mes "...Oh, I didn't mean to talk for too long. Anyways, you can use Magic Books to cast spells that you've learned. Its concept is different from normal spells.";
  106.                                 next;
  107.                                 switch (select("What's the difference?")) {
  108.                                 case 1:
  109.                                 break;
  110.                                 }
  111.                                 mes "[Magic Book Master Velof]";
  112.                                 mes "Why do you have to write your existing spells in Magic Books, you asked?";
  113.                                 next;
  114.                                 mes "[Magic Book Master Velof]";
  115.                                 mes "That's a good question. It's related to Magic Binding.";
  116.                                 next;
  117.                                 mes "[Magic Book Master Velof]";
  118.                                 mes "You already learned Release, which allows you to hold the energy of the four different elements before the actual casting. Magic Binding is similar to Release.";
  119.                                 next;
  120.                                 mes "[Magic Book Master Velof]";
  121.                                 mes "Since you've learned Release, you're capable of using Magic Binding as well. Well, let's talk about that later.";
  122.                                 next;
  123.                                 mes "[Magic Book Master Velof]";
  124.                                 mes "You know how to hold an existing spell, and then cast it at a desired timing via Release.";
  125.                                 next;
  126.                                 mes "[Magic Book Master Velof]";
  127.                                 mes "Carrying the globes of the four elements is also related to Magic Binding.";
  128.                                 next;
  129.                                 mes "[Magic Book Master Velof]";
  130.                                 mes "As you know, the four elements are Fire, Water, Wind, and Earth. Being able to employ them freely is the essential principle of magic.";
  131.                                 next;
  132.                                 mes "[Magic Book Master Velof]";
  133.                                 mes "We Humans use torches to keep fire, fans to blow wind, and bowls to hold water. We also use clay to make earthenware.";
  134.                                 next;
  135.                                 mes "[Magic Book Master Velof]";
  136.                                 mes "Those activities may differ from magic, but both are the same in the sense of employing the four elements.";
  137.                                 next;
  138.                                 mes "[Magic Book Master Velof]";
  139.                                 mes "When you use complex magic spells to summon a storm, drop lightning, or burn an area, that consumes a lot of your energy, both physically and mentally.";
  140.                                 next;
  141.                                 mes "[Magic Book Master Velof]";
  142.                                 mes "When you fail to bind such powerful magic spells or fail to control them,";
  143.                                 next;
  144.                                 mes "[Magic Book Master Velof]";
  145.                                 mes "you can receive irreparable damage to your mind and body.";
  146.                                 next;
  147.                                 mes "[Magic Book Master Velof]";
  148.                                 mes "That's why we use Magic Books to reduce that burden. It helps summon pre-cast spells while you're focusing on binding their magic power.";
  149.                                 next;
  150.                                 mes "[Magic Book Master Velof]";
  151.                                 mes "There's one downside though: Magic Books cannot be used for spells that you haven't learned.";
  152.                                 next;
  153.                                 mes "[Magic Book Master Velof]";
  154.                                 mes "As I said earlier, spells in Magic Books tend to go back to what they are.";
  155.                                 next;
  156.                                 mes "[Magic Book Master Velof]";
  157.                                 mes "That said, as a Circler, you cannot change or create spells in Magic Books.";
  158.                                 next;
  159.                                 mes "[Magic Book Master Velof]";
  160.                                 mes "Even if you create one, its power will be beyond your capacity.";
  161.                                 next;
  162.                                 mes "[Magic Book Master Velof]";
  163.                                 mes "In order to use the Reading Spell Book, you must learn the Freezing Spell to bind magic.";
  164.                                 close;
  165.                         break;
  166.                         }
  167.                 break;
  168.                 case 3:
  169.                         mes "[Magic Book Master Velof]";
  170.                         mes "The Freezing Spell is used for Magic Binding. It helps you to insert a magic spell to a circle.";
  171.                         next;
  172.                         mes "[Magic Book Master Velof]";
  173.                         mes "Circles of magic work organically with each other. When you use the Freezing Spell to bind a spell, the spell won't activate until you cast the release spell.";
  174.                         next;
  175.                         mes "[Magic Book Master Velof]";
  176.                         mes "Of course, binding a spell continuously consumes your mana, but it consumes less mana than conventional magic spells.";
  177.                         next;
  178.                         mes "[Magic Book Master Velof]";
  179.                         mes "Magic Binding becomes more difficult when you use more powerful magic spells.";
  180.                         next;
  181.                         mes "[Magic Book Master Velof]";
  182.                         mes "For weak spells, you can bind two to three of them with your circle. For more powerful spells, maybe one or two is possible.";
  183.                         next;
  184.                         mes "[Magic Book Master Velof]";
  185.                         mes "That all depends on your ability to control your spells. You'll have to try and experience Magic Binding after you first learn it to really understand.";
  186.                         close;
  187.                 break;
  188.                 case 4:
  189.                         mes "[Magic Book Master Velof]";
  190.                         mes "I'm sorry, but I only have Magic Books for beginners, but they're obviously not suitable for you. Do you still want one?";
  191.                         next;
  192.                         switch (select("Sure thing.:Where can I find advanced books?")) {
  193.                         case 1:
  194.                                 mes "[Magic Book Master Velof]";
  195.                                 mes "Please go talk to [Lea] in the Archive. Tell her that you need one of the Magic Books that I've stored in there.";
  196.                                 next;
  197.                                 mes "[Magic Book Master Velof]";
  198.                                 mes "For your information, she won't give it to you without anything in return. Expect her to ask you for something!";
  199.                                 if (wm_book < 1) {
  200.                                         set wm_book, 1;
  201.                                 }
  202.                                 close;
  203.                         break;
  204.                         case 2:
  205.                                 mes "[Magic Book Master Velof]";
  206.                                 mes "I'm sorry, but our management has recently decided to limit the availability of Magic Books for Multi Circlers. It's because their numbers are increasing more quickly than we expected.";
  207.                                 next;
  208.                                 mes "[Magic Book Master Velof]";
  209.                                 mes "You could find one if you try hard, but I don't have any with me.";
  210.                                 next;
  211.                                 mes "[Magic Book Master Velof]";
  212.                                 mes "If our management releases the restriction, you'll be the first one to know. Don't worry.";
  213.                                 close;
  214.                         break;
  215.                         }
  216.                         close;
  217.                 break;
  218.                 case 5:
  219.                         mes "[Magic Book Master Velof]";
  220.                         mes "Nothing will happen when you try to bind magic without using Magic Binding because you have nothing to hold magic.";
  221.                         next;
  222.                         mes "[Magic Book Master Velof]";
  223.                         mes "It's like water that needs a bowl to stay in place.";
  224.                         next;
  225.                         mes "[Magic Book Master Velof]";
  226.                         mes "The problem is when you try to forcefully cast a spell that you haven't learned. It'll definately backfire on you.";
  227.                         next;
  228.                         mes "[Magic Book Master Velof]";
  229.                         mes "Of course, the damage won't be severe: you'll fall asleep or be thrown into confusion. This is all because there's a conflict between your Magic Book and the force of Magic Binding when you're trying to summon and hold a unlearned spell.";
  230.                         next;
  231.                         mes "[Magic Book Master Velof]";
  232.                         mes "Don't try it out just to see what happens for yourself! Falling asleep while casting a spell? There's nothing more humiliating than that to magic practitioners like us.";
  233.                         close;
  234.                 break;
  235.                 case 6:
  236.                         if ((BaseLevel > 139) && (mac_book < 1) && ((getskilllv("WL_TETRAVORTEX")) || (getskilllv("WL_COMET")))) {
  237.                                 mes "[Magic Book Master Velof]";
  238.                                 mes "I'm sorry, but could you ask someone else? I'm kind of busy right now.";
  239.                                 close;
  240.                         }
  241.                         else if ((BaseLevel > 139) && (mac_book == 1) && ((getskilllv("WL_TETRAVORTEX")) || (getskilllv("WL_COMET")))) {
  242.                                 mes "[Magic Book Master Velof]";
  243.                                 mes "Huh, are you looking for the Ultimate Magic Book? Who sent you?";
  244.                                 next;
  245.                                 switch (select("Ms. Lea.")) {
  246.                                 case 1:
  247.                                 break;
  248.                                 }
  249.                                 mes "[Magic Book Master Velof]";
  250.                                 mes "I'm sorry, but there's not much information left about the Ultimate Magic Book.";
  251.                                 next;
  252.                                 mes "[Magic Book Master Velof]";
  253.                                 mes "A few scholars in the Midgard Continent once tried to collect ancient Magic Books and reproduce that book, but...";
  254.                                 next;
  255.                                 switch (select("But what?")) {
  256.                                 case 1:
  257.                                 break;
  258.                                 }
  259.                                 mes "[Magic Book Master Velof]";
  260.                                 mes "Oh yes, perhaps he might know something.";
  261.                                 next;
  262.                                 switch (select("(Yes, I knew this was coming!)")) {
  263.                                 case 1:
  264.                                 break;
  265.                                 }
  266.                                 mes "[Magic Book Master Velof]";
  267.                                 mes "My brother is just like you. He's very interested in recreating the Ultimate Magic Book.";
  268.                                 next;
  269.                                 mes "[Magic Book Master Velof]";
  270.                                 mes "His name is Galfos.";
  271.                                 mes "He's been taking a great interest in the ancient Magic Books.";
  272.                                 next;
  273.                                 mes "[Magic Book Master Velof]";
  274.                                 mes "I didn't support him or give him any advice for his research since I thought he'd give on it pretty quickly, but...";
  275.                                 next;
  276.                                 mes "[Magic Book Master Velof]";
  277.                                 mes "If he's discovered anything useful, maybe it can helpful to you.";
  278.                                 next;
  279.                                 switch (select("Where's Galfos now?")) {
  280.                                 case 1:
  281.                                 break;
  282.                                 }
  283.                                 mes "[Magic Book Master Velof]";
  284.                                 mes "I've heard that he's near the Expedition Camp beyond the Dimensional Rift to seek information about the ancient Magic Books.";
  285.                                 next;
  286.                                 mes "[Magic Book Master Velof]";
  287.                                 mes "If you want to see him, you should prepare for a long journey.";
  288.                                 set mac_book, 2;
  289.                                 close;
  290.                         }
  291.                         else if ((BaseLevel > 139) && (mac_book > 1) && ((getskilllv("WL_TETRAVORTEX")) || (getskilllv("WL_COMET")))) {
  292.                                 mes "[Magic Book Master Velof]";
  293.                                 mes "Galfos is near the Expedition Camp beyond the Dimensional Rift.";
  294.                                 next;
  295.                                 mes "[Magic Book Master Velof]";
  296.                                 mes "If you want to see him, you should prepare for a long journey.";
  297.                                 close;
  298.                         }
  299.                         else {
  300.                                 mes "[Magic Book Master Velof]";
  301.                                 mes "Ha ha, I'm sorry, but you should focus on strengthening your body rather than creating Magic Books.";
  302.                                 close;
  303.                         }
  304.                 break;
  305.                 }
  306.         }
  307.         else {
  308.                 mes "[Magic Book Master Velof]";
  309.                 mes "Ha ha, are you also seeking new knowledge?";
  310.                 next;
  311.                 mes "[Magic Book Master Velof]";
  312.                 mes "I'm sorry, but my knowledge doesn't concern you.";
  313.                 close;
  314.         }
  315.         close;
  316. }
  317.  
  318. geffen_in,175,112,4	script	Lea	123,{
  319.         set .@now_weight, MaxWeight - Weight;
  320.         if (checkweight(1201,1) == 0) {
  321.                 mes "You're carrying too many items. Please make some room in your bag first.";
  322.                 close;
  323.         }
  324.         if (.@now_weight < 1000) {
  325.                 mes "You're overweight with items. Please lose some item weight first.";
  326.                 close;
  327.         }
  328.         if ((wm_book > 0) && (Class == Job_Warlock) || (Class == Job_Warlock_T)) {
  329.                 mes "[Lea]";
  330.                 mes "You can only read books here. If you'd like to borrow any books, please receive an approval from 1 manager and 1 High Mage.";
  331.                 next;
  332.                 mes "[Lea]";
  333.                 mes "How may I help you?";
  334.                 next;
  335.                 switch (select("Master Velof asked me to bring his Magic Book.")) {
  336.                 case 1:
  337.                 break;
  338.                 }
  339.                 mes "[Lea]";
  340.                 mes "Are you borrowing a book?";
  341.                 next;
  342.                 switch (select("Let me think.:I want the Beginner's Magic Books.:I want the Intermediate Magic Books.:I want the Superior Magic Books.:I want the Ultimate Magic Book.")) {
  343.                 case 1:
  344.                         mes "[Lea]";
  345.                         mes "No problem.";
  346.                         close;
  347.                 break;
  348.                 case 2:
  349.                         mes "[Lea]";
  350.                         mes "We're in trouble because so many people want to borrow our Magic Books.";
  351.                         next;
  352.                         mes "[Lea]";
  353.                         mes "Unfortunately, many of our lent books aren't returned on time. That's why we've decided to charge a security deposit.";
  354.                         next;
  355.                         switch (select("A security deposit?")) {
  356.                         case 1:
  357.                         break;
  358.                         }
  359.                         mes "[Lea]";
  360.                         mes "Yes. You may pay a minimum of 10,000 Rune-Midgarts zeny. Alternatively, you can bring 2 Old Magic Books or 50 Old Pages. Once you pay the deposit, I'll let you borrow some Magic Books.";
  361.                         next;
  362.                         switch (select("Where can I find Old Magic Books and Old Pages?:I'll pay with zeny.:I'll pay with Old Magic Books.:I'll pay with Old Pages.")) {
  363.                         case 1:
  364.                                 mes "[Lea]";
  365.                                 mes "I heard that you can find them from Ride Words, Death Words, Bathorys, and other monsters. I ask that you please don't strain yourself to find those items.";
  366.                                 next;
  367.                                 mes "[Lea]";
  368.                                 mes "Your life is more important than anything else, you know?";
  369.                                 close;
  370.                         break;
  371.                         case 2:
  372.                                 set .@bk_money, Zeny;
  373.                                 if (.@bk_money > 10000) {
  374.                                         mes "[Lea]";
  375.                                         mes "What kind of Magic Book do you want?";
  376.                                         next;
  377.                                         switch (select("Let me think.:Magic Book (Fire Bolt):Magic Book (Cold Bolt):Magic Book (Lightning Bolt)")) {
  378.                                         case 1:
  379.                                                 mes "[Lea]";
  380.                                                 mes "No problem.";
  381.                                                 close;
  382.                                         break;
  383.                                         case 2:
  384.                                                 if (countitem(6189) > 0) {
  385.                                                         mes "[Lea]";
  386.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  387.                                                         next;
  388.                                                         mes "[Lea]";
  389.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  390.                                                         close;
  391.                                                 }
  392.                                                 else if (.@bk_money > 10000) {
  393.                                                         mes "[Lea]";
  394.                                                         mes "The book's return date is written on the lending card on the back cover of the book.";
  395.                                                         next;
  396.                                                         mes "[Lea]";
  397.                                                         mes "Please try not to lose or damage the book to avoid paying any extra charges.";
  398.                                                         set Zeny, Zeny - 10000;
  399.                                                         getitem 6189,1; //Magic_Book_FB
  400.                                                         close;
  401.                                                 }
  402.                                                 else {
  403.                                                         mes "[Lea]";
  404.                                                         mes "I'm sorry, but you don't have enough funds.";
  405.                                                         close;
  406.                                                 }
  407.                                         break;
  408.                                         case 3:
  409.                                                 if (countitem(6190) > 0) {
  410.                                                         mes "[Lea]";
  411.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  412.                                                         next;
  413.                                                         mes "[Lea]";
  414.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  415.                                                         close;
  416.                                                 }
  417.                                                 else if (.@bk_money > 10000) {
  418.                                                         mes "[Lea]";
  419.                                                         mes "The book's return date is written on the lending card on the back cover of the book.";
  420.                                                         next;
  421.                                                         mes "[Lea]";
  422.                                                         mes "Please try not to lose or damage the book to avoid paying any extra charges.";
  423.                                                         set Zeny, Zeny - 10000;
  424.                                                         getitem 6190,1; //Magic_Book_CB
  425.                                                         close;
  426.                                                 }
  427.                                                 else {
  428.                                                         mes "[Lea]";
  429.                                                         mes "I'm sorry, but you don't have enough funds.";
  430.                                                         close;
  431.                                                 }
  432.                                         break;
  433.                                         case 4:
  434.                                                 if (countitem(6191) > 0) {
  435.                                                         mes "[Lea]";
  436.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  437.                                                         next;
  438.                                                         mes "[Lea]";
  439.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  440.                                                         close;
  441.                                                 }
  442.                                                 else if (.@bk_money > 10000) {
  443.                                                         mes "[Lea]";
  444.                                                         mes "The book's return date is written on the lending card on the back cover of the book.";
  445.                                                         next;
  446.                                                         mes "[Lea]";
  447.                                                         mes "Please try not to lose or damage the book to avoid paying any extra charges.";
  448.                                                         set Zeny, Zeny - 10000;
  449.                                                         getitem 6191,1; //Magic_Book_LB
  450.                                                         close;
  451.                                                 }
  452.                                                 else {
  453.                                                         mes "[Lea]";
  454.                                                         mes "I'm sorry, but you don't have enough funds.";
  455.                                                         close;
  456.                                                 }
  457.                                         break;
  458.                                         }
  459.                                 }
  460.                                 else {
  461.                                         mes "[Lea]";
  462.                                         mes "I'm sorry, but you don't have enough funds.";
  463.                                         close;
  464.                                 }
  465.                         break;
  466.                         case 3:
  467.                                 if (countitem(1006) > 1) {
  468.                                         mes "[Lea]";
  469.                                         mes "What kind of Magic Book do you want?";
  470.                                         next;
  471.                                         switch (select("Let me think.:Magic Book (Fire Bolt):Magic Book (Cold Bolt):Magic Book (Lightning Bolt)")) {
  472.                                         case 1:
  473.                                                 mes "[Lea]";
  474.                                                 mes "No problem.";
  475.                                                 close;
  476.                                         break;
  477.                                         case 2:
  478.                                                 if (countitem(6189) > 0) {
  479.                                                         mes "[Lea]";
  480.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  481.                                                         next;
  482.                                                         mes "[Lea]";
  483.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  484.                                                         close;
  485.                                                 }
  486.                                                 else if (countitem(1006) > 1) {
  487.                                                         mes "[Lea]";
  488.                                                         mes "The book's return date is written on the lending card on the back cover of the book.";
  489.                                                         next;
  490.                                                         mes "[Lea]";
  491.                                                         mes "Please try not to lose or damage the book to avoid paying any extra charges.";
  492.                                                         delitem 1006,2; //Old_Magic_Book
  493.                                                         getitem 6189,1; //Magic_Book_FB
  494.                                                         close;
  495.                                                 }
  496.                                                 else {
  497.                                                         mes "[Lea]";
  498.                                                         mes "I'm sorry, but you don't have enough funds.";
  499.                                                         close;
  500.                                                 }
  501.                                         break;
  502.                                         case 3:
  503.                                                 if (countitem(6190) > 0) {
  504.                                                         mes "[Lea]";
  505.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  506.                                                         next;
  507.                                                         mes "[Lea]";
  508.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  509.                                                         close;
  510.                                                 }
  511.                                                 else if (countitem(1006) > 1) {
  512.                                                         mes "[Lea]";
  513.                                                         mes "The book's return date is written on the lending card on the back cover of the book.";
  514.                                                         next;
  515.                                                         mes "[Lea]";
  516.                                                         mes "Please try not to lose or damage the book to avoid paying any extra charges.";
  517.                                                         delitem 1006,2; //Old_Magic_Book
  518.                                                         getitem 6190,1; //Magic_Book_CB
  519.                                                         close;
  520.                                                 }
  521.                                                 else {
  522.                                                         mes "[Lea]";
  523.                                                         mes "I'm sorry, but you don't have enough funds.";
  524.                                                         close;
  525.                                                 }
  526.                                         break;
  527.                                         case 4:
  528.                                                 if (countitem(6191) > 0) {
  529.                                                         mes "[Lea]";
  530.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  531.                                                         next;
  532.                                                         mes "[Lea]";
  533.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  534.                                                         close;
  535.                                                 }
  536.                                                 else if (countitem(1006) > 1) {
  537.                                                         mes "[Lea]";
  538.                                                         mes "The book's return date is written on the lending card on the back cover of the book.";
  539.                                                         next;
  540.                                                         mes "[Lea]";
  541.                                                         mes "Please try not to lose or damage the book to avoid paying any extra charges.";
  542.                                                         delitem 1006,2; //Old_Magic_Book
  543.                                                         getitem 6191,1; //Magic_Book_LB
  544.                                                         close;
  545.                                                 }
  546.                                                 else {
  547.                                                         mes "[Lea]";
  548.                                                         mes "I'm sorry, but you don't have enough funds.";
  549.                                                         close;
  550.                                                 }
  551.                                         break;
  552.                                         }
  553.                                 }
  554.                                 else {
  555.                                         mes "[Lea]";
  556.                                         mes "I'm sorry, but you don't have enough funds.";
  557.                                         close;
  558.                                 }
  559.                         break;
  560.                         case 4:
  561.                                 if (countitem(1097) > 49) {
  562.                                         mes "[Lea]";
  563.                                         mes "What kind of Magic Book do you want?";
  564.                                         next;
  565.                                         switch (select("Let me think.:Magic Book (Fire Bolt):Magic Book (Cold Bolt):Magic Book (Lightning Bolt)")) {
  566.                                         case 1:
  567.                                                 mes "[Lea]";
  568.                                                 mes "No problem.";
  569.                                                 close;
  570.                                         break;
  571.                                         case 2:
  572.                                                 if (countitem(6189) > 0) {
  573.                                                         mes "[Lea]";
  574.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  575.                                                         next;
  576.                                                         mes "[Lea]";
  577.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  578.                                                         close;
  579.                                                 }
  580.                                                 else if (countitem(1097) > 49) {
  581.                                                         mes "[Lea]";
  582.                                                         mes "The book's return date is written on the lending card on the back cover of the book.";
  583.                                                         next;
  584.                                                         mes "[Lea]";
  585.                                                         mes "Please try not to lose or damage the book to avoid paying any extra charges.";
  586.                                                         delitem 1097,50; //Worn_Out_Page
  587.                                                         getitem 6189,1; //Magic_Book_FB
  588.                                                         close;
  589.                                                 }
  590.                                                 else {
  591.                                                         mes "[Lea]";
  592.                                                         mes "I'm sorry, but you don't have enough funds.";
  593.                                                         close;
  594.                                                 }
  595.                                         break;
  596.                                         case 3:
  597.                                                 if (countitem(6190) > 0) {
  598.                                                         mes "[Lea]";
  599.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  600.                                                         next;
  601.                                                         mes "[Lea]";
  602.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  603.                                                         close;
  604.                                                 }
  605.                                                 else if (countitem(1097) > 49) {
  606.                                                         mes "[Lea]";
  607.                                                         mes "The book's return date is written on the lending card on the back cover of the book.";
  608.                                                         next;
  609.                                                         mes "[Lea]";
  610.                                                         mes "Please try not to lose or damage the book to avoid paying any extra charges.";
  611.                                                         delitem 1097,50; //Worn_Out_Page
  612.                                                         getitem 6190,1; //Magic_Book_CB
  613.                                                         close;
  614.                                                 }
  615.                                                 else {
  616.                                                         mes "[Lea]";
  617.                                                         mes "I'm sorry, but you don't have enough funds.";
  618.                                                         close;
  619.                                                 }
  620.                                         break;
  621.                                         case 4:
  622.                                                 if (countitem(6191) > 0) {
  623.                                                         mes "[Lea]";
  624.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  625.                                                         next;
  626.                                                         mes "[Lea]";
  627.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  628.                                                         close;
  629.                                                 }
  630.                                                 else if (countitem(1097) > 49) {
  631.                                                         mes "[Lea]";
  632.                                                         mes "The book's return date is written on the lending card on the back cover of the book.";
  633.                                                         next;
  634.                                                         mes "[Lea]";
  635.                                                         mes "Please try not to lose or damage the book to avoid paying any extra charges.";
  636.                                                         delitem 1097,50; //Worn_Out_Page
  637.                                                         getitem 6191,1; //Magic_Book_LB
  638.                                                         close;
  639.                                                 }
  640.                                                 else {
  641.                                                         mes "[Lea]";
  642.                                                         mes "I'm sorry, but you don't have enough funds.";
  643.                                                         close;
  644.                                                 }
  645.                                         break;
  646.                                         }
  647.                                 }
  648.                                 else {
  649.                                         mes "[Lea]";
  650.                                         mes "I'm sorry, but you don't have enough funds.";
  651.                                         close;
  652.                                 }
  653.                         break;
  654.                         }
  655.                         close;
  656.                 break;
  657.                 case 3:
  658.                         mes "[Lea]";
  659.                         mes "Ah, so you want the Intermediate Magic Books. Please pay 50,000 Rune-Midgartian zeny, or you can bring me 2 Old Blue Boxes or 9 Eluniums to borrow the Intermediate Magic Books.";
  660.                         next;
  661.                         switch (select("Where can I find Old Blue Boxes and Eluniums?:I'll pay 50,000 zeny.:I'll pay with Old Blue Boxes.:I'll pay with Eluniums.")) {
  662.                         case 1:
  663.                                 mes "[Lea]";
  664.                                 mes "Old Blue Boxes are quite rare to find, but they can be obtained from monsters everywhere in the world, including Myst Cases, Megalogons, Mimics, Nightmares, Krabens, Requiems, Nine Tails, Noxiouses, and Byorgues.";
  665.                                 mes "If you have sufficient funds, you may buy the boxes from street vendors.";
  666.                                 next;
  667.                                 mes "[Lea]";
  668.                                 mes "Eluniums can be obtained from Hyeguns, Zombie Prisoners, Teddy Bears, Obsedians, and Loli Ruris. Or you can refine Rough Eluniums to Eluniums at the Forge in town, and that may be easier.";
  669.                                 close;
  670.                         break;
  671.                         case 2:
  672.                                 set .@bk_money, Zeny;
  673.                                 if (.@bk_money > 50000) {
  674.                                         mes "[Lea]";
  675.                                         mes "What kind of Magic Book do you want?";
  676.                                         next;
  677.                                         switch (select("Let me think.:Magic Book (Storm Gust):Magic Book (Lord of Vermillion):Magic Book (Meteor Storm):Magic Book (Thunderstorm):Magic Book (Jupitel Thunder):Magic Book (Water Ball):Magic Book (Heaven's Drive):Magic Book (Earth Spike)")) {
  678.                                         case 1:
  679.                                                 mes "[Lea]";
  680.                                                 mes "No problem.";
  681.                                                 close;
  682.                                         break;
  683.                                         case 2:
  684.                                                 if (countitem(6192) > 0) {
  685.                                                         mes "[Lea]";
  686.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  687.                                                         next;
  688.                                                         mes "[Lea]";
  689.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  690.                                                         close;
  691.                                                 }
  692.                                                 else if (.@bk_money > 50000) {
  693.                                                         mes "[Lea]";
  694.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  695.                                                         next;
  696.                                                         mes "[Lea]";
  697.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  698.                                                         set Zeny, Zeny - 50000;
  699.                                                         getitem 6192,1; //Magic_Book_SG
  700.                                                         close;
  701.                                                 }
  702.                                                 else {
  703.                                                         mes "[Lea]";
  704.                                                         mes "I'm sorry, but you don't have enough funds.";
  705.                                                         close;
  706.                                                 }
  707.                                         break;
  708.                                         case 3:
  709.                                                 if (countitem(6193) > 0) {
  710.                                                         mes "[Lea]";
  711.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  712.                                                         next;
  713.                                                         mes "[Lea]";
  714.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  715.                                                         close;
  716.                                                 }
  717.                                                 else if (.@bk_money > 50000) {
  718.                                                         mes "[Lea]";
  719.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  720.                                                         next;
  721.                                                         mes "[Lea]";
  722.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  723.                                                         set Zeny, Zeny - 50000;
  724.                                                         getitem 6193,1; //Magic_Book_LOV
  725.                                                         close;
  726.                                                 }
  727.                                                 else {
  728.                                                         mes "[Lea]";
  729.                                                         mes "I'm sorry, but you don't have enough funds.";
  730.                                                         close;
  731.                                                 }
  732.                                         break;
  733.                                         case 4:
  734.                                                 if (countitem(6194) > 0) {
  735.                                                         mes "[Lea]";
  736.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  737.                                                         next;
  738.                                                         mes "[Lea]";
  739.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  740.                                                         close;
  741.                                                 }
  742.                                                 else if (.@bk_money > 50000) {
  743.                                                         mes "[Lea]";
  744.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  745.                                                         next;
  746.                                                         mes "[Lea]";
  747.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  748.                                                         set Zeny, Zeny - 50000;
  749.                                                         getitem 6194,1; //Magic_Book_MS
  750.                                                         close;
  751.                                                 }
  752.                                                 else {
  753.                                                         mes "[Lea]";
  754.                                                         mes "I'm sorry, but you don't have enough funds.";
  755.                                                         close;
  756.                                                 }
  757.                                         break;
  758.                                         case 5:
  759.                                                 if (countitem(6197) > 0) {
  760.                                                         mes "[Lea]";
  761.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  762.                                                         next;
  763.                                                         mes "[Lea]";
  764.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  765.                                                         close;
  766.                                                 }
  767.                                                 else if (.@bk_money > 50000) {
  768.                                                         mes "[Lea]";
  769.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  770.                                                         next;
  771.                                                         mes "[Lea]";
  772.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  773.                                                         set Zeny, Zeny - 50000;
  774.                                                         getitem 6197,1; //Magic_Book_TS
  775.                                                         close;
  776.                                                 }
  777.                                                 else {
  778.                                                         mes "[Lea]";
  779.                                                         mes "I'm sorry, but you don't have enough funds.";
  780.                                                         close;
  781.                                                 }
  782.                                         break;
  783.                                         case 6:
  784.                                                 if (countitem(6198) > 0) {
  785.                                                         mes "[Lea]";
  786.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  787.                                                         next;
  788.                                                         mes "[Lea]";
  789.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  790.                                                         close;
  791.                                                 }
  792.                                                 else if (.@bk_money > 50000) {
  793.                                                         mes "[Lea]";
  794.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  795.                                                         next;
  796.                                                         mes "[Lea]";
  797.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  798.                                                         set Zeny, Zeny - 50000;
  799.                                                         getitem 6198,1; //Magic_Book_JT
  800.                                                         close;
  801.                                                 }
  802.                                                 else {
  803.                                                         mes "[Lea]";
  804.                                                         mes "I'm sorry, but you don't have enough funds.";
  805.                                                         close;
  806.                                                 }
  807.                                         break;
  808.                                         case 7:
  809.                                                 if (countitem(6199) > 0) {
  810.                                                         mes "[Lea]";
  811.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  812.                                                         next;
  813.                                                         mes "[Lea]";
  814.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  815.                                                         close;
  816.                                                 }
  817.                                                 else if (.@bk_money > 50000) {
  818.                                                         mes "[Lea]";
  819.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  820.                                                         next;
  821.                                                         mes "[Lea]";
  822.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  823.                                                         set Zeny, Zeny - 50000;
  824.                                                         getitem 6199,1; //Magic_Book_WB
  825.                                                         close;
  826.                                                 }
  827.                                                 else {
  828.                                                         mes "[Lea]";
  829.                                                         mes "I'm sorry, but you don't have enough funds.";
  830.                                                         close;
  831.                                                 }
  832.                                         break;
  833.                                         case 8:
  834.                                                 if (countitem(6200) > 0) {
  835.                                                         mes "[Lea]";
  836.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  837.                                                         next;
  838.                                                         mes "[Lea]";
  839.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  840.                                                         close;
  841.                                                 }
  842.                                                 else if (.@bk_money > 50000) {
  843.                                                         mes "[Lea]";
  844.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  845.                                                         next;
  846.                                                         mes "[Lea]";
  847.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  848.                                                         set Zeny, Zeny - 50000;
  849.                                                         getitem 6200,1; //Magic_Book_HD
  850.                                                         close;
  851.                                                 }
  852.                                                 else {
  853.                                                         mes "[Lea]";
  854.                                                         mes "I'm sorry, but you don't have enough funds.";
  855.                                                         close;
  856.                                                 }
  857.                                         break;
  858.                                         case 9:
  859.                                                 if (countitem(6201) > 0) {
  860.                                                         mes "[Lea]";
  861.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  862.                                                         next;
  863.                                                         mes "[Lea]";
  864.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  865.                                                         close;
  866.                                                 }
  867.                                                 else if (.@bk_money > 50000) {
  868.                                                         mes "[Lea]";
  869.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  870.                                                         next;
  871.                                                         mes "[Lea]";
  872.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  873.                                                         set Zeny, Zeny - 50000;
  874.                                                         getitem 6201,1; //Magic_Book_ES
  875.                                                         close;
  876.                                                 }
  877.                                                 else {
  878.                                                         mes "[Lea]";
  879.                                                         mes "I'm sorry, but you don't have enough funds.";
  880.                                                         close;
  881.                                                 }
  882.                                         break;
  883.                                         }
  884.                                 }
  885.                                 else {
  886.                                         mes "[Lea]";
  887.                                         mes "I'm sorry, but you don't have enough funds.";
  888.                                         close;
  889.                                 }
  890.                         break;
  891.                         case 3:
  892.                                 set .@bk_money, Zeny;
  893.                                 if (countitem(603) > 1) {
  894.                                         mes "[Lea]";
  895.                                         mes "What kind of Magic Book do you want?";
  896.                                         next;
  897.                                         switch (select("Let me think.:Magic Book (Storm Gust):Magic Book (Lord of Vermillion):Magic Book (Meteor Storm):Magic Book (Thunderstorm):Magic Book (Jupitel Thunder):Magic Book (Water Ball):Magic Book (Heaven's Drive):Magic Book (Earth Spike)")) {
  898.                                         case 1:
  899.                                                 mes "[Lea]";
  900.                                                 mes "No problem.";
  901.                                                 close;
  902.                                         break;
  903.                                         case 2:
  904.                                                 if (countitem(6192) > 0) {
  905.                                                         mes "[Lea]";
  906.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  907.                                                         next;
  908.                                                         mes "[Lea]";
  909.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  910.                                                         close;
  911.                                                 }
  912.                                                 else if (countitem(603) > 1) {
  913.                                                         mes "[Lea]";
  914.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  915.                                                         next;
  916.                                                         mes "[Lea]";
  917.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  918.                                                         delitem 603,2; //Old_Blue_Box
  919.                                                         getitem 6192,1; //Magic_Book_SG
  920.                                                         close;
  921.                                                 }
  922.                                                 else {
  923.                                                         mes "[Lea]";
  924.                                                         mes "I'm sorry, but you don't have enough funds.";
  925.                                                         close;
  926.                                                 }
  927.                                         break;
  928.                                         case 3:
  929.                                                 if (countitem(6193) > 0) {
  930.                                                         mes "[Lea]";
  931.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  932.                                                         next;
  933.                                                         mes "[Lea]";
  934.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  935.                                                         close;
  936.                                                 }
  937.                                                 else if (countitem(603) > 1) {
  938.                                                         mes "[Lea]";
  939.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  940.                                                         next;
  941.                                                         mes "[Lea]";
  942.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  943.                                                         delitem 603,2; //Old_Blue_Box
  944.                                                         getitem 6193,1; //Magic_Book_LOV
  945.                                                         close;
  946.                                                 }
  947.                                                 else {
  948.                                                         mes "[Lea]";
  949.                                                         mes "I'm sorry, but you don't have enough funds.";
  950.                                                         close;
  951.                                                 }
  952.                                         break;
  953.                                         case 4:
  954.                                                 if (countitem(6194) > 0) {
  955.                                                         mes "[Lea]";
  956.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  957.                                                         next;
  958.                                                         mes "[Lea]";
  959.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  960.                                                         close;
  961.                                                 }
  962.                                                 else if (countitem(603) > 1) {
  963.                                                         mes "[Lea]";
  964.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  965.                                                         next;
  966.                                                         mes "[Lea]";
  967.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  968.                                                         delitem 603,2; //Old_Blue_Box
  969.                                                         getitem 6194,1; //Magic_Book_MS
  970.                                                         close;
  971.                                                 }
  972.                                                 else {
  973.                                                         mes "[Lea]";
  974.                                                         mes "I'm sorry, but you don't have enough funds.";
  975.                                                         close;
  976.                                                 }
  977.                                         break;
  978.                                         case 5:
  979.                                                 if (countitem(6197) > 0) {
  980.                                                         mes "[Lea]";
  981.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  982.                                                         next;
  983.                                                         mes "[Lea]";
  984.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  985.                                                         close;
  986.                                                 }
  987.                                                 else if (countitem(603) > 1) {
  988.                                                         mes "[Lea]";
  989.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  990.                                                         next;
  991.                                                         mes "[Lea]";
  992.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  993.                                                         delitem 603,2; //Old_Blue_Box
  994.                                                         getitem 6197,1; //Magic_Book_TS
  995.                                                         close;
  996.                                                 }
  997.                                                 else {
  998.                                                         mes "[Lea]";
  999.                                                         mes "I'm sorry, but you don't have enough funds.";
  1000.                                                         close;
  1001.                                                 }
  1002.                                         break;
  1003.                                         case 6:
  1004.                                                 if (countitem(6198) > 0) {
  1005.                                                         mes "[Lea]";
  1006.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1007.                                                         next;
  1008.                                                         mes "[Lea]";
  1009.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1010.                                                         close;
  1011.                                                 }
  1012.                                                 else if (countitem(603) > 1) {
  1013.                                                         mes "[Lea]";
  1014.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1015.                                                         next;
  1016.                                                         mes "[Lea]";
  1017.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1018.                                                         delitem 603,2; //Old_Blue_Box
  1019.                                                         getitem 6198,1; //Magic_Book_JT
  1020.                                                         close;
  1021.                                                 }
  1022.                                                 else {
  1023.                                                         mes "[Lea]";
  1024.                                                         mes "I'm sorry, but you don't have enough funds.";
  1025.                                                         close;
  1026.                                                 }
  1027.                                         break;
  1028.                                         case 7:
  1029.                                                 if (countitem(6199) > 0) {
  1030.                                                         mes "[Lea]";
  1031.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1032.                                                         next;
  1033.                                                         mes "[Lea]";
  1034.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1035.                                                         close;
  1036.                                                 }
  1037.                                                 else if (countitem(603) > 1) {
  1038.                                                         mes "[Lea]";
  1039.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1040.                                                         next;
  1041.                                                         mes "[Lea]";
  1042.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1043.                                                         delitem 603,2; //Old_Blue_Box
  1044.                                                         getitem 6199,1; //Magic_Book_WB
  1045.                                                         close;
  1046.                                                 }
  1047.                                                 else {
  1048.                                                         mes "[Lea]";
  1049.                                                         mes "I'm sorry, but you don't have enough funds.";
  1050.                                                         close;
  1051.                                                 }
  1052.                                         break;
  1053.                                         case 8:
  1054.                                                 if (countitem(6200) > 0) {
  1055.                                                         mes "[Lea]";
  1056.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1057.                                                         next;
  1058.                                                         mes "[Lea]";
  1059.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1060.                                                         close;
  1061.                                                 }
  1062.                                                 else if (countitem(603) > 1) {
  1063.                                                         mes "[Lea]";
  1064.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1065.                                                         next;
  1066.                                                         mes "[Lea]";
  1067.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1068.                                                         delitem 603,2; //Old_Blue_Box
  1069.                                                         getitem 6200,1; //Magic_Book_HD
  1070.                                                         close;
  1071.                                                 }
  1072.                                                 else {
  1073.                                                         mes "[Lea]";
  1074.                                                         mes "I'm sorry, but you don't have enough funds.";
  1075.                                                         close;
  1076.                                                 }
  1077.                                         break;
  1078.                                         case 9:
  1079.                                                 if (countitem(6201) > 0) {
  1080.                                                         mes "[Lea]";
  1081.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1082.                                                         next;
  1083.                                                         mes "[Lea]";
  1084.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1085.                                                         close;
  1086.                                                 }
  1087.                                                 else if (countitem(603) > 1) {
  1088.                                                         mes "[Lea]";
  1089.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1090.                                                         next;
  1091.                                                         mes "[Lea]";
  1092.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1093.                                                         delitem 603,2; //Old_Blue_Box
  1094.                                                         getitem 6201,1; //Magic_Book_ES
  1095.                                                         close;
  1096.                                                 }
  1097.                                                 else {
  1098.                                                         mes "[Lea]";
  1099.                                                         mes "I'm sorry, but you don't have enough funds.";
  1100.                                                         close;
  1101.                                                 }
  1102.                                         break;
  1103.                                         }
  1104.                                 }
  1105.                                 else {
  1106.                                         mes "[Lea]";
  1107.                                         mes "I'm sorry, but you don't have enough funds.";
  1108.                                         close;
  1109.                                 }
  1110.                         break;
  1111.                         case 4:
  1112.                                 set .@bk_money, Zeny;
  1113.                                 if (countitem(985) > 8) {
  1114.                                         mes "[Lea]";
  1115.                                         mes "What kind of Magic Book do you want?";
  1116.                                         next;
  1117.                                         switch (select("Let me think.:Magic Book (Storm Gust):Magic Book (Lord of Vermillion):Magic Book (Meteor Storm):Magic Book (Thunderstorm):Magic Book (Jupitel Thunder):Magic Book (Water Ball):Magic Book (Heaven's Drive):Magic Book (Earth Spike)")) {
  1118.                                         case 1:
  1119.                                                 mes "[Lea]";
  1120.                                                 mes "No problem.";
  1121.                                                 close;
  1122.                                         break;
  1123.                                         case 2:
  1124.                                                 if (countitem(6192) > 0) {
  1125.                                                         mes "[Lea]";
  1126.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1127.                                                         next;
  1128.                                                         mes "[Lea]";
  1129.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1130.                                                         close;
  1131.                                                 }
  1132.                                                 else if (countitem(985) > 8) {
  1133.                                                         mes "[Lea]";
  1134.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1135.                                                         next;
  1136.                                                         mes "[Lea]";
  1137.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1138.                                                         delitem 985,9; //Elunium
  1139.                                                         getitem 6192,1; //Magic_Book_SG
  1140.                                                         close;
  1141.                                                 }
  1142.                                                 else {
  1143.                                                         mes "[Lea]";
  1144.                                                         mes "I'm sorry, but you don't have enough funds.";
  1145.                                                         close;
  1146.                                                 }
  1147.                                         break;
  1148.                                         case 3:
  1149.                                                 if (countitem(6193) > 0) {
  1150.                                                         mes "[Lea]";
  1151.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1152.                                                         next;
  1153.                                                         mes "[Lea]";
  1154.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1155.                                                         close;
  1156.                                                 }
  1157.                                                 else if (countitem(985) > 8) {
  1158.                                                         mes "[Lea]";
  1159.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1160.                                                         next;
  1161.                                                         mes "[Lea]";
  1162.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1163.                                                         delitem 985,9; //Elunium
  1164.                                                         getitem 6193,1; //Magic_Book_LOV
  1165.                                                         close;
  1166.                                                 }
  1167.                                                 else {
  1168.                                                         mes "[Lea]";
  1169.                                                         mes "I'm sorry, but you don't have enough funds.";
  1170.                                                         close;
  1171.                                                 }
  1172.                                         break;
  1173.                                         case 4:
  1174.                                                 if (countitem(6194) > 0) {
  1175.                                                         mes "[Lea]";
  1176.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1177.                                                         next;
  1178.                                                         mes "[Lea]";
  1179.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1180.                                                         close;
  1181.                                                 }
  1182.                                                 else if (countitem(985) > 8) {
  1183.                                                         mes "[Lea]";
  1184.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1185.                                                         next;
  1186.                                                         mes "[Lea]";
  1187.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1188.                                                         delitem 985,9; //Elunium
  1189.                                                         getitem 6194,1; //Magic_Book_MS
  1190.                                                         close;
  1191.                                                 }
  1192.                                                 else {
  1193.                                                         mes "[Lea]";
  1194.                                                         mes "I'm sorry, but you don't have enough funds.";
  1195.                                                         close;
  1196.                                                 }
  1197.                                         break;
  1198.                                         case 5:
  1199.                                                 if (countitem(6197) > 0) {
  1200.                                                         mes "[Lea]";
  1201.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1202.                                                         next;
  1203.                                                         mes "[Lea]";
  1204.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1205.                                                         close;
  1206.                                                 }
  1207.                                                 else if (countitem(985) > 8) {
  1208.                                                         mes "[Lea]";
  1209.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1210.                                                         next;
  1211.                                                         mes "[Lea]";
  1212.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1213.                                                         delitem 985,9; //Elunium
  1214.                                                         getitem 6197,1; //Magic_Book_TS
  1215.                                                         close;
  1216.                                                 }
  1217.                                                 else {
  1218.                                                         mes "[Lea]";
  1219.                                                         mes "I'm sorry, but you don't have enough funds.";
  1220.                                                         close;
  1221.                                                 }
  1222.                                         break;
  1223.                                         case 6:
  1224.                                                 if (countitem(6198) > 0) {
  1225.                                                         mes "[Lea]";
  1226.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1227.                                                         next;
  1228.                                                         mes "[Lea]";
  1229.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1230.                                                         close;
  1231.                                                 }
  1232.                                                 else if (countitem(985) > 8) {
  1233.                                                         mes "[Lea]";
  1234.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1235.                                                         next;
  1236.                                                         mes "[Lea]";
  1237.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1238.                                                         delitem 985,9; //Elunium
  1239.                                                         getitem 6198,1; //Magic_Book_JT
  1240.                                                         close;
  1241.                                                 }
  1242.                                                 else {
  1243.                                                         mes "[Lea]";
  1244.                                                         mes "I'm sorry, but you don't have enough funds.";
  1245.                                                         close;
  1246.                                                 }
  1247.                                         break;
  1248.                                         case 7:
  1249.                                                 if (countitem(6199) > 0) {
  1250.                                                         mes "[Lea]";
  1251.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1252.                                                         next;
  1253.                                                         mes "[Lea]";
  1254.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1255.                                                         close;
  1256.                                                 }
  1257.                                                 else if (countitem(985) > 8) {
  1258.                                                         mes "[Lea]";
  1259.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1260.                                                         next;
  1261.                                                         mes "[Lea]";
  1262.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1263.                                                         delitem 985,9; //Elunium
  1264.                                                         getitem 6199,1; //Magic_Book_WB
  1265.                                                         close;
  1266.                                                 }
  1267.                                                 else {
  1268.                                                         mes "[Lea]";
  1269.                                                         mes "I'm sorry, but you don't have enough funds.";
  1270.                                                         close;
  1271.                                                 }
  1272.                                         break;
  1273.                                         case 8:
  1274.                                                 if (countitem(6200) > 0) {
  1275.                                                         mes "[Lea]";
  1276.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1277.                                                         next;
  1278.                                                         mes "[Lea]";
  1279.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1280.                                                         close;
  1281.                                                 }
  1282.                                                 else if (countitem(985) > 8) {
  1283.                                                         mes "[Lea]";
  1284.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1285.                                                         next;
  1286.                                                         mes "[Lea]";
  1287.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1288.                                                         delitem 985,9; //Elunium
  1289.                                                         getitem 6200,1; //Magic_Book_HD
  1290.                                                         close;
  1291.                                                 }
  1292.                                                 else {
  1293.                                                         mes "[Lea]";
  1294.                                                         mes "I'm sorry, but you don't have enough funds.";
  1295.                                                         close;
  1296.                                                 }
  1297.                                         break;
  1298.                                         case 9:
  1299.                                                 if (countitem(6201) > 0) {
  1300.                                                         mes "[Lea]";
  1301.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1302.                                                         next;
  1303.                                                         mes "[Lea]";
  1304.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1305.                                                         close;
  1306.                                                 }
  1307.                                                 else if (countitem(985) > 8) {
  1308.                                                         mes "[Lea]";
  1309.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1310.                                                         next;
  1311.                                                         mes "[Lea]";
  1312.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1313.                                                         delitem 985,9; //Elunium
  1314.                                                         getitem 6201,1; //Magic_Book_ES
  1315.                                                         close;
  1316.                                                 }
  1317.                                                 else {
  1318.                                                         mes "[Lea]";
  1319.                                                         mes "I'm sorry, but you don't have enough funds.";
  1320.                                                         close;
  1321.                                                 }
  1322.                                         break;
  1323.                                         }
  1324.                                 }
  1325.                                 else {
  1326.                                         mes "[Lea]";
  1327.                                         mes "I'm sorry, but you don't have enough funds.";
  1328.                                         close;
  1329.                                 }
  1330.                         break;
  1331.                         }
  1332.                 break;
  1333.                 case 4:
  1334.                         mes "[Lea]";
  1335.                         mes "Oh, do you want the Superior Magic Books? For your information, borrowing those Magic Books requires many conditions and restrictions. Are you sure that you want it?";
  1336.                         next;
  1337.                         switch (select("Yes.")) {
  1338.                         case 1:
  1339.                         break;
  1340.                         }
  1341.                         mes "[Lea]";
  1342.                         mes "I see. If you're determined to borrow the Superior Magic Books, please choose one of the following tyes of payment for the security deposit.";
  1343.                         next;
  1344.                         mes "[Lea]";
  1345.                         mes "[12 Mystery Pieces and 100,000 zeny], [7 Oridecons and 100,000 zeny], or [1 Old Violet Box and 100,000 zeny]. Now how would you like to pay your deposit?";
  1346.                         switch (select("Where can I find those items?:Let me think.:I'll pay with 12 Mystery Pieces and 100,000 zeny.:I'll pay with 7 Oridecons and 100,000 zeny.:I'll pay with 1 Old Violet Box and 100,000 zeny.")) {
  1347.                         next;
  1348.                         case 1:
  1349.                                 mes "[Lea] ";
  1350.                                 mes "Mystery Pieces can be obtained from machine creatures in the Juperos Dungeon, and they're the fountain of knowledge from the ancient civilization. Ah, I get excited thinking about those artifacts.";
  1351.                                 next;
  1352.                                 mes "[Lea]";
  1353.                                 mes "Oridecons can be obtained from Executioners, Gryphons, Jokers, and Abysmal Knights, but it'll be easier to collect Rough Oridecons than Oridecons.";
  1354.                                 next;
  1355.                                 mes "[Lea]";
  1356.                                 mes "You can refine Rough Oridecons to Oridecons at the Forge in town.";
  1357.                                 next;
  1358.                                 mes "[Lea]";
  1359.                                 mes "Old Violet Boxes can be obtained from Mimics, Megaliths, Orc Lords, Stormy Knights, and Osirises.";
  1360.                                 next;
  1361.                                 mes "[Lea]";
  1362.                                 mes "The boxes are a subject worthy of serious study since they're used to test Schrodinger's pet cat.";
  1363.                                 close;
  1364.                         break;
  1365.                         case 2:
  1366.                                 mes "[Lea]";
  1367.                                 mes "If you're unable to collect the items for the security deposit, I can offer you an alternate payment method.";
  1368.                                 next;
  1369.                                 mes "[Lea]";
  1370.                                 mes "How does 200,000 Rune-Midgartian zeny sound?";
  1371.                                 switch (select("I'm sorry, but I can't pay that much.:Sounds good.")) {
  1372.                                 next;
  1373.                                 case 1:
  1374.                                         mes "[Lea]";
  1375.                                         mes "I see.";
  1376.                                         close;
  1377.                                 break;
  1378.                                 case 2:
  1379.                                         set .@bk_money, Zeny;
  1380.                                         if (.@bk_money > 199999) {
  1381.                                                 mes "[Lea]";
  1382.                                                 mes "What kind of Magic Book do you want?";
  1383.                                                 next;
  1384.                                                 switch (select("Let me think.:Magic Book (Earth Strain):Magic Book (Chain Lightning):Magic Book (Crimson Rock):Magic Book (Drain Life)")) {
  1385.                                                 case 1:
  1386.                                                         mes "[Lea]";
  1387.                                                         mes "No problem.";
  1388.                                                         close;
  1389.                                                 break;
  1390.                                                 case 2:
  1391.                                                         if (countitem(6202) > 0) {
  1392.                                                                 mes "[Lea]";
  1393.                                                                 mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1394.                                                                 next;
  1395.                                                                 mes "[Lea]";
  1396.                                                                 mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1397.                                                                 close;
  1398.                                                         }
  1399.                                                         else if (.@bk_money > 199999) {
  1400.                                                                 mes "[Lea]";
  1401.                                                                 mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1402.                                                                 next;
  1403.                                                                 mes "[Lea]";
  1404.                                                                 mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1405.                                                                 set Zeny, Zeny - 200000;
  1406.                                                                 getitem 6202,1; //Magic_Book_ES_
  1407.                                                                 close;
  1408.                                                         }
  1409.                                                         else {
  1410.                                                                 mes "[Lea]";
  1411.                                                                 mes "I'm sorry, but you don't have enough funds.";
  1412.                                                                 close;
  1413.                                                         }
  1414.                                                 break;
  1415.                                                 case 3:
  1416.                                                         if (countitem(6203) > 0) {
  1417.                                                                 mes "[Lea]";
  1418.                                                                 mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1419.                                                                 next;
  1420.                                                                 mes "[Lea]";
  1421.                                                                 mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1422.                                                                 close;
  1423.                                                         }
  1424.                                                         else if (.@bk_money > 199999) {
  1425.                                                                 mes "[Lea]";
  1426.                                                                 mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1427.                                                                 next;
  1428.                                                                 mes "[Lea]";
  1429.                                                                 mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1430.                                                                 set Zeny, Zeny - 200000;
  1431.                                                                 getitem 6203,1; //Magic_Book_CL
  1432.                                                                 close;
  1433.                                                         }
  1434.                                                         else {
  1435.                                                                 mes "[Lea]";
  1436.                                                                 mes "I'm sorry, but you don't have enough funds.";
  1437.                                                                 close;
  1438.                                                         }
  1439.                                                 break;
  1440.                                                 case 4:
  1441.                                                         if (countitem(6204) > 0) {
  1442.                                                                 mes "[Lea]";
  1443.                                                                 mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1444.                                                                 next;
  1445.                                                                 mes "[Lea]";
  1446.                                                                 mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1447.                                                                 close;
  1448.                                                         }
  1449.                                                         else if (.@bk_money > 199999) {
  1450.                                                                 mes "[Lea]";
  1451.                                                                 mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1452.                                                                 next;
  1453.                                                                 mes "[Lea]";
  1454.                                                                 mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1455.                                                                 set Zeny, Zeny - 200000;
  1456.                                                                 getitem 6204,1; //Magic_Book_CR
  1457.                                                                 close;
  1458.                                                         }
  1459.                                                         else {
  1460.                                                                 mes "[Lea]";
  1461.                                                                 mes "I'm sorry, but you don't have enough funds.";
  1462.                                                                 close;
  1463.                                                         }
  1464.                                                 break;
  1465.                                                 case 5:
  1466.                                                         if (countitem(6205) > 0) {
  1467.                                                                 mes "[Lea]";
  1468.                                                                 mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1469.                                                                 next;
  1470.                                                                 mes "[Lea]";
  1471.                                                                 mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1472.                                                                 close;
  1473.                                                         }
  1474.                                                         else if (.@bk_money > 199999) {
  1475.                                                                 mes "[Lea]";
  1476.                                                                 mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1477.                                                                 next;
  1478.                                                                 mes "[Lea]";
  1479.                                                                 mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1480.                                                                 set Zeny, Zeny - 200000;
  1481.                                                                 getitem 6205,1; //Magic_Book_DL
  1482.                                                                 close;
  1483.                                                         }
  1484.                                                         else {
  1485.                                                                 mes "[Lea]";
  1486.                                                                 mes "I'm sorry, but you don't have enough funds.";
  1487.                                                                 close;
  1488.                                                         }
  1489.                                                 break;
  1490.                                                 }
  1491.                                         }
  1492.                                         else {
  1493.                                                 mes "[Lea]";
  1494.                                                 mes "I'm sorry, but you don't have enough funds.";
  1495.                                                 close;
  1496.                                         }
  1497.                                 break;
  1498.                                 }
  1499.                         break;
  1500.                         case 3:
  1501.                                 set .@bk_money, Zeny;
  1502.                                 if ((.@bk_money > 99999) && (countitem(7094) > 11)) {
  1503.                                         mes "[Lea]";
  1504.                                         mes "What kind of Magic Book do you want?";
  1505.                                         next;
  1506.                                         switch (select("Let me think.:Magic Book (Earth Strain):Magic Book (Chain Lightning):Magic Book (Crimson Rock):Magic Book (Drain Life)")) {
  1507.                                         case 1:
  1508.                                                 mes "[Lea]";
  1509.                                                 mes "No problem.";
  1510.                                                 close;
  1511.                                         break;
  1512.                                         case 2:
  1513.                                                 if (countitem(6202) > 0) {
  1514.                                                         mes "[Lea]";
  1515.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1516.                                                         next;
  1517.                                                         mes "[Lea]";
  1518.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1519.                                                         close;
  1520.                                                 }
  1521.                                                 else if ((.@bk_money > 99999) && (countitem(7094) > 11)) {
  1522.                                                         mes "[Lea]";
  1523.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1524.                                                         next;
  1525.                                                         mes "[Lea]";
  1526.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1527.                                                         set Zeny, Zeny - 100000;
  1528.                                                         delitem 7094,12; //Mystery_Piece
  1529.                                                         getitem 6202,1; //Magic_Book_ES_
  1530.                                                         close;
  1531.                                                 }
  1532.                                                 else {
  1533.                                                         mes "[Lea]";
  1534.                                                         mes "I'm sorry, but you don't have enough funds.";
  1535.                                                         close;
  1536.                                                 }
  1537.                                         break;
  1538.                                         case 3:
  1539.                                                 if (countitem(6203) > 0) {
  1540.                                                         mes "[Lea]";
  1541.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1542.                                                         next;
  1543.                                                         mes "[Lea]";
  1544.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1545.                                                         close;
  1546.                                                 }
  1547.                                                 else if ((.@bk_money > 99999) && (countitem(7094) > 11)) {
  1548.                                                         mes "[Lea]";
  1549.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1550.                                                         next;
  1551.                                                         mes "[Lea]";
  1552.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1553.                                                         set Zeny, Zeny - 100000;
  1554.                                                         delitem 7094,12; //Mystery_Piece
  1555.                                                         getitem 6203,1; //Magic_Book_CL
  1556.                                                         close;
  1557.                                                 }
  1558.                                                 else {
  1559.                                                         mes "[Lea]";
  1560.                                                         mes "I'm sorry, but you don't have enough funds.";
  1561.                                                         close;
  1562.                                                 }
  1563.                                         break;
  1564.                                         case 4:
  1565.                                                 if (countitem(6204) > 0) {
  1566.                                                         mes "[Lea]";
  1567.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1568.                                                         next;
  1569.                                                         mes "[Lea]";
  1570.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1571.                                                         close;
  1572.                                                 }
  1573.                                                 else if ((.@bk_money > 99999) && (countitem(7094) > 11)) {
  1574.                                                         mes "[Lea]";
  1575.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1576.                                                         next;
  1577.                                                         mes "[Lea]";
  1578.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1579.                                                         set Zeny, Zeny - 100000;
  1580.                                                         delitem 7094,12; //Mystery_Piece
  1581.                                                         getitem 6204,1; //Magic_Book_CR
  1582.                                                         close;
  1583.                                                 }
  1584.                                                 else {
  1585.                                                         mes "[Lea]";
  1586.                                                         mes "I'm sorry, but you don't have enough funds.";
  1587.                                                         close;
  1588.                                                 }
  1589.                                         break;
  1590.                                         case 5:
  1591.                                                 if (countitem(6205) > 0) {
  1592.                                                         mes "[Lea]";
  1593.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1594.                                                         next;
  1595.                                                         mes "[Lea]";
  1596.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1597.                                                         close;
  1598.                                                 }
  1599.                                                 else if ((.@bk_money > 99999) && (countitem(7094) > 11)) {
  1600.                                                         mes "[Lea]";
  1601.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1602.                                                         next;
  1603.                                                         mes "[Lea]";
  1604.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1605.                                                         set Zeny, Zeny - 100000;
  1606.                                                         delitem 7094,12; //Mystery_Piece
  1607.                                                         getitem 6205,1; //Magic_Book_DL
  1608.                                                         close;
  1609.                                                 }
  1610.                                                 else {
  1611.                                                         mes "[Lea]";
  1612.                                                         mes "I'm sorry, but you don't have enough funds.";
  1613.                                                         close;
  1614.                                                 }
  1615.                                         break;
  1616.                                         }
  1617.                                 }
  1618.                                 else {
  1619.                                         mes "[Lea]";
  1620.                                         mes "I'm sorry, but you don't have enough funds.";
  1621.                                         close;
  1622.                                 }
  1623.                         break;
  1624.                         case 4:
  1625.                                 set .@bk_money, Zeny;
  1626.                                 if ((.@bk_money > 99999) && (countitem(984) > 6)) {
  1627.                                         mes "[Lea]";
  1628.                                         mes "What kind of Magic Book do you want?";
  1629.                                         next;
  1630.                                         switch (select("Let me think.:Magic Book (Earth Strain):Magic Book (Chain Lightning):Magic Book (Crimson Rock):Magic Book (Drain Life)")) {
  1631.                                         case 1:
  1632.                                                 mes "[Lea]";
  1633.                                                 mes "No problem.";
  1634.                                                 close;
  1635.                                         break;
  1636.                                         case 2:
  1637.                                                 if (countitem(6202) > 0) {
  1638.                                                         mes "[Lea]";
  1639.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1640.                                                         next;
  1641.                                                         mes "[Lea]";
  1642.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1643.                                                         close;
  1644.                                                 }
  1645.                                                 else if ((.@bk_money > 99999) && (countitem(984) > 6)) {
  1646.                                                         mes "[Lea]";
  1647.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1648.                                                         next;
  1649.                                                         mes "[Lea]";
  1650.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1651.                                                         set Zeny, Zeny - 100000;
  1652.                                                         delitem 984,7; //Oridecon
  1653.                                                         getitem 6202,1; //Magic_Book_ES_
  1654.                                                         close;
  1655.                                                 }
  1656.                                                 else {
  1657.                                                         mes "[Lea]";
  1658.                                                         mes "I'm sorry, but you don't have enough funds.";
  1659.                                                         close;
  1660.                                                 }
  1661.                                         break;
  1662.                                         case 3:
  1663.                                                 if (countitem(6203) > 0) {
  1664.                                                         mes "[Lea]";
  1665.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1666.                                                         next;
  1667.                                                         mes "[Lea]";
  1668.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1669.                                                         close;
  1670.                                                 }
  1671.                                                 else if ((.@bk_money > 99999) && (countitem(984) > 6)) {
  1672.                                                         mes "[Lea]";
  1673.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1674.                                                         next;
  1675.                                                         mes "[Lea]";
  1676.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1677.                                                         set Zeny, Zeny - 100000;
  1678.                                                         delitem 984,7; //Oridecon
  1679.                                                         getitem 6203,1; //Magic_Book_CL
  1680.                                                         close;
  1681.                                                 }
  1682.                                                 else {
  1683.                                                         mes "[Lea]";
  1684.                                                         mes "I'm sorry, but you don't have enough funds.";
  1685.                                                         close;
  1686.                                                 }
  1687.                                         break;
  1688.                                         case 4:
  1689.                                                 if (countitem(6204) > 0) {
  1690.                                                         mes "[Lea]";
  1691.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1692.                                                         next;
  1693.                                                         mes "[Lea]";
  1694.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1695.                                                         close;
  1696.                                                 }
  1697.                                                 else if ((.@bk_money > 99999) && (countitem(984) > 6)) {
  1698.                                                         mes "[Lea]";
  1699.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1700.                                                         next;
  1701.                                                         mes "[Lea]";
  1702.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1703.                                                         set Zeny, Zeny - 100000;
  1704.                                                         delitem 984,7; //Oridecon
  1705.                                                         getitem 6204,1; //Magic_Book_CR
  1706.                                                         close;
  1707.                                                 }
  1708.                                                 else {
  1709.                                                         mes "[Lea]";
  1710.                                                         mes "I'm sorry, but you don't have enough funds.";
  1711.                                                         close;
  1712.                                                 }
  1713.                                         break;
  1714.                                         case 5:
  1715.                                                 if (countitem(6205) > 0) {
  1716.                                                         mes "[Lea]";
  1717.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1718.                                                         next;
  1719.                                                         mes "[Lea]";
  1720.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1721.                                                         close;
  1722.                                                 }
  1723.                                                 else if ((.@bk_money > 99999) && (countitem(984) > 6)) {
  1724.                                                         mes "[Lea]";
  1725.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1726.                                                         next;
  1727.                                                         mes "[Lea]";
  1728.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1729.                                                         set Zeny, Zeny - 100000;
  1730.                                                         delitem 984,7; //Oridecon
  1731.                                                         getitem 6205,1; //Magic_Book_DL
  1732.                                                         close;
  1733.                                                 }
  1734.                                                 else {
  1735.                                                         mes "[Lea]";
  1736.                                                         mes "I'm sorry, but you don't have enough funds.";
  1737.                                                         close;
  1738.                                                 }
  1739.                                         break;
  1740.                                         }
  1741.                                 }
  1742.                                 else {
  1743.                                         mes "[Lea]";
  1744.                                         mes "I'm sorry, but you don't have enough funds.";
  1745.                                         close;
  1746.                                 }
  1747.                         break;
  1748.                         case 5:
  1749.                                 set .@bk_money, Zeny;
  1750.                                 if ((.@bk_money > 99999) && (countitem(617) > 0)) {
  1751.                                         mes "[Lea]";
  1752.                                         mes "What kind of Magic Book do you want?";
  1753.                                         next;
  1754.                                         switch (select("Let me think.:Magic Book (Earth Strain):Magic Book (Chain Lightning):Magic Book (Crimson Rock):Magic Book (Drain Life)")) {
  1755.                                         case 1:
  1756.                                                 mes "[Lea]";
  1757.                                                 mes "No problem.";
  1758.                                                 close;
  1759.                                         break;
  1760.                                         case 2:
  1761.                                                 if (countitem(6202) > 0) {
  1762.                                                         mes "[Lea]";
  1763.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1764.                                                         next;
  1765.                                                         mes "[Lea]";
  1766.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1767.                                                         close;
  1768.                                                 }
  1769.                                                 else if ((.@bk_money > 99999) && (countitem(617) > 0)) {
  1770.                                                         mes "[Lea]";
  1771.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1772.                                                         next;
  1773.                                                         mes "[Lea]";
  1774.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1775.                                                         set Zeny, Zeny - 100000;
  1776.                                                         delitem 617,1; //Old_Violet_Box
  1777.                                                         getitem 6202,1; //Magic_Book_ES_
  1778.                                                         close;
  1779.                                                 }
  1780.                                                 else {
  1781.                                                         mes "[Lea]";
  1782.                                                         mes "I'm sorry, but you don't have enough funds.";
  1783.                                                         close;
  1784.                                                 }
  1785.                                         break;
  1786.                                         case 3:
  1787.                                                 if (countitem(6203) > 0) {
  1788.                                                         mes "[Lea]";
  1789.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1790.                                                         next;
  1791.                                                         mes "[Lea]";
  1792.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1793.                                                         close;
  1794.                                                 }
  1795.                                                 else if ((.@bk_money > 99999) && (countitem(617) > 0)) {
  1796.                                                         mes "[Lea]";
  1797.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1798.                                                         next;
  1799.                                                         mes "[Lea]";
  1800.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1801.                                                         set Zeny, Zeny - 100000;
  1802.                                                         delitem 617,1; //Old_Violet_Box
  1803.                                                         getitem 6203,1; //Magic_Book_CL
  1804.                                                         close;
  1805.                                                 }
  1806.                                                 else {
  1807.                                                         mes "[Lea]";
  1808.                                                         mes "I'm sorry, but you don't have enough funds.";
  1809.                                                         close;
  1810.                                                 }
  1811.                                         break;
  1812.                                         case 4:
  1813.                                                 if (countitem(6204) > 0) {
  1814.                                                         mes "[Lea]";
  1815.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1816.                                                         next;
  1817.                                                         mes "[Lea]";
  1818.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1819.                                                         close;
  1820.                                                 }
  1821.                                                 else if ((.@bk_money > 99999) && (countitem(617) > 0)) {
  1822.                                                         mes "[Lea]";
  1823.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1824.                                                         next;
  1825.                                                         mes "[Lea]";
  1826.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1827.                                                         set Zeny, Zeny - 100000;
  1828.                                                         delitem 617,1; //Old_Violet_Box
  1829.                                                         getitem 6204,1; //Magic_Book_CR
  1830.                                                         close;
  1831.                                                 }
  1832.                                                 else {
  1833.                                                         mes "[Lea]";
  1834.                                                         mes "I'm sorry, but you don't have enough funds.";
  1835.                                                         close;
  1836.                                                 }
  1837.                                         break;
  1838.                                         case 5:
  1839.                                                 if (countitem(6205) > 0) {
  1840.                                                         mes "[Lea]";
  1841.                                                         mes "You already have that Magic Book. You can't borrow a new book until you return the current one.";
  1842.                                                         next;
  1843.                                                         mes "[Lea]";
  1844.                                                         mes "Don't you know how many others would want the book you already have? It's a bit selfish to want more than one, you know.";
  1845.                                                         close;
  1846.                                                 }
  1847.                                                 else if ((.@bk_money > 99999) && (countitem(617) > 0)) {
  1848.                                                         mes "[Lea]";
  1849.                                                         mes "Thank you for your deposit. The book's return date is written on the lending card on the back cover of the book. Please try not to lose or damage the book and avoid paying compensation.";
  1850.                                                         next;
  1851.                                                         mes "[Lea]";
  1852.                                                         mes "The Intermediate and Superior Magic Books must be returned upon borrowing the Ultimate Magic Book. Remember that you're just borrowing them, so make sure you take good care of those books.";
  1853.                                                         set Zeny, Zeny - 100000;
  1854.                                                         delitem 617,1; //Old_Violet_Box
  1855.                                                         getitem 6205,1; //Magic_Book_DL
  1856.                                                         close;
  1857.                                                 }
  1858.                                                 else {
  1859.                                                         mes "[Lea]";
  1860.                                                         mes "I'm sorry, but you don't have enough funds.";
  1861.                                                         close;
  1862.                                                 }
  1863.                                         break;
  1864.                                         }
  1865.                                 }
  1866.                                 else {
  1867.                                         mes "[Lea]";
  1868.                                         mes "I'm sorry, but you don't have enough funds.";
  1869.                                         close;
  1870.                                 }
  1871.                         break;
  1872.                         }
  1873.                         close;
  1874.                 break;
  1875.                 case 5:
  1876.                         if ((BaseLevel > 139) && (mac_book < 1) && ((getskilllv("WL_TETRAVORTEX")) || (getskilllv("WL_COMET")))) {
  1877.                                 mes "[Lea]";
  1878.                                 mes "Did... Did you just say the Ultimate Magic Book?";
  1879.                                 next;
  1880.                                 mes "[Lea]";
  1881.                                 mes "Oh, my....";
  1882.                                 mes "I can't believe someone actually wants that book.";
  1883.                                 next;
  1884.                                 switch (select("Please don't say that you don't have it.")) {
  1885.                                 case 1:
  1886.                                 break;
  1887.                                 }
  1888.                                 mes "[Lea]";
  1889.                                 mes "Frankly, I've never even seen the Ultimate Magic Book.";
  1890.                                 next;
  1891.                                 mes "[Lea]";
  1892.                                 mes "You should ask Master Velof if you want to know more about that book.";
  1893.                                 next;
  1894.                                 mes "[Lea]";
  1895.                                 mes "I'm sorry that I can't help you more than that.";
  1896.                                 set mac_book, 1;
  1897.                                 close;
  1898.                         }
  1899.                         else if ((BaseLevel > 139) && (mac_book > 0) && ((getskilllv("WL_TETRAVORTEX")) || (getskilllv("WL_COMET")))) {
  1900.                                 mes "[Lea]";
  1901.                                 mes "You should ask Master Velof for some information about that book.";
  1902.                                 close;
  1903.                         }
  1904.                         else {
  1905.                                 mes "[Lea]";
  1906.                                 mes "How about practicing your magic spells for now?";
  1907.                                 next;
  1908.                                 mes "[Lea]";
  1909.                                 mes "In order to obtain the Ultimate Magic Book, you must reach Level 140 and learn Tetera Bolt and Comet.";
  1910.                                 next;
  1911.                                 mes "[Lea]";
  1912.                                 mes "That book can't be used by just anyone, you know?";
  1913.                                 close;
  1914.                         }
  1915.                 break;
  1916.                 }
  1917.                 close;
  1918.         }
  1919.         else {
  1920.                 mes "[Lea]";
  1921.                 mes "Welcome to the Magic Archive. You can read and borrow books from here under certain conditions.";
  1922.                 close;
  1923.         }
  1924.         close;
  1925. }
  1926.  
  1927. mid_camp,255,244,4	script	Galfos	735,{
  1928.         set .@now_weight, MaxWeight - Weight;
  1929.         if (checkweight(1201,1) == 0) {
  1930.                 mes "You're carrying too many items. Please make some room in your bag first.";
  1931.                 close;
  1932.         }
  1933.         if (.@now_weight < 1000) {
  1934.                 mes "You're overweight with items. Please lose some item weight first.";
  1935.                 close;
  1936.         }
  1937.         if (IsBaby == 1) {
  1938.                 mes "[Galfos]";
  1939.                 mes "What are you, a baby?";
  1940.                 mes "I'm not here to babysit. Get lost!";
  1941.                 close;
  1942.         }
  1943.         if ((Class != Job_Warlock) && (Class != Job_Warlock_T)) {
  1944.                 mes "[Galfos]";
  1945.                 mes "My right arm feels hot while my left arm feels cold. I can never get used to this weird weather!";
  1946.                 close;
  1947.         }
  1948.         if (!getskilllv("WL_RELEASE")) {
  1949.                 mes "[Galfos]";
  1950.                 mes "Ah, I'll get myself in trouble if I stay here any longer. Maybe I'm already in...";
  1951.                 close;
  1952.         }
  1953.         if ((BaseLevel < 140) || ((!getskilllv("WL_TETRAVORTEX")) || (!getskilllv("WL_COMET")))) {
  1954.                 mes "[Galfos]";
  1955.                 mes "I'm sorry, but I don't talk to people that aren't even ready for this.";
  1956.                 close;
  1957.         }
  1958.         else {
  1959.                 if (mac_book < 2) {
  1960.                         mes "[Galfos]";
  1961.                         mes "You look strong, but you don't seem to have any business with me.";
  1962.                         close;
  1963.                 }
  1964.                 else if (mac_book == 2) {
  1965.                         mes "[Galfos]";
  1966.                         mes "What brings you to me?";
  1967.                         next;
  1968.                         switch (select("I heard that you've studied the Ultimate Magic Book.")) {
  1969.                         case 1:
  1970.                         break;
  1971.                         }
  1972.                         mes "[Galfos]";
  1973.                         mes "Why, are you interested too?";
  1974.                         mes "I didn't know someone would actually take an interest in that book. Yes, I'm studying that magic book. How did you find that out?";
  1975.                         next;
  1976.                         switch (select("You're Velof's brother, right?")) {
  1977.                         case 1:
  1978.                         break;
  1979.                         }
  1980.                         mes "[Galfos]";
  1981.                         mes "Yes, I'm Galfos, and Velof is my brother.";
  1982.                         next;
  1983.                         mes "[Galfos]";
  1984.                         mes "Wait a minute,";
  1985.                         mes "did the old man recommend me to you?";
  1986.                         next;
  1987.                         switch (select("That's right.")) {
  1988.                         case 1:
  1989.                         break;
  1990.                         }
  1991.                         mes "[Galfos]";
  1992.                         mes "Wow!";
  1993.                         mes "This is surprising. He never took my research very seriously. I'm glad that he finally changed his mind.";
  1994.                         next;
  1995.                         mes "[Galfos]";
  1996.                         mes "Heh! Your timing couldn't be better: I was looking for a test object.";
  1997.                         next;
  1998.                         switch (select("A test object?")) {
  1999.                         case 1:
  2000.                         break;
  2001.                         }
  2002.                         mes "[Galfos]";
  2003.                         mes "Frankly, I'm only interested in creating the Ultimate Magic Book.";
  2004.                         next;
  2005.                         mes "[Galfos]";
  2006.                         mes "I'm not good at using magic, not to mention that I prefer fists in fighting. Nevertheless, I find Magic Books to be incredibly intriguing.";
  2007.                         next;
  2008.                         mes "[Galfos]";
  2009.                         mes "The problem is that I can't use the Ultimate Magic Book, even if I made one. That's why I can't really test it on my own.";
  2010.                         next;
  2011.                         mes "[Galfos]";
  2012.                         mes "That's why I've been waiting for a true magic practitioner like you that can help me test my Ultimate Magic Book.";
  2013.                         next;
  2014.                         switch (select("(What is he talking about?)")) {
  2015.                         case 1:
  2016.                         break;
  2017.                         }
  2018.                         mes "[Galfos]";
  2019.                         mes "My research is almost done,";
  2020.                         mes "and I need to solve one last problem to create the Magic Book.";
  2021.                         next;
  2022.                         mes "[Galfos]";
  2023.                         mes "To make the ancient Ultimate Magic Book, I need an artifact and some spells to fuse into it.";
  2024.                         next;
  2025.                         mes "[Galfos]";
  2026.                         mes "I've perfectly restored the spells based on the ancient documents, but I still have no information about the necessary artifact.";
  2027.                         next;
  2028.                         mes "[Galfos]";
  2029.                         mes "Ah, but there's a silver lining!";
  2030.                         next;
  2031.                         switch (select("(Now we're getting somewhere!)")) {
  2032.                         case 1:
  2033.                         break;
  2034.                         }
  2035.                         mes "[Galfos]";
  2036.                         mes "Ha ha...";
  2037.                         mes "There's a great archive in El Dicastes, the Capital City of the Evil Giants, where all knowledge in this world is stored.";
  2038.                         next;
  2039.                         mes "[Galfos]";
  2040.                         mes "Maybe that's the place to find some information about the artifact for this Ultimate Magic Book.";
  2041.                         next;
  2042.                         mes "[Galfos]";
  2043.                         mes "You know what to do, don't you? Find information about the artifact in the El Dicastes archive, using everything in your power.";
  2044.                         next;
  2045.                         mes "[Galfos]";
  2046.                         mes "Afterwards, create and bring me the artifact. We'll talk about creating the Magic Book afterwards.";
  2047.                         set mac_book, 3;
  2048.                 }
  2049.                 else if (mac_book == 3) {
  2050.                         mes "[Galfos]";
  2051.                         mes "You know what to do, don't you? Find information about the artifact in the El Dicastes archive, using everything in your power.";
  2052.                         next;
  2053.                         mes "[Galfos]";
  2054.                         mes "Afterwards, create and bring me the artifact. We'll talk about creating the Magic Book afterwards.";
  2055.                         close;
  2056.                 }
  2057.                 else if (mac_book == 4) {
  2058.                         mes "[Galfos]";
  2059.                         mes "Oh, did you find";
  2060.                         mes "anything useful?";
  2061.                         next;
  2062.                         switch (select("I've discovered everything about Comet.:I've mastered the zenith of Tetra Vortex.")) {
  2063.                         case 1:
  2064.                                 if (countitem(6195) > 0) {
  2065.                                         mes "[Galfos]";
  2066.                                         mes "Are you kidding me? You already have the book!";
  2067.                                         close;
  2068.                                 }
  2069.                                 if (checkquest(12218) == 2) {
  2070.                                         mes "[Galfos]";
  2071.                                         mes "Oh my, I sense incredible energy coming from you. This is great! Now we're ready to make the Ultimate Magic Book.";
  2072.                                         next;
  2073.                                         mes "[Galfos]";
  2074.                                         mes "There's one problem, though: I'm so broke that I don't even have enough money to buy the tools to make the book.";
  2075.                                         next;
  2076.                                         mes "[Galfos]";
  2077.                                         mes "I need at least ^0000aa1000,000 zeny^000000 to buy all the necessary tools. Do you have the money?";
  2078.                                         next;
  2079.                                         switch (select("Wh-what? No!:Sure.")) {
  2080.                                         case 1:
  2081.                                                 mes "[Galfos]";
  2082.                                                 mes "Aw, you don't? It's disappointing, but there's nothing I can do. Come back when you have enough money, okay?";
  2083.                                                 close;
  2084.                                         break;
  2085.                                         case 2:
  2086.                                                 set .@bk_money, Zeny;
  2087.                                                 if (.@bk_money > 1000000) {
  2088.                                                         mes "[Galfos]";
  2089.                                                         mes "Alright then, let's get started!";
  2090.                                                         next;
  2091.                                                         specialeffect2 EF_DISPELL;
  2092. //                                                      progress_bar "ffff00" "4"
  2093.                                                         specialeffect2 EF_LORD;
  2094.                                                         set Zeny, Zeny - 1000000;
  2095.                                                         getitem 6195,1; //Magic_Book_CM
  2096.                                                         mes "[Galfos]";
  2097.                                                         mes "Man, I almost lost my control to the incredible magic energy! Here's your Magic Book.";
  2098.                                                         next;
  2099.                                                         mes "[Galfos]";
  2100.                                                         mes "Thank you for making my dream come true. Feel free to come back if you need another one of these books.";
  2101.                                                         close;
  2102.                                                 }
  2103.                                                 else {
  2104.                                                         mes "[Galfos]";
  2105.                                                         mes "Hey, what did I tell you? I can't buy the tools to make the book without money!";
  2106.                                                         close;
  2107.                                                 }
  2108.                                         break;
  2109.                                         }
  2110.                                 }
  2111.                                 else {
  2112.                                         mes "[Galfos]";
  2113.                                         mes "Are you sure that you've found something? It doesn't seem like you've learned what we need...";
  2114.                                         next;
  2115.                                 }
  2116.                         break;
  2117.                         case 2:
  2118.                                 if (countitem(6196) > 0) {
  2119.                                         mes "[Galfos]";
  2120.                                         mes "Are you kidding me? You already have the book!";
  2121.                                         close;
  2122.                                 }
  2123.                                 if ((checkquest(12219) == 2) && (checkquest(12220) == 2) && (checkquest(12221) == 2) && (checkquest(12222) == 2)) {
  2124.                                         mes "[Galfos]";
  2125.                                         mes "Oh my, I sense incredible energy coming from you. This is great! Now we're ready to make the Ultimate Magic Book.";
  2126.                                         next;
  2127.                                         mes "[Galfos]";
  2128.                                         mes "There's one problem, though: I'm so broke that I don't even have enough money to buy the tools to make the book.";
  2129.                                         next;
  2130.                                         mes "[Galfos]";
  2131.                                         mes "I need at least ^0000aa1000,000 zeny^000000 to buy all the necessary tools. Do you have the money?";
  2132.                                         next;
  2133.                                         switch (select("Wh-what? No!:Sure.")) {
  2134.                                         case 1:
  2135.                                                 mes "[Galfos]";
  2136.                                                 mes "Aw, you don't? It's disappointing, but there's nothing I can do. Come back when you have enough money, okay?";
  2137.                                                 close;
  2138.                                         break;
  2139.                                         case 2:
  2140.                                                 set .@bk_money, Zeny;
  2141.                                                 if (.@bk_money > 1000000) {
  2142.                                                         mes "[Galfos]";
  2143.                                                         mes "Alright then, let's get started!";
  2144.                                                         next;
  2145.                                                         specialeffect2 EF_DISPELL;
  2146. //                                                      progress_bar "ffff00" "4"
  2147.                                                         specialeffect2 EF_LORD;
  2148.                                                         set Zeny, Zeny - 1000000;
  2149.                                                         getitem 6196,1; //Magic_Book_TV
  2150.                                                         mes "[Galfos]";
  2151.                                                         mes "Man, I almost lost my control to the incredible magic energy. Here's your Magic Book.";
  2152.                                                         next;
  2153.                                                         mes "[Galfos]";
  2154.                                                         mes "Thank you for making my dream come true. Feel free to come back if you need another one of these books.";
  2155.                                                         close;
  2156.                                                 }
  2157.                                                 else {
  2158.                                                         mes "[Galfos]";
  2159.                                                         mes "Hey, what did I tell you? I can't buy the tools to make the book without money!";
  2160.                                                         close;
  2161.                                                 }
  2162.                                         break;
  2163.                                         }
  2164.                                 }
  2165.                                 else {
  2166.                                         mes "[Galfos]";
  2167.                                         mes "Are you sure that you've found something? It doesn't seem like you've learned what we need...";
  2168.                                         next;
  2169.                                 }
  2170.                         break;
  2171.                         }
  2172.                         close;
  2173.                 }
  2174.                 else {
  2175.                         mes "[Galfos]";
  2176.                         mes "Is there anything else you need?";
  2177.                         close;
  2178.                 }
  2179.         }
  2180. end;
  2181. }
  2182.  
  2183. dic_in01,25,190,0	script	Mysterious Documents#0004	844,{
  2184.         set .@check_trans, isequipped(2782);
  2185.         if (.@check_trans < 1) {
  2186.                 mes "I better not forget to equip my ring.";
  2187.                 close;
  2188.         }
  2189.         if (ep13_3_invite < 6) {
  2190.                 mes "When you approach the documents, an Evil Giant that looks like the archive manager tries to call Guard Galton. You should get out of here quickly.";
  2191.                 close;
  2192.         }
  2193.         if (checkquest(12165,PLAYTIME) == 1) {
  2194.                 mes "The documents are making you feel nauseous. You should come back later after your stomach settles.";
  2195.                 close;
  2196.         }
  2197.         else if (checkquest(12165,PLAYTIME) == 2) {
  2198.                 mes "You don't feel as nauseous anymore. It should be safe to proceed now.";
  2199.                 erasequest 12165;
  2200.                 close;
  2201.         }
  2202.         if ((BaseLevel < 140) || ((!getskilllv("WL_TETRAVORTEX")) || (!getskilllv("WL_COMET")))) {
  2203.                 mes "The documents in this container aren't legible. It's not use trying to read them.";
  2204.                 close;
  2205.         }
  2206.         else {
  2207. //              ShowEffect p_name EF_DISPELL
  2208. //              progress_bar "ffff00" "4"
  2209.                 if (mac_book < 3) {
  2210.                         mes "You have discovered records about magic, acceleration, and particle waves.";
  2211.                         close;
  2212.                 }
  2213.                 else if (mac_book == 3) {
  2214.                         mes "You have discovered records about magic, acceleration, and particle waves. These documents must be the ones that Galfos is looking for.";
  2215.                         set mac_book, 4;
  2216.                         close;
  2217.                 }
  2218.                 else if (mac_book == 4) {
  2219.                         set .@tut_13, rand(1,10);
  2220.                         if (.@tut_13 == 1) {
  2221.                                 if (getskilllv("WL_COMET")) {
  2222.                                         if (checkquest(12218) == 1) {
  2223.                                                 mes "You already own this document.";
  2224.                                                 close;
  2225.                                         }
  2226.                                         mes "^660066In order to create the essence of lava, you must refine 40 Burning Hearts at the hottest place on the 2nd floor of the Thor's Volcano Dungeon.^000000";
  2227.                                         mes "^660066You must do this by using the greatest power in that place. The Humans have used this method to study the acceleration of magic particles since ancient times.^000000";
  2228.                                         next;
  2229.                                         mes "You have discovered the ^990099Lava Essence Creation Method^000000. Please check your Quest window for more details.";
  2230.                                         specialeffect2 EF_STEAL;
  2231.                                         close2;
  2232.                                         setquest 12218;
  2233.                                         end;
  2234.                                 }
  2235.                                 else {
  2236.                                         mes "Nothing in this document looks useful.";
  2237.                                         close2;
  2238.                                 }
  2239.                         }
  2240.                         else if (.@tut_13 == 2) {
  2241.                                 if (getskilllv("WL_TETRAVORTEX")) {
  2242.                                         if (checkquest(12219) == 1) {
  2243.                                                 mes "You already own this document.";
  2244.                                                 close;
  2245.                                         }
  2246.                                         mes "^660066The essence of flame can be refined on stable ground on the 1st floor of the Thor's Volcano Dungeon. 10 Love Coals are necessary to refine the essence.^000000";
  2247.                                         mes "^660066According to Humans' information, this essence constitutes one of the four natural elements.^000000";
  2248.                                         next;
  2249.                                         mes "You have discovered the ^990099Flame Essence Creation Method^000000. Please check your Quest window for more details.";
  2250.                                         specialeffect2 EF_STEAL;
  2251.                                         close2;
  2252.                                         setquest 12219;
  2253.                                         end;
  2254.                                 }
  2255.                                 else {
  2256.                                         mes "Nothing in this document looks useful.";
  2257.                                         close2;
  2258.                                 }
  2259.                         }
  2260.                         else if (.@tut_13 == 3) {
  2261.                                 if (getskilllv("WL_TETRAVORTEX")) {
  2262.                                         if (checkquest(12220) == 1) {
  2263.                                                 mes "You already own this document.";
  2264.                                                 close;
  2265.                                         }
  2266.                                         mes "^660066I succeeded in refining the essence of glacier deep inside the 3rd floor of the Ice Cave. If you'd like to try, prepare 10 Ice Hearts and go to the following location.^000000";
  2267.                                         next;
  2268.                                         mes "You have discovered the ^990099Glacier Essence Creation Method^000000. Please check your Quest window for more details.";
  2269.                                         specialeffect2 EF_STEAL;
  2270.                                         close2;
  2271.                                         setquest 12220;
  2272.                                         end;
  2273.                                 }
  2274.                                 else {
  2275.                                         mes "Nothing in this document looks useful.";
  2276.                                         close2;
  2277.                                 }
  2278.                         }
  2279.                         else if (.@tut_13 == 4) {
  2280.                                 if (getskilllv("WL_TETRAVORTEX")) {
  2281.                                         if (checkquest(12221) == 1) {
  2282.                                                 mes "You already own this document.";
  2283.                                                 close;
  2284.                                         }
  2285.                                         mes "^660066I was able to refine the essence of fossil from old rocks on the 2nd floor of the Mine Dungeon. So far, that place is the most stable among all the testing grounds.";
  2286.                                         mes "If you'd like to try, prepare 10 Jubilees and go to the dungeon. Good luck.^000000";
  2287.                                         next;
  2288.                                         mes "You have discovered the ^990099Fossil Essence Creation Method^000000. Please check your Quest window for more details.";
  2289.                                         specialeffect2 EF_STEAL;
  2290.                                         close2;
  2291.                                         setquest 12221;
  2292.                                         end;
  2293.                                 }
  2294.                                 else {
  2295.                                         mes "Nothing in this document looks useful.";
  2296.                                         close2;
  2297.                                 }
  2298.                         }
  2299.                         else if (.@tut_13 == 5) {
  2300.                                 if (getskilllv("WL_TETRAVORTEX")) {
  2301.                                         if (checkquest(12222) == 1) {
  2302.                                                 mes "You already own this document.";
  2303.                                                 close;
  2304.                                         }
  2305.                                         mes "^660066In order to refine the essence of storm, I visited the Hermit's Checkerboard in Kunlun where the spirit of the wind resides.";
  2306.                                         mes "The refining process was easy, but I had a hard time finding the catalyst, Dragon Teeth.^000000";
  2307.                                         next;
  2308.                                         mes "You have discovered the ^990099Storm Essence Creation Method^000000. Please check your Quest window for more details.";
  2309.                                         specialeffect2 EF_STEAL;
  2310.                                         close2;
  2311.                                         setquest 12222;
  2312.                                         end;
  2313.                                 }
  2314.                                 else {
  2315.                                         mes "Nothing in this document looks useful.";
  2316.                                         close2;
  2317.                                 }
  2318.                         }
  2319.                         else if (.@tut_13 == 10) {
  2320.                                 mes "You suddenly feel sick, and this nausea won't go away easily. You should try finding the documents you need later.";
  2321.                                 setquest 12165;
  2322.                                 close;
  2323.                         }
  2324.                         else {
  2325.                                 mes "Nothing here looks special.";
  2326.                                 close;
  2327.                         }
  2328.                 }
  2329.                 else {
  2330.                         mes "You no longer need to search this place.";
  2331.                         close;
  2332.                 }
  2333.         }
  2334. end;
  2335. }
  2336.  
  2337. thor_v02,163,104,0	script	Powerful Lava Energy#33	844,{
  2338.         set .@now_weight, MaxWeight - Weight;
  2339.         if (.@now_weight < 1000) {
  2340.                 mes "Please lighten your bag.";
  2341.                 close;
  2342.         }
  2343.         if ((checkquest(12218) == 1) && (countitem(7097) > 39)) {
  2344.                 specialeffect2 EF_BLIND;
  2345.                 specialeffect2 EF_BEGINSPELL;
  2346. //              progress_bar "ffff00" "4"
  2347.                 delitem 7097,40; //Burning_Heart
  2348.                 set .@map_ran2, rand(1,2);
  2349.                 if (.@map_ran2 == 1) {
  2350.                         mes "You have used 40 Burning Hearts to create ^999900Lava Essence^000000.";
  2351.                         next;
  2352.                         mes "^008800The Lava Essence will last permanently, unless there's a problem.^000000";
  2353.                         completequest 12218;
  2354.                         specialeffect2 EF_LORD;
  2355.                         close;
  2356.                 }
  2357.                 else {
  2358.                         mes "^008888You have failed to refine the essence using 40 Burning Hearts.^000000";
  2359.                 }
  2360.                 close;
  2361.         }
  2362.         else if (checkquest(12218) == 2) {
  2363.                 mes "You've already created Lava Essence in this area.";
  2364.                 close;
  2365.         }
  2366.         else {
  2367.                 mes "Someone already used this area.";
  2368.                 close;
  2369.         }
  2370. end;
  2371. }
  2372.  
  2373. thor_v01,185,91,0	script	Powerful Flame Energy#33	844,{
  2374.         set .@now_weight, MaxWeight - Weight;
  2375.         if (.@now_weight < 1000) {
  2376.                 mes "Please lighten your bag.";
  2377.                 close;
  2378.         }
  2379.         if ((checkquest(12219) == 1) && (countitem(7098) > 9)) {
  2380.                 specialeffect2 EF_BLIND;
  2381.                 specialeffect2 EF_BEGINSPELL;
  2382. //              progress_bar "ffff00" "4"
  2383.                 delitem 7098,10; //Live_Coal
  2384.                 set .@map_ran2, rand(1,3);
  2385.                 if (.@map_ran2 == 1) {
  2386.                         mes "You have used 10 Live Coals to create ^999900Flame Essence^000000.";
  2387.                         next;
  2388.                         mes "^008800The Flame Essence will last permanently, unless there's a problem.^000000";
  2389.                         completequest 12219;
  2390.                         specialeffect2 EF_LORD;
  2391.                         close;
  2392.                 }
  2393.                 else {
  2394.                         mes "^008888You have failed to refine the essence using 10 Live Coals.^000000";
  2395.                 }
  2396.                 close;
  2397.         }
  2398.         else if (checkquest(12219) == 2) {
  2399.                 mes "You've already created Flame Essence in this area.";
  2400.                 close;
  2401.         }
  2402.         else {
  2403.                 mes "Someone already used this area.";
  2404.                 close;
  2405.         }
  2406. end;
  2407. }
  2408.  
  2409. ice_dun03,137,148,0	script	Powerful Glacier Energy#33	844,{
  2410.         set .@now_weight, MaxWeight - Weight;
  2411.         if (.@now_weight < 1000) {
  2412.                 mes "Please lighten your bag.";
  2413.                 close;
  2414.         }
  2415.         if ((checkquest(12220) == 1) && (countitem(7561) > 9)) {
  2416.                 specialeffect2 EF_BLIND;
  2417.                 specialeffect2 EF_BEGINSPELL;
  2418. //              progress_bar "ffff00" "4"
  2419.                 delitem 7561,10; //Ice_Heart
  2420.                 set .@map_ran2, rand(1,3);
  2421.                 if (.@map_ran2 == 1) {
  2422.                         mes "You have used 10 Glacial Hearts to create ^999900Glacier Essence^000000.";
  2423.                         next;
  2424.                         mes "^008800The Glacier Essence will last permanently, unless there's a problem.^000000";
  2425.                         completequest 12220;
  2426.                         specialeffect2 EF_LORD;
  2427.                         close;
  2428.                 }
  2429.                 else {
  2430.                         mes "^008888You have failed to refine the essence using 10 Glacial Hearts.^000000";
  2431.                 }
  2432.                 close;
  2433.         }
  2434.         else if (checkquest(12220) == 2) {
  2435.                 mes "You've already created Glacier Essence in this area.";
  2436.                 close;
  2437.         }
  2438.         else {
  2439.                 mes "Someone already used this area.";
  2440.                 close;
  2441.         }
  2442. end;
  2443. }
  2444.  
  2445. ein_dun02,181,124,0	script	Powerfull Fossil Energy#33	844,{
  2446.         set .@now_weight, MaxWeight - Weight;
  2447.         if (.@now_weight < 1000) {
  2448.                 mes "Please lighten your bag.";
  2449.                 close;
  2450.         }
  2451.         if ((checkquest(12221) == 1) && (countitem(7312) > 9)) {
  2452.                 specialeffect2 EF_BLIND;
  2453.                 specialeffect2 EF_BEGINSPELL;
  2454. //              progress_bar "ffff00" "4"
  2455.                 delitem 7312,10; //Jubilee
  2456.                 set .@map_ran2, rand(1,3);
  2457.                 if (.@map_ran2 == 1) {
  2458.                         mes "You have used 10 Jubilees to create ^999900Fossil Essence^000000.";
  2459.                         next;
  2460.                         mes "^008800The Fossil Essence will last permanently, unless there's a problem.^000000";
  2461.                         specialeffect2 EF_LORD;
  2462.                         completequest 12221;
  2463.                         close;
  2464.                 }
  2465.                 else {
  2466.                         mes "^008888You have failed to refine the essence using 10 Jubilees.^000000";
  2467.                 }
  2468.                 close;
  2469.         }
  2470.         else if (checkquest(12221) == 2) {
  2471.                 mes "You've already created Fossil Essence in this area.";
  2472.                 close;
  2473.         }
  2474.         else {
  2475.                 mes "Someone already used this area.";
  2476.                 close;
  2477.         }
  2478. end;
  2479. }
  2480.  
  2481. gon_dun02,252,198,0	script	Powerful Storm Energy#33	844,{
  2482.         set .@now_weight, MaxWeight - Weight;
  2483.         if (.@now_weight < 1000) {
  2484.                 mes "Please lighten your bag.";
  2485.                 close;
  2486.         }
  2487.         if ((checkquest(12222) == 1) && (countitem(7266) > 9)) {
  2488.                 specialeffect2 EF_BLIND;
  2489.                 specialeffect2 EF_BEGINSPELL;
  2490. //              progress_bar "ffff00" "4"
  2491.                 delitem 7266,10; //Dragon_Fang
  2492.                 set .@map_ran2, rand(1,3);
  2493.                 if (.@map_ran2 == 1) {
  2494.                         mes "You have used 10 Dragon Teeth to create ^999900Storm Essence^000000.";
  2495.                         next;
  2496.                         mes "^008800The Storm Essence will last permanently, unless there's a problem.^000000";
  2497.                         specialeffect2 EF_LORD;
  2498.                         completequest 12222;
  2499.                         close;
  2500.                 }
  2501.                 else {
  2502.                         mes "^008888You have failed to refine the essence using 10 Dragon Teeth.^000000";
  2503.                 }
  2504.                 close;
  2505.         }
  2506.         else if (checkquest(12222) == 2) {
  2507.                 mes "You've already created Storm Essence in this area.";
  2508.                 close;
  2509.         }
  2510.         else {
  2511.                 mes "Someone already used this area.";
  2512.                 close;
  2513.         }
  2514. end;
  2515. }
Viewed 547 times, submitted by unknown.