summaryrefslogtreecommitdiff
path: root/npc/009-7/core.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/009-7/core.txt')
-rw-r--r--npc/009-7/core.txt114
1 files changed, 114 insertions, 0 deletions
diff --git a/npc/009-7/core.txt b/npc/009-7/core.txt
new file mode 100644
index 00000000..cb94ef97
--- /dev/null
+++ b/npc/009-7/core.txt
@@ -0,0 +1,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;
+}