主题: 练功机器
查看单个帖子
旧 2009-06-21   #1
bbs108
高级会员
级别:6 | 在线时长:136小时 | 升级还需:4小时级别:6 | 在线时长:136小时 | 升级还需:4小时级别:6 | 在线时长:136小时 | 升级还需:4小时
 
bbs108 的头像
 
注册: 09年05月20日
帖子: 194
声望力: 17
声望: 32 bbs108 初领妙道
现金:456两梁山币
资产:456两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0
练功机器

#CLASS {practice1}
#TRIGGER {^*%s~(@upgradewhatid~)%s~-%s%x%s(%d)/%s(%d)} {#cw 668;#var clv %1;#if (@clv+1)>@tlv {#show @@ 学习任务第@i项顺利完成 @@;#var i %eval(@i+1);#var practicewhatid %arrget(practicelist,@i);#var upgradewhatid %arrget(upgradelist,@i);#show @practicewhatid @upgradewhatid;enable @practicewhatid @upgradewhatid;#if %ismember(@upgradewhatid,moondance) {#t- costkee;#t+ costsen;skills;lian @practicewhatid;#wa 1000;exert refresh};#if %ismember(@upgradewhatid,xiaoyaoyou) {#t+ costkee;#t- costsen;#t+ xixue;skills;lian @practicewhatid;#wa 1000;exert recover};#if %ismember(@upgradewhatid,snowsword) {#t+ costkee;#t- costsen;#t+ xixue;wield sword;skills;lian @practicewhatid;#wa 1000;exert recover}}}
#TRIGGER {你的内力不够。} {#show @@ ------>内力不够关闭吸血 打开两倍内力;#t- xixue;#var stateofdoubleforceb 0;#var stateofdoubleforceb 1;#wa 3000;skills}
#TRIGGER {潜能不够开始自己练吧} {#prompt pID0 {准备练的第一项技能ID};#prompt uID0 {准备升级的第一项技能ID};#prompt pID1 {准备练的第二项技能ID};#prompt uID1 {准备升级的第二项技能ID};#prompt pID2 {准备练的第三项技能ID};#prompt uID2 {准备升级的第三项技能ID};#prompt pID3 {准备练的第四项技能ID};#prompt uID3 {准备升级的第四项技能ID};#prompt tlv {练到多少级};#var practicelist %array(@pid0,@pid1,@pid2,@pid3);#var upgradelist %array(@uid0,@uid1,@uid2,@uid3);#4 {#show %arrget(practicelist,%i)};#4 {#show %arrget(upgradelist,%i)};#var i 0;#var practicewhatid %arrget(practicelist,i);#var upgradewhatid %arrget(upgradelist,i);enable @practicewhatid @upgradewhatid;#if %ismember(@upgradewhatid,moondance) {#t- costkee;#t+ costsen;skills;lian @practicewhatid;#wa 1000;exert refresh};#if %ismember(@upgradewhatid,xiaoyaoyou) {#t+ costkee;#t- costsen;#t+ xixue;skills;lian @practicewhatid;#wa 1000;exert recover};#if %ismember(@upgradewhatid,snowsword) {#t+ costkee;#t- costsen;#t+ xixue;wield sword;skills;lian @practicewhatid;#wa 1000;exert recover}}
#TRIGGER {你一次输入太多命令了。} {#wa 10000;l}
#TRIGGER {Trigger *removed.} {#gag} "" {disable}
#ALARM "_Alarm1137" {+239} {#IF (%eval(@endtime-@starttime)>210) {#show @@ 超过%eval(@endtime-@starttime)秒没动作;#var stateofdoubleforceb 0;#var stateofdoubleforceb 1;#wa 3000} {#show @@ 看到这条信息表示此triger不正常,endtime取值有误,过去了%eval(@endtime-@starttime)秒}}
#CLASS 0
#CLASS {practice1|costkee}
#TRIGGER "xixue" {你深深吸了几口气,脸色看起来好多了。} {#wa 1000
#show lian 15次 <color pink>@practicewhatid</color> 升级 <color yellow>@upgradewhatid</color>
#15 lian @practicewhatid
#wa 1000
//#show 执行 ID:xixue 内的吸血
exert recover} "" {disable}
#TRIGGER {你现在气力充沛,不需吸气。} {#3 lian @practicewhatid;#wa 1000;exert recover}
#TRIGGER {i am pretty good} {#t+ xixue;#show @@ 打开吸血triger 防triger中断计时器重新计时 @@;#untrigger {+219} {practice1};#var starttime %ctime;#ALARM +219 {#IF (%eval(@endtime-@starttime)>210) {#show @@ 超过%eval(@endtime-@starttime)秒没动作;#t- xixue;#var stateofdoubleforceb 0;#var stateofdoubleforceb 1;#wa 3000;skills} {#show @@ 此条信息表示endtime取值有误,请重新设置,过去了%eval(@endtime-@starttime)秒}} practice1;#wa 2000;#4 lian @practicewhatid;#wa 1000;exert refresh}
#CLASS 0
#CLASS {practice1|costsen}
#TRIGGER "xisen" {你略一凝神,吸了口气,精神看起来清醒多了。} {#wa 1000
#show lian 15次 <color pink>@practicewhatid</color> 升级 <color yellow>@upgradewhatid</color>
#15 lian @practicewhatid
#wa 1000
//#show 执行 ID:xixue 内的吸血
exert refresh}
#TRIGGER {你现在精神饱满,不需吸气。} {#3 lian @practicewhatid;#wa 1000;exert refresh}
#TRIGGER {i am pretty good} {#show @@ 打开吸神triger 防triger中断计时器重新计时 @@;#var starttime %ctime;#untrigger {+239} {practice1};#ALARM +239 {#IF (%eval(@endtime-@starttime)>210) {#show @@ 超过%eval(@endtime-@starttime)秒没动作;#var stateofdoubleforceb 0;#var stateofdoubleforceb 1;#wa 3000} {#show @@ 看到这条信息表示此triger不正常,endtime取值有误,过去了%eval(@endtime-@starttime)秒}} practice1;#wa 2000;#4 lian @practicewhatid;#wa 1000;exert refresh}
#CLASS 0

