summaryrefslogtreecommitdiff
path: root/npc/tulimshar/casino.txt
blob: decd5b167031556b569174251325999c812e5b43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
// Warps room 1
new_8-1.gat,45,24	warp	upstairs	0,2,new_8-1.gat,65,25
new_8-1.gat,25,36	warp	outside	0,2,new_3-1.gat,33,73
// Warps room 2
new_8-1.gat,64,25	warp	downstairs	0,1,new_8-1.gat,42,25
new_8-1.gat,68,22	warp	tocasino	2,0,new_8-1.gat,32,72
new_8-1.gat,67,31	warp	tobedroom1	1,1,new_8-1.gat,102,23
new_8-1.gat,76,31	warp	tobedroom2	1,1,new_8-1.gat,130,23
// Warps room 3
new_8-1.gat,102,22	warp	bedroom1tohall	2,0,new_8-1.gat,67,29
// Warps room 4
new_8-1.gat,130,22	warp	bedroom2tohall	2,0,new_8-1.gat,76,29
// Warps room 5
new_8-1.gat,32,74	warp	tohall	1,0,new_8-1.gat,68,23

new_8-1.gat,26,26,0	shop	InnKeeper	112,539:175,513:20,519

new_8-1.gat,103,26,0	script	Waitress	118,{
	mes "[Rebecca]";
	mes "Would you like to rest? It's only 100 gp.";
	next;
	
	menu "Yes",L_Yes,"No",L_No;
L_Yes:
	mes "Sleep well!";
	next;
	if (zeny < 100) goto L_NoMoney;
	set zeny,zeny-100;
	heal 10000,10000;
	close;
	
L_No:
	mes "See you.";
	close;
	
L_NoMoney:
	mes "Hey! You don't have enough money!";
	close;
}

new_8-1.gat,134,23,0	script	Worker	117,{
	mes "[Valdo]";
	mes "Please let me work, I'm really in a hurry!";
	close;
}

new_8-1.gat,37,65,0	script	Slot1	127,{
	mes "Pull the lever...";
	next;
	if(countitem(503) < 1) goto L_NoCoin;
	delitem 503,1;
	set @Temp1,rand(7);
	set @Temp2,rand(7);
	set @Temp3,rand(7);
	mes "Numbers: "+ @Temp1 +"/"+ @Temp2 +"/"+ @Temp3 +"";
	next;
	if(@Temp1 != @Temp2) goto L_Lost;
	if(@Temp2 != @Temp3) goto L_Lost;
	if(@Temp1 != @Temp3) goto L_Lost;
	mes "Congratulations! You won!";
	mes "You get 10 casino coins";
	getitem 503,10;
	close;
	
L_Lost:
	mes "You lost!";
	close;
	
L_NoCoin:
	mes "Insert coin";
	close;
}

new_8-1.gat,39,65,0	script	Slot2	127,{
	mes "Pull the lever...";
	next;
	if(countitem(503) < 1) goto L_NoCoin;
	delitem 503,1;
	set @Temp1,rand(7);
	set @Temp2,rand(7);
	set @Temp3,rand(7);
	mes "Numbers: "+ @Temp1 +"/"+ @Temp2 +"/"+ @Temp3 +"";
	next;
	if(@Temp1 != @Temp2) goto L_Lost;
	if(@Temp2 != @Temp3) goto L_Lost;
	if(@Temp1 != @Temp3) goto L_Lost;
	mes "Congratulations! You won!";
	mes "You get 10 casino coins";
	getitem 503,10;
	close;
	
L_Lost:
	mes "You lost!";
	close;
	
L_NoCoin:
	mes "Insert coin";
	close;
}

new_8-1.gat,41,65,0	script	Slot3	127,{
	mes "Pull the lever...";
	next;
	if(countitem(503) < 1) goto L_NoCoin;
	delitem 503,1;
	set @Temp1,rand(7);
	set @Temp2,rand(7);
	set @Temp3,rand(7);
	mes "Numbers: "+ @Temp1 +"/"+ @Temp2 +"/"+ @Temp3 +"";
	next;
	if(@Temp1 != @Temp2) goto L_Lost;
	if(@Temp2 != @Temp3) goto L_Lost;
	if(@Temp1 != @Temp3) goto L_Lost;
	mes "Congratulations! You won!";
	mes "You get 10 casino coins";
	getitem 503,10;
	close;
	
L_Lost:
	mes "You lost!";
	close;
	
L_NoCoin:
	mes "Insert coin";
	close;
}

new_8-1.gat,32,67,0	shop	MoneyChanger	124,503:10

new_8-1.gat,28,63,0	script	BlackJack	107,{
	mes "[Croupier]";
	mes "Would you like to play Black Jack?";
	mes "You will need 15 casino coins";
	next;
	
	menu "Yes",L_Yes,"No",L_No;
L_Yes:
	if(countitem(503) < 15) goto L_NoCoin;
	delitem 503,15;
	set @croupier,rand(0, 4);
	set @croupier,@croupier + 17;
	
	set @player,rand(4, 20);
	
	mes "You got " + @player + " with your cards.";
	mes "Do you want another card?";
	next;
	
	menu "Yes",L_Another,"No",L_End;
L_Another:
	set @player,@player+rand(2, 11);
	
	if (@player > 21) goto L_Lost;	
	mes "You got " + @player + " with your cards.";	
	mes "Do you want another card?";
	next;
	
	menu "Yes",L_Another,"No",L_End;
	
L_End:
	if (@player < @croupier) goto L_Lost;
	mes "Congratulations, you won!";
	mes "I had " + @croupier + "";
	mes "You get 50 casino coins";
	getitem 503,50;
	close;
	
L_No:
	mes "As you wish";
	close;
	
L_NoCoin:
	mes "You need at least 15 coins";
	close;
	
L_Lost:
	mes "I'm sorry but you lost";
	mes "You got " + @player + " with your cards.";	
	mes "I had " + @croupier + "";
	close;
}

