summaryrefslogtreecommitdiff
path: root/npc/re/quests/magic_books.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/re/quests/magic_books.txt')
-rw-r--r--npc/re/quests/magic_books.txt44
1 files changed, 22 insertions, 22 deletions
diff --git a/npc/re/quests/magic_books.txt b/npc/re/quests/magic_books.txt
index 0fd885d8f..b89b4f069 100644
--- a/npc/re/quests/magic_books.txt
+++ b/npc/re/quests/magic_books.txt
@@ -172,7 +172,7 @@ geffen_in,176,105,4 script Master Velofos 1_M_WIZARD,{
next;
mes "[Master Velofos]";
mes "For your information, she won't give it to you without anything in return. Expect her to ask you for something!";
- if (wm_book < 1) set wm_book, 1;
+ if (wm_book < 1) wm_book = 1;
close;
case 2:
mes "[Master Velofos]";
@@ -243,7 +243,7 @@ geffen_in,176,105,4 script Master Velofos 1_M_WIZARD,{
next;
mes "[Master Velofos]";
mes "If you want to see him, you should prepare for a long journey.";
- set mac_book,2;
+ mac_book = 2;
close;
}
if (mac_book > 1) {
@@ -304,7 +304,7 @@ geffen_in,175,112,4 script Lea 2_F_MAGICMASTER,{
mes "[Lea]";
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.";
next;
- set .@Payment, 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.")-1;
+ .@Payment = 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.")-1;
mes "[Lea]";
if (!.@Payment) {
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.";
@@ -316,7 +316,7 @@ geffen_in,175,112,4 script Lea 2_F_MAGICMASTER,{
if ((.@Payment == 1 && Zeny > 10000) || (.@Payment == 2 && countitem(1006) > 1) || (.@Payment == 3 && countitem(1097) > 49)) {
mes "What kind of Magic Book do you want?";
next;
- set .@i, select("Let me think.:Magic Book (Fire Bolt):Magic Book (Cold Bolt):Magic Book (Lightning Bolt)")-1;
+ .@i = select("Let me think.:Magic Book (Fire Bolt):Magic Book (Cold Bolt):Magic Book (Lightning Bolt)")-1;
mes "[Lea]";
if (!.@i) {
mes "No problem.";
@@ -347,7 +347,7 @@ geffen_in,175,112,4 script Lea 2_F_MAGICMASTER,{
mes "[Lea]";
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.";
next;
- set .@Payment, 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.")-1;
+ .@Payment = 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.")-1;
mes "[Lea]";
if (!.@Payment) {
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.";
@@ -360,7 +360,7 @@ geffen_in,175,112,4 script Lea 2_F_MAGICMASTER,{
if ((.@Payment == 1 && Zeny > 50000) || (.@Payment == 2 && countitem(603) > 1) || (.@Payment == 3 && countitem(985) > 8)) {
mes "What kind of Magic Book do you want?";
next;
- set .@i, 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)")-1;
+ .@i = 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)")-1;
setarray .@Books[0],6192,6193,6194,6197,6198,6199,6200,6201;
mes "[Lea]";
if (!.@i) {
@@ -399,7 +399,7 @@ geffen_in,175,112,4 script Lea 2_F_MAGICMASTER,{
mes "[Lea]";
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?";
next;
- set .@Payment, 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.")-1;
+ .@Payment = 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.")-1;
mes "[Lea]";
if (!.@Payment) {
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.";
@@ -433,7 +433,7 @@ geffen_in,175,112,4 script Lea 2_F_MAGICMASTER,{
if ((.@Payment == 1 && Zeny > 199999) || (Zeny > 99999 && ((.@Payment == 2 && countitem(7094) > 11) || (.@Payment == 3 && countitem(984) > 6) || (.@Payment == 4 && countitem(617))))) {
mes "What kind of Magic Book do you want?";
next;
- set .@i, select("Let me think.:Magic Book (Earth Strain):Magic Book (Chain Lightning):Magic Book (Crimson Rock):Magic Book (Drain Life)")-1;
+ .@i = select("Let me think.:Magic Book (Earth Strain):Magic Book (Chain Lightning):Magic Book (Crimson Rock):Magic Book (Drain Life)")-1;
mes "[Lea]";
if (!.@i) {
mes "No problem.";
@@ -480,7 +480,7 @@ geffen_in,175,112,4 script Lea 2_F_MAGICMASTER,{
next;
mes "[Lea]";
mes "I'm sorry that I can't help you more than that.";
- set mac_book,1;
+ mac_book = 1;
close;
}
if ((BaseLevel > 139) && (mac_book > 0) && ((getskilllv(2217) > 0) || (getskilllv(2213) > 0))) {
@@ -604,7 +604,7 @@ mid_camp,255,244,4 script Galfos 4_M_JOB_WIZARD,{
next;
mes "[Galfos]";
mes "Afterwards, create and bring me the artifact. We'll talk about creating the Magic Book afterwards.";
- set mac_book,3;
+ mac_book = 3;
close;
}
if (mac_book == 3) {
@@ -620,13 +620,13 @@ mid_camp,255,244,4 script Galfos 4_M_JOB_WIZARD,{
mes "Oh, did you find";
mes "anything useful?";
next;
- set .@i, select("I've discovered everything about Comet.:I've mastered the zenith of Tetra Vortex.");
+ .@i = select("I've discovered everything about Comet.:I've mastered the zenith of Tetra Vortex.");
mes "[Galfos]";
if ((.@i == 1 && countitem(6195)) || (.@i == 2 && countitem(6196))) {
mes "Are you kidding me? You already have the book!";
close;
}
- if ((.@i == 1 && checkquest(12218) == 2) || (.@i == 2 && checkquest(12219) == 2 && checkquest(12220) == 2 && checkquest(12221) == 2 && checkquest(12222) == 2)) {
+ if ((.@i == 1 && questprogress(12218) == 2) || (.@i == 2 && questprogress(12219) == 2 && questprogress(12220) == 2 && questprogress(12221) == 2 && questprogress(12222) == 2)) {
mes "Oh my, I sense incredible energy coming from you. This is great! Now we're ready to make the Ultimate Magic Book.";
next;
mes "[Galfos]";
@@ -676,11 +676,11 @@ dic_in01,25,190,0 script Mysterious Documents CLEAR_NPC,{
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.";
close;
}
- if (checkquest(12165,"PLAYTIME") == 1) {
+ if (questprogress(12165,PLAYTIME) == 1) {
mes "The documents are making you feel nauseous. You should come back later after your stomach settles.";
close;
}
- if (checkquest(12165,"PLAYTIME") == 2) {
+ if (questprogress(12165,PLAYTIME) == 2) {
mes "You don't feel as nauseous anymore. It should be safe to proceed now.";
erasequest 12165;
close;
@@ -697,13 +697,13 @@ dic_in01,25,190,0 script Mysterious Documents CLEAR_NPC,{
}
if (mac_book == 3) {
mes "You have discovered records about magic, acceleration, and particle waves. These documents must be the ones that Galfos is looking for.";
- set mac_book, 4;
+ mac_book = 4;
close;
}
if (mac_book == 4) {
if (rand(1,10) == 1) {
if (getskilllv(2213) > 0) {
- if (checkquest(12218) == 1) {
+ if (questprogress(12218) == 1) {
mes "You already own this document.";
close;
}
@@ -721,7 +721,7 @@ dic_in01,25,190,0 script Mysterious Documents CLEAR_NPC,{
}
if (rand(1,10) == 2) {
if (getskilllv(2217) > 0) {
- if (checkquest(12219) == 1) {
+ if (questprogress(12219) == 1) {
mes "You already own this document.";
close;
}
@@ -739,7 +739,7 @@ dic_in01,25,190,0 script Mysterious Documents CLEAR_NPC,{
}
if (rand(1,10) == 3) {
if (getskilllv(2217) > 0) {
- if (checkquest(12220) == 1) {
+ if (questprogress(12220) == 1) {
mes "You already own this document.";
close;
}
@@ -756,7 +756,7 @@ dic_in01,25,190,0 script Mysterious Documents CLEAR_NPC,{
}
if (rand(1,10) == 4) {
if (getskilllv(2217) > 0) {
- if (checkquest(12221) == 1) {
+ if (questprogress(12221) == 1) {
mes "You already own this document.";
close;
}
@@ -774,7 +774,7 @@ dic_in01,25,190,0 script Mysterious Documents CLEAR_NPC,{
}
if (rand(1,10) == 5) {
if (getskilllv(2217) > 0) {
- if (checkquest(12222) == 1) {
+ if (questprogress(12222) == 1) {
mes "You already own this document.";
close;
}
@@ -807,7 +807,7 @@ function script Magic_Book_Essence {
mes "Please lighten your bag.";
close;
}
- if (checkquest(getarg(0)) == 1 && countitem(getarg(1)) >= getarg(2)) {
+ if (questprogress(getarg(0)) == 1 && countitem(getarg(1)) >= getarg(2)) {
specialeffect2 EF_BLIND;
specialeffect2 EF_BEGINSPELL;
progressbar "ffff00",4;
@@ -823,7 +823,7 @@ function script Magic_Book_Essence {
mes "^008888You have failed to refine the essence using "+getarg(2)+" "+getitemname(getarg(1))+"s.^000000";
close;
}
- if (checkquest(getarg(0)) == 2) {
+ if (questprogress(getarg(0)) == 2) {
mes "You've already created "+getarg(3)+" Essence in this area.";
close;
}