------------------------------------------------practice1类
#CLASS {doubleforce}
#VAR dz_num {126}
#TRIGGER {*气血*%s(%d)/*} {#var hp %1;#show 变量 hp=@hp}
#TRIGGER {*内力*%s(%d)%s/%s(%d)%s*} {#var force %1;#var maxforce %2;#show 变量 force=@force maxforce=@maxforce;#if @force<(@maxforce*2-150) {#math dz_num (2*%2-%1)/50*14;#wa 1000;#if @hp>@dz_num {dazuo @dz_num;#show ----->打坐内力差的28%} {dz_num=%eval(@hp-10);dz @dz_num}};#if @force>=(@maxforce*2-150) {#t- doubleforce;#var stateofdoubleforceb 0;#show 关闭doubleforce类 关闭doubleforceB按钮;#show i am pretty good;#play 2force.wav}}
#REGEX {^[>]?[ ]*你行功完毕,吸一口气,缓缓站了起来。} {#wa 3000;exert recover;#wa 2000;hp}
#TRIGGER {^[>]?[ ]*你现在的气太少了,无法产生内息运行全身经脉。} {#wa 500;exert recover}
#REGEX {^[>]?[ ]*你最少要花 20 点「气」才能练功。} {exert recover;hp}
#REGEX {^[>]?[ ]*此处有闲杂人等打扰,不宜练功!} {dazuo @dz_num}
#CLASS 0
------------------------------2倍内力class-------------
button不太会表达了

togle类型的 button状态变量stateofpracticeB ID:practiceB
up:
#t+ practice1
#show @@ 潜能不够开始自己练吧 关闭practice类打开practice1类@@
down:
#t- practice1
#show @@ 关闭practice practice1类 @@

(doubleforce Button不写了 参考上面)


条件 正循环即可

一次性根据提示输入所要练得技能需要升级的技能比如
练parry 升级qianshou
然后练sword bainiao-jian等等
身上带好必要武器 按下button就可以了
bbs108 当前离线  
回复时引用此帖