From 256136deb61eed3d5adb11bd8841b0bb6a8bff11 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 21 Mar 2022 17:04:28 -0300 Subject: Add to @numa Quest Debug options to change Candor Battle difficulty. (#540) Now features Easy (1800) Normal (2200) Hard (3300) and Expert (4500) Do not use Expert unless you know what you are doing. These settings are meant for events only; The only way to revert is by Numa or a server restart. The rewards are always the same regardless of difficulty setting. There's no option to change minimum players to begin a Candor Fight, because I didn't deem that to be necessary; Not like there would be an event with < 5 people online. Evolved has a superior framework, this will not be ported back. --- world/map/npc/029-3/parua.txt | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) (limited to 'world/map/npc/029-3/parua.txt') diff --git a/world/map/npc/029-3/parua.txt b/world/map/npc/029-3/parua.txt index ef630413..cf785320 100644 --- a/world/map/npc/029-3/parua.txt +++ b/world/map/npc/029-3/parua.txt @@ -211,7 +211,7 @@ L_NextRound: set $@FIGHT_CAVE_TEMP_UP, 100; set $@FIGHT_CAVE_LEVEL, $@FIGHT_CAVE_LEVEL + $@FIGHT_CAVE_PLAYER_COUNT + $@FIGHT_CAVE_TEMP_UP; - if ($@FIGHT_CAVE_LEVEL >= 2200) + if ($@FIGHT_CAVE_LEVEL >= $@FIGHT_CAVE_MAX_LEVEL) goto L_CleanUp; set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_LEVEL; @@ -405,3 +405,37 @@ OnReward: message strcharinfo(0), "You gain 100 Boss Points giving you a total of " + BOSS_POINTS + "."; goto L_CleanUp_Player; } + +function|script|CandorDebug +{ + mes "$@FIGHT_CAVE_MAX_LEVEL: "+$@FIGHT_CAVE_MAX_LEVEL; + mes "---"; + next; + // NORMAL is listed twice. + menu + "Set to NORMAL difficulty (2200)", L_Normal, + "Set to HARD difficulty (3300, for events)", L_Hard, + "Set to EXPERT difficulty (4500, for events)", L_Expert, + "Set to EASY difficulty (1800, for events)", L_Easy, + "Set to NORMAL difficulty (2200)", L_Normal; + +L_Normal: + set $@FIGHT_CAVE_MAX_LEVEL, 2200; + gmlog strcharinfo(0) + " restored Candor Difficulty to normal."; + return; + +L_Easy: + set $@FIGHT_CAVE_MAX_LEVEL, 1800; + gmlog strcharinfo(0) + " has set Candor Difficulty to EASY."; + return; + +L_Hard: + set $@FIGHT_CAVE_MAX_LEVEL, 3300; + gmlog strcharinfo(0) + " has set Candor Difficulty to HARD."; + return; + +L_Expert: + set $@FIGHT_CAVE_MAX_LEVEL, 4500; + gmlog strcharinfo(0) + " has set Candor Difficulty to EXPERT."; + return; +} -- cgit v1.2.3-70-g09d2