diff options
author | mekolat <mekolat@gmail.com> | 2014-11-04 13:01:07 -0500 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2014-11-12 14:02:47 -0500 |
commit | 64a4adaa06f1059c4ac705199d5a0716c8edef60 (patch) | |
tree | 32d1f05c6e846aa791f82d1773f2972f71ad166e /world/map/npc/009-7/debug.txt | |
parent | 0ca075ae66c4e6a983e1f25f6e63a39ee12a568e (diff) | |
download | serverdata-64a4adaa06f1059c4ac705199d5a0716c8edef60.tar.gz serverdata-64a4adaa06f1059c4ac705199d5a0716c8edef60.tar.bz2 serverdata-64a4adaa06f1059c4ac705199d5a0716c8edef60.tar.xz serverdata-64a4adaa06f1059c4ac705199d5a0716c8edef60.zip |
fix fight club => v0.4
disallow towel inside ring
kill on exit
replace killer var with duel_killer
remove nosave
trigger restart on enable/disable
remove accept/decline notification
fix ring x2 and y2
forbid betsanc and asorm
fix password var in debug
allow random passwords
handle all effects
do not accept if not present
fix rules
check map too
warp randomly on death
fallthrough if no acceptable requests
use bitmasking instead of modulo
remove resave
simplify goback
do not re-declare randompassword
password minigame
Diffstat (limited to 'world/map/npc/009-7/debug.txt')
-rw-r--r-- | world/map/npc/009-7/debug.txt | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/world/map/npc/009-7/debug.txt b/world/map/npc/009-7/debug.txt index da780bc7..c4877b40 100644 --- a/world/map/npc/009-7/debug.txt +++ b/world/map/npc/009-7/debug.txt @@ -4,12 +4,11 @@ function|script|fightclub_Debug L_Menu: next; - set @bme,0; if(($fightclub_enabled % 6) == 3) set @bme,1; - set @due,0; if(($fightclub_enabled % 5) == 3) set @due,1; + set @bme,0; if($SANGUINE & $@SV_BMDBit == 0) set @bme,1; + set @due,0; if($SANGUINE & $@SV_FCDBit == 0) set @due,1; mes "[Global]"; mes "$Duel_Enabled: " + @due; mes "$fightclub_bm_enabled: " + @bme; - mes "$@fightclub_password$: " + $fightclub_password$; mes "$@Duel_TimeBeforeNext: " + $@Duel_TimeBeforeNext; mes "$@Duel_TimeBeforeWarp: " + $@Duel_TimeBeforeWarp; mes "$@Duel_TimeBeforeStart: " + $@Duel_TimeBeforeStart; @@ -24,7 +23,6 @@ L_Menu: menu "[G] Toggle $Duel_Enabled", L_DuelEnabled, "[G] Toggle $fightclub_bm_enabled", L_BmEnabled, - "[G] Set $@fightclub_password$", L_FightclubPassword, "[G] Set $@Duel_TimeBeforeNext", L_TimeBeforeNext, "[G] Set $@Duel_TimeBeforeWarp", L_TimeBeforeWarp, "[G] Set $@Duel_TimeBeforeStart", L_TimeBeforeStart, @@ -38,22 +36,18 @@ L_Menu: L_DuelEnabled: if(@due < 1) goto L_DuelEnabled2; - set $fightclub_enabled, 9; - if(@bme < 1) set $fightclub_enabled, 1; + set $SANGUINE, $SANGUINE | $@SV_FCDBit; goto L_Menu; L_DuelEnabled2: - set $fightclub_enabled, 8; - if(@bme == 1) set $fightclub_enabled, 3; - goto L_Menu; + set $SANGUINE, $SANGUINE &~ $@SV_FCDBit; + goto L_Restart; L_BmEnabled: if(@bme < 1) goto L_BmEnabled2; - set $fightclub_enabled, 8; - if(@due < 1) set $fightclub_enabled, 1; + set $SANGUINE, $SANGUINE | $@SV_BMDBit; goto L_Menu; L_BmEnabled2: - set $fightclub_enabled, 9; - if(@due == 1) set $fightclub_enabled, 3; + set $SANGUINE, $SANGUINE &~ $@SV_BMDBit; goto L_Menu; L_DuelFighter: @@ -115,12 +109,6 @@ L_LastDuel: next; goto L_Restart; -L_FightclubPassword: - input @pass$; - if(@pass$ == "") goto L_OutOfRange; - set $@fightclub_password$, @pass$; - goto L_Menu; - L_OutOfRange: mes "Value out of range or empty."; goto L_Menu; |