项目

一般

简介

押镖脚本 » 历史记录 » 修订 12

修订 11 (chenjun, 2022-05-27 18:12) → 修订 12/16 (chenjun, 2022-05-27 18:21)

h4. _*%{color:green}押镖脚本%*_ 


 标签:脚本|押镖脚本 

 - 
 - 

 h4. *%{color:deepskyblue}特戒引擎脚本示例:%* 

 - 
 - 



 bq. [<notextile>@</notextile>main] 
 %{color:lightGrey};界面内容变量赋值% 
 #if 
 large U98 0 
 #act 
 mov N$押镖次数 3 
 #elseact 
 mov N$押镖次数 2 
 &nbsp; 
 #if 
 checka_gamegold > 9999 
 #act 
 mov S$高元宝颜色 {scolor=250} 
 #elseact 
 mov S$高元宝颜色 {scolor=249} 
 &nbsp; 
 #if 
 checka_gamegold > 4999 
 #act 
 mov S$低元宝颜色 {scolor=250} 
 #elseact 
 mov S$低元宝颜色 {scolor=249} 
 &nbsp; 
 #if 
 checkitem 山庄镖令 1 
 #act 
 mov S$山庄镖令颜色 {scolor=250} 
 #elseact 
 mov S$山庄镖令颜色 {scolor=249} 
 &nbsp; 
 #if 
 isOnMap 神龙山庄 
 #act 
 mov S$接取低级镖车 <ImgButton:lc_anniuhui_4zi_da:495:815:接取低级镖车/<notextile>@</notextile>接取低级镖车> 
 #elseact 
 mov S$接取低级镖车 <ImgButton:lc_anniuhui_4zi_da:495:815:立即前往/<notextile>@</notextile>立即前往2> 
 &nbsp; 
 #if 
 isOnMap 神龙山庄 
 #act 
 mov S$接取高级镖车 <ImgButton:lc_anniuhui_4zi_da:1085:815:接取高级镖车/<notextile>@</notextile>接取高级镖车> 
 #elseact 
 mov S$接取高级镖车 <ImgButton:lc_anniuhui_4zi_da:1085:815:立即前往/<notextile>@</notextile>立即前往2> 
 &nbsp; 
 #if 
 #act 
 %{color:lightGrey};生成接取镖车的界面% 
 openMerchantBigDlg lc_chuangti 4 0 0 1 0 0 
 #say 
 <panelsize:1440:900>\ 
 <btnList:<$str(S$btnList921)>:神龙列表:10:70:1,820:30:4>\ 
 <Img:lc_leiji_tu:272:90:1>\ 
 <Img:lc_quyufenge_01:255:95:1>\ 
 &nbsp; 
 <Img:lc_zhuansheng_tanchu:430:110:1>\ 
 <Img:lc_zhuansheng_tanchu:1000:110:1>\ 
 &nbsp; 
 <playmodelex:731:450:210:3:0.7>\ 
 <playmodelex:737:1020:210:3:0.7>\ 
 &nbsp; 
 <text:低级镖车{scolor=249}:540:130> \ 
 <text:高级镖车{scolor=249}:1110:130> \ 
 &nbsp; 
 <Img:lc_settings_zihuawen_zuo:360:600:1>\ 
 <Img:lc_settings_zihuawen_you:720:600:1>\ 
 &nbsp; 
 <Img:lc_settings_zihuawen_zuo:940:600:1>\ 
 <Img:lc_settings_zihuawen_you:1300:600:1>\ 
 &nbsp; 
 <text:11:00-12:00和21:00-22:00为双倍时间,期间内押镖可获得双倍奖励。{scolor=251}:400:540> \ 
 &nbsp; 
 <text:低级押镖奖励{scolor=251}:490:590:220:1:35> \ 
 <text:高级押镖奖励{scolor=251}:1070:590:220:1:35> \ 
 &nbsp; 
 <text:消耗::350:760> \ 
 <text:消耗::930:760> \ 
 <ItemShowEX:1533:0:500:745:0:0.6> \ 
 <text:5000<$str(s$低元宝颜色)>:560:760> \ 
 <text:1<$str(s$山庄镖令颜色)>:1100:760> \ 
 <ItemShowEX:548:0:1040:750:0:0.5> \ 
 <text:10000<$str(s$高元宝颜色)>:1250:760> \ 
 <ItemShowEX:1533:0:1190:745:0:0.6> \ 
 <ItemShow:1533:0:480:640:1> 
 <ItemShow:1539:0:600:640:1> 
 <ItemShow:1533:0:1070:640:1> 
 <ItemShow:1539:2:1190:640:1> 
 <text:10万{scolor=161}:515:700> \ 
 <text:20万{scolor=161}:1105:700> \ 
 &nbsp; 
 <text:今日押镖次数<$str(U3001)>/<$str(N$押镖次数)>{scolor=250}:770:820> \ 
 <text:今日劫镖次数<$str(U3002)>/4{scolor=250}:770:860> \ 
 <$str(S$接取低级镖车)><$str(S$接取高级镖车)> 
 &nbsp; 
 %{color:lightGrey};传送至押镖地图% 
 [<notextile>@</notextile>立即前往2] 
 #if 
 checkLevelEX > 99 
 #act 
 openNpcShowex 神龙山庄 山庄镖头 -1 5 
 &nbsp; 
 %{color:lightGrey};召唤镖车% 
 [<notextile>@</notextile>接取低级镖车] 
 #if 
 small U98 1 
 large U3001 1 
 #act 
 messageBox 今日已经运完2次镖了,请明日继续! 
 break 
 &nbsp; 
 #if 
 large U98 0 
 large U3001 2 
 #act 
 messageBox 今日已经运完3次镖了,请明日继续! 
 break 
 &nbsp; 
 #if 
 checka_gamegold < 5000 
 #act 
 messageBox 元宝不足,无法押送镖车 
 break 
 &nbsp; 
 #or 
 equal <$HOUR> 11 
 equal <$HOUR> 21 
 #act 
 goto <notextile>@</notextile>接低镖 
 #elseact 
 messageBox 现在不是双倍奖励时间!是否继续押镖? <notextile>@</notextile>确定 <notextile>@</notextile>取消 
 &nbsp; 
 [<notextile>@</notextile>确定] 
 #if 
 #act 
 goto <notextile>@</notextile>接低镖1 
 &nbsp; 
 [<notextile>@</notextile>接低镖] 
 #if 
 checka_gamegold < 5000 
 #act 
 messageBox 元宝不足,无法押送镖车 
 break 
 &nbsp; 
 #if 
 %{color:lightGrey};检测当前有无镖车% 
 *{color:green}not [[checkEscort]]* 
 #act 
 a_gamegold 5000 
 %{color:lightGrey};开始押镖,镖车自动前进% 
 *{color:green}[[autoEscort]] 山庄普通镖车 1.5 5 1800 货运商人 5 提交低级镖车 315 91 1 GenBiao_lv GenBiao_hong 15 263,245,241,232,233,225,217,178 98,108,111,118,141,144,151,178* 263,245,241,232,233,225,217,178,173,164 98,108,111,118,141,144* 
 %{color:lightGrey};自动跟随镖车% 
 *{color:green}[[fellowSlave]] 山庄普通镖车 3* 
 mov U2011 200 
 sendMsg 6 恭喜你接到了【山庄普通镖车】! 
 close 
 goto <notextile>@</notextile>取消跟随 
 goto <notextile>@</notextile>侧边栏 
 #elseact 
 sendmsg 6 接取失败,你已经有镖车了 
 &nbsp; 
 [<notextile>@</notextile>接低镖1] 
 #if 
 checka_gamegold < 5000 
 #act 
 messageBox 元宝不足,无法押送镖车 
 break 
 &nbsp; 
 #if 
 *{color:green}not [[checkEscort]]* 
 #act 
 a_gamegold 5000 
 *{color:green}[[autoEscort]] 山庄普通镖车 1.5 5 1800 货运商人 5 提交低级镖车 315 91 1 GenBiao_lv GenBiao_hong 15 263,245,241,232,233,225,217,178 98,108,111,118,141,144,151,178* 263,245,241,232,233,225,217,178,173,164 98,108,111,118,141,144,151,178,181,187* 
 *{color:green}[[fellowSlave]] 山庄普通镖车 3* 
 mov U2011 200 
 sendMsg 6 恭喜你接到了【山庄普通镖车】! 
 close 
 goto <notextile>@</notextile>取消跟随 
 goto <notextile>@</notextile>侧边栏 
 #elseact 
 sendmsg 6 接取失败,你已经有镖车了 
 &nbsp; 
 [<notextile>@</notextile>接取高级镖车] 
 #if 
 small U98 1 
 large U3001 1 
 #act 
 messageBox 今日已经运完2次镖了,请明日继续! 
 break 
 &nbsp; 
 #if 
 large U98 0 
 large U3001 2 
 #act 
 messageBox 今日已经运完3次镖了,请明日继续! 
 break 
 &nbsp; 
 #if 
 checka_gamegold < 10000 
 #act 
 messageBox 元宝不足,无法押送高级镖车 
 break 
 &nbsp; 
 #if 
 not checkitem 山庄镖令 1 
 #act 
 messageBox 山庄镖令不足,无法押送高级镖车 
 break 
 &nbsp; 
 #or 
 equal <$HOUR> 11 
 equal <$HOUR> 21 
 #act 
 goto <notextile>@</notextile>接高镖 
 #elseact 
 messageBox 现在不是双倍奖励时间!是否继续押镖? <notextile>@</notextile>是的 <notextile>@</notextile>取消 
 &nbsp; 
 [<notextile>@</notextile>是的] 
 #if 
 #act 
 goto <notextile>@</notextile>接高镖1 
 &nbsp; 
 [<notextile>@</notextile>接高镖] 
 #if 
 not checkitem 山庄镖令 1 
 #act 
 messageBox 山庄镖令不足,无法押送高级镖车 
 break 
 &nbsp; 
 #if 
 checka_gamegold < 10000 
 #act 
 messageBox 元宝不足,无法押送高级镖车 
 break 
 &nbsp; 
 #if 
 *{color:green}not [[checkEscort]]* 
 #act 
 take 山庄镖令 1 
 a_gamegold 10000 
 *{color:green}[[autoEscort]] 山庄高级镖车 1 5 1800 货运商人 5 提交高级镖车 315 91 1 GenBiao_lv GenBiao_hong 15 263,245,241,232,233,225,217,178 98,108,111,118,141,144,151,178* 263,245,241,232,233,225,217,178,173,164 98,108,111,118,141,144,151,178,181,187* 
 *{color:green}not [[fellowSlave]] 山庄高级镖车 3* 
 mov U2011 200 
 sendMsg 6 恭喜你接到了【山庄高级镖车】! 
 close 
 goto <notextile>@</notextile>取消跟随 
 goto <notextile>@</notextile>侧边栏 
 #elseact 
 sendmsg 6 接取失败,你已经有镖车了 
 &nbsp; 
 [<notextile>@</notextile>接高镖1] 
 #if 
 not checkitem 山庄镖令 1 
 #act 
 messageBox 山庄镖令不足,无法押送高级镖车 
 break 
 &nbsp; 
 #if 
 checka_gamegold < 10000 
 #act 
 messageBox 元宝不足,无法押送高级镖车 
 break 
 &nbsp; 
 #if 
 *{color:green}not [[checkEscort]]* 
 #act 
 take 山庄镖令 1 
 a_gamegold 10000 
 *{color:green}[[autoEscort]] 山庄高级镖车 1 5 1800 货运商人 5 提交高级镖车 315 91 1 GenBiao_lv GenBiao_hong 15 263,245,241,232,233,225,217,178 98,108,111,118,141,144,151,178* 263,245,241,232,233,225,217,178,173,164 98,108,111,118,141,144,151,178,181,187* 
 *{color:green}not [[fellowSlave]] 山庄高级镖车 3* 
 mov U2011 200 
 sendMsg 6 恭喜你接到了【山庄高级镖车】! 
 close 
 goto <notextile>@</notextile>取消跟随 
 goto <notextile>@</notextile>侧边栏 
 #elseact 
 sendmsg 6 接取失败,你已经有镖车了 
 &nbsp; 
 [<notextile>@</notextile>取消跟随] 
 #if 
 #act 
 %{color:lightGrey};在屏幕上添加一个取消跟随的按钮,点击取消跟随镖车% 
 addMainCenterBtn 取消跟随按钮 1 lc_quxiaogenbiao 0,-100 取消跟随 151 24 0,-170 lc_ditu_mc_di 0,0,0,0 进行取消 
 &nbsp; 
 [<notextile>@</notextile>进行取消] 
 #if 
 #act 
 *{color:green}[[stopFellowSlave]]* 
 delMainCenterBtn 取消跟随按钮 
 goto <notextile>@</notextile>恢复跟随 
 &nbsp; 
 [<notextile>@</notextile>恢复跟随] 
 #if 
 #act 
 %{color:lightGrey};在屏幕上添加一个恢复跟随的按钮,点击恢复跟随镖车% 
 addMainCenterBtn 恢复跟随按钮 1 lc_huifugenbiao 0,-100 恢复跟随 151 24 0,-170 lc_ditu_mc_di 0,0,0,0 进行恢复 
 &nbsp; 
 [<notextile>@</notextile>进行恢复] 
 #if 
 #act 
 *{color:green}[[fellowSlave]] 山庄普通镖车 3* 
 *{color:green}[[fellowSlave]] 山庄高级镖车 3* 
 delMainCenterBtn 恢复跟随按钮 
 goto <notextile>@</notextile>取消跟随 
 &nbsp; 
 [<notextile>@</notextile>提交高级镖车] 
 #if 
 #act 
 inc U3001 1 
 give 天关灵符 4 
 b_gamegold + 400000 
 Sendmsg 6 恭喜您,护送高级镖车任务成功完成! 
 killCallMob 山庄高级镖车 1 1 
 delMainCenterBtn 取消跟随按钮 
 delMainCenterBtn 恢复跟随按钮 
 &nbsp; 
 [<notextile>@</notextile>提交高级镖车1] 
 #if 
 #act 
 inc U3001 1 
 give 天关灵符 2 
 b_gamegold + 200000 
 Sendmsg 6 恭喜您,护送高级镖车任务成功完成! 
 killCallMob 山庄高级镖车 1 1 
 delMainCenterBtn 取消跟随按钮 
 delMainCenterBtn 恢复跟随按钮 
 &nbsp; 
 [<notextile>@</notextile>提交低级镖车] 
 #if 
 #act 
 inc U3001 1 
 give 天关灵符 2 
 b_gamegold + 200000 
 Sendmsg 6 恭喜您,护送高级镖车任务成功完成! 
 killCallMob 山庄普通镖车 1 1 
 delMainCenterBtn 取消跟随按钮 
 delMainCenterBtn 恢复跟随按钮 
 &nbsp; 
 [<notextile>@</notextile>提交低级镖车1] 
 #if 
 #act 
 inc U3001 1 
 give 天关灵符 1 
 b_gamegold + 100000 
 Sendmsg 6 恭喜您,护送高级镖车任务成功完成! 
 killCallMob 山庄普通镖车 1 1 
 delMainCenterBtn 取消跟随按钮 
 delMainCenterBtn 恢复跟随按钮 
 &nbsp; 
 [<notextile>@</notextile>侧边栏] 
 #if 
 large U98 0 
 #act 
 mov N$押镖次数 3 
 #elseact 
 mov N$押镖次数 2 
 &nbsp; 
 #if 
 %{color:lightGrey};检测镖车是否在移动% 
 *{color:green}[[checkbiao]]* 
 #act 
 mov S$镖车状态 镖车状态:移动中... 
 mov S$状态颜色 {fcolor=250} 
 #elseact 
 mov S$镖车状态 镖车状态:暂停中... 
 mov S$状态颜色 {fcolor=249} 
 &nbsp; 
 #if 
 #act 
 div N$镖车血量 <$str(U2011)> 2 
 &nbsp; 
 #if 
 #act 
 mov s$sideInfo1 
 inc s$sideInfo1 <text:<$str(S$镖车状态)><$str(S$状态颜色)>:10:10> 
 inc s$sideInfo1 <text:镖车血量{fcolor=161}:10:50> 
 inc s$sideInfo1 <progressBar:10:90:<$str(N$镖车血量)>:lc_jindutiao_di:lc_jindutiao_cheng> 
 inc s$sideInfo1 <text:<$str(U2011)>/200{fcolor=161}:120:90> 
 inc s$sideInfo1 <ImgButton:lc_anniuhhong_2zi_xiao:10:140:放弃押镖/@放弃押镖> 
 inc s$sideInfo1 <ImgButton:lc_anniuhui_2zi_xiao:180:140:自动押镖/@自动押镖> 
 inc s$sideInfo1 <text:今日押镖次数<$str(U3001)>/<$str(N$押镖次数)>{scolor=250}:40:220> 
 inc s$sideInfo1 <text:今日劫镖次数<$str(U3002)>/4{scolor=250}:40:260> 
 &nbsp; 
 #if 
 #act 
 mov s$sideInfo2 
 inc s$sideInfo2 <text:<$str(S$镖车状态)><$str(S$状态颜色)>:10:10> 
 inc s$sideInfo2 <text:镖车血量{fcolor=161}:10:50> 
 inc s$sideInfo2 <progressBar:10:90:<$str(N$镖车血量)>:lc_jiazaijindu_di:lc_jiazaijindu_jindu> 
 inc s$sideInfo2 <text:<$str(U2011)>/200{fcolor=161}:120:90> 
 inc s$sideInfo2 <ImgButton:lc_anniuhhong_2zi_xiao:10:140:放弃押镖/@放弃押镖> 
 inc s$sideInfo2 <ImgButton:lc_anniuhui_2zi_xiao:180:140:自动押镖/@自动押镖> 
 inc s$sideInfo2 <text:今日押镖次数<$str(U3001)>/<$str(N$押镖次数)>{scolor=250}:40:220> 
 inc s$sideInfo2 <text:今日劫镖次数<$str(U3002)>/4{scolor=250}:40:260> 
 &nbsp; 
 #if 
 #act 
 mov s$setPic1 main_task_richang_02,main_task_richang_01,zudui_02,zudui_01 
 &nbsp; 
 #if 
 #act 
 ;手机端处理 
 addDlg 1 dlg:<$str(s$sideInfo1)>dlg:<$str(s$tmp2)> 1 <$str(s$setPic1)> 0 
 ;pc端处理 
 addDlg 1 dlg:<$str(s$sideInfo2)>dlg:<$str(s$tmp2)> 2 <$str(s$setPic1)> 0 
 goto <notextile>@</notextile>循环 
 &nbsp; 
 &nbsp; 
 [<notextile>@</notextile>循环] 
 #if 
 *{color:green}not [[checkEscort]]* 
 #act 
 break 
 &nbsp; 
 #if 
 *{color:green}[[checkbiao]]* 
 #act 
 mov S$镖车状态 镖车状态:移动中... 
 mov S$状态颜色 {fcolor=250} 
 #elseact 
 mov S$镖车状态 镖车状态:暂停中... 
 mov S$状态颜色 {fcolor=249} 
 &nbsp; 
 #if 
 #act 
 div N$镖车血量 <$str(U2011)> 2 
 &nbsp; 
 #if 
 #act 
 mov s$sideInfo1 
 inc s$sideInfo1 <text:<$str(S$镖车状态)><$str(S$状态颜色)>:10:10> 
 inc s$sideInfo1 <text:镖车血量{fcolor=161}:10:50> 
 inc s$sideInfo1 <progressBar:10:90:<$str(N$镖车血量)>:lc_jindutiao_di:lc_jindutiao_cheng> 
 inc s$sideInfo1 <text:<$str(U2011)>/200{fcolor=161}:120:90> 
 inc s$sideInfo1 <ImgButton:lc_anniuhhong_2zi_xiao:10:140:放弃押镖/<notextile>@</notextile>放弃押镖> 
 inc s$sideInfo1 <ImgButton:lc_anniuhui_2zi_xiao:180:140:自动押镖/<notextile>@</notextile>自动押镖> 
 inc s$sideInfo1 <text:今日押镖次数<$str(U3001)>/<$str(N$押镖次数)>{scolor=250}:40:220> 
 inc s$sideInfo1 <text:今日劫镖次数<$str(U3002)>/4{scolor=250}:40:260> 
 &nbsp; 
 #if 
 #act 
 mov s$sideInfo2 
 inc s$sideInfo2 <text:<$str(S$镖车状态)><$str(S$状态颜色)>:10:10> 
 inc s$sideInfo2 <text:镖车血量{fcolor=161}:10:50> 
 inc s$sideInfo2 <progressBar:10:90:<$str(N$镖车血量)>:lc_jiazaijindu_di:lc_jiazaijindu_jindu> 
 inc s$sideInfo2 <text:<$str(U2011)>/200{fcolor=161}:120:90> 
 inc s$sideInfo2 <ImgButton:lc_anniuhhong_2zi_xiao:10:140:放弃押镖/<notextile>@</notextile>放弃押镖> 
 inc s$sideInfo2 <ImgButton:lc_anniuhui_2zi_xiao:180:140:自动押镖/<notextile>@</notextile>自动押镖> 
 inc s$sideInfo2 <text:今日押镖次数<$str(U3001)>/<$str(N$押镖次数)>{scolor=250}:40:220> 
 inc s$sideInfo2 <text:今日劫镖次数<$str(U3002)>/4{scolor=250}:40:260> 
 &nbsp; 
 #if 
 #act 
 mov s$setPic1 main_task_richang_02,main_task_richang_01,zudui_02,zudui_01 
 &nbsp; 
 #if 
 #act 
 ;手机端处理 
 addDlg 1 dlg:<$str(s$sideInfo1)>dlg:<$str(s$tmp2)> 1 <$str(s$setPic1)> 1 
 ;pc端处理 
 addDlg 1 dlg:<$str(s$sideInfo2)>dlg:<$str(s$tmp2)> 2 <$str(s$setPic1)> 1 
 &nbsp; 
 #if 
 large U2011 0 
 #act 
 delaygoto 1000 <notextile>@</notextile>循环 
 &nbsp; 
 [<notextile>@</notextile>放弃押镖] 
 #act 
 messageBox 确定放弃押镖吗? <notextile>@</notextile>确定放弃 <notextile>@</notextile>取消 
 &nbsp; 
 [<notextile>@</notextile>确定放弃] 
 #act 
 mov U2011 0 
 killCallMob 山庄普通镖车 1 1 
 killCallMob 山庄高级镖车 1 1 
 delMainCenterBtn 取消跟随按钮 
 delMainCenterBtn 恢复跟随按钮 
 goto <notextile>@</notextile>退出1 
 &nbsp; 
 [<notextile>@</notextile>自动押镖] 
 #if 
 #act 
 *{color:green}[[fellowSlave]] 山庄普通镖车 3* 
 *{color:green}[[fellowSlave]] 山庄高级镖车 3* 
 delMainCenterBtn 恢复跟随按钮 
 delMainCenterBtn 取消跟随按钮 
 goto <notextile>@</notextile>取消跟随 
 goto <notextile>@</notextile>侧边栏 
 &nbsp; 
 [<notextile>@</notextile>delDlg1] 
 #act 
 delDlg 1 
 &nbsp; 
 [<notextile>@</notextile>活动] 
 #act 
 messageBox 活动 
 &nbsp; 
 [<notextile>@</notextile>退出1] 
 #act 
 delDlg 1 
 &nbsp; 
 [<notextile>@</notextile>删除按钮] 
 #act 
 delMainCenterBtn 恢复跟随按钮 
 delMainCenterBtn 取消跟随按钮 
 delDlg 1