summaryrefslogtreecommitdiff
path: root/npc/017-1/town.txt
blob: 585d58860ce54dcece2a3a3f891dffd3e2fafc4d (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
// TMW-2 Script
// Author:
//  Jesusalva
// Description:
//  Reset LOCATION$ when entering a town

017-1,219,91,0	script	#LocLoF	NPC_HIDDEN,2,2,{
OnTouch:
    EnterTown("LoF"); end;
}


017-1,86,62,0	script	#Airship	NPC_AIRSHIP,{
    if ($@MK_CHALLENGE) {
        mesc l("The following players are currently challenging the Monster King:"), 1;
        .@c = getunits(BL_PC, .@players, false, "boss");
        for (.@i = 0; .@i < .@c; .@i++) {
            mes "* "+strcharinfo(0, "", .@players[.@i]);
        }
        close;
    }
    mesc l("Challenge the Monster King?"), 1;
    mesc l("Everyone in a 15x15 radius from this NPC will be warped!"), 1;
    mesc l("This NPC is at coordinates 86,62");
    next;
    if (askyesno() == ASK_YES) {
        if (!$@MK_CHALLENGE) {
            areawarp("017-1", 71, 47, 101, 77, "boss", 34, 32, 41, 35);
            donpcevent("#monsterthrone::OnBegin");
        }
        closeclientdialog;
    }
    close;

OnInit:
    .distance=15;
    end;

}