diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-03-21 17:04:28 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 20:04:28 +0000 |
commit | 256136deb61eed3d5adb11bd8841b0bb6a8bff11 (patch) | |
tree | 72ed88a0b8ad85e062d14abfb63cce4c688f282e | |
parent | 79f4eeff46c41697829f9e30108abe4e4399307f (diff) | |
download | serverdata-256136deb61eed3d5adb11bd8841b0bb6a8bff11.tar.gz serverdata-256136deb61eed3d5adb11bd8841b0bb6a8bff11.tar.bz2 serverdata-256136deb61eed3d5adb11bd8841b0bb6a8bff11.tar.xz serverdata-256136deb61eed3d5adb11bd8841b0bb6a8bff11.zip |
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.
-rw-r--r-- | world/map/npc/029-3/parua.txt | 36 | ||||
-rw-r--r-- | world/map/npc/commands/numa.txt | 7 |
2 files changed, 42 insertions, 1 deletions
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; +} diff --git a/world/map/npc/commands/numa.txt b/world/map/npc/commands/numa.txt index b8d24aea..5d5e18db 100644 --- a/world/map/npc/commands/numa.txt +++ b/world/map/npc/commands/numa.txt @@ -91,6 +91,8 @@ OnInit: registercmd chr(ATCMD_SYMBOL) + "numa", strnpcinfo(0); registercmd chr(ATCMD_SYMBOL) + "superdebug", strnpcinfo(0); if (puppet("017-9", 30, 28, "Numa", 393) < 1) mapexit; + if(!($@FIGHT_CAVE_MAX_LEVEL)) + set $@FIGHT_CAVE_MAX_LEVEL, 2200; end; } @@ -119,6 +121,7 @@ L_Woodland: next; menu "Illia Sisters", L_Valia, + "Candor Battle", L_Candor, "Choose an area", L_Argeas, "Close", L_Return; @@ -147,4 +150,8 @@ L_Doomsday: L_Fluffy: callfunc "FluffyDebug"; goto L_Return; + +L_Candor: + callfunc "CandorDebug"; + goto L_Return; } |