项目

一般

简介

行为

UpdateBoxItem » 历史记录 » 修订 6

« 上一页 | 修订 6/7 (差异) | 下一页 »
yangdefeng, 2022-05-21 10:36


updateBoxItem

刷新指定itemBox格子,例如删除itemBox格子中的物品后使用updateBoxItem刷新为空的itemBox

标签:命令定义|updateBoxItem

格式
命令名 参数1
updateBoxItem itemBox编号
说明:
  • 参数1: itemBox编号

特戒引擎脚本示例:

使用前提1
请开启配置开关"isUseCustomOKPanel"
配置文件 ..\Mir200\Tejieconfig\Tejieconfig.txt
配置节点 [tjconfig]
配置项 isUseCustomOkPanel=1



[@main]
#act
clsMainUI
#say
<itemBox:0:-100001:-1:0:0:-1:-1:*:tips>
<itemBox:1:-100001:-1:200:0:-1:-1:*:tips>
 
<text:放入0:0:400/@放入0>
<text:放入1:200:400/@放入1>
 
<text:删除0:0:600/@删除0>
<text:删除1:200:600/@删除1>
 
 
[@放入0]
#if
checkBaItemCountEx 粗铁 5
#act
bagItemIntoBox 粗铁 0 5
#elseAct
messageBox 没有5个粗铁可以放入
 
[@放入1]
#if
checkBaItemCountEx 麻布 5
#act
bagItemIntoBox 麻布 1 5
messageBox 没有5个麻布可以放入
 
[@删除0]
#act
delBoxItem 0 5
updateBoxItem 0
 
[@删除1]
#act
delBoxItem 1 5
updateBoxItem 0

yangdefeng 更新于 超过 2 年 之前 · 6 修订