summaryrefslogtreecommitdiff
path: root/npc/009-7/core.txt
blob: cb94ef97400eb033efb9b5ccca9a8a250e47ca96 (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
// Replaced with @duel

function	script	fightclub_sendrequest	{
    message @caster_name$, "You already requested a duel with this player.";
    return;
}

function	script	fightclub_getrules	{
    return;
}

function	script	fightclub_AddToQueue	{
    mes "This battle is already in the queue.";
    return;
}

function	script	fightclub_NextBattle	{
    return;
}

function	script	fightclub_NextBattleProceed	{
    return;
}

function	script	fightclub_StartBattle	{
    return;
}

function	script	fightclub_TimeOut	{
    return;
}

function	script	fightclub_Intrusion	{
    // nothing to do here (yet)
    return;
}

function	script	fightclub_EmergencyWipe	{
    callfunc "fightclub_CleanStage";
    callfunc "fightclub_StartUp";
    // TODO: check if everything is clean (function) and mapexit otherwise
    return;
}

function	script	fightclub_Victory	{
    // TODO: give some sort of reward
    // TODO: increase score
    // TODO: update leaderboard
    return;
}

function	script	fightclub_DestroyMe	{
    @Duel_Fighter = 0;
    sc_end 132; sc_end 14; sc_end 37; sc_end 185; sc_end 194; sc_end 195; sc_end 196; sc_end 197; sc_end 198; sc_end 199; // remove effects
    heal MaxHp, MaxSp; // refill hp/mana
    if(getmapname() == "009-7") warp "009-7", rand($@fightclub_x1, $@fightclub_x2), rand(($@fightclub_y1 - 2), ($@fightclub_y1 - 3));
    return;
}

function	script	fightclub_Missing	{
    return;
}

function	script	fightclub_StartUp	{
    return;
}

function	script	fightclub_CleanStage	{
    if($@Duel_NoWarp != 1) areawarp "009-7", $@fightclub_x1, $@fightclub_y1, $@fightclub_x2, $@fightclub_y2, "009-7", 31, 40; // kick all players from stage
    $@Duel_NoWarp = 0;
    set $@Duel_NoMagic, 0; // clean the Duel parameters
    set $@Duel_CurrentDuel, 0; // no duel atm
    set $@Duel_Started, 0; // no duel atm
    $@Duel_RedPlayer = 0;
    $@Duel_BluePlayer = 0;
    $@Duel_Missing = 0;
    $@Duel_TotalTime = 0;
    npcwarp 32, 45, "Rouge#Duels";
    donpcevent "#FightClubTimeLimit::OnStopTimer";
    killmonster "009-7", "All";
    return;
}

function	script	fightclub_setrules	{
    return;
}

function	script	fightclub_death	{
L_NoDuel:
    if(debug) donpcevent "Debug#Duels::OnVictimNotInDuel";
    return;
}

function	script	fightclub_enter	{
    return;
}

function	script	fightclub_enter_killer	{
    return;
}

function	script	fightclub_exit	{
    return;
}



function	script	fightclub_event_killed	{
    return;
}

function	script	fightclub_event_die	{
    return;
}