summaryrefslogtreecommitdiff
path: root/npc/034-1/gemini.txt
blob: 0f43acd0f5911c0003fb78630a06a8ac58259ea9 (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
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Gemini Sisters Quest - Forest & Desert Stage

034-1,67,48,0	script	Fake Manastone	NPC_MANA_STONE,{
    if (instance_id() < 0 || getcharid(1) < 1) end;
    GeminiCheck(1);
    mesc l("This is a weird stone. It looks like a Mana Stone from afar, but anyone can tell it is fake.");
    if (strcharinfo(0) != getpartyleader(getcharid(1))) {
        mesc l("It may be dangerous. I better ask %s to check it instead.", getpartyleader(getcharid(1)));
        close;
    }
    switch ('STATUS) {
    case 1:
    case 2:
        mesc l("It seems to be a mechanism of some kind, but it is missing a Runestone.");
        mesc l("Maybe one of the slimes dropped it.");
        'STATUS = 2;
        break;
    case 3:
        mesc l("You insert the Runestone on it and hear a sound.");
        mesc l("Something changed; We should see what is.");
        'STATUS = 4;
        break;
    default:
        mesc l("I already did everything I could with this. What am I waiting for?");
        break;
    }
    close;

OnInit:
OnInstanceInit:
    .distance = 2;
    end;
}

034-1,66,45,0	script	#GeminiExit1	NPC_HIDDEN,0,0,{
    end;
OnTouch:
    if (instance_id() < 0 || getcharid(1) < 1) end;
    GeminiCheck(1);
    if ('STATUS < 4) {
        dispbottom l("There seems to be sort of lock preventing you from passing.");
        end;
    }
    slide 118, 115;
    end;
}


034-1,169,64,0	script	#GeminiExit2	NPC_HIDDEN,1,0,{
    end;
OnTouch:
    if (instance_id() < 0 || getcharid(1) < 1) end;
    GeminiCheck(4);
    if ('STATUS < 6) {
        if (countitem(SealedSoul) >= 7) {
            mesc l("Do you want to use the souls to unlock the passage?"), 1;
            next;
            if (askyesno() == ASK_YES) {
                delitem SealedSoul, 7;
                closeclientdialog;
                if ('STATUS == 4) {
                    .@u=monster(getmap(), 163, 26, strmobinfo(1, JackO), JackO, 1);
                    unittalk(.@u, "Souls... Feed me Souls... Nooooooooowwww!!!!");
                    'STATUS=5;
                } else {
                    dispbottom l("The waterfall open, and you may now pass.");
                    'STATUS=6;
                    close;
                }
            }
            close;
        }
        dispbottom l("A powerful magic barrier prevents passage. %d %s should suffice to dispel... Maybe.", 7, getitemlink(SealedSoul));
        end;
    }
    .@p=getcharid(1);
    warp "val2@"+.@p, 24, 59;
    end;
}