Quellcode durchsuchen

Fix the settings and options run

rachels vor 2 Jahren
Ursprung
Commit
cab92fb7a4
2 geänderte Dateien mit 18 neuen und 15 gelöschten Zeilen
  1. 17 14
      locations/mod_bratva_options.qsrc
  2. 1 1
      locations/mod_bratva_setup.qsrc

+ 17 - 14
locations/mod_bratva_options.qsrc

@@ -10,13 +10,13 @@ if $ARGS[0] = '':
 	act 'Set black fonts':gt 'mod_Bratva_options','bwfonts'
 
 	if bratvatest = 0:
-		act 'test': bratvatest = 1 & gs 'mod_bratva_options'
+		act 'Test': bratvatest = 1 & gs 'mod_bratva_options'
 	end
 	if bratvatest = 1:
 		act 'End test': bratvatest = 0 & gs 'mod_bratva_options'
 	end
 
-	act 'return': gt 'mod_setting'
+	act 'Return': gt 'mod_setting'
 end
 
 if $ARGS[0] = 'cfonts':
@@ -70,17 +70,20 @@ if $ARGS[0] = 'bwfonts':
 	$CloseNPCVoice = ''
 	$OpenInnerThought = '<font size="3" color="fuchsia"><i>'
 	$CloseInnerThought = '</font></i>'
-	
-	*clr
-	*nl
-	'no color fonts'
-	*nl
-	'<<$OpenMaleVoice>>"Male voice"<<$CloseMaleVoice>>'
-	'<<$OpenFemaleVoice>>"Female voice"<<$CloseFemaleVoice>>'
-	'<<$OpenPCVoice>>"PC voice"<<$ClosePCVoice>>'
-	'<<$OpenNPC1Voice>>"NPC1 voice"<<$CloseNPCVoice>>'
-	'<<$OpenNPC2Voice>>"NPC2 voice"<<$CloseNPCVoice>>'
-	'<<$OpenInnerThought>>"Inner Thought"<<$CloseInnerThought>>'
-	act 'Return to Settings':gs 'mod_bratva_options'
+
+	if $ARGS[1] ! 'silent':
+		*clr
+		*nl
+		'no color fonts'
+		*nl
+		'<<$OpenMaleVoice>>"Male voice"<<$CloseMaleVoice>>'
+		'<<$OpenFemaleVoice>>"Female voice"<<$CloseFemaleVoice>>'
+		'<<$OpenPCVoice>>"PC voice"<<$ClosePCVoice>>'
+		'<<$OpenNPC1Voice>>"NPC1 voice"<<$CloseNPCVoice>>'
+		'<<$OpenNPC2Voice>>"NPC2 voice"<<$CloseNPCVoice>>'
+		'<<$OpenInnerThought>>"Inner Thought"<<$CloseInnerThought>>'
+
+		act 'Return to Settings':gs 'mod_bratva_options'
+	end
 end
 --- mod_bratva_options ---------------------------------

+ 1 - 1
locations/mod_bratva_setup.qsrc

@@ -30,7 +30,7 @@ if $LCASE($curloc) = $LCASE('mod_<<$mod_info[0]>>_setup'):
 	''
 	'Our forum: <a href="https://tfgamessite.com/phpbb3/viewforum.php?f=70">Tfgames site</a> (external link)'
 else
-	if $OpenMaleVoice = '': gs 'mod_bratva_options','cfonts','silent'
+	if $OpenInnerThought = '': gs 'mod_bratva_options','cfonts','silent'
 	$bformat = {
 		$temp = $replace('<<$ARGS[0]>>','**','<br>')
 		$temp = $replace('<<$temp>>','\\\','<<$OpenMaleVoice>>')