summaryrefslogtreecommitdiff
path: root/npc/003-2/lua.txt
blob: a1dfee7db136ef84cc20099123c5a171309c6b11 (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
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
// TMW2 Scripts.
// Author:
//  Jesusalva
// Description:
//  Lua is an Alliance Officer. She takes care of miscelanneous administrative tasks, including Strange Coin generation.
//  She can also change the world's hero, give Sponsor their necklace, and is part of main storyline.

003-2,38,34,0	script	Lua#003-2	NPC_FEMALE,{
    // Main Quest 2-1 until Main Quest 2-5 (?)
    function luaAssignTask1; // Dausen & Aidan
    function luaTask1;
    function luaCheckTask1;
    function luaAssignTask2; // Fishing & Crafting
    function luaTask2;
    function luaCheckTask2;
    function luaAssignTask3; // Minimum level/job to begin
    function luaTask3;
    function luaCheckTask3;
    function luaAssignTask4; // Inn Arc
    function luaTask4;
    function luaCheckTask4;
    function luaAssignTask5; // Your Report, the plan
    function luaTask5;
    function luaCheckTask5;
    // Then we jump to L_Finish/L_Complete
    .@n = getq(General_Narrator);

    mesn;
    mesq l("Hello, I act on the Alliance's behalf.");

L_Menu:
    mes "";
    menu
        l("Ok, see you later."),L_Close,
        rif(.@n == 1, l("I was found near Candor Island, on a raft, and can't remember anything. Do you know who I am?")), L_Info,
        rif(.@n == 2, l("What you asked me for, again?")), L_Task,
        rif(.@n == 3, l("Where I needed to go, again?")), L_Complete,
        rif(.@n >= 4, l("Do you think I'm ready to go to Halinarzo?")), L_Check,
        rif(is_gm(), l("I need a GM set, please!")), L_GMItems,
        rif(is_gm() && #GMEVENT_T <= gettimetick(2), l("I plan in doing an event! Give me the coins!")), L_GMEvent,
        rif(is_gm() && #GMEVENT_T > gettimetick(2), l("Trade my coins in Gift Boxes, pretty please!")), L_GMEventShop,
        rif(is_staff(), l("Tell people the name of a new hero.")), L_NewHero,
        rif((getgmlevel() == 1 || is_admin()) && #T_SPONSOR <= gettimetick(2), l("I want a Sponsor Necklace.")), L_Sponsor,
        l("Do you have any tips for beginners?"), L_Tips,
        l("I am a contributor, and I want contributor stuff."), L_Contributor,
        l("What alliance?"),-;
    mes "";
    mesn;
    mesq l("The Alliance which was formed after the war!");
    close;

















/////////////////////////////////////////////////////////////////////////////////
// GM Functions
L_GMItems:
    getitembound GMRobe, 1, 1;
    getitembound GMCap, 1, 1;
    logmes(strcharinfo(0)+" just took a GM set.");
    logmes(strcharinfo(0)+" just took a GM set.", LOGMES_ATCOMMAND);
    mes "";
    mesn;
    mesq lg("Here they are, miss.", "Here they are, mister.");
    mes "";
    goto L_Menu;

L_GMEvent:
OnGMCoinClaim:
    if (!is_gm() || #GMEVENT_T > gettimetick(2)) {
        dispbottom l("ERROR: You already took the coins today. Please wait @@ more.", FuzzyTime(#GMEVENT_T)), 1;
        end;
    }
    #GMEVENT_T=gettimetick(2)+(60*60*24);
    getitem StrangeCoin, 30;
    //logmes(strcharinfo(0)+" just took thirty event coins.");
    //logmes(strcharinfo(0)+" just took thirty event coins.", LOGMES_ATCOMMAND);
    mes "";
    mesn;
    mesq lg("Here they are, miss.", "Here they are, mister.");
    mes "";
    goto L_Menu;

OnGMEventShop:
L_GMEventShop:
    // Inflaction: Non-admins pay more out of main events (for whatever reasons)
    .@inf=1;
    if (!is_master() && $EVENT$ == "")
        .@inf+=1;

    // Main Code
    .@s=countitem(StrangeCoin);
    mes "";
    mesn;
    mesq l("You currently have @@ @@.", countitem(StrangeCoin), getitemlink(StrangeCoin));
    mes "";
    mesc l("@@ - @@ coins", getitemlink(BronzeGift), 10*.@inf);
    mesc l("@@ - @@ coins", getitemlink(SilverGift), 20*.@inf);
    mesc l("@@ - @@ coins", getitemlink(GoldenGift), 40*.@inf);
    mesc l("@@ - @@ coins", getitemlink(PrismGift), 80*.@inf);
    mesc l("@@ - @@ coins", getitemlink(SupremeGift), 160*.@inf);
    mes "";
    mesc l("Fruits - @@ coins", 100*.@inf);
    mes "";
    menuint
        "Return to main menu", -1,
        rif(.@s > 10*.@inf, "Bronze Gift"),  10,
        rif(.@s > 20*.@inf, "Silver Gift"),  20,
        rif(.@s > 40*.@inf, "Golden Gift"),  40,
        rif(.@s > 80*.@inf, "Prism Gift"),   80,
        rif(.@s > 160*.@inf, "Supreme Gift"), 160,
        rif(.@s > 100*.@inf, "Statusup Fruits"), 100;

    if (@menuret == -1)
        goto L_Menu;

    delitem StrangeCoin, @menuret*.@inf;
    switch (@menuret) {
        case 10:
            getitem BronzeGift, 1; break;
        case 20:
            getitem SilverGift, 1; break;
        case 40:
            getitem GoldenGift, 1; break;
        case 80:
            getitem PrismGift, 1; break;
        case 160:
            getitem SupremeGift, 1; break;
        case 100:
            menuint
                "Strength Fruit",StrengthFruit,
                "Agility Fruit",AgilityFruit,
                "Vitality Fruit",VitalityFruit,
                "Intelligence Fruit",IntelligenceFruit,
                "Dexterity Fruit",DexterityFruit,
                "Luck Fruit",LuckFruit,
                "Mysterious Fruit",MysteriousFruit;
            mes "";
            getitem @menuret, 1; break;
        default:
            mesc(l("A script error happened, please report: @@", @menuret), 1); break;
    }
    goto L_GMEventShop;

L_NewHero:
    mes "";
    mes l("Current hero: @@", $MOST_HEROIC$);
    input .@MH$;
    logmes "Changing hero from "+$MOST_HEROIC$+" to "+.@MH$;
    logmes(strcharinfo(0)+" changed the world's hero ("+$MOST_HEROIC$+"->"+.@MH$+")", LOGMES_ATCOMMAND);
    $MOST_HEROIC$ = .@MH$;
    goto L_Menu;

L_Sponsor:
    #T_SPONSOR=gettimetick(2)+(60*60*24*30);
    rentitem "SponsorNecklace", (60*60*24*30);
    logmes(strcharinfo(0)+" just took a Sponsor Necklace.");
    logmes(strcharinfo(0)+" just took a Sponsor Necklace.", LOGMES_ATCOMMAND);
    mes "";
    mesn;
    mesq lg("Here it is, miss.", "Here it is, mister.");
    mes col("This item will be returned in 30 days counting from now, and you will need to take another.", 9);
    mes col("It cannot be dropped, traded, sold, but you can store it and use with same account.", 9);
    mes "";
    goto L_Menu;

OnLuaInfo:
    @lua_isok=1;
    end;



















/////////////////////////////////////////////////////////////////////////////////
// Main Story Functions
L_Info:
    if (!@lua_isok) {
        mes "";
        mesn;
        mesq l("Of course, give me just a minute to look up for your data, @@.", strcharinfo(0));
        next;
        mesn;
        mesq l("Please wait here on the meanwhile. Try asking Estard about parties, or talk to Eistein.");
        //mesq l("You can explore the city on the meanwhile, I need to inspect the data.");
        if (!@lua_init) {
            @lua_init=1;
            addtimer(rand(55000,65000),"Lua#003-2::OnLuaInfo");
        }
        close;
    }
    mes "...";
    next;
    mes "... ...";
    next;
    mes "... ... ...";
    next;
    mesn;
    mesq l("No criminal record, no bank account, not even a tax payment declaration.");
    next;
    mesq l("I found your birth record, but it is not complete. Here says you were born on @@.", b("Halinarzo"));
    next;
    mesq l("The problem is that Halinarzo was destroyed in the never-ending war and was just recently rebuilt.");
    next;
    mesq l("Almost all documents were lost, destroyed or damaged. I cannot even find your parents name.");
    next;
    mesq l("All I can say is that you were born there, and moved by the age of 4, but to where? I don't know.");
    next;
    mesn;
    mesq l("Sorry. At best, you can try your luck in Halinarzo, but the odds of someone recognizing you are pretty slim.");
    next;
    mesn;
    mesq l("However...");
    mesq l("You will be killed on the road if you try to go like this. The Canyon route is dangerous, and the Swamps route claimed many souls.");
    mesq l("Not to say about bandits and robbers you'll find.");
    next;
    getexp BaseLevel*30, JobLevel*5; // Reference Levels: (10, 3)
    setq General_Narrator, 2, 0;
    mesn;
    mesq l("Lucky for you, the Alliance have means to assist you. You'll be a grown up, full fledged adventurer in no time at all, and will be able to visit a friend of mine, who will then send you there.");
    next;
    goto L_Task;

L_Task:
    .@q2=getq2(General_Narrator);
    if (.@q2 == 0) {
        luaAssignTask1();
        setq2 General_Narrator, 1;
        .@q2=getq2(General_Narrator);
    } else if (.@q2 == 2) {
        luaAssignTask2();
        setq2 General_Narrator, 3;
        .@q2=getq2(General_Narrator);
    } else if (.@q2 == 4) {
        luaAssignTask3();
        setq2 General_Narrator, 5;
        .@q2=getq2(General_Narrator);
    } else if (.@q2 == 6) {
        luaAssignTask4();
        setq2 General_Narrator, 7;
        .@q2=getq2(General_Narrator);
    } else if (.@q2 == 8) {
        luaAssignTask5();
        setq2 General_Narrator, 9;
        .@q2=getq2(General_Narrator);
    }

    mesc b(l(".:: Main Quest 2-%d ::.", (.@q2+1)/2)), 3;
    if (.@q2 == 1) {
        luaTask1();
        next;
        if (luaCheckTask1()) {
            setq2 General_Narrator, 2;
            goto L_Task;
        }
    } else if (.@q2 == 3) {
        luaTask2();
        next;
        if (luaCheckTask2()) {
            setq2 General_Narrator, 4;
            goto L_Task;
        }
    } else if (.@q2 == 5) {
        luaTask3();
        next;
        if (luaCheckTask3()) {
            setq2 General_Narrator, 6;
            goto L_Task;
        }
    } else if (.@q2 == 7) {
        luaTask4();
        next;
        if (luaCheckTask4()) {
            setq2 General_Narrator, 8;
            goto L_Task;
        }
    } else if (.@q2 == 9) {
        luaTask5();
        next;
        if (luaCheckTask5()) {
            setq2 General_Narrator, 10;
            goto L_Finish;
        }
    }
    Exception("Something went wrong, this is not a valid MQ2 state: "+.@q2);
    close;





// Declare functions
function luaAssignTask1 {
    mesn;
    mesq l("First and foremost, you should get yourself some reputation. I mean, right now, you are a complete nobody who was found on the sea.");
    next;
    mesn;
    mesq l("As far as we are concerned, you could have been an exiled prisoner who managed to escape! But there are ways to prove to the Alliance that your intentions are good.");
    next;
    mesn;
    mes l("%s is by becoming a %s.", b(l("The first way,")), b(l("Monster Hunter")));
    // If you skipped Tutorial: You already know all this
    tutmes l("Monster Hunters receive small bounties on a special currency, of Monster Points, for each monster they kill. The amount gained is based on the monster level."), l("Monster Hunter");
    tutmes l("You can become a Monster Hunter by signing up with %s, near the Market.", b("Aidan")), l("Monster Hunter");
    next;
    mesn;
    mes l("%s is by impressing the town guard.", b(l("The second way,")));
    // If you skipped Tutorial: You already know all this
    tutmes l("Also near the market, look for %s. He is the chief of the City Guard. Ask if he need help, and help him!", b(l("Lieutenant Dausen"))), l("Monster Hunter");
    tutmes l("If he gives you a guard card, that'll allow access to the Guard House, where you can pick Daily Bounties for monsters. These will pay you in GP."), l("The Guard House");
    tutmes l("Tulimshar is the strongest city because Dausen teaches every newcomer about the monsters around and how to defeat them. Take his special training if you get the chance!"), l("The Guard House");
    next;
    mesn;
    mesq l("You don't need to do both right now, even if you probably will want to. Once any (or both) of them tell me you're an OK person, I'll start helping you.");
    next;
    return;
} // Dausen & Aidan

function luaTask1 {
    msObjective(countitem(TulimsharGuardCard), l("* @@/@@ @@", countitem(TulimsharGuardCard), 1, getitemlink(TulimsharGuardCard)));
    mes l("--- OR ---");
    msObjective(MPQUEST, l("* Register as a Monster Hunter"));
    return;
}

function luaCheckTask1 {
    return (MPQUEST ||
        countitem(TulimsharGuardCard));
}





function luaAssignTask2 {
    mesn;
    mesq l("Great! Here, I'll give you %d GP so you can start here with more ease.", 500);
    tutmes l("You can get money in several ways, including by selling monster parts, doing daily quests, gambling, and even becoming the mayor of a town. Read the [@@help://faq|FAQ@@] (opens ingame) for help."), l("Getting Money");
    next;
    mesn;
    mesq l("Well, I have a small problem. Sorry, but my superior officer did not like you. This happens, not everyone will like us, right? A lot of adventurers actually hate me %%R");
    next;
    mesn;
    mes l("Anyway, he had a point. What will you do once the Monster War is over?");
    if (MPQUEST)
        mes l("The monster hunting program will end, and what will you do?");
    if (countitem(TulimsharGuardCard))
        mes l("The city guard won't need help from strangers anymore.");
    next;
    mesn;
    mesq l("So, you need an alternative way to earn a living. So I looked at what is at highest demand right now, and which will remain once the war ends, and I've found you... %s!", b(l("two jobs")));
    next;
    mesn;
    mes l("%s is by becoming a %s.", b(l("The first job,")), b(l("Fisherman/Fisherwoman")));
    mes l("Food is, and should always will be, in demand.");
    // If you skipped Tutorial: You already know all this
    tutmes l("Fishing is a boring task. Throw the bait, wait for fish to bite. Pull before it is too late. Then sell the fish for money."), l("Fishing");
    next;
    mes l("However, you need a %s or a Fishing Net. There's one fisherman in Tulimshar Center, called Eugene. He should have one, but he lives isolated on a small island... Good luck getting to him.", getitemlink(FishingRod));
    tutmes l("The path to reach Eugene is hidden. However, if you pay attention to the map, you should figure out how to reach that island without swimming."), l("Secret Passages");
    next;
    mesn;
    mes l("%s is by becoming a %s.", b(l("The second job,")), b(l("Craftsman/Craftswoman")));
    tutmes l("One of the most important jobs on Moubootaur Legends, crafted equipment is much stronger than regular ones. Specially weapons."), l("Crafting");
    tutmes l("To craft an item, you'll need to learn its blueprint. Blueprints can be very hard to obtain! Being a crafter will take a lot of your time."), l("Crafting");
    next;
    mesn;
    mesq l("I think Intense Beard, on Tulimshar's Forge, was taking new apprentices. Try talking to him!");
    next;
    mesn;
    mesq l("Again, you don't need to do both right now, but you probably will want to. Once you have a stable alternative income, I'll have... This paperwork sorted.");
    // Rewards from previous quest
    next;
    Zeny+=500;
    getexp 200, 20;
    return;
} // Fishing & Crafting

function luaTask2 {
    msObjective(countitem(FishingRod), l("* @@/@@ @@", countitem(FishingRod), 1, getitemlink(FishingRod)));
    mes l("--- OR ---");
    msObjective(CRAFTQUEST, l("* Register as a Craftsman/Craftswoman."));
    return;
}

function luaCheckTask2 {
    return (CRAFTQUEST ||
        countitem(FishingRod));
}





function luaAssignTask3 {
    inventoryplace Bread, 10, BottleOfTonoriWater, 1, SmokeGrenade, 3, CrazyRum, 1;

    mesc l("FIXME: Explain here why you need to become stronger");

    // Rewards from previous quest
    next;
    getitem Bread, 10;
    getitem BottleOfTonoriWater, 1;
    getitem SmokeGrenade, 3;
    getitem CrazyRum, 1;
    Zeny+=300;
    getexp 250, 25;
    return;
} // Minimum level/job to begin

function luaTask3 {
    msObjective(BaseLevel >= 20, l("* @@/@@ Base Level", BaseLevel, 20));

    msObjective(JobLevel >= 7, l("* @@/@@ Job Level", JobLevel, 7));

    msObjective(Zeny >= 1000, l("* @@/@@ GP", Zeny, 1000));
    return;
}

function luaCheckTask3 {
    return (BaseLevel >= 20 &&
        JobLevel >= 7 &&
        Zeny >= 1000);
}





function luaAssignTask4 {
    mesc l("FIXME: This quest is not yet ready, blame Jesusalva ASAP");
    close;

    next;
    return;
} // Inn Arc

function luaTask4 {
    msObjective(false, l("* Rest at the Inn"));
    return;
}

function luaCheckTask4 {
    return (BaseLevel >= 20 &&
        JobLevel >= 6 &&
        Zeny >= 1000 &&
        (CRAFTQUEST || MPQUEST) &&
        countitem(TulimsharGuardCard) &&
        countitem(FishingRod));
}





function luaAssignTask5 {
    next;
    return;
} // Your Report, the plan

function luaTask5 {
    msObjective(false, l("* Defeat the Assassin"));
    return;
}

function luaCheckTask5 {
    return (BaseLevel >= 20 &&
        JobLevel >= 6 &&
        Zeny >= 1000 &&
        (CRAFTQUEST || MPQUEST) &&
        countitem(TulimsharGuardCard) &&
        countitem(FishingRod));
}





// Then we jump to L_Complete
// When you finish the last quest from Lua
L_Finish:
    inventoryplace MercBoxAA, 1, TreasureKey, 1;
    getexp BaseLevel*60, JobLevel*10; // Reference Levels: (20, 6)
    setq General_Narrator, 3, 0;
    getitem MercBoxAA, 1;
    getitem TreasureKey, 1;
    mesn;
    mesq l("Great job! You can keep these items, they will be crucial to your journey.");
    next;
    mesn;
    mesq l("I'll also give you a @@. Open it to get a random Mercenary Card.", getitemlink(MercBoxAA));
    next;
    mesn;
    mesq l("You can only have one mercenary active at a time, they die and will leave after 10 minutes - logged in or not.");
    next;
    mesn;
    mesq l("Still, they can be useful when you're trying to solo a boss and need help. The number of stars on the card is the strength and rarity. Use them wisely.");
    next;
    mesn;
    mesq l("Ah, you might have seen a treasure chest on the mines. There are several of these chests to loot, and loot again! Here is a @@. Try it!", getitemlink(TreasureKey));
    next;
L_Complete:
    mesn;
    mesq l("You see the docks on the other side of the town? There should be a ship docked there.");
    next;
    if (!$HURNS_LIBDATE) {
        mesn;
        mesq l("The ship can bring you to the town of Hurnscald, but we have a problem: It is currently being occupied by a Monster Army.");
        next;
        mesn;
        mesq l("That would be your next destination, but first, the monster army must be driven out!");
        next;
        mesn;
        mesq l("The Game Masters are assembling a party to storm Hurnscald and liberate it. You should try joining it!");
        next;
        mesc l(">> Hurnscald must be Liberated first, to continue this story <<"), 1;
        close;
    }
    mesn;
    mesq l("You already got the money. Go there and pay ##B Hurnscald ##b a visit. The ##B mayor ##b should be able to help you.");
    next;
    mesn;
    mesq l("Ship travels are quite expensive, so perhaps you may think it is worth to complete the other quests here?");
    next;
    .@r=reputation("Tulim");
    mesn;
    if (.@r <= 35)
        mesq l("Try helping the city guard. Talk to NPCs around the city. Outside the city walls too. And there are some people on the mines.");
    else if (.@r <= 60)
        mesq l("You are doing some progress. There are about 4 quests on the mines, 1 outside walls, and 10 on the town. Some require level, so talk to people again sometimes.");
    else if (.@r <= 85)
        mesq l("You'll soon run out of stuff to do around here, so yeah, you should extend your horizons or you may get bored soon enough.");
    else
        mesq l("Tulimshar doesn't have a lot more of quests to offer you, so you should definitely explore new places.");
    if (BaseLevel < 30)
        mesq l("I'm sure there are a lot of sidequests here until you reach level 30, but that's optional.");
    close;









































/////////////////////////////////////////////////////////////////////////////////
// Beginner Guide Functions
L_Tips:
    mesn;
    mes l("Hmm... First of, I would really add some agility. Agility helps you to don't be hit, and not being hit is awesome.");
    mes l("Hm, I would also do some quests if I needed money... On other hand, maybe I could go fishing? Do I know any fisher?");
    mes l("Ah, getting experience is hard, too... I would stay within the city. Hit and Run tactics works the best.");
    next;
    mesn;
    mes l("Hit'n'run is not so hard... One hit, one step back... One hit, another step back... One miss, two steps back...");
    mes l("That works with most of monsters. Well, but we all know from @@ that it is better to stay put and let mobs kill us, right?", "Apane");
    mes l("Heh, there is death penalty outside the town. You better watch out. The mobs are on a foul mood today, very easy to get killed.");
    next;
    mes l("Failing all else, you can stay at the Magic Council getting experience for sitting. Hopefully you'll gain a level and this will help you a bit.");
    mes l("Of course, if your problem is only experience, then you should look for %s and other EXP-boosting drinks. Some are sold, some are made, some are dropped, some are... magical...", getitemlink(Beer));
    next;
    mesn;
    mesc l("%s thinks if she knows any major, good quest to do.", .name$);
    if (!countitem(TulimsharGuardCard)) {
        mes l("Tulimshar Guard Card will prove good intentions. Talk to the Lieutenant in front of the Guard House.");
        mesc l("Completing this quest will allow access to the Guard House, where you can pick Daily Bounties for monsters.");
        mes "";
    }
    if (!countitem(FishingRod)) {
        mes l("The fishing rod allows a quick income by selling fishes. However, reaching the fisherman might require some exploration... The whole world is full of secrets.");
        mes "";
    }
    if (!countitem(LifestonePendant)) {
        mes l("The lifestone pendant allows you a quicker HP recovery. Life is more important than defense.");
        mes l("I have no idea about who would make a pendant, but lifestone can be done just outside the town walls.");
        mes "";
    }
    if (!getq(TulimsharQuest_Sailors) < 2) {
        mes l("There are some sailors near the forge. Think outside the box - or rather, inside it, unless you have a fortune to buy the items.");
        mes "";
    }
    if (!(CRAFTQUEST || MPQUEST)) {
        mes lg("To register as a craftswoman, you need to talk to Intense Beard in Terranite Forge. The forge is in the Bazar.", "To register as a craftsman, you need to talk to Intense Beard in Terranite Forge. The forge is in the Bazar.");
        mes l("To register as a hunter, talk to Aidan, also in the marketplace - the Bazar.");
        mesc l("You can, and @@, register on both programs.", b(l("SHOULD")));
        mes "";
    }
    if (BaseLevel < 20) {
        mes l("If you are in need to get lots of experience quickly, you should try to engage the bigger and stronger monsters in the town. However, if they hit you, it's Soul Menhir for you.");
        next;
        mes l("Another way to quickly get experience at lower levels, is visiting %s and talking to Professor. I heard those whom sit at the rug gain exp just by listening.", b(l("Magic Council")));
        next;
        mes l("But the most useful thing might be drinking %s and the like. They also boost drop rates, but weak drinks effects are low and short.", getitemlink(Beer));
        mes "";
    }
    mesc l("She can't remember if anything else right now.");
    close;

L_Check:
    mesn;
    mesq l("Hmm... That's a though question!");
    next;
    mesn;
    if (BaseLevel < 20)
        mesq l("Currently, you stand no chance against the Snakes on the Desert Canyon.");
    else if (BaseLevel < 25)
        mesq l("Currently, you should not attempt the Desert Canyon because low level.");
    else if (BaseLevel < 30)
        mesq l("Currently, you stand no chance against the Snakes on the Desert Canyon, but you probably can cross it.");
    else if (BaseLevel < 40)
        mesq l("I'm pretty confident you can attempt the Desert Canyon, but expect to die a few times.");
    else if (BaseLevel < 50)
        mesq l("You have a high level. Go to Halinarzo already! You could even, I don't know, search for magic?!");
    else
        mesq l("Your level is so high, I'm surprised you haven't went there already. But then, most quests around there are for your level...");
    next;
    mesn;
    mesq l("Bows are good, but if you're going to the Desert Canyon, I would instead invest on a light shield. Heavy ones make you walk slower.");
    next;
    .@r=reputation("Tulim");
    mesn;
    if (.@r <= 35)
        mesq l("Try helping the city guard. Talk to NPCs around the city. Outside the city walls too. And there are some people on the mines.");
    else if (.@r <= 60)
        mesq l("You are doing some progress. There are about 4 quests on the mines, 1 outside walls, and 10 on the town. Some require level, so talk to people again sometimes.");
    else if (.@r <= 85)
        mesq l("You'll soon run out of stuff to do around here, so yeah, you should extend your horizons or you may get bored soon enough.");
    else
        mesq l("Tulimshar doesn't have a lot more of quests to offer you, so you should definitely explore new places.");
    close;














/////////////////////////////////////////////////////////////////////////////////
// Contributor Functions
L_Contributor:
    mes "";
    .@m = htget($@CONTRIBUTORS, strtolower(strcharinfo(0)), 0);
    if (!.@m) {
        mesn;
        mesq l("Ah... Sorry, your name is not on the contributor list.");
        next;
        mesn;
        mesq l("You can colaborate with our project though! Just ask on #tmw2-dev, be it on Discord or IRC!");
        close;
    }
    mesn;
    mesq l("Ah, welcome @@. You have @@ Contributor Points.", strcharinfo(0), .@m);
    mesq l("Let's see if you can pick a reward!");
    select
        rif(!(#CRW & 128) && .@m >= 10000, l("30x Bug Leg")),
        rif(!(#CRW & 32) && .@m >= 5000 && Zeny > 10000, l("(10,000 GP) Legendary Mount")),
        rif(!(#CRW & 16) && .@m >= 2000, l("Delicious Cookie")),
        rif(!(#CRW & 64) && .@m >= 1000, l("20x Bug Leg")),
        rif(!(#CRW & 8) && .@m >= 500, l("Developer Cap")),
        rif(!(#CRW & 4) && .@m >= 250, l("Contributor Sweater")),
        rif(!(#CRW & 2) && .@m >= 100, l("Community Shirt")),
        rif(!(#CRW & 1) && .@m, l("5x Strange Coins")),
        l("Which rewards are available?"),
        l("Ok, thanks.");

    mes "";
    switch (@menu) {
        case 1:
            getitem BugLeg, 30; #CRW=#CRW|128 ; break;
        case 2:
            Zeny=Zeny-10000; getitembound LegendaryMouboo, 1, 1; #CRW=#CRW|32 ; break;
        case 3:
            getitem DeliciousCookie, 1; #CRW=#CRW|16 ; break;
        case 4:
            getitem BugLeg, 20; #CRW=#CRW|64 ; break;
        case 5:
            getitem DEVCap, 1; #CRW=#CRW|8 ; break;
        case 6:
            getitem ContributorSweater, 1; #CRW=#CRW|4 ; break;
        case 7:
            getitem CommunityShirt, 1; #CRW=#CRW|2 ; break;
        case 8:
            getitem StrangeCoin, 5; #CRW=#CRW|1 ; break;
        case 9:
            mes l("10000 - 30x @@", getitemlink(BugLeg));
            mes l("5000 (+10,000 GP) - @@", getitemlink(LegendaryTortuga));
            mes l("2000 - @@", getitemlink(DeliciousCookie));
            mes l("1000 - 20x @@", getitemlink(BugLeg));
            mes l("500 - @@", getitemlink(DEVCap));
            mes l("250 - @@", getitemlink(ContributorSweater));
            mes l("100 - @@", getitemlink(CommunityShirt));
            next;
            goto L_Contributor;
            break;
    }
    close;

L_Close:
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, NPCEyes);
    setunitdata(.@npcId, UDT_HEADMIDDLE, GMRobe);
    setunitdata(.@npcId, UDT_HEADBOTTOM, LousyMoccasins);
    setunitdata(.@npcId, UDT_WEAPON, BugSlayer);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 12);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 5);
    bindatcmd "strangecoin", "Lua#003-2::OnGMCoinClaim", 60, 100, 1;
    bindatcmd "strangeshop", "Lua#003-2::OnGMEventShop", 60, 100, 1;

    .sex = G_FEMALE;
    .distance = 4;
    end;
}