拾取鉴定卡顿问题

admin 2023/04/19 12:44:42 557
[@精良鉴定]
{
#if
CheckItemNameColor -1 168
#act
;绑定自定义属性
MOVR N$基础1 3 9
MOVR N$基础2 3 9
MOVR N$基础3 3 9
MOVR N$致命1 10 13
MOVR N$技能1 14 34
MOVR N$技能2 14 34
MOVR N$技能3 14 34
MOVR N$史诗1 36 38
MOVR N$史诗2 36 38
SetCustomItemAbil -1 3 1 <$STR(N$基础1)>
SetCustomItemAbil -1 4 1 <$STR(N$基础2)>
SetCustomItemAbil -1 5 1 <$STR(N$基础3)>
SetCustomItemAbil -1 6 1 6
SetCustomItemAbil -1 7 1 7
SetCustomItemAbil -1 8 1 <$STR(N$致命1)>
;默认属性为0
SetCustomItemValue -1 3 = 0
SetCustomItemValue -1 4 = 0
SetCustomItemValue -1 5 = 0
SetCustomItemValue -1 6 = 0
SetCustomItemValue -1 7 = 0
SetCustomItemValue -1 8 = 0
;绑定自定义位置颜色
SetCustomItemAbil -1 3 0 250
SetCustomItemAbil -1 4 0 250
SetCustomItemAbil -1 5 0 250  
SetCustomItemAbil -1 6 0 250  
SetCustomItemAbil -1 7 0 250  
SetCustomItemAbil -1 8 0 253
;绑定属性是否在同一行 数字不同则不在同一行
SetCustomItemAbil -1 3 2 0
SetCustomItemAbil -1 4 2 1
SetCustomItemAbil -1 5 2 2
SetCustomItemAbil -1 6 2 3
SetCustomItemAbil -1 7 2 4
SetCustomItemAbil -1 8 2 5
;表示属性是否用百分比 0不是 1是
SetCustomItemAbil -1 3 3 0
SetCustomItemAbil -1 4 3 0
SetCustomItemAbil -1 5 3 0
SetCustomItemAbil -1 6 3 0
SetCustomItemAbil -1 7 3 0
SetCustomItemAbil -1 8 3 0

MOVR m200 1 10
MOVR m201 1 10
MOVR m202 1 10
MOVR m205 100 200
MOVR m206 100 200
movr m207 1 5

MOVR N$随机星级 1 3
ChangeItemUpgradeCount -1 = <$STR(N$随机星级)>
SetCustomItemValue -1 3 + <$STR(M200)>
SetCustomItemValue -1 4 + <$STR(M201)>
SetCustomItemValue -1 5 + <$STR(M202)>
SetCustomItemValue -1 6 + <$STR(M205)>
SetCustomItemValue -1 7 + <$STR(M206)>
SetCustomItemValue -1 8 + <$STR(m207)>
UpdateItem -1
ChangeItemNameColor -1 229
break

}
我这脚本感觉也不是太长啊,现在一捡装备就卡顿一两秒,严重的甚至卡顿3秒,如果不捡装备,捡其他物品流畅的一批,打怪跑步什么的都很流畅。QF里的拾取触发里有一个CALL跳转到上面这段脚本,只要把CALL一取消,也就是不要这一段脚本就很流畅,要了这段脚本,再捡东西就卡顿。

哪位大神有没有什么办法?最好是可以直接设置的,哪怕多占点服务器资源都没关系,主要是这脚本我感觉我优化不了啊


引擎版本是20191001 难道没人遇到过这个问题吗?或者升级引擎有没有可能解决呢? SetCustomItemAbil太多了
先绑定。再操作 再解绑
一眼看去 没看到你的绑定装备在那
就是捡起来的时候绑定捡起来的那件装备
QF里拾取触发
[@PickUpItemEX]
#ACT
;绑定捡起来的这个件物品
LinkPickUpItem

