diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-07-07 20:36:00 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-07-07 20:36:00 -0300 |
commit | 6967b9e0b63d19141d4f59b7933a960ac81916d0 (patch) | |
tree | 8ecd9cd2461f3598cb7faece71eb77162aa4ef2a /npc/009-7/core.txt | |
parent | 9877fd4ad81120af8e63e96d5d429092014dc017 (diff) | |
parent | 046c659193e1ca8bd13478678d1277df8bf9395c (diff) | |
download | serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.tar.gz serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.tar.bz2 serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.tar.xz serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.zip |
Merge branch 'master' into legacy
Override all files with 'master' version.
This version is meant to preserve git history as requested by bjorn.
Diffstat (limited to 'npc/009-7/core.txt')
-rw-r--r-- | npc/009-7/core.txt | 114 |
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; +} |