浏览代码

Arrow Merchant and Ninja Tool Merchant bug (#9203)

* Fix an issue where clicking 'Cancel' in a shop opened via callshop causes the player to get stuck

Fixed #9197
brynner23 1 月之前
父节点
当前提交
11d373ad44
共有 1 个文件被更改,包括 12 次插入6 次删除
  1. 12 6
      npc/re/merchants/Extended_Ammunition.txt

+ 12 - 6
npc/re/merchants/Extended_Ammunition.txt

@@ -15,14 +15,17 @@
 	next;
 	switch ( select( "Buy Arrows", "Quiver Exchange", "Sell Items", "Cancel" )) {
 	case 1:
+		close2;	// !Fix me: official server uses "callshop" then "close"
 		callshop "Arrow_Archer", 1;
-		close;
+		break;
 	case 2:
+		close2;	// !Fix me: official server uses "callshop" then "close"
 		callshop "Quiver_Archer", 1;
-		close;
+		break;
 	case 3:
+		close2;	// !Fix me: official server uses "callshop" then "close"
 		callshop "Selling_Items", 2;
-		close;
+		break;
 	case 4:
 		mes "[Arrow Merchant]";
 		mes "You can take a look at other things more calmly.";
@@ -87,14 +90,17 @@ OnInit:
 	next;
 	switch ( select( "Buy Ninjutsu Tool", "Parchment Exchange", "Sell Items", "Cancel" )) {
 	case 1:
+		close2;	// !Fix me: official server uses "callshop" then "close"
 		callshop "Weapons_Ninja", 1;
-		close;
+		break;
 	case 2:
+		close2;	// !Fix me: official server uses "callshop" then "close"
 		callshop "Box_Exchange_Ninja", 1;
-		close;
+		break;
 	case 3:
+		close2;	// !Fix me: official server uses "callshop" then "close"
 		callshop "Selling_Items", 2;
-		close;
+		break;
 	case 4:
 		break;
 	}