summaryrefslogtreecommitdiff
path: root/npc/042-11/boss.txt
blob: 85ce5861ad56f18b2e027e2af4c901a63fcbd5f5 (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
// TMW 2 Script
// Author:
//  Jesusalva
//  Micksha
// Description:
//  Controls the showdown
042-11,41,57,0	script	#KDoor04211a	NPC_HIDDEN,4,0,{
    end;

OnTouch:
    .@g=getcharid(2);
    if (.@g < 1) percentheal -100, -100;
    if (!($KAMELOT_QUEST[.@g] & 64)) goto L_NoAccess;
    warp "042-10@"+.@g, 143, 21;
    end;

L_NoAccess:
    dispbottom l("Can't leave right now.");
    end;
}

042-11,20,28,0	script	#KDoor04211b	NPC_HIDDEN,0,2,{
    end;

OnTouch:
    .@g=getcharid(2);
    if (.@g < 1) percentheal -100, -100;
    if (!($KAMELOT_QUEST[.@g] & 64)) goto L_NoAccess;
    mes l("Are you sure you want leave?");
    mesc l("You wont be able to go back!");
    next;
    if (askyesno() == ASK_YES)
        warp "042-0@"+.@g, 46, 25;
    close;

L_NoAccess:
    dispbottom l("Can't leave right now.");
    end;
}

// TODO: Boss Showdown
// TODO: Spawn GMGiftBox and Treasure Chests upon end
// TODO: Arthur gives rewards to survivors and boot them out of Kamelot
042-11,0,-,0	script	#KamelotBoss	NPC_HIDDEN,{
    end;

// Spawns Terogan
OnBegin:
    initnpctimer;
    end;

// Checks HP ratio again
OnTimer5000:
    // Monks function is: KamelotCaveSpawn(36, 20, 20, 160, 140, .@avg, .@m$);
    initnpctimer;
    end;

// Monks Rewards
OnKillMob:
    end;

// Boss rewards
OnKillBoss:
    end;

// Instance
OnInstanceInit:
    end;

}