summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/map/maps.conf1
-rw-r--r--db/map_index.txt617
-rw-r--r--maps/re/009-8.mcachebin0 -> 91 bytes
-rw-r--r--npc/009-1/_warps.txt1
-rw-r--r--npc/009-8/_import.txt4
-rw-r--r--npc/009-8/_warps.txt3
-rw-r--r--npc/009-8/gambler.txt132
-rw-r--r--npc/_import.txt1
8 files changed, 451 insertions, 308 deletions
diff --git a/conf/map/maps.conf b/conf/map/maps.conf
index 5926d9b8b..5644902e6 100644
--- a/conf/map/maps.conf
+++ b/conf/map/maps.conf
@@ -113,6 +113,7 @@ map_list: (
"009-5",
"009-6",
"009-7",
+ "009-8",
"010-1-1",
"010-1-10",
"010-1-11",
diff --git a/db/map_index.txt b/db/map_index.txt
index bebe135fe..0a6e82f15 100644
--- a/db/map_index.txt
+++ b/db/map_index.txt
@@ -110,311 +110,312 @@
009-5 110
009-6 111
009-7 112
-010-1-1 113
-010-1-10 114
-010-1-11 115
-010-1-12 116
-010-1-2 117
-010-1-3 118
-010-1-4 119
-010-1-5 120
-010-1-6 121
-010-1-7 122
-010-1-8 123
-010-1-9 124
-010-1 125
-010-2-10 126
-010-2-11 127
-010-2-12 128
-010-2-13 129
-010-2-14 130
-010-2-15 131
-010-2-16 132
-010-2-2 133
-010-2-3 134
-010-2-4 135
-010-2-5 136
-010-2-6 137
-010-2-7 138
-010-2-8 139
-010-2-9 140
-010-2 141
-010-3 142
-010-4-1 143
-010-4-2 144
-011-1 145
-011-2 146
-011-3 147
-011-4 148
-012-1 149
-012-2 150
-012-3 151
-012-4 152
-012-5 153
-012-6 154
-012-7 155
-012-8 156
-013-1 157
-014-1 158
-014-2-1 159
-014-2-2 160
-014-2 161
-014-3 162
-014-4 163
-014-5-1 164
-014-5 165
-015-1 166
-015-2 167
-015-3-1 168
-015-3-2 169
-015-3-3 170
-015-3 171
-015-4 172
-015-5 173
-015-6 174
-015-7 175
-015-8-1 176
-015-8 177
-016-1 178
-016-6 179
-016-7 180
-017-0 181
-017-1 182
-017-10 183
-017-2-1 184
-017-2-2 185
-017-2 186
-017-3 187
-017-4 188
-017-5 189
-017-6 190
-017-7 191
-017-8 192
-018-1-1 193
-018-1 194
-018-2-1 195
-018-2-2 196
-018-2-3 197
-018-2-4 198
-018-2-5 199
-018-2-6 200
-018-2-7 201
-018-2-8 202
-018-2 203
-018-3 204
-018-4-1 205
-018-4-2 206
-018-4 207
-018-5-0 208
-018-5-1 209
-018-5-2 210
-018-5-3 211
-018-5-4 212
-018-5-5 213
-018-5-boss 214
-018-5 215
-018-6-0 216
-018-6-1 217
-018-6-2 218
-018-6-3 219
-018-7-1 220
-018-7 221
-018-8 222
-019-1-1 223
-019-1 224
-019-2 225
-019-3 226
-019-4-1 227
-019-4 228
-019-5-1 229
-019-5-2 230
-019-5-3 231
-019-5 232
-019-6 233
-020-1 234
-020-2 235
-020-3 236
-020-4 237
-020-5 238
-020-6 239
-020-7-1 240
-020-7-2 241
-020-7 242
-021-0 243
-021-1 244
-021-2 245
-021-3 246
-021-4 247
-022-1 248
-023-1 249
-023-2 250
-023-3-1 251
-023-3-2 252
-023-3 253
-023-4 254
-024-1 255
-024-10 256
-024-11 257
-024-12 258
-024-13 259
-024-14 260
-024-15 261
-024-16 262
-024-2 263
-024-3 264
-024-4 265
-024-5 266
-024-6 267
-024-7 268
-024-8 269
-024-9 270
-025-1 271
-025-2-1 272
-025-2-2 273
-025-2-3 274
-025-2-4 275
-025-2 276
-025-3 277
-025-4-1 278
-025-4 279
-026-0 280
-026-1 281
-026-2 282
-026-3 283
-026-6 284
-026-7 285
-027-0 286
-027-1 287
-027-2 288
-027-3 289
-027-4 290
-027-5 291
-027-6 292
-027-7 293
-029-0 294
-029-1 295
-029-2 296
-029-3 297
-029-4 298
-029-5 299
-029-6 300
-029-7 301
-029-8 302
-029-9 303
-030-01 304
-030-02 305
-030-03 306
-030-04 307
-030-05 308
-030-06 309
-030-07 310
-030-08 311
-030-09 312
-030-10 313
-030-11 314
-030-12 315
-030-13 316
-030-14 317
-030-15 318
-030-16 319
-030-17 320
-030-18 321
-030-19 322
-030-20 323
-030-21 324
-030-22 325
-030-23 326
-030-24 327
-030-25 328
-030-26 329
-030-27 330
-030-28 331
-030-29 332
-030-30 333
-030-31 334
-030-32 335
-030-33 336
-030-34 337
-030-35 338
-030-36 339
-030-37 340
-030-38 341
-030-39 342
-030-40 343
-030-41 344
-030-42 345
-030-43 346
-030-44 347
-030-45 348
-030-46 349
-030-47 350
-030-48 351
-030-49 352
-030-50 353
-030-51 354
-030-52 355
-030-53 356
-030-54 357
-030-55 358
-030-56 359
-030-57 360
-030-58 361
-030-59 362
-030-60 363
-030-61 364
-030-62 365
-030-63 366
-030-64 367
-030-65 368
-030-66 369
-030-67 370
-030-68 371
-030-69 372
-030-70 373
-030-71 374
-030-72 375
-030-73 376
-030-74 377
-030-75 378
-031-0 379
-031-1 380
-031-2 381
-031-3 382
-031-4 383
-031-5 384
-031-6 385
-031-7 386
-031-8 387
-031-9 388
-032-1 389
-032-2 390
-032-3 391
-032-4 392
-032-5 393
-033-1 394
-033-2 395
-033-3 396
-033-4 397
-033-5 398
-034-1 399
-034-2 400
-034-3 401
-034-4 402
-042-0 403
-042-1 404
-042-10 405
-042-11 406
-042-2 407
-042-3 408
-042-4 409
-042-5 410
-042-6 411
-042-7 412
-042-8 413
-042-9 414
-boss 415
-botcheck 416
-guilds 417
-sec_pri 418
-soren-2 419
-soren 420
+009-8 113
+010-1-1 114
+010-1-10 115
+010-1-11 116
+010-1-12 117
+010-1-2 118
+010-1-3 119
+010-1-4 120
+010-1-5 121
+010-1-6 122
+010-1-7 123
+010-1-8 124
+010-1-9 125
+010-1 126
+010-2-10 127
+010-2-11 128
+010-2-12 129
+010-2-13 130
+010-2-14 131
+010-2-15 132
+010-2-16 133
+010-2-2 134
+010-2-3 135
+010-2-4 136
+010-2-5 137
+010-2-6 138
+010-2-7 139
+010-2-8 140
+010-2-9 141
+010-2 142
+010-3 143
+010-4-1 144
+010-4-2 145
+011-1 146
+011-2 147
+011-3 148
+011-4 149
+012-1 150
+012-2 151
+012-3 152
+012-4 153
+012-5 154
+012-6 155
+012-7 156
+012-8 157
+013-1 158
+014-1 159
+014-2-1 160
+014-2-2 161
+014-2 162
+014-3 163
+014-4 164
+014-5-1 165
+014-5 166
+015-1 167
+015-2 168
+015-3-1 169
+015-3-2 170
+015-3-3 171
+015-3 172
+015-4 173
+015-5 174
+015-6 175
+015-7 176
+015-8-1 177
+015-8 178
+016-1 179
+016-6 180
+016-7 181
+017-0 182
+017-1 183
+017-10 184
+017-2-1 185
+017-2-2 186
+017-2 187
+017-3 188
+017-4 189
+017-5 190
+017-6 191
+017-7 192
+017-8 193
+018-1-1 194
+018-1 195
+018-2-1 196
+018-2-2 197
+018-2-3 198
+018-2-4 199
+018-2-5 200
+018-2-6 201
+018-2-7 202
+018-2-8 203
+018-2 204
+018-3 205
+018-4-1 206
+018-4-2 207
+018-4 208
+018-5-0 209
+018-5-1 210
+018-5-2 211
+018-5-3 212
+018-5-4 213
+018-5-5 214
+018-5-boss 215
+018-5 216
+018-6-0 217
+018-6-1 218
+018-6-2 219
+018-6-3 220
+018-7-1 221
+018-7 222
+018-8 223
+019-1-1 224
+019-1 225
+019-2 226
+019-3 227
+019-4-1 228
+019-4 229
+019-5-1 230
+019-5-2 231
+019-5-3 232
+019-5 233
+019-6 234
+020-1 235
+020-2 236
+020-3 237
+020-4 238
+020-5 239
+020-6 240
+020-7-1 241
+020-7-2 242
+020-7 243
+021-0 244
+021-1 245
+021-2 246
+021-3 247
+021-4 248
+022-1 249
+023-1 250
+023-2 251
+023-3-1 252
+023-3-2 253
+023-3 254
+023-4 255
+024-1 256
+024-10 257
+024-11 258
+024-12 259
+024-13 260
+024-14 261
+024-15 262
+024-16 263
+024-2 264
+024-3 265
+024-4 266
+024-5 267
+024-6 268
+024-7 269
+024-8 270
+024-9 271
+025-1 272
+025-2-1 273
+025-2-2 274
+025-2-3 275
+025-2-4 276
+025-2 277
+025-3 278
+025-4-1 279
+025-4 280
+026-0 281
+026-1 282
+026-2 283
+026-3 284
+026-6 285
+026-7 286
+027-0 287
+027-1 288
+027-2 289
+027-3 290
+027-4 291
+027-5 292
+027-6 293
+027-7 294
+029-0 295
+029-1 296
+029-2 297
+029-3 298
+029-4 299
+029-5 300
+029-6 301
+029-7 302
+029-8 303
+029-9 304
+030-01 305
+030-02 306
+030-03 307
+030-04 308
+030-05 309
+030-06 310
+030-07 311
+030-08 312
+030-09 313
+030-10 314
+030-11 315
+030-12 316
+030-13 317
+030-14 318
+030-15 319
+030-16 320
+030-17 321
+030-18 322
+030-19 323
+030-20 324
+030-21 325
+030-22 326
+030-23 327
+030-24 328
+030-25 329
+030-26 330
+030-27 331
+030-28 332
+030-29 333
+030-30 334
+030-31 335
+030-32 336
+030-33 337
+030-34 338
+030-35 339
+030-36 340
+030-37 341
+030-38 342
+030-39 343
+030-40 344
+030-41 345
+030-42 346
+030-43 347
+030-44 348
+030-45 349
+030-46 350
+030-47 351
+030-48 352
+030-49 353
+030-50 354
+030-51 355
+030-52 356
+030-53 357
+030-54 358
+030-55 359
+030-56 360
+030-57 361
+030-58 362
+030-59 363
+030-60 364
+030-61 365
+030-62 366
+030-63 367
+030-64 368
+030-65 369
+030-66 370
+030-67 371
+030-68 372
+030-69 373
+030-70 374
+030-71 375
+030-72 376
+030-73 377
+030-74 378
+030-75 379
+031-0 380
+031-1 381
+031-2 382
+031-3 383
+031-4 384
+031-5 385
+031-6 386
+031-7 387
+031-8 388
+031-9 389
+032-1 390
+032-2 391
+032-3 392
+032-4 393
+032-5 394
+033-1 395
+033-2 396
+033-3 397
+033-4 398
+033-5 399
+034-1 400
+034-2 401
+034-3 402
+034-4 403
+042-0 404
+042-1 405
+042-10 406
+042-11 407
+042-2 408
+042-3 409
+042-4 410
+042-5 411
+042-6 412
+042-7 413
+042-8 414
+042-9 415
+boss 416
+botcheck 417
+guilds 418
+sec_pri 419
+soren-2 420
+soren 421
diff --git a/maps/re/009-8.mcache b/maps/re/009-8.mcache
new file mode 100644
index 000000000..b3c869f4b
--- /dev/null
+++ b/maps/re/009-8.mcache
Binary files differ
diff --git a/npc/009-1/_warps.txt b/npc/009-1/_warps.txt
index 82d16fb60..c7a823638 100644
--- a/npc/009-1/_warps.txt
+++ b/npc/009-1/_warps.txt
@@ -7,3 +7,4 @@
009-1,86,34,0 warp #009-1_86_34 0,0,009-3,44,56
009-1,33,62,0 warp #009-1_33_62 0,0,009-4,48,53
009-1,64,38,0 warp #009-1_64_38 1,0,009-5,32,41
+009-1,81,47,0 warp #009-1_81_47 0,0,009-8,32,41
diff --git a/npc/009-8/_import.txt b/npc/009-8/_import.txt
new file mode 100644
index 000000000..c39e359b4
--- /dev/null
+++ b/npc/009-8/_import.txt
@@ -0,0 +1,4 @@
+// Map 009-8: Halinarzo Casino
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/009-8/_warps.txt",
+"npc/009-8/gambler.txt",
diff --git a/npc/009-8/_warps.txt b/npc/009-8/_warps.txt
new file mode 100644
index 000000000..0eeaef603
--- /dev/null
+++ b/npc/009-8/_warps.txt
@@ -0,0 +1,3 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 009-8: Halinarzo Casino warps
+009-8,33,42,0 warp #009-8_33_42 1,0,009-1,81,48
diff --git a/npc/009-8/gambler.txt b/npc/009-8/gambler.txt
new file mode 100644
index 000000000..c3a55d7a4
--- /dev/null
+++ b/npc/009-8/gambler.txt
@@ -0,0 +1,132 @@
+// TMW2 Scripts
+// Author:
+// Jesusalva
+// Description:
+// The Illegal Gambler
+
+009-8,37,34,0 script Illegal Gambler#009-8 NPC_PLAYER,{
+ .@showMenu=true;
+ goto L_Menu;
+
+L_Menu:
+ if (.@showMenu) {
+ mesn;
+ mesc l("Hey, welcome to Halinarzo's illegal Casino! Everything here is illegal, even the prizes, so don't blame anyone if you get scammed!");
+ next;
+ mesn;
+ mesc l("So, do you want to play a game of Creps?!"); // ;-- TRANSLATORS, wordplay of "Craps"
+ next;
+ .@showMenu=false;
+ }
+ menu
+ rif(countitem(CasinoCoins) >= 1, l("Let's play!")), L_Spin,
+ l("Information"), L_Info,
+ l("Leave"), L_Quit;
+
+L_Info:
+ mes "";
+ mesn;
+ mesc l("Chill, Creps is very similar to Craps! I'll throw two dices and you have to bet if I'll win or lose!");
+ mesc l("If I get a 7 or 11 (natural) I win, and if I get a 2, 3 or 12 I lose (craps).");
+ mesc l("If I get anything else, the number is my point, and rules change: Getting that number I win (point), getting a 7 I lose (craps).");
+ mes "";
+ mesc l("Prizes:");
+ mesc l("If you guess right, you'll win 70 GP!");
+ mesc l("If you're wrong, your winning streak is reset.");
+ mesc l("Winning Streak is also reset on logout or when you leave the Inn.");
+ mesc l("If you get %d successive right guesses, you'll get a %s!", 7, getitemlink(VneckJumper));
+ mes "";
+ mesc l("Sure, in regular Craps you can bet for the roll results and whatnot, but this is not Craps, this is Creps! So, are you going to play?");
+ next;
+ goto L_Menu;
+
+
+L_Spin:
+ mes "";
+ mesc l("So how will ya bet, champ?!");
+ select
+ l("I bet on your victory!"),
+ l("I bet on your defeat!");
+ mes "";
+ .@lose = @menu - 1;
+ delitem CasinoCoins, 1;
+ .@point = 0; .@result = -1;
+
+ // Loop
+ do
+ {
+ mesc l("Roll the dices!");
+ dnext;
+ .@c$ = any("", "red_");
+ .@d1 = rand2(1,6);
+ .@d2 = rand2(1,6);
+ .@sc = .@d1 + .@d2;
+ img("dice/%s%d" % (.@c$, .@d1));
+ img("dice/%s%d" % (.@c$, .@d2));
+ mesc l("I rolled a %d!", .@sc);
+
+ if (!.@point) {
+ // Classic rules
+ if (.@sc == 7 || .@sc == 11) {
+ mesc l("A natural! I win!"), 2;
+ .@result = true;
+ } else if (.@sc == 2 || .@sc == 3 || .@sc == 12) {
+ mesc l("Craps! I lose!"), 1;
+ .@result = false;
+ } else {
+ mesc l("My point is %d!"), 3;
+ .@point = .@sc;
+ }
+ } else {
+ // Point rules
+ if (.@sc == 7) {
+ mesc l("Craps! I lose!"), 1;
+ .@result = false;
+ } else if (.@sc == .@point) {
+ mesc l("I made my point! I win!"), 2;
+ .@result = true;
+ } // No else clause, keep rolling the dice
+ }
+ } while (.@result == -1);
+
+ // Check if you won your bet
+ if ((.@result && !.@lose) || (!.@result && .@lose)) {
+ mesc l("I guess you guessed correctly!");
+ Zeny += 70;
+ @craps_winstreak += 1;
+ // Streak reward
+ if (@craps_winstreak == 7)
+ getitem VneckJumper, 1;
+ // Maybe you want another game?
+ next;
+ if (countitem(CasinoCoins))
+ mesc l("New game?");
+ else
+ goto L_Quit;
+ if (askyesno() == ASK_YES)
+ goto L_Spin;
+ goto L_Quit;
+ } else {
+ mesc l("Luck wasn't on your side today!");
+ @craps_winstreak = 0;
+ }
+ dnext;
+ goto L_Menu;
+
+L_Quit:
+ closeclientdialog;
+ close;
+
+OnInit:
+ .sex = G_MALE;
+ .distance = 4;
+ .@npcId = getnpcid(.name$);
+ setunitdata(.@npcId, UDT_HEADTOP, TopHat);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, CopperArmor);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, JeansShorts);
+ npcsit;
+ end;
+
+}
+
+
diff --git a/npc/_import.txt b/npc/_import.txt
index f51ec463e..25035f127 100644
--- a/npc/_import.txt
+++ b/npc/_import.txt
@@ -112,6 +112,7 @@
@include "npc/009-5/_import.txt"
@include "npc/009-6/_import.txt"
@include "npc/009-7/_import.txt"
+@include "npc/009-8/_import.txt"
@include "npc/010-1-1/_import.txt"
@include "npc/010-1-10/_import.txt"
@include "npc/010-1-11/_import.txt"