1 | //===== eAthena Script ======================================= |
---|
2 | //= Inn Npcs |
---|
3 | //===== By: ================================================== |
---|
4 | //= Darkchild (1.1) |
---|
5 | //= Playtester (1.2) |
---|
6 | //===== Current Version: ===================================== |
---|
7 | //= 2.5 |
---|
8 | //===== Compatible With: ===================================== |
---|
9 | //= eAthena 1.0+ |
---|
10 | //===== Description: ========================================= |
---|
11 | //= Inn Npcs, Save and Heal |
---|
12 | //============================================================ |
---|
13 | //= variables: |
---|
14 | //= arg0 - name of npc |
---|
15 | //= arg1 - name of the inn |
---|
16 | //= arg2 - map to save at |
---|
17 | //= arg3, arg4 - x and y cord. to save at |
---|
18 | //= @cost - cost of renting a room |
---|
19 | //===== Additional Comments: ================================= |
---|
20 | //= 1.1 Blind Effect By Kobra_k88 (Taken from his old script) |
---|
21 | //= I added it to all of them though [Darkchild] |
---|
22 | //= 1.1a Minor bug fixes and optimizations. Switched from @variables |
---|
23 | //= to arguments.[kobra_k88] |
---|
24 | //= 1.2 Rewrote inn script [Playtester] |
---|
25 | //= 1.3 Added (finally) Rachel Inn Maid. Official warp |
---|
26 | //= and save points[erKURITA] |
---|
27 | //= 1.4 Added Hugel inn [erKurita] |
---|
28 | //= 1.5 Added "end;" after warping the player. [L0ne_W0lf] |
---|
29 | //= - Small corrections to the prontera Inns. |
---|
30 | //= - Removed the Cancel dialog. |
---|
31 | //= 1.6 More fixes, changed progression of "Rest"ing. |
---|
32 | //= - Corrected Morroc NPCs. [L0ne_W0lf] |
---|
33 | //= 1.7 Corrected Payon NPC. [L0ne_W0lf] |
---|
34 | //= 1.8 Corrected Geffen NPC. [L0ne_W0lf] |
---|
35 | //= 1.9 Added the Inn for Al De baran. [L0ne_W0lf] |
---|
36 | //= 2.0 Added Inn for the Town of Veins. [L0ne_W0lf] |
---|
37 | //= 2.1 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf] |
---|
38 | //= 2.1a Corrected a little Typo error. (bugreport:536 & 537) [Samuray22] |
---|
39 | //= 2.2 Small update to Vein's Inn Master. [L0ne_W0lf] |
---|
40 | //= 2.3 Added Lighthalzen Inn from Lighthalzen town file. [L0ne_W0lf] |
---|
41 | //= 2.4 Fixed Inn Employee#Ahlma warping to same destination as save point, bugreport: 191. |
---|
42 | //= 2.5 Added Moskovia Gostinitsa (Inn) from jA |
---|
43 | //============================================================ |
---|
44 | |
---|
45 | |
---|
46 | //======================== Prontera =================================== |
---|
47 | // West Side Inn ------------------- |
---|
48 | prt_in,244,135,2 script Inn Employee#Sammy 53,{ |
---|
49 | |
---|
50 | callfunc "F_InnMaid","[Employee Sammy]","Nenkaras","prt_in",238,130; |
---|
51 | warp "prt_in",247,104; end; |
---|
52 | } |
---|
53 | // East Side Inn ------------------ |
---|
54 | prt_in,61,141,2 script Inn Employee#Ahlma 53,{ |
---|
55 | |
---|
56 | callfunc "F_InnMaid","[Employee Ahlma]","Nenkaras","prt_in",64,136; |
---|
57 | warp "prt_in",60,166; end; |
---|
58 | } |
---|
59 | |
---|
60 | //======================== Alberta ==================================== |
---|
61 | // North -------------------------- |
---|
62 | alberta_in,32,142,5 script Inn Maid#Moira 53,{ |
---|
63 | |
---|
64 | callfunc "F_InnMaid","[Moira]","North Inn","alberta_in",26,138; |
---|
65 | warp "alberta_in",18,188; end; |
---|
66 | } |
---|
67 | // South ----------------------------- |
---|
68 | alberta_in,55,142,8 script Inn Maid#Tina 53,{ |
---|
69 | |
---|
70 | callfunc "F_InnMaid","[Tina]","South Inn","alberta_in",60,140; |
---|
71 | warp "alberta_in",68,188; end; |
---|
72 | } |
---|
73 | |
---|
74 | //====================== Geffen ====================================== |
---|
75 | geffen_in,70,64,5 script Inn Employee#Cena 53,{ |
---|
76 | |
---|
77 | callfunc "F_InnMaid","[Employee Cena]","'Ifrit,' the only Inn in the city of Geffen.","geffen_in",70,59; |
---|
78 | warp "geffen_in",31,31; end; |
---|
79 | } |
---|
80 | |
---|
81 | //======================= Payon ====================================== |
---|
82 | payon_in01,132,62,5 script Inn Employee#Ahee 53,{ |
---|
83 | |
---|
84 | callfunc "F_InnMaid","[Employee Ahee]","Payon Inn","payon_in01",136,61; |
---|
85 | warp "payon_in01",132,11; end; |
---|
86 | } |
---|
87 | |
---|
88 | //======================== Morocc ==================================== |
---|
89 | // North East -------------------------- |
---|
90 | morocc_in,147,141,3 script Inn Employee#Hasna 53,{ |
---|
91 | |
---|
92 | callfunc "F_InnMaid","[Employee Hasna]","Morroc Inn","morocc_in",142,140; |
---|
93 | warp "morocc_in",173,135; end; |
---|
94 | } |
---|
95 | // South -------------------------------- |
---|
96 | morocc_in,80,100,5 script Inn Employee#Manar 53,{ |
---|
97 | |
---|
98 | callfunc "F_InnMaid","[Employee Manar]","Morroc Inn","morocc_in",78,95; |
---|
99 | warp "morocc_in",79,123; end; |
---|
100 | } |
---|
101 | |
---|
102 | |
---|
103 | //====================== Aldebaran =================================== |
---|
104 | aldeba_in,92,58,5 script Inn Maid#Rilim 53,{ |
---|
105 | |
---|
106 | callfunc "F_InnMaid","[Rilim]","Al De Baran Inn","aldeba_in",92,50; |
---|
107 | warp "aldeba_in",92,112; end; |
---|
108 | } |
---|
109 | |
---|
110 | //======================== Rachel ==================================== |
---|
111 | ra_in01,376,69,4 script Inn Keeper#Annie 931,{ |
---|
112 | |
---|
113 | callfunc "F_InnMaid","[Annie]","Rachel Inn","ra_in01",375,58; |
---|
114 | warp "ra_in01",384,128; end; |
---|
115 | } |
---|
116 | |
---|
117 | //====================== Lighthalzen ================================= |
---|
118 | lhz_in02,230,284,4 script Hotel Employee#01 86,{ |
---|
119 | |
---|
120 | mes "[Hotel Employee]"; |
---|
121 | mes "Welcome to"; |
---|
122 | mes "the Royal Dragon,"; |
---|
123 | mes "where you can find the"; |
---|
124 | mes "finest accomodations"; |
---|
125 | mes "and the best service."; |
---|
126 | next; |
---|
127 | menu "Save Point",s_Save,"Rest - 5,000 zeny",s_Rest,"Cancel",-; |
---|
128 | |
---|
129 | mes "[Hotel Employee]"; |
---|
130 | mes "Thank you and"; |
---|
131 | mes "have a nice day."; |
---|
132 | close; |
---|
133 | |
---|
134 | s_Save: |
---|
135 | savepoint "lhz_in02",209,275; |
---|
136 | mes "[Hotel Employee]"; |
---|
137 | mes "Thank you, your"; |
---|
138 | mes "Respawn Point has"; |
---|
139 | mes "been saved here in"; |
---|
140 | mes "the Royal Dragon."; |
---|
141 | close; |
---|
142 | |
---|
143 | s_Rest: |
---|
144 | if(Zeny < 5000)goto s_NEnoughZ; |
---|
145 | set Zeny,Zeny - 5000; |
---|
146 | mes "[Hotel Employee]"; |
---|
147 | mes "Thank you~"; |
---|
148 | mes "I hope you enjoy"; |
---|
149 | mes "your stay in the"; |
---|
150 | mes "Royal Dragon."; |
---|
151 | close2; |
---|
152 | warp "lhz_in02",219,150; |
---|
153 | percentheal 100,100; |
---|
154 | sc_start SC_BLESSING,240000,10; |
---|
155 | skilleffect AL_BLESSING,0; |
---|
156 | end; |
---|
157 | |
---|
158 | s_NEnoughZ: |
---|
159 | mes "[Hotel Employee]"; |
---|
160 | mes "I'm sorry but you do not"; |
---|
161 | mes "have enough zeny, please"; |
---|
162 | mes "come back when you do!"; |
---|
163 | close; |
---|
164 | } |
---|
165 | |
---|
166 | //======================== Hugel ==================================== |
---|
167 | hu_in01,246,107,3 script Inn Maid#Receptionist 53,{ |
---|
168 | |
---|
169 | callfunc "F_InnMaid","[Receptionist]","Hugel Inn","hu_in01",263,95; |
---|
170 | warp "hu_in01",267,5; end; |
---|
171 | } |
---|
172 | |
---|
173 | //======================== Veins ==================================== |
---|
174 | ve_in,157,219,5 script Inn Master#Receptionist 709,{ |
---|
175 | mes "[Inn Master]"; |
---|
176 | mes "Good day~"; |
---|
177 | mes "Welcome to the"; |
---|
178 | mes "most comfortable"; |
---|
179 | mes "inn here in Veins~"; |
---|
180 | next; |
---|
181 | menu "Save",Msave, "Take a Rest -> 5000 zeny",Mrent, "Cancel",Mend; |
---|
182 | |
---|
183 | Msave: |
---|
184 | mes "[Inn Master]"; |
---|
185 | mes "Your respawn point"; |
---|
186 | mes "has been saved in Veins."; |
---|
187 | mes "Enjoy your stay in town~"; |
---|
188 | savepoint "ve_in",157,209; |
---|
189 | close; |
---|
190 | Mrent: |
---|
191 | mes "[Inn Master]"; |
---|
192 | if(Zeny < 5000){ |
---|
193 | mes "I'm sorry, but you don't have enough money to check in."; |
---|
194 | mes "The service charge is 5,000 zeny."; |
---|
195 | close; |
---|
196 | } |
---|
197 | mes "Enjoy your stay~"; |
---|
198 | close2; |
---|
199 | set Zeny,Zeny - 5000; |
---|
200 | percentheal 100,100; |
---|
201 | warp "ve_in",184,228; |
---|
202 | |
---|
203 | Mend: |
---|
204 | close; |
---|
205 | } |
---|
206 | |
---|
207 | //======================== Moscovia ==================================== |
---|
208 | mosk_in,135,191,5 script Hotel Inn#Receptionist 961,{ |
---|
209 | mes "[Hotel Inn]"; |
---|
210 | mes "Good day~"; |
---|
211 | mes "Welcome to the"; |
---|
212 | mes "most comfortable"; |
---|
213 | mes "inn here in Moscovia~"; |
---|
214 | next; |
---|
215 | menu "Save",Msave, "Take a Rest -> 5000 zeny",Mrent, "Cancel",Mend; |
---|
216 | |
---|
217 | Msave: |
---|
218 | mes "[Hotel Inn]"; |
---|
219 | mes "Your respawn point"; |
---|
220 | mes "has been saved in Moscovia."; |
---|
221 | mes "Enjoy your stay in town~"; |
---|
222 | savepoint "mosk_in",142,189; |
---|
223 | close; |
---|
224 | Mrent: |
---|
225 | mes "[Hotel Inn]"; |
---|
226 | if(Zeny < 5000){ |
---|
227 | mes "I'm sorry, but you don't have enough money to check in."; |
---|
228 | mes "The service charge is 5,000 zeny."; |
---|
229 | close; |
---|
230 | } |
---|
231 | mes "Enjoy your stay~"; |
---|
232 | close2; |
---|
233 | set Zeny,Zeny - 5000; |
---|
234 | percentheal 100,100; |
---|
235 | warp "mosk_in",215,181; |
---|
236 | |
---|
237 | Mend: |
---|
238 | close; |
---|
239 | } |
---|
240 | |
---|
241 | //======================= Inn Function ============================== |
---|
242 | function script F_InnMaid { |
---|
243 | mes getarg(0); |
---|
244 | mes "Welcome to"; |
---|
245 | mes getarg(1) + "."; |
---|
246 | mes "How may I help you?"; |
---|
247 | next; |
---|
248 | menu "Save",Msave, "Take a Rest -> 5000 zeny",Mrent, "Cancel",Mend; |
---|
249 | |
---|
250 | Msave: |
---|
251 | mes getarg(0); |
---|
252 | mes "Your respawn point"; |
---|
253 | mes "has been saved."; |
---|
254 | mes "Thank you,"; |
---|
255 | mes "please come again."; |
---|
256 | savepoint getarg(2),getarg(3),getarg(4); |
---|
257 | close; |
---|
258 | Mrent: |
---|
259 | mes getarg(0); |
---|
260 | if(Zeny < 5000){ |
---|
261 | mes "I'm sorry, but the service charge"; |
---|
262 | mes "is 5,000 zeny. Please make sure"; |
---|
263 | mes "that you have enough money to check"; |
---|
264 | mes "in next time, okay?"; |
---|
265 | close; |
---|
266 | } |
---|
267 | mes "Thank you."; |
---|
268 | mes "I hope you"; |
---|
269 | mes "enjoy your rest~"; |
---|
270 | close2; |
---|
271 | set Zeny,Zeny - 5000; |
---|
272 | percentheal 100,100; |
---|
273 | return; |
---|
274 | |
---|
275 | Mend: |
---|
276 | close; |
---|
277 | } |
---|