summaryrefslogtreecommitdiff
path: root/npc/012-1/luffyx.txt
blob: d2cb2395a7b82a14c08d51560d57e314506a7231 (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
// TMW2 Script
// Author:
//    Jesusalva
// Description:
//    Hunt mouboos, Summer Quest

012-1,68,74,0	script	Luffyx	NPC_RAIJIN,{
    .@q=getq(SQuest_Summer);
    mesn;
    if (season() == SUMMER) {
        mesq l("Yay it's summer! I love June 21st, and the summer vacations!");
        if (.@q < 1)
            goto L_SummerQuest;
    } else {
        mesq l("Aww it's not summer. I love June 21st, and the summer vacations!");
    }

L_Main:
    if (GHQUEST)
        GHQ_Assign(ForestMushroom, "Hurnscald");
    close;

L_SummerQuest:
    next;
    mesn;
    mesq l("Hey, do you know what is good on summer? @@!", getitemlink(LuffyxSummerShorts));
    next;
    mesn;
    mes l("What about you bring me:");
    mes l("@@/80 @@", countitem(CactusCocktail), getitemlink(CactusCocktail));
    mes l("@@/40 @@", countitem(AppleCocktail), getitemlink(AppleCocktail));
    mes l("@@/25 @@", countitem(CherryCocktail), getitemlink(CherryCocktail));
    mes l("@@/1 @@", countitem(JeansShorts), getitemlink(JeansShorts));
    next;
    select
        l("Not now, thanks"),
        l("To be honest, I have that with me!");

    mes "";
    if (@menu == 1)
        goto L_Main;
    if (@menu == 2) {
        if (
            countitem(CactusCocktail) < 80 ||
            countitem(AppleCocktail)  < 40 ||
            countitem(CherryCocktail) < 25 ||
            !countitem(JeansShorts)
            ) goto L_Lying;

        inventoryplace LuffyxSummerShorts, 1;
        delitem CherryCocktail, 25;
        delitem AppleCocktail,  40;
        delitem CactusCocktail, 80;
        delitem JeansShorts, 1;
        getitem LuffyxSummerShorts, 1;
        getexp 6500, 120;
        setq SQuest_Summer, 1;
        mesn;
        mesq l("Yay yay! Many thanks! Here, take the reward as promised!");
        next;
        mesn;
        mesq l("We can do this again on next summer!");
        goto L_Main;
    }

    close;

L_Lying:
    mesn;
    mesq l("Please don't lie to me...");
    goto L_Main;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, CommunityShirt);
    setunitdata(.@npcId, UDT_HEADMIDDLE, JeansChaps);
    setunitdata(.@npcId, UDT_HEADBOTTOM, DeepBlackBoots);
    setunitdata(.@npcId, UDT_WEAPON, BugSlayer);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 13);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 7);

    .distance=4;
    .sex=G_MALE;
	end;

}