ソースを参照

fix the typo in the npccleanc and add the function to avoid error for the names with an apostrophe

rachels 3 年 前
コミット
54c2bec0ed
2 ファイル変更2 行追加1 行削除
  1. 1 1
      locations/npccleanc.qsrc
  2. 1 0
      locations/shortgs.qsrc

+ 1 - 1
locations/npccleanc.qsrc

@@ -5,7 +5,7 @@ $tempcclean = $ARGS[0]
 
 if (mid($tempcclean, 1, 1) = 'B' or mid($tempcclean, 1, 1) = 'C'):
 
-	gs 'shortgs', 'remove_array_element', 'npc_firstname',$tempcclean
+	gs 'shortgs', 'remove_array_element', '$npc_firstname',$tempcclean
 
 	gs 'shortgs', 'remove_array_element', '$npc_nickname',$tempcclean
 	gs 'shortgs', 'remove_array_element', '$npc_lastname',$tempcclean

+ 1 - 0
locations/shortgs.qsrc

@@ -480,6 +480,7 @@ if $ARGS[0] = 'get_me_index':
 			else
 				res = dyneval('result = arrpos(0,''<<$ARGS[1]>>'',''SearchTag'')')
 			end
+			$temp = $replace('<<$t>>','''','''''')
 			dynamic '<<$test>> = ''<<$temp>>'' '
 		else
 			res = -1