北大侠客行MUD论坛

 找回密码
 注册
搜索
热搜: 新手 wiki 升级
查看: 513|回复: 0

【tintin++】长安男爵任务辅助

[复制链接]
发表于 2023-9-14 20:55:20 | 显示全部楼层 |阅读模式
  1. #class nanjue open;

  2. #var j_pattern {深色鞋子;浅色鞋子;深色衣服;浅色衣服;流浪汉;布衣;丝绸衣服;夹袄;靴子;布鞋;凉鞋;猴子;有点胖;有点发胖;偏瘦;竹竿;个子不太高;微微发福;高个子;矮个子;女;男;花白;白发苍苍;半只脚埋入棺材;老大不小;中年;青年;非常年轻;年轻人}

  3. #var j_name {};
  4. #var j_finded {};
  5. #var j_gender 0;
  6. #var j_height 0;
  7. #var j_shape 0;
  8. #var j_age 0;
  9. #var j_says 0;
  10. #var j_find 0;
  11. #var f_color 0;
  12. #var j_gg 0;
  13. #var shoes_color 0;
  14. #var cloth_color 0;
  15. #var shoes_type 0;
  16. #var cloth_type 0;

  17. #var c_color 0;
  18. #var s_color 0;


  19. #var luren_list {};
  20. #var luren_counter 1;

  21. #list dark_color create 30 31 34 35;
  22. #list light_color create 32 33 36 37;
  23. #list silk_cloth create 丝织长衫 丝绸短襦 绸袍 丝织儒衫 轻罗纱 旗袍;
  24. #list cloth_cloth create 坎肩 圆领衫 灰布衫 灰马褂 百褶裙 蓝马褂 短打劲装 天蓝锦袍;
  25. #list ao_cloth create 鹤氅 长袄 棉袄 狼皮袄 短袄 比甲;
  26. #list xue_shoes create 牛皮短靴 马靴 女式短靴 女式长靴 薄底快靴 七星剑靴;
  27. #list cloth_shoes create 绣花鞋 锦鞋 凤鞋 布鞋 麻鞋 千层底布鞋;
  28. #list liang_shoes create 木屐 草鞋 破鞋;

  29. #action {你向%1问道:这位%2,不知最近有没有听说什么消息?\n%3说道:「%4」} {
  30.     #var j_name %1;
  31.     #if {"%2"=="公公"} {#showme 他是公公!;#var j_gg 1};
  32.     #var j_says %4;
  33.     #foreach $j_pattern j_find {
  34.         #regexp $j_says $j_find {
  35.             #showme find $j_find;
  36.             #var j_finded $j_find
  37.         };
  38.     };
  39. };


  40. #action {LV%1\n%2\n%3{他|她}看起来约%5,} {
  41.     #showme %5;
  42.     #var j_age %5;

  43. }


  44. #action {这是一{个|位}%1的行人。} {
  45.     #switch {"%1"} {
  46.         #case {"身材异常魁梧高大"} {#var j_gender 女;#var j_height 高;#var j_shape 胖};
  47.         #case {"娇小玲珑"} {#var j_gender 女;#var j_height 矮;#var j_shape 瘦};
  48.         #case {"身材丰满矮小"} {#var j_gender 女;#var j_height 矮;#var j_shape 胖};
  49.         #case {"丰胸细腰,身材苗条挺拔"} {#var j_gender 女;#var j_height 高;#var j_shape 瘦};
  50.         #case {"宛如一根竹竿"} {#var j_gender 男;#var j_height 高;#var j_shape 瘦};
  51.         #case {"矮小粗胖"} {#var j_gender 男;#var j_height 矮;#var j_shape 胖};
  52.         #case {"高大魁梧"} {#var j_gender 男;#var j_height 高;#var j_shape 胖};
  53.         #case {"矮小灵活"} {#var j_gender 男;#var j_height 矮;#var j_shape 瘦};
  54.     };
  55.     #showme $j_gender,$j_height,$j_shape;
  56.     #if {"$j_gg"=="1"} {#var j_gender 公公;#var j_gg 0};
  57.     #nop #var $j_name {$j_name $j_gender $j_height $j_shape $j_age} ;
  58. }


  59. #action {~身穿一件\e[%1m%2\e[2;37;0m(%3\e[2;37;0m)} {
  60.     #showme %1 %2 %3;
  61.     #var c_color %1;
  62.     #replace c_color {1\\;} {};
  63.     #replace c_color {2\\;} {};
  64.     #showme c_color:$c_color;
  65.     #if {@find_pt{light_color;$c_color}} {#showme 是浅色衣服;#var cloth_color 浅色衣服};
  66.         #else {#showme 是深色衣服;#var cloth_color 深色衣服};
  67.     #if {@find_pt{silk_cloth;%2}} {#showme 是丝绸衣服;#var cloth_type 丝绸衣服};
  68.     #if {@find_pt{cloth_cloth;%2}} {#showme 是布衣;#var cloth_type 布衣};
  69.     #if {@find_pt{ao_cloth;%2}} {#showme 是夹袄;#var cloth_type 夹袄};
  70.     #nop #var c_color {};
  71. }

  72. #action {~脚蹬一双\e[%1m%2\e[2;37;0m(%3\e[2;37;0m)} {
  73.     #showme %1 %2 %3;
  74.     #var s_color %1;
  75.     #replace s_color {1\\;} {};
  76.     #replace s_color {2\\;} {};
  77.     #showme s_color:$s_color;
  78.     #if {@find_pt{light_color;$s_color}} {#showme 是浅色鞋子;#var shoes_color 浅色鞋子};
  79.         #else {#showme 是深色鞋子;#var shoes_color 深色鞋子};
  80.     #if {@find_pt{xue_shoes;%2}} {#showme 是靴子;#var shoes_type 靴子};
  81.     #if {@find_pt{cloth_shoes;%2}} {#showme 是布鞋;#var shoes_type 布鞋};
  82.     #if {@find_pt{liang_shoes;%2}} {#showme 是凉鞋;#var shoes_type 凉鞋};
  83.     #nop #var s_color {};
  84.     #var luren_list[$luren_counter] {$j_name $j_gender $j_height $j_shape $j_age $cloth_color $cloth_type $shoes_color $shoes_type :: $j_finded};
  85.     #math luren_counter $luren_counter+1;
  86.     #delay 0.5 {
  87.         #showme $j_name $j_gender $j_height $j_shape $j_age $cloth_color $cloth_type $shoes_color $shoes_type :: $j_finded;
  88.         #var j_finded {};
  89.     };
  90.    
  91. }





  92. #nop #foreach $j_pattern j_find {#regexp $j_says $j_find {#showme find $j_find}};





  93. #function find_pt {#list %1 find %2 result};

  94. #alias ttf {testify luren %1};
  95. #alias lingshang {ask shaoyin about 领赏;#var luren_counter 1;#var luren_list {}};
  96. #alias rcl {record cancel};
  97. #alias rcd {record 1_%1};
  98. #alias asks {ask shaoyin about 任务信息};
  99. #alias ask1 {ask luren 1 about 消息;l luren 1;};
  100. #alias ask2 {ask luren 2 about 消息;l luren 2;};
  101. #alias ask3 {ask luren 3 about 消息;l luren 3;};
  102. #alias ask4 {ask luren 4 about 消息;l luren 4;};
  103. #alias ask5 {ask luren 5 about 消息;l luren 5;};
  104. #alias ask6 {ask luren 6 about 消息;l luren 6;};
  105. #alias askt {ask shaoyin about 通行令};
  106. #alias jifen {ask shaoyin about 积分};
  107. #alias showluren {#var luren_list};

  108. #class nanjue close;
复制代码
苦逼少林人没声望,本着能自己搞定就尽量不求人的原则弄了个辅助,用法是接任务,把所有路人问一遍看一遍后showluren就能显示获取到的信息,然后就能愉快的开始推理了
关于什么是男爵任务以及如何领取奖励见https://www.pkuxkx.net/wiki/task/cajwrw



北大侠客行Mud(pkuxkx.net),最好的中文Mud游戏!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|北大侠客行MUD ( 京ICP备16065414号-1 )

GMT+8, 2024-4-29 07:47 AM , Processed in 0.009627 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表