Ver Fonte

feat(pkuxkx): 增加过长江黄河时手动给钱的触发

dzp há 2 anos atrás
pai
commit
bedd071869

+ 15 - 0
mud/pkuxkx/plugins/basic/map/helper.tin

@@ -71,6 +71,21 @@ VAR {地图脚本同步信息} map.sync.room-id {};
         };
     };
 
+    #nop 没有一卡通时,需要通过 ask 来手动给钱。;
+    #action {^船老大一把拉住你,你还没付钱呢?$} {
+        #line oneshot #action {^{他|她}是{黄|长}{河|江}边的船老大,撑渡船几十年,现在老了,只负责在岸边收钱。$} {
+            #delay 0 {ask shao gong about 过%%%3};
+        };
+
+        #line oneshot #action {^%sLV%s%d%s$} {#line gag};
+
+        #delay 0 {
+            #gag {^%*{|ID=map.shaogong}$};
+            look shao gong;
+            sync.Wait {#ungag {^%*{|ID=map.shaogong}$}};
+        };
+    };
+
     #action {^%*接过你递给的船资%S。$}                                  {map.waitBoat};
     #action {^你的车船通账上还剩%S,这一趟的船资是%S。$}                {map.waitBoat};
     #action {^%S道:原来是%S的人,快请上船。$}                          {map.waitBoat};

+ 20 - 0
mud/pkuxkx/plugins/basic/map/room.tin

@@ -234,6 +234,26 @@ event.HandleOnce {map/init} {map/room} {map} {map.Room.Watch};
         #var gMapRoom[terrain] {随机地图};
     };
 
+    #action {^%s{长江渡船|黄河渡船|渡船|羊皮筏}停在岸边,随时可以出发。$} {
+        map.room.mark-river %2;
+    };
+
+    #action {^%s{长江渡船|黄河渡船|渡船|羊皮筏}正在驶回,马上就要靠岸了。$} {
+        map.room.mark-river %2;
+    };
+
+    #action {^%s{长江渡船|黄河渡船|渡船|羊皮筏}刚刚离开驶向对岸,需要一些时间才能回来。$} {
+        map.room.mark-river %2;
+    };
+
+    #alias {map.room.mark-river} {
+        #local boat {%%1};
+        #switch {"$boat"} {
+            #case {"长江渡船"}                  {#var gMapRoom[river] {长江}};
+            #case {"{黄河渡船|渡船|羊皮筏}"}    {#var gMapRoom[river] {黄河}};
+        };
+    };
+
     #action {^%s{这里(?:明显|所有|唯一)的(?:出口|方向)有|浓雾中你觉得似乎有出口通往} %*$} {
         #local desc {%%2};
         #if { "$desc" == "%*浓雾%*" } {