[1] | 1 | //===== eAthena Script ======================================= |
---|
| 2 | //= Archer Skill Quest |
---|
| 3 | //===== By: ================================================== |
---|
| 4 | //= eAthena dev team |
---|
| 5 | //===== Current Version: ===================================== |
---|
| 6 | //= 1.5 |
---|
| 7 | //===== Compatible With: ===================================== |
---|
| 8 | //= eAthena SVN |
---|
| 9 | //===== Description: ========================================= |
---|
| 10 | //= [Aegis Conversion] |
---|
| 11 | //= Quest for skills: Arrow Crafting, Arrow Repel |
---|
| 12 | //===== Additional Comments: ================================= |
---|
| 13 | //= 1.5 Rescripted to Aegis 10.3 stadards. [L0ne_W0lf] |
---|
| 14 | //============================================================ |
---|
| 15 | |
---|
| 16 | morocc,121,109,5 script Roberto#qsk_ac 88,{ |
---|
| 17 | if (BaseClass == Job_Archer) { |
---|
| 18 | if (getskilllv("AC_MAKINGARROW") == 1) { |
---|
| 19 | mes "[Roberto]"; |
---|
| 20 | mes "Ooh, you're from my home town!"; |
---|
| 21 | mes "Nice to see you!"; |
---|
| 22 | mes "How are you?"; |
---|
| 23 | mes "Ah! That arrow!"; |
---|
| 24 | mes "You made it, didn't you!"; |
---|
| 25 | next; |
---|
| 26 | mes "[Roberto]"; |
---|
| 27 | mes "Haha...!"; |
---|
| 28 | mes "Do you think it's a lot better?"; |
---|
| 29 | mes "Haha... anyways, I am glad."; |
---|
| 30 | mes "Come back with once in a while"; |
---|
| 31 | mes "with news from home."; |
---|
| 32 | mes "Then byebye~"; |
---|
| 33 | close; |
---|
| 34 | } |
---|
| 35 | else if ((Basejob == Job_Archer && JobLevel >= 30) || BaseJob == Job_Hunter || BaseJob == Job_Dancer || BaseJob == Job_Bard) { |
---|
| 36 | mes "[Roberto]"; |
---|
| 37 | mes "Eh!"; |
---|
| 38 | mes " "; |
---|
| 39 | mes "You are..."; |
---|
| 40 | next; |
---|
| 41 | if (countitem(907) > 19 && countitem(921) > 6 && countitem(7012) > 40 && countitem(1019) > 12 && countitem(501) > 0) { |
---|
| 42 | mes "[Roberto]"; |
---|
| 43 | mes "You brought them!"; |
---|
| 44 | mes "Thank you very much."; |
---|
| 45 | mes "Then, as I promised, I will teach you the skill."; |
---|
| 46 | next; |
---|
| 47 | delitem 907,20; //Resin |
---|
| 48 | delitem 921,7; //Mushroom_Spore |
---|
| 49 | delitem 7012,41; //Tough_Scalelike_Stem |
---|
| 50 | delitem 1019,13; //Wooden_Block |
---|
| 51 | delitem 501,1; //Red_Potion |
---|
| 52 | skill 147,1,0; |
---|
| 53 | mes "[Roberto]"; |
---|
| 54 | mes "No need to worry about arrows now."; |
---|
| 55 | mes "Oh, and did you happen to see"; |
---|
| 56 | mes "someone called Jason in Payon?"; |
---|
| 57 | mes "Be careful. He is a"; |
---|
| 58 | mes "ferocious one."; |
---|
| 59 | next; |
---|
| 60 | mes "[Roberto]"; |
---|
| 61 | mes "You just have to be careful of Jason in Payon."; |
---|
| 62 | mes "Remember."; |
---|
| 63 | mes "Then bubye~ Thank you for the presents~"; |
---|
| 64 | close; |
---|
| 65 | } |
---|
| 66 | else { |
---|
| 67 | mes "[Roberto]"; |
---|
| 68 | mes "An archer in Morroc!?"; |
---|
| 69 | mes "Nice to see you! Meeting a fellow"; |
---|
| 70 | mes "archer in a place like this! *sniffsniff*!"; |
---|
| 71 | mes "I came alone to Morroc.."; |
---|
| 72 | mes "but I was a newcomer, and the pressure... waaah~"; |
---|
| 73 | mes "I was very lonely~"; |
---|
| 74 | next; |
---|
| 75 | if (select("It must be hard. It's ok have faith.:Keep suffering.") == 1) { |
---|
| 76 | mes "[Roberto]"; |
---|
| 77 | mes "Yes. Thank you..."; |
---|
| 78 | mes "You must be having a hard"; |
---|
| 79 | mes "time in a place like this."; |
---|
| 80 | mes "Isn't it hard to find arrows?"; |
---|
| 81 | mes "That's why I make my own."; |
---|
| 82 | next; |
---|
| 83 | select("Eh, really?!"); |
---|
| 84 | mes "[Roberto]"; |
---|
| 85 | mes "Yeah! I gather different items"; |
---|
| 86 | mes "and make arrows using them."; |
---|
| 87 | mes "It is a useful skill to help me"; |
---|
| 88 | mes "survive alone in this tough world."; |
---|
| 89 | mes "If you'd like, I can teach you."; |
---|
| 90 | next; |
---|
| 91 | select("That would be wonderful."); |
---|
| 92 | mes "[Roberto]"; |
---|
| 93 | mes "But.. I can't do it for free."; |
---|
| 94 | mes "Nothing is free in this world~"; |
---|
| 95 | mes "Mmm... How about this?"; |
---|
| 96 | mes "You bring me what I ask for."; |
---|
| 97 | mes "Then I will teach you the skill."; |
---|
| 98 | next; |
---|
| 99 | mes "[Roberto]"; |
---|
| 100 | mes "I've been very lonely since I left my hometown."; |
---|
| 101 | mes "I would like to treat my homesick-ness"; |
---|
| 102 | mes "with things from there."; |
---|
| 103 | mes "Bring me 20 Resins from the trees in the "; |
---|
| 104 | mes "Payon forest, and 1 Red Potion"; |
---|
| 105 | mes "sold in the store."; |
---|
| 106 | next; |
---|
| 107 | mes "[Roberto]"; |
---|
| 108 | mes "Also, 13 Trunks from the Willows that"; |
---|
| 109 | mes "lives near the Payon Forest,"; |
---|
| 110 | mes "41 Tough Scalelike Stem,"; |
---|
| 111 | mes "7 Mushroom Spores."; |
---|
| 112 | mes "If you bring me all of these."; |
---|
| 113 | next; |
---|
| 114 | mes "[Roberto]"; |
---|
| 115 | mes "I will teach you the skill."; |
---|
| 116 | mes "Then.. I'll be waiting."; |
---|
| 117 | mes "For news from our home."; |
---|
| 118 | close; |
---|
| 119 | } |
---|
| 120 | mes "[Roberto]"; |
---|
| 121 | if (Sex) |
---|
| 122 | mes "...hey miss."; |
---|
| 123 | else |
---|
| 124 | mes "...hey mister."; |
---|
| 125 | mes "...be careful at night."; |
---|
| 126 | close; |
---|
| 127 | } |
---|
| 128 | } |
---|
| 129 | else { |
---|
| 130 | mes "[Roberto]"; |
---|
| 131 | mes "Hmm... Do you?"; |
---|
| 132 | mes "Have something to say?"; |
---|
| 133 | mes "I,"; |
---|
| 134 | mes "have nothing."; |
---|
| 135 | mes "Difference in levels"; |
---|
| 136 | mes "cuts off conversations."; |
---|
| 137 | close; |
---|
| 138 | } |
---|
| 139 | } |
---|
| 140 | else { |
---|
| 141 | mes "[?]"; |
---|
| 142 | mes "Eh... First time seeing an archer or something?"; |
---|
| 143 | mes "Just go where you were going."; |
---|
| 144 | mes "I only talk to high level archers."; |
---|
| 145 | mes "Won't open my mouth otherwise!"; |
---|
| 146 | close; |
---|
| 147 | } |
---|
| 148 | } |
---|
| 149 | |
---|
| 150 | payon,103,63,3 script Jason#qsk_ac 88,3,3,{ |
---|
| 151 | if (BaseClass == Job_Archer) { |
---|
| 152 | if (getskilllv("AC_CHARGEARROW") == 1) { |
---|
| 153 | mes "[Jason]"; |
---|
| 154 | mes "Eh, we meet again."; |
---|
| 155 | mes "Ehhhh so weird."; |
---|
| 156 | mes "Whenever I see someone again"; |
---|
| 157 | mes "I start eh-ing a lot."; |
---|
| 158 | mes "Ehhh... anyways nice to see you again."; |
---|
| 159 | mes "Ehhhh... don't come any more ehh..."; |
---|
| 160 | close; |
---|
| 161 | } |
---|
| 162 | else if ((Basejob == Job_Archer && JobLevel >= 35) || BaseJob == Job_Hunter || BaseJob == Job_Dancer || BaseJob == Job_Bard) { |
---|
| 163 | mes "[Jason]"; |
---|
| 164 | mes "Darn... my wound isn't healing."; |
---|
| 165 | mes "Bleh.. I was too careless... "; |
---|
| 166 | mes "to become like this.. err..."; |
---|
| 167 | mes "But still, hurting me like this"; |
---|
| 168 | mes "giving me so many injuries..."; |
---|
| 169 | next; |
---|
| 170 | mes "What should I do about Roberto."; |
---|
| 171 | mes "Mmmm... Ah!"; |
---|
| 172 | mes "You? How long have you been there?"; |
---|
| 173 | mes "Mmm... very high level."; |
---|
| 174 | mes "Someone like you would definitely be"; |
---|
| 175 | mes "able to know how to use Arrow Repel."; |
---|
| 176 | next; |
---|
| 177 | switch(select("What is that?:Teach me.")) { |
---|
| 178 | case 1: |
---|
| 179 | mes "[Jason]"; |
---|
| 180 | mes "...you're kidding, right?"; |
---|
| 181 | mes "Oh my, you don't even know"; |
---|
| 182 | mes "Arrow Repel at that level?"; |
---|
| 183 | mes "You're a strange person."; |
---|
| 184 | next; |
---|
| 185 | mes "[Jason]"; |
---|
| 186 | mes "(Jason was in the lala land.)"; |
---|
| 187 | next; |
---|
| 188 | mes "[Jason]"; |
---|
| 189 | mes "Well, ok. I'll teach you what"; |
---|
| 190 | mes "Arrow Repel is."; |
---|
| 191 | next; |
---|
| 192 | mes "[Jason]"; |
---|
| 193 | mes "Arrow Repel is a skill that allows you to"; |
---|
| 194 | mes "push the opponent away as soon as you attack."; |
---|
| 195 | mes "You can only use it when you aim exactly"; |
---|
| 196 | mes "at the target. But unlike magic, "; |
---|
| 197 | mes "it doesn't de-spell."; |
---|
| 198 | next; |
---|
| 199 | mes "[Jason]"; |
---|
| 200 | mes "It is very useful for an archer"; |
---|
| 201 | mes "that is weak in close ranges."; |
---|
| 202 | mes "If you would like to learn,"; |
---|
| 203 | mes "come find me again."; |
---|
| 204 | mes "There are some necessary materials."; |
---|
| 205 | next; |
---|
| 206 | mes "[Jason]"; |
---|
| 207 | mes "First, because you must modify a bow"; |
---|
| 208 | mes "bring a crossbow you do not use."; |
---|
| 209 | mes "10 Tentacles, 10 Bill of Birds,"; |
---|
| 210 | mes "3 Yoyo Tails.. these are very elastic."; |
---|
| 211 | mes "Also, 2 Emeralds. And last but not least..."; |
---|
| 212 | mes "36 bottles of Banana Juice that I love!"; |
---|
| 213 | next; |
---|
| 214 | mes "[Jason]"; |
---|
| 215 | mes "......Ehem!"; |
---|
| 216 | mes "If you bring all of these,"; |
---|
| 217 | mes "I shall teach you Arrow Repel."; |
---|
| 218 | mes "Then, see you again."; |
---|
| 219 | mes "(I'm going to be mad if you don't bring the Banana Juice.)"; |
---|
| 220 | close; |
---|
| 221 | case 2: |
---|
| 222 | if (countitem(721) > 1 && countitem(942) > 2 && countitem(962) > 9 && countitem(925) > 9 && countitem(532) > 35) { |
---|
| 223 | mes "[Jason]"; |
---|
| 224 | mes "Ok! Perfect!"; |
---|
| 225 | mes "I shall teach you the nationally"; |
---|
| 226 | mes "renowned skill, Arrow Repel!"; |
---|
| 227 | next; |
---|
| 228 | delitem 721,2; //Azure_Jewel |
---|
| 229 | delitem 942,3; //Yoyo_Tail |
---|
| 230 | delitem 962,10; //Tentacle |
---|
| 231 | delitem 925,10; //Bill_Of_Birds |
---|
| 232 | delitem 532,36; //Banana_Juice |
---|
| 233 | skill 148,1,0; |
---|
| 234 | mes "[Jason]"; |
---|
| 235 | mes "Oh, works better than I expected!"; |
---|
| 236 | mes "Won't be needing to modify the bow!"; |
---|
| 237 | mes "You can take this back~"; |
---|
| 238 | mes "And enjoy using your newly inherited"; |
---|
| 239 | mes "skill in fields and dungeons!"; |
---|
| 240 | mes "He~heh~!"; |
---|
| 241 | close; |
---|
| 242 | } |
---|
| 243 | else { |
---|
| 244 | mes "[Jason]"; |
---|
| 245 | mes "Mmm... too bad."; |
---|
| 246 | mes "You are missing some things."; |
---|
| 247 | mes "Once again, you need 2 Emeralds,"; |
---|
| 248 | mes "3 Yoyo Tails, 10 Tentacles,"; |
---|
| 249 | mes "10 Bill of Birds, and last but"; |
---|
| 250 | mes "not least 36 bottles of Banana juice!"; |
---|
| 251 | next; |
---|
| 252 | mes "[Jason]"; |
---|
| 253 | mes "Make sure you have all of them and come again!"; |
---|
| 254 | close; |
---|
| 255 | } |
---|
| 256 | } |
---|
| 257 | } |
---|
| 258 | else { |
---|
| 259 | mes "[Jason]"; |
---|
| 260 | mes "Ooh... you are an archer."; |
---|
| 261 | mes "If you try a little more"; |
---|
| 262 | mes "you will have a great"; |
---|
| 263 | mes "reputation as an archer!"; |
---|
| 264 | mes "Exert yourself!"; |
---|
| 265 | close; |
---|
| 266 | } |
---|
| 267 | } |
---|
| 268 | else { |
---|
| 269 | mes "[?]"; |
---|
| 270 | mes "What does life need from"; |
---|
| 271 | mes "a lonely lad like me?"; |
---|
| 272 | close; |
---|
| 273 | } |
---|
| 274 | |
---|
| 275 | OnTouch: |
---|
| 276 | mes "[???]"; |
---|
| 277 | mes "Errrrrrr..."; |
---|
| 278 | close; |
---|
| 279 | } |
---|
| 280 | |
---|
| 281 | //============================================================ |
---|
| 282 | // Old changelog |
---|
| 283 | //============================================================ |
---|
| 284 | //= v1.0 Roberto message text is based off RO npc. Jason message |
---|
| 285 | //= text is custom from old version. |
---|
| 286 | //= All items are from official quests though.[kobra_k88] |
---|
| 287 | //= v1.0a Now using functions found in "Global_Functions.txt" |
---|
| 288 | //= for class checks.[kobra_k88] |
---|
| 289 | //= 1.2 Added Baby Class Support [Lupus] |
---|
| 290 | //= 1.3 Removed callfunc Is_####_Class in favor of baseClass [Silentdragon] |
---|
| 291 | //= 1.4 Fixed exploits [Lupus] |
---|
| 292 | //= 1.4a Fixed some typos [IVBela] |
---|
| 293 | //= 1.4b changed perm. variables to temp ones [Lupus] |
---|
| 294 | //============================================================ |
---|