new_8-1.gat,22,69,0	script	Roulette	107,{
	mes "Good evening monsieur...";
	mes "How much would you like to bet?";
	next;
	
	menu "Maybe I'll play later",L_Later,"1 coin",L_b1,"5 coins",L_b5,"10 coins",L_b10,"50 coins",L_b50,"100 coins",L_b100;
L_b1:
	set @bet,1;
	goto L_Check;
L_b5:
	set @bet,5;
	goto L_Check;
L_b10:
	set @bet,10;
	goto L_Check;
L_b50:
	set @bet,50;
	goto L_Check;
L_b100:
	set @bet,100;
	goto L_Check;
	
L_Check:
	if(countitem(503) < @bet) goto L_NoCoin;
	delitem 503,@bet;	
	
	menu "Choose a color",L_Color,"Choose a number",L_Number;
	
L_Color:
	menu "Black",L_ColorEnd,"Red",L_ColorEnd;

L_ColorEnd:
    set @color,rand(2);
	if(@color == 1) goto L_Lost;
	mes "You won!";
	getitem 503,@bet * 2;
	close;

L_Number:
	menu "0",L0,"00",L00,"1",L1,"2",L2,"3",L3,"4",L4,"5",L5,"6",L6,"7",L7,
		 "8",L8,"9",L9,"10",L10,"11",L11,"12",L12,"13",L13,"14",L14,"15",L15,
		 "16",L16,"17",L17,"18",L18,"19",L19,"20",L20,"21",L21,"22",L22,
		 "23",L23,"24",L24,"25",L25,"26",L26,"27",L27,"28",L28,"29",L29,
		 "30",L30,"31",L31,"32",L32,"33",L33,"34",L34,"35",L35,"36",L36;
		 
L0:
	set @number,0;
	goto L_CheckNumber;
L00:
	set @number,37;
	goto L_CheckNumber;
L1:
	set @number,1;
	goto L_CheckNumber;
L2:
	set @number,2;
	goto L_CheckNumber;
L3:
	set @number,3;
	goto L_CheckNumber;
L4:
	set @number,4;
	goto L_CheckNumber;
L5:
	set @number,5;
	goto L_CheckNumber;
L6:
	set @number,6;
	goto L_CheckNumber;
L7:
	set @number,7;
	goto L_CheckNumber;
L8:
	set @number,8;
	goto L_CheckNumber;
L9:
	set @number,9;
	goto L_CheckNumber;
L10:
	set @number,10;
	goto L_CheckNumber;
L11:
	set @number,11;
	goto L_CheckNumber;
L12:
	set @number,12;
	goto L_CheckNumber;
L13:
	set @number,13;
	goto L_CheckNumber;
L14:
	set @number,14;
	goto L_CheckNumber;
L15:
	set @number,15;
	goto L_CheckNumber;
L16:
	set @number,16;
	goto L_CheckNumber;
L17:
	set @number,17;
	goto L_CheckNumber;
L18:
	set @number,18;
	goto L_CheckNumber;
L19:
	set @number,19;
	goto L_CheckNumber;
L20:
	set @number,20;
	goto L_CheckNumber;
L21:
	set @number,21;
	goto L_CheckNumber;
L22:
	set @number,22;
	goto L_CheckNumber;
L23:
	set @number,23;
	goto L_CheckNumber;
L24:
	set @number,24;
	goto L_CheckNumber;
L25:
	set @number,25;
	goto L_CheckNumber;
L26:
	set @number,26;
	goto L_CheckNumber;
L27:
	set @number,27;
	goto L_CheckNumber;
L28:
	set @number,28;
	goto L_CheckNumber;
L29:
	set @number,29;
	goto L_CheckNumber;
L30:
	set @number,30;
	goto L_CheckNumber;
L31:
	set @number,31;
	goto L_CheckNumber;
L32:
	set @number,32;
	goto L_CheckNumber;
L33:
	set @number,33;
	goto L_CheckNumber;
L34:
	set @number,34;
	goto L_CheckNumber;
L35:
	set @number,35;
	goto L_CheckNumber;
L36:
	set @number,36;
	goto L_CheckNumber;
	
L_CheckNumber:
	set @roulette,rand(38);
	if (@roulette == 37) mes "We got a 00";
	if (@roulette < 37) mes "We got a " + @roulette;
	if (@number != @roulette) goto L_Lost;
	mes "You won!";
	getitem 503,@bet * 10;
	close;

L_Later:
	mes "Rien ne va plus...";
	close;

L_NoCoin:
	mes "You don't have enough coins";
	close;
	
L_Lost:
	mes "I'm sorry, you lost";
	close;
}