我这个拾取鉴定脚本 会卡顿吗?

admin 2023/04/19 08:21:56 166
[@鉴定]
{
#if
CheckItemNameColor -1 255
#act
#elseact
break

#if
;random 70
;橙色概率
#act
SETCUSTOMITEMPROGRESSBAR -1 1 0 1
;开启第一条进度条
SETCUSTOMITEMPROGRESSBAR -1 1 1 鉴定品质:「紫色」
;第一条进度条文字
SETCUSTOMITEMPROGRESSBAR -1 1 2 241
;第一条进度条颜色

GOTO @sxfz

[@sxfz]
#IF
#ACT
movr p1 1 13
GOTO  @f2

[@f2]
#ACT
movr p2 1 13

#IF
NOT EQUAL <$STR(p2)> <$STR(p1)>
#ACT
GOTO @f3
#elseact
GOTO @f2

[@f3]
#ACT
movr p3 1 13

#IF
NOT EQUAL <$STR(p3)> <$STR(p1)>
NOT EQUAL <$STR(p3)> <$STR(p2)>
#ACT
GOTO @f4
#elseact
GOTO @f3



[@f4]
#ACT
movr p4 1 13
#IF
NOT EQUAL <$STR(p4)> <$STR(p1)>
NOT EQUAL <$STR(p4)> <$STR(p2)>
NOT EQUAL <$STR(p4)> <$STR(p3)>
#ACT
GOTO @f5
#elseact
GOTO @f4


[@f5]
#ACT
movr p5 1 13
#IF
NOT EQUAL <$STR(p5)> <$STR(p1)>
NOT EQUAL <$STR(p5)> <$STR(p2)>
NOT EQUAL <$STR(p5)> <$STR(p3)>
NOT EQUAL <$STR(p5)> <$STR(p4)>
#ACT
GOTO @f6
#elseact
GOTO @f5

[@f6]
#ACT
movr p6 1 13
#IF
NOT EQUAL <$STR(p6)> <$STR(p1)>
NOT EQUAL <$STR(p6)> <$STR(p2)>
NOT EQUAL <$STR(p6)> <$STR(p3)>
NOT EQUAL <$STR(p6)> <$STR(p4)>
NOT EQUAL <$STR(p6)> <$STR(p5)>
#ACT
GOTO @f7
#elseact
GOTO @f6

[@f7]
#ACT
movr p7 1 13
#IF
NOT EQUAL <$STR(p6)> <$STR(p1)>
NOT EQUAL <$STR(p6)> <$STR(p2)>
NOT EQUAL <$STR(p6)> <$STR(p3)>
NOT EQUAL <$STR(p6)> <$STR(p4)>
NOT EQUAL <$STR(p6)> <$STR(p5)>
#ACT
GOTO @jdfw
#elseact
GOTO @f7


[@jdfw]
#or
equal p1 11
equal p1 12
equal p1 7
equal p1 6
#ACT
movr N$范围1 10 100
#elseact
movr N$范围1 1 10

#or
equal p2 12
equal p2 11
equal p2 7
equal p2 6
#ACT
movr N$范围2 10 100
#elseact
movr N$范围2 1 10

#or
equal p3 11
equal p3 12
equal p3 7
equal p3 6
#ACT
movr N$范围3 10 100
#elseact
movr N$范围3 1 10

#or
equal p4 11
equal p4 12
equal p4 7
equal p4 6
#ACT
movr N$范围4 10 100
#elseact
movr N$范围4 1 10

#or
equal p5 11
equal p5 12
equal p5 7
equal p5 6
#ACT
movr N$范围5 10 100
#elseact
movr N$范围5 1 10

#or
equal p6 11
equal p6 12
equal p6 7
equal p6 6
#ACT
movr N$范围6 10 100
#elseact
movr N$范围6 1 10

#or
equal p7 11
equal p7 12
equal p7 7
equal p7 6
#ACT
movr N$范围7 10 100
#elseact
movr N$范围7 1 10

#if
#ACT
GOTO @ksjd

[@ksjd]
#act

SetCustomItemAbil -1 1 0 249
SetCustomItemAbil -1 2 0 249
SetCustomItemAbil -1 3 0 249
SetCustomItemAbil -1 4 0 249
SetCustomItemAbil -1 5 0 249
SetCustomItemAbil -1 6 0 249
SetCustomItemAbil -1 7 0 249
;========以上是颜色


SetCustomItemAbil -1 1 1 <$STR(p1)>
SetCustomItemAbil -1 2 1 <$STR(p2)>
SetCustomItemAbil -1 3 1 <$STR(p3)>
SetCustomItemAbil -1 4 1 <$STR(p4)>
SetCustomItemAbil -1 5 1 <$STR(p5)>
SetCustomItemAbil -1 6 1 <$STR(p6)>
SetCustomItemAbil -1 7 1 <$STR(p7)>
;========以上是绑定种类

SetCustomItemAbil -1 1 2 1
SetCustomItemAbil -1 2 2 2
SetCustomItemAbil -1 3 2 3
SetCustomItemAbil -1 4 2 4
SetCustomItemAbil -1 5 2 5
SetCustomItemAbil -1 6 2 6
SetCustomItemAbil -1 7 2 7
;========以上是属性位置

SetCustomItemAbil -1 1 3 0
SetCustomItemAbil -1 2 3 0
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
;========以上是是否百分比设置

SetCustomItemValue -1 1 = <$STR(p1)>
SetCustomItemValue -1 2 = <$STR(p2)>
SetCustomItemValue -1 3 = <$STR(p3)>
SetCustomItemValue -1 4 = <$STR(p4)>
SetCustomItemValue -1 5 = <$STR(p5)>
SetCustomItemValue -1 6 = <$STR(p6)>
SetCustomItemValue -1 7 = <$STR(p7)>
;========以上是最后鉴定属性的数值

changeitemnamecolor -1 241
}

再怎么简单都会卡个0.5秒左右。。。测试过好多脚本了,都卡
返回
我要发布
版本互换
代销
链接失效处理