OSDN Git Service

First version
[st-ro/stro.git] / npc / pre-re / other / resetskill.txt
1 //===== rAthena Script =======================================
2 //= Hypnotist
3 //===== By: ==================================================
4 //= L0ne_W0lf
5 //===== Current Version: =====================================
6 //= 1.0
7 //===== Compatible With: =====================================
8 //= rAthena Project
9 //===== Description: =========================================
10 //= [Official Conversion]
11 //= Permenent first class, base level 40 and under skill resetter.
12 //= First Class characters and expanded classes only.
13 //= Baby Classes and First Class trans can't use this service.
14 //===== Additional Comments: =================================
15 //= 1.0 First version. [L0ne_W0lf]
16 //============================================================
17
18 prontera,146,232,4      script  Hypnotist#2     124,{
19         mes "[Hypnotist]";
20         mes "Greetings, adventurer.";
21         mes "I'm a member of the Hypnotist";
22         mes "Academy sent here to Prontera";
23         mes "to provide Skill Reset services";
24         mes "to certain First Class characters for a really good price: free!";
25         next;
26         mes "[Hypnotist]";
27         mes "Although I offer unlimited";
28         mes "skill resets for now, I have";
29         mes "two conditions that must be";
30         mes "fulfilled. First, you must be";
31         mes "lower than ^FF0000Base Level 40^000000.";
32         next;
33         mes "[Hypnotist]";
34         mes "Second, you must be a";
35         mes "^FF0000Swordman, Acolyte, Mage,";
36         mes "Thief, Archer, Merchant,";
37         mes "Taekwon Boy, Taekwon Girl, Gunslinger and Ninja^000000";
38         mes "Job character to qualify.";
39         mes "Now, do you have any questions?";
40         next;
41         switch(select("Skill Reset?:I want a Skill Reset:Nothing")) {
42
43         case 1:
44                 mes "[Hypnotist]";
45                 mes "Skill Resets allow adventuers";
46                 mes "to redistribute their Skill";
47                 mes "Points if they are unhappy";
48                 mes "with their current skills.";
49                 next;
50                 mes "[Hypnotist]";
51                 mes "Before proceeding with";
52                 mes "a Skill Reset, you must";
53                 mes "reduce all of the weight";
54                 mes "of all carried items on your";
55                 mes "character to 0. You can put";
56                 mes "extra items in Kafra Storage.";
57                 next;
58                 mes "[Hypnotist]";
59                 mes "Ah, it's also important";
60                 mes "to remove your ^FF0000Pushcart^000000";
61                 mes "if you have one equipped.";
62                 mes "Otherwise, hypnosis won't";
63                 mes "work, or will backfire...";
64                 close;
65
66         case 2:
67                 mes "[Hypnotist]";
68                 mes "Are you sure that you";
69                 mes "want to proceed with";
70                 mes "my ^FF0000Skill Reset^000000 service?";
71                 next;
72                 if (select("Yes:Cancel") == 1) {
73                         if (BaseLevel > 40) {
74                                 mes "[Hypnotist]";
75                                 mes "I'm sorry, but characters";
76                                 mes "with Base Levels higher";
77                                 mes "than 40 are ineligible for the";
78                                 mes "Skill Reset service I provide.";
79                                 close;
80                         }
81                         if ((Class > 0 && Class < 7 && Upper == 0) || (Class == Job_Gunslinger) || (Class == Job_Ninja) || (Class == Job_Taekwon)) {
82                                 if (checkcart()) {
83                                         mes "[Hypnotist]";
84                                         mes "Oh! Please remove your";
85                                         mes "Pushcart before proceeding";
86                                         mes "with the Skill Reset service.";
87                                         mes "Thanks for cooperating~";
88                                         close;
89                                 }
90                                 if (Weight) {
91                                         mes "[Hypnotist]";
92                                         mes "If you're here for my Skill";
93                                         mes "Reset service, please";
94                                         mes "remember that you can't";
95                                         mes "reset your skills until the";
96                                         mes "^FF0000weight of your carried items in";
97                                         mes "your Inventory is reduced to 0^000000.";
98                                         next;
99                                         mes "[Hypnotist]";
100                                         mes "Why don't you place your";
101                                         mes "things into the Kafra Storage";
102                                         mes "for now? That way, you can";
103                                         mes "safely keep all of your goods.";
104                                         close;
105                                 }
106                                 mes "[Hypnotist]";
107                                 mes "Thank you for using";
108                                 mes "my Skill Redistribution";
109                                 mes "services. Oh, and best";
110                                 mes "of luck to you on your";
111                                 mes "travels, adventurer.";
112                                 ResetSkill;
113                                 close;
114                         }
115                         mes "[Hypnotist]";
116                         mes "I'm sorry, but your";
117                         mes "Job Class doesn't qualify";
118                         mes "for the Skill Reset service";
119                         mes "that I provide. I can only";
120                         mes "offer Skill Resets to the";
121                         mes "following Jobs...";
122                         next;
123                         mes "[Hypnotist]";
124                         mes "^FF0000Swordman, Acolyte,";
125                         mes "Mage, Thief, Archer,";
126                         mes "Merchant, Taekwon";
127                         mes "Boy, Taekwon Girl, Gunslinger and Ninja^000000.";
128                         close;
129                 }
130                 mes "[Hypnotist]";
131                 mes "Thank you, and good";
132                 mes "luck on your adventures.";
133                 mes "Please travel in safety~";
134                 close;
135
136         case 3:
137                 mes "[Hypnotist]";
138                 mes "Thank you, and good";
139                 mes "luck on your adventures.";
140                 mes "Please travel in safety~";
141                 close;
142         }
143
144 }