北大侠客行MUD论坛

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

MUSH入门机器人:朱熹学习literate,等待的时候练习武功

[复制链接]
发表于 2013-8-30 14:57:44 | 显示全部楼层 |阅读模式
拷贝代码到一个后缀名.lua的文件。
注意文件编码:ANSI
MUSH里面脚本载入。
南昌朱熹处: szhuxi 开始 ezhuxi 结束

  1. require "wait"

  2. Note("---Wlwind-北侠机器人---")
  3. SetSpeedWalkDelay(50)       

  4. ---triggers---
  5. addTri = function(name, str, content, func, group)
  6.         AddTriggerEx (name, str,
  7.          content,
  8.          bit.bor(trigger_flag.Enabled,trigger_flag.Temporary,trigger_flag.Replace,trigger_flag.RegularExpression),
  9.          custom_colour.Custom15, 0, "", func, 10, 50)
  10.         SetTriggerOption (name, "group", group)
  11. end

  12. ---Account login---
  13. login = function()
  14.         local playId,playPasswd        --playId
  15.         playId = GetVariable("player")
  16.         playPasswd = GetVariable("passwd")
  17.         DoAfterSpeedWalk(1, "("..playId..")("..playPasswd..")(Y)")
  18.         Note("Login success")
  19. end

  20. ----xue zhu xi ----
  21. go_eat_drink_zhuxi = function()
  22.         local lian_skill
  23.         lian_skill = GetVariable("lian_skill")

  24.         DoAfterSpeedWalk(0.1, "(lian "..lian_skill.." 50) 2w (eat)" )
  25.         DoAfterSpeedWalk(4, "e n (drink)" )
  26.         DoAfterSpeedWalk(7, "s (xue zhu xi for literate 50)" )
  27. end

  28. wait_zhu_xi = function()
  29.         local lian_skill
  30.         lian_skill = GetVariable("lian_skill")

  31.         DoAfterSpeedWalk(10, "(lian "..lian_skill.." 50) (xue zhu xi for literate 50)" )
  32. end

  33. zhuxi = function()
  34.         SetVariable ("lian_skill", "parry")
  35.         local lian_skill
  36.         lian_skill = GetVariable("lian_skill")
  37.        
  38.         addTri("zhuxi_1", "^[> ]*你听了朱熹的指导,似乎有些心得。","yun regenerate","","zhuxi")
  39.         addTri("zhuxi_2", "^[> ]*你略一凝神,精神看起来好多了。","xue zhu xi for literate 50","","zhuxi")
  40.         addTri("zhuxi_3", "^[> ]*你的内力不够。","e;sleep","","zhuxi")
  41.         addTri("zhuxi_4", "^[> ]*你一觉醒来,精神抖擞地活动了几下手脚。","","go_eat_drink_zhuxi","zhuxi")
  42.         addTri("zhuxi_5", "^[> ]*你刚在三分钟内睡过一觉, 多睡对身体有害无益! ","w","wait_zhu_xi","zhuxi")
  43.         addTri("zhuxi_6", "^[> ]*嗯....你得先把朱熹弄醒再说。 ","","wait_zhu_xi","zhuxi")
  44.         addTri("zhuxi_7", "^[> ]*你附近没有 zhu xi 这个人,请用 id here 指令看看周围人物 id 。","","wait_zhu_xi","zhuxi")
  45.                  
  46.         DoAfterSpeedWalk(1, "(xue zhu xi for literate 50)")
  47. end
  48. endzhuxi = function()
  49.         DeleteTriggerGroup ("zhuxi")
  50. end
  51. ----end xue zhu xi ----

  52. ---cmds----
  53. AddAlias("s_xuezhuxi", "szhuxi", "", bit.bor(trigger_flag.Enabled,trigger_flag.Temporary,trigger_flag.Replace), "zhuxi")
  54. AddAlias("d_xuezhuxi", "dzhuxi", "", bit.bor(trigger_flag.Enabled,trigger_flag.Temporary,trigger_flag.Replace), "endzhuxi")
复制代码

北大侠客行MUD,中国最好的MUD
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
发表于 2013-9-12 01:34:36 | 显示全部楼层
现在不是没有朱熹了吗
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
发表于 2013-9-12 15:23:53 | 显示全部楼层
这只是学读书写字的机器人,被cut的是猜数字
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-24 07:12 PM , Processed in 0.008877 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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