#IF
;检测捡起来的这个件物品的名字在不在指定文本中,如果在就CALL走
CHECKTEXTLIST ..\QuestDiary\装备鉴定\新鉴定系统\精良.txt <$PICKDROPITEMNAME>
#ACT
;下面就是跳转到一楼的脚本内容
#CALL [装备鉴定\新鉴定系统\精良鉴定.TXT] @精良鉴定
UpdateItem -1
BREAK 修改自定义装备属性:
SetCustomItemAbil装备位置 属性位置(0~9) 属性类型(0~4) 属性值
一楼的脚本中大量的SetCustomItemAbil -1  就是指的修改捡起来的这件装备

SetCustomItemAbil
减少这个命令试试看

另。用的什么网关?本地试下卡不
这个命令不能减少吧  需要几条属性就得绑定几次  难道可以不绑定直接改数值 你这是每件装备都6条属性吗 别这样子写,拾取鉴定,刷一地装备,走动连续捡取不卡顿为最佳。goto分散开,单线程和多线程哪个快 [@精良鉴定]
{
#if
CheckItemNameColor -1 168
#act
GOTO @绑定自定义属性
GOTO @默认属性为0
GOTO @绑定颜色
GOTO @百分比
[@绑定自定义属性]
#ACT
MOVR N$基础1 3 9
MOVR N$基础2 3 9
MOVR N$基础3 3 9
MOVR N$致命1 10 13
MOVR N$技能1 14 34
MOVR N$技能2 14 34
MOVR N$技能3 14 34
MOVR N$史诗1 36 38
MOVR N$史诗2 36 38
SetCustomItemAbil -1 3 1 <$STR(N$基础1)>
SetCustomItemAbil -1 4 1 <$STR(N$基础2)>
SetCustomItemAbil -1 5 1 <$STR(N$基础3)>
SetCustomItemAbil -1 6 1 6
SetCustomItemAbil -1 7 1 7
SetCustomItemAbil -1 8 1 <$STR(N$致命1)>
[@默认属性为0]
#ACT
SetCustomItemValue -1 3 = 0
SetCustomItemValue -1 4 = 0
SetCustomItemValue -1 5 = 0
SetCustomItemValue -1 6 = 0
SetCustomItemValue -1 7 = 0
SetCustomItemValue -1 8 = 0

[@绑定颜色]
#ACT
;绑定自定义位置颜色
SetCustomItemAbil -1 3 0 250
SetCustomItemAbil -1 4 0 250
SetCustomItemAbil -1 5 0 250  
SetCustomItemAbil -1 6 0 250  
SetCustomItemAbil -1 7 0 250  
SetCustomItemAbil -1 8 0 253
;绑定属性是否在同一行 数字不同则不在同一行
SetCustomItemAbil -1 3 2 0
SetCustomItemAbil -1 4 2 1
SetCustomItemAbil -1 5 2 2
SetCustomItemAbil -1 6 2 3
SetCustomItemAbil -1 7 2 4
SetCustomItemAbil -1 8 2 5
[@百分比]
#ACT
;表示属性是否用百分比 0不是 1是
SetCustomItemAbil -1 3 3 0
SetCustomItemAbil -1 4 3 0
SetCustomItemAbil -1 5 3 0
SetCustomItemAbil -1 6 3 0
SetCustomItemAbil -1 7 3 0
SetCustomItemAbil -1 8 3 0

MOVR m200 1 10
MOVR m201 1 10
MOVR m202 1 10
MOVR m205 100 200
MOVR m206 100 200
movr m207 1 5

MOVR N$随机星级 1 3
ChangeItemUpgradeCount -1 = <$STR(N$随机星级)>
SetCustomItemValue -1 3 + <$STR(M200)>
SetCustomItemValue -1 4 + <$STR(M201)>
SetCustomItemValue -1 5 + <$STR(M202)>
SetCustomItemValue -1 6 + <$STR(M205)>
SetCustomItemValue -1 7 + <$STR(M206)>
SetCustomItemValue -1 8 + <$STR(m207)>
UpdateItem -1
ChangeItemNameColor -1 229
break

}

我改成了这样感觉效果不明显啊,甚至没效果

直接锁定操作,updataitem时发一条封包,一点都不会卡 问题已解决,谢谢楼上的老铁
返回
我要发布
版本互换
代销
链接失效处理