diff options
author | euphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-07 15:38:03 +0000 |
---|---|---|
committer | euphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-07 15:38:03 +0000 |
commit | defde8e6bd619a929262c8f553c3cd4960cd743d (patch) | |
tree | 4b6a62c80fd391d1932870681124cfe55b9b20bd /npc/quests/cooking_quest.txt | |
parent | d2e1f056bc0f550bcb372a503a5f7489daf6ef97 (diff) | |
download | hercules-defde8e6bd619a929262c8f553c3cd4960cd743d.tar.gz hercules-defde8e6bd619a929262c8f553c3cd4960cd743d.tar.bz2 hercules-defde8e6bd619a929262c8f553c3cd4960cd743d.tar.xz hercules-defde8e6bd619a929262c8f553c3cd4960cd743d.zip |
* Optimized Eden Quest lv. 26-40 and 41-55 (re\quests\eden\)
* Minor cleaning on Cooking Quest (quests\cooking_quest.txt)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16592 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/quests/cooking_quest.txt')
-rw-r--r-- | npc/quests/cooking_quest.txt | 99 |
1 files changed, 25 insertions, 74 deletions
diff --git a/npc/quests/cooking_quest.txt b/npc/quests/cooking_quest.txt index 6387dbd21..2cd52adf1 100644 --- a/npc/quests/cooking_quest.txt +++ b/npc/quests/cooking_quest.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= Reddozen; L0ne_W0lf //===== Current Version: ===================================== -//= 1.8 +//= 1.8a //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= @@ -26,6 +26,7 @@ //= 1.6b Corrected a "donpcevent" missing a ":". (bugreport:962) [Samuray22] //= 1.7 Replaced effect numerics with constants. [L0ne_W0lf] //= 1.8 Renamed the variable cooking to cooking_q [ultramage] +//= 1.8a Minor cleaning. [Euphy] //============================================================ prt_castle,43,30,3 script Charles Orleans#cook 878,{ @@ -1156,109 +1157,59 @@ prt_castle,43,30,3 script Charles Orleans#cook 878,{ goto L_End; } else { - if (.@old_book == 1) { - if (countitem(7472) < 1) { - mes "[Charles Orleans]"; - mes "Wait, wait..."; - mes "Why don't you have"; - mes "the book that you said"; - mes "that you'd return to me?"; - mes "Find it first, and then I can"; - mes "lend another cookbook to you."; - goto L_End; - } - cutin "orleans_2",0; + if (countitem(7471+.@old_book) < 1) { mes "[Charles Orleans]"; + mes "Wait, wait..."; + mes "Why don't you have"; + mes "the book that you said"; + mes "that you'd return to me?"; + mes "Find it first, and then I can"; + mes "lend another cookbook to you."; + goto L_End; + } + cutin "orleans_2",0; + mes "[Charles Orleans]"; + switch(.@old_book == 1) { + case 1: mes "Ah, so you're done"; mes "with the Level 1 Cookbook."; mes "That's good, that means you're"; mes "ready to graduate from the most"; mes "basic of basics. From now on,"; mes "the recipes will be harder..."; - next; - } - else if (.@old_book == 2) { - if (countitem(7473) < 1) { - mes "[Charles Orleans]"; - mes "Wait, wait..."; - mes "Why don't you have"; - mes "the book that you said"; - mes "that you'd return to me?"; - mes "Find it first, and then I can"; - mes "lend another cookbook to you."; - goto L_End; - } - cutin "orleans_2",0; - mes "[Charles Orleans]"; + break; + case 2: mes "Ah, so what did you"; mes "think of the recipes in"; mes "the Level 2 Cookbook?"; mes "Homestyle cooking may be"; mes "simple, but it should never"; mes "be neglected by chefs."; - next; - } - else if (.@old_book == 3) { - if (countitem(7474) < 1) { - mes "[Charles Orleans]"; - mes "Wait, wait..."; - mes "Why don't you have"; - mes "the book that you said"; - mes "that you'd return to me?"; - mes "Find it first, and then I can"; - mes "lend another cookbook to you."; - goto L_End; - } - cutin "orleans_2",0; - mes "[Charles Orleans]"; + break; + case 3: mes "Ah, done with the Level 3"; mes "Cookbook already? The recipes"; mes "in there are really good when you're cooking romantic dinners."; mes "They'll come in handy someday,"; mes "if you know what I mean."; - next; - } - else if (.@old_book == 4) { - if (countitem(7475) < 1) { - mes "[Charles Orleans]"; - mes "Wait, wait..."; - mes "Why don't you have"; - mes "the book that you said"; - mes "that you'd return to me?"; - mes "Find it first, and then I can"; - mes "lend another cookbook to you."; - goto L_End; - } - cutin "orleans_2",0; - mes "[Charles Orleans]"; + break; + case 4: mes "So you've finished the"; mes "Level 4 Cookbook. That's"; mes "no small feat! You've got to"; mes "use very strange ingredients"; mes "to create delicious cuisine!"; - next; - } - else if (.@old_book == 5) { - if (countitem(7476) < 1) { - mes "[Charles Orleans]"; - mes "Wait, wait..."; - mes "Why don't you have"; - mes "the book that you said"; - mes "that you'd return to me?"; - mes "Find it first, and then I can"; - mes "lend another cookbook to you."; - goto L_End; - } - cutin "orleans_2",0; - mes "[Charles Orleans]"; + break; + case 5: mes "You're done with the"; mes "Level 5 Cookbook? Good"; mes "work: most beginners don't"; mes "even get this far. I suppose"; mes "you'll want to review some"; mes "of the easier recipes now~"; - next; + break; } + next; } cutin "orleans_1",0; mes "[Charles Orleans]"; |