summaryrefslogtreecommitdiff
path: root/npc/019-2/angela.txt
blob: 5b20bcc02f66ed9023cb1179b8aa4824f791b4c5 (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
// TMW2 scripts.
// Authors:
//    The Mana World Team
//    Jesusalva
// Description:
//    Elf, main quest is rescuing Cindy (she's kidnapped by Yetis every once in a while)
//    Once you complete her quest (requires some scheduling which the Yeti King provides),
//    you'll gain some needed Reputation Points to be able to cross Frostia Gates.
//    Note this is counted with other Frostia quests to reduce the toll of entering Frostia
//    (With high Frostia reputations, you get rid of the tax and high honors, but this
//    also raise/blocks Orc Village Entrance. Because if you haven't noticed, there's a
//    delicate equilibrium between Elves and Orcs.)
//
//    Globally Controled Quest. Sometimes, she's here. Other times, this NPC is
//    disabled and the one inside the house is active. That's done with a walk
//    animation.
//
//    Related Quests: Nivalis Well, Celestia Quest, Frostia Quest
//    Main Quest: Cindy Quest
//    Reward: Something awesome, probably.
//    Advised Level: Groups of level 80 players.
//
//    Quest Variable: NivalisQuest_Cindy
//      0: Quest Not Started
//      1: Angela assigned the quest
//      2: Yeti instructions were received
//      3: Yeti quest complete, received instructions
//      4: Checkpoint
//      5: Cindy was rescued!
//
//    Global Variable: $@CINDY_STATE
//      0: Status is clean (she'll be kidnapped next interation)
//      %1: Cindy still wasn't rescued
//      %2: A party is fighting currently (the division value is the difficulty level, and affects minimum level)
//      >1500000000: Cindy is safely at home (until this date +%s)

019-2,75,25,0	script	Angela#Outside	NPC_ELF_F,{
    if ($@CINDY_STATE > gettimetick(2))
        goto L_Safe;
    if (BaseLevel < 60) { hello; end; }
    if ($@CINDY_STATE % 2 == 0) goto L_Worried;
    if (getq(NivalisQuest_Cindy) == 0) goto L_Start;
    mesn;
    mesq l("Please find my lovely daughter!");
    close;

L_Safe:
    mesn;
    mesq l("Ah, what a wonderful day.");
    close;

L_Worried:
    mesn;
    mesq l("The group of warriors which went into the cave to rescue my precious Cindy still haven't returned... I'm worried with them, too...");
    close;

L_Start:
    mesn;
    mesq l("My daughter! My precious Cindy, why it had to be you?!");
    next;
    mesn;
    mesq l("Please, help my precious! Save her! Oh, my precious Cindy...");
    next;
    mesn col(l("Rescuing Cindy Quest"),1);
    mesc l("You are about to accept a high-risk quest. You cannot complete it alone."), 1;
    mesc l("Help the distressed woman to save her daughter? ALL PLAYERS are penalized with failures."), 1;
    select
        l("[Decline Quest]"),
        l("[Accept Quest]");
    if (@menu == 1) {
        mesn strcharinfo(0);
        mesq lg("Sorry 'mam, I forgot courage on my other set of pants. This one doesn't have enough defense for it.");
        close;
    }
    mesn;
    mesq l("Awful Yetis kidnapped my daughter, and brought her to the cave. Please save her!");
    next;
    mesn;
    mesq l("Ah, but don't distress them if you can't save her! My precious daughter life is more important than anything!");
    next;
    mesn;
    mesq l("I'll reward you and your friends in an appropriate way, but if you endanger her... Oh, my poor Cindy...");
    next;
    movecam rand(-20,20), rand(-20,20);
    sleep2(50);
    movecam rand(-20,20), rand(-20,20);
    sleep2(50);
    movecam rand(-20,20), rand(-20,20);
    sleep2(50);
    movecam rand(-20,20), rand(-20,20);
    sleep2(50);
    restorecam;
    mesc l("[Quest Accepted]"), 1;
    mesc l("Rescue Cindy from the Ice Labyrinth and the evil Yetis. This is a global, multiplayer quest."), 1;
    channelmes("#world", strcharinfo(0) + " said to be brave enough to help Angela rescuing her daughter!");
    setq NivalisQuest_Cindy, 1;
    close;


OnInit:
    .@npcId = getnpcid(0, .name$);
    setunitdata(.@npcId, UDT_HEADTOP, KnitHat);
    setunitdata(.@npcId, UDT_HEADMIDDLE, TneckSweater);
    setunitdata(.@npcId, UDT_HEADBOTTOM, NPCEyes);
    setunitdata(.@npcId, UDT_WEAPON, CottonSkirt);
    setunitdata(.@npcId, UDT_HAIRSTYLE, any(7,8,9,10,11,12,13,19,20));
    setunitdata(.@npcId, UDT_HAIRCOLOR, rand(0,20));

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