[1] | 1 | //===== eAthena Script ======================================= |
---|
| 2 | //= Sage Skills Quests |
---|
| 3 | //===== By: ================================================== |
---|
| 4 | //= Lupus, Reddozen |
---|
| 5 | //===== Current Version: ===================================== |
---|
| 6 | //= 1.3c |
---|
| 7 | //===== Compatible With: ===================================== |
---|
| 8 | //= eAthena Revision 3800+ |
---|
| 9 | //===== Description: ========================================= |
---|
| 10 | //= Temp quests for new skills for 2nd classes |
---|
| 11 | //===== Additional Comments: ================================= |
---|
| 12 | //= 1.0 for fully working skills only [Lupus] |
---|
| 13 | //= 1.1 Added more new skill quests for more classes [Lupus] |
---|
| 14 | //= Somehow eA engine doesn't let you keep learn't skill V_V' |
---|
| 15 | //= 1.2 Added to correct locations, correct NPC's, fixed |
---|
| 16 | //= some of the items required and made them into real |
---|
| 17 | //= quests. [Reddozen] |
---|
| 18 | //= 1.3 Fixed bugs and minor typos. Optimized [Lupus] |
---|
| 19 | //= 1.3a fixed an item ID typo, thx 2Spiritual Kid |
---|
| 20 | //= 1.3b Splitted into different files [DracoRPG] |
---|
| 21 | //= 1.3c Fixed some typos [IVBela] |
---|
| 22 | //============================================================ |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | //============================================================ |
---|
| 26 | // SAGE SKILL - CREATE CONVERTER + ELEMENTAL CHANGE |
---|
| 27 | //============================================================ |
---|
| 28 | yuno_in03,176,24,3 script Mischna 755,{ |
---|
| 29 | mes "[Mischna]"; |
---|
| 30 | if(BaseJob!=Job_Sage) goto L_sageno; |
---|
| 31 | if(getskilllv("SA_CREATECON")) goto L_elemental; |
---|
| 32 | |
---|
| 33 | mes "I can teach you a new skill"; |
---|
| 34 | mes "that I discovered, but you"; |
---|
| 35 | mes "will need to bring me a few"; |
---|
| 36 | mes "things to complete the"; |
---|
| 37 | mes "process."; |
---|
| 38 | next; |
---|
| 39 | |
---|
| 40 | mes "[Mischna]"; |
---|
| 41 | mes "We will need:"; |
---|
| 42 | mes "10 Scorpion Tails"; |
---|
| 43 | mes "7 Horns"; |
---|
| 44 | mes "12 Rainbow Shells"; |
---|
| 45 | mes "10 Snail Shells"; |
---|
| 46 | mes "4 Blank Scrolls"; |
---|
| 47 | next; |
---|
| 48 | |
---|
| 49 | mes "[Mischna]"; |
---|
| 50 | mes "Let me check your items."; |
---|
| 51 | next; |
---|
| 52 | |
---|
| 53 | if(countitem(904)<10 || countitem(947)<7 || countitem(1013)<12 || countitem(946)<10 || countitem(7433)<4) goto L_noitems;//Items: Scorpion_Tail, Horn, Rainbow_Shell, Snail's_Shell, Blank_Scroll, |
---|
| 54 | delitem 904, 10;//Items: Scorpion_Tail, |
---|
| 55 | delitem 947, 7;//Items: Horn, |
---|
| 56 | delitem 1013, 12;//Items: Rainbow_Shell, |
---|
| 57 | delitem 946, 10;//Items: Snail's_Shell, |
---|
| 58 | delitem 7433, 4;//Items: Blank_Scroll, |
---|
| 59 | |
---|
| 60 | mes "[Mischna]"; |
---|
| 61 | mes "I see you have what we need,"; |
---|
| 62 | mes "so I'll teach you this new"; |
---|
| 63 | mes "talent of mine!"; |
---|
| 64 | skill "SA_CREATECON",1,0; |
---|
| 65 | next; |
---|
| 66 | |
---|
| 67 | mes "[Mischna]"; |
---|
| 68 | mes "Do you feel more in tune"; |
---|
| 69 | mes "with nature?"; |
---|
| 70 | close; |
---|
| 71 | |
---|
| 72 | L_noitems: |
---|
| 73 | mes "[Mischna]"; |
---|
| 74 | mes "You don't have enough items."; |
---|
| 75 | mes "Come back when you have all"; |
---|
| 76 | mes "the required items for me."; |
---|
| 77 | close; |
---|
| 78 | |
---|
| 79 | L_sageno: |
---|
| 80 | mes "Hi I'm Mischna. How are you?"; |
---|
| 81 | mes "Please enjoy your stay here"; |
---|
| 82 | mes "within the walls of the great"; |
---|
| 83 | mes "Sage's guild."; |
---|
| 84 | close; |
---|
| 85 | |
---|
| 86 | L_sagefail: |
---|
| 87 | mes "[Mischna]"; |
---|
| 88 | mes "You don't have enough items."; |
---|
| 89 | mes "Come back when you have all"; |
---|
| 90 | mes "the required items for me"; |
---|
| 91 | mes "to give you this power over"; |
---|
| 92 | mes "the elements."; |
---|
| 93 | close; |
---|
| 94 | |
---|
| 95 | L_alreadyhave: |
---|
| 96 | mes "You are such a wonderful"; |
---|
| 97 | mes "student. It's too bad I have"; |
---|
| 98 | mes "nothing more to teach you."; |
---|
| 99 | close; |
---|
| 100 | |
---|
| 101 | L_elemental: |
---|
| 102 | if(getskilllv("SA_ELEMENTWATER") || getskilllv("SA_ELEMENTGROUND") |
---|
| 103 | || getskilllv("SA_ELEMENTFIRE") || getskilllv("SA_ELEMENTWIND")) goto L_alreadyhave; |
---|
| 104 | |
---|
| 105 | mes "I have one more skill that"; |
---|
| 106 | mes "I can teach you, but you"; |
---|
| 107 | mes "will need to bring me one of"; |
---|
| 108 | mes "these sets in return..."; |
---|
| 109 | next; |
---|
| 110 | |
---|
| 111 | mes "[Mischna]"; |
---|
| 112 | mes "I can only accept one set."; |
---|
| 113 | mes "20 Red blood (fire)"; |
---|
| 114 | mes "20 Crystal Blue (water)"; |
---|
| 115 | mes "20 Wind of Verdure (Wind)"; |
---|
| 116 | mes "20 Green Live (Earth)"; |
---|
| 117 | next; |
---|
| 118 | |
---|
| 119 | mes "[Mischna]"; |
---|
| 120 | mes "Remember that I can only teach"; |
---|
| 121 | mes "you one, so choose carefully!"; |
---|
| 122 | next; |
---|
| 123 | |
---|
| 124 | menu "Elemental Change Water",sage_1, "Elemental Change Earth",sage_2, "Elemental Change Fire",sage_3, "Elemental Change Wind",sage_4; |
---|
| 125 | |
---|
| 126 | sage_1: |
---|
| 127 | if(countitem(991)<20)goto L_sagefail;//Items: Crystal_Blue, |
---|
| 128 | delitem 991, 20; //Items: Crystal_Blue, |
---|
| 129 | skill "SA_ELEMENTWATER",1,0; |
---|
| 130 | goto L_alreadyhave; |
---|
| 131 | |
---|
| 132 | sage_2: |
---|
| 133 | if(countitem(993)<20)goto L_sagefail;//Items: Green_Live, |
---|
| 134 | delitem 993, 20;//Items: Green_Live, |
---|
| 135 | skill "SA_ELEMENTGROUND",1,0; |
---|
| 136 | goto L_alreadyhave; |
---|
| 137 | |
---|
| 138 | sage_3: |
---|
| 139 | if(countitem(990)<20)goto L_sagefail;//Items: Red_Blood, |
---|
| 140 | delitem 990, 20;//Items: Red_Blood, |
---|
| 141 | skill "SA_ELEMENTFIRE",1,0; |
---|
| 142 | goto L_alreadyhave; |
---|
| 143 | |
---|
| 144 | sage_4: |
---|
| 145 | if(countitem(992)<20)goto L_sagefail;//Items: Wind_of_Verdure, |
---|
| 146 | delitem 992, 20;//Items: Wind_of_Verdure, |
---|
| 147 | skill "SA_ELEMENTWIND",1,0; |
---|
| 148 | goto L_alreadyhave; |
---|
| 149 | } |
---|