已绕晕,辛苦各位大神了
[@main]
#ACT
OPENMERCHANTBIGDLG 22 16 1 4 0 0 0 0 0 1
#Say
<ITEMBOX:0:22:2:100:87:W:H:*:请放入要洗练的装备><ImgEx:22:17:18:17:200:90/@洗练> \
<text:第1条:212:135>\
<text:第2条:212:138>\
<text:第3条:212:139>\
<text:第4条:212:140>\
<text:第5条:212:142>\
<text:第6条:212:144>\
[@洗练]
#IF
checkitem 洗练神石 5
checkgold 200000
#ACT
take 洗练神石 5
take 金币 200000
movr N$条数 100
goto @条数
#elseact
sendmsg 6 材料不足!
BREAK
[@条数]
#IF
LARGE N$条数 97
#ACT
mov N$循环 0
mov N$循环次数 7
goto @上属性
#IF
LARGE N$条数 80
#ACT
mov N$循环 0
mov N$循环次数 6
goto @上属性
#IF
LARGE N$条数 70
#ACT
mov N$循环 0
mov N$循环次数 5
goto @上属性
#IF
LARGE N$条数 50
#ACT
mov N$循环 0
mov N$循环次数 4
goto @上属性
#IF
LARGE N$条数 30
#ACT
mov N$循环 0
mov N$循环次数 3
goto @上属性
#elseact
mov N$循环 0
mov N$循环次数 1
goto @上属性
[@上属性]
#IF
SMALL N$循环 N$循环次数
#ACT
Loopgoto @运算 1
SetCustomItemAbil 0 N$循环 1 N$属性
SetCustomItemValue 0 N$循环 = N$数值
SetCustomItemAbil 0 N$循环 3 N$是否百分比
SetCustomItemAbil 0 N$循环 4 9
Inc N$循环 1
goto 上属性
#elseact
goto @结束
[@结束]
#ACT
GetCustomItemAbil 0 0 1 <$STR(S1)>
GetCustomItemAbil 0 1 1 <$STR(S2)>
GetCustomItemAbil 0 2 1 <$STR(S3)>
GetCustomItemAbil 0 3 1 <$STR(S4)>
GetCustomItemAbil 0 4 1 <$STR(S5)>
GetCustomItemAbil 0 5 1 <$STR(S6)>
#Say
<ITEMBOX:0:22:2:100:87:W:H:*:请放入要洗练的装备><ImgEx:22:17:18:17:200:90/@洗练> \
<text:<$STR(S1)>:212:135>\
<text:<$STR(S2)>:212:138>\
<text:<$STR(S3)>:212:139>\
<text:<$STR(S4)>:212:140>\
<text:<$STR(S5)>:212:142>\
<text:<$STR(S6)>:212:144>\
[@运算]
#ACT
GetListString ..\QuestDiary\洗练系统\属性.txt 0 N$属性 N$是否百分比
#IF
EQUAL N$是否百分比 1
#ACT
movr N$数值 5
#elseact
movr N$数值 50
我虽然看不懂,但是感觉不对
。。。。。。。。。。。
没必要搞这么复杂
;颜色控制
SetCustomItemAbil -1 1 0 161
SetCustomItemAbil -1 2 0 161
SetCustomItemAbil -1 3 0 222
SetCustomItemAbil -1 4 0 222
SetCustomItemAbil -1 5 0 168
SetCustomItemAbil -1 6 0 168
SetCustomItemAbil -1 7 0 244
SetCustomItemAbil -1 8 0 244
SetCustomItemAbil -1 9 0 244
SetCustomItemAbil -1 10 0 241
SetCustomItemAbil -1 11 0 253
SetCustomItemAbil -1 12 0 241
SetCustomItemAbil -1 13 0 222
SetCustomItemAbil -1 14 0 70
;属性位置
SetCustomItemAbil -1 1 1 6
SetCustomItemAbil -1 2 1 30
SetCustomItemAbil -1 3 1 10
SetCustomItemAbil -1 4 1 24
SetCustomItemAbil -1 5 1 35
SetCustomItemAbil -1 6 1 32
SetCustomItemAbil -1 7 1 36
SetCustomItemAbil -1 8 1 27
SetCustomItemAbil -1 9 1 25
SetCustomItemAbil -1 10 1 41
SetCustomItemAbil -1 11 1 42
SetCustomItemAbil -1 12 1 41
SetCustomItemAbil -1 13 1 42
SetCustomItemAbil -1 14 1 42
;显示属性位置在哪行
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 8 2 8
SetCustomItemAbil -1 9 2 9
SetCustomItemAbil -1 10 2 10
SetCustomItemAbil -1 11 2 11
SetCustomItemAbil -1 12 2 12
SetCustomItemAbil -1 13 2 13
SetCustomItemAbil -1 14 2 14
;百分比
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 1
SetCustomItemAbil -1 8 3 0
SetCustomItemAbil -1 9 3 1
SetCustomItemAbil -1 10 3 0
SetCustomItemAbil -1 11 3 0
SetCustomItemAbil -1 12 3 0
SetCustomItemAbil -1 13 3 0
SetCustomItemAbil -1 14 3 0
SetCustomItemValue -1 1 = 1500
SetCustomItemValue -1 2 = 58
SetCustomItemValue -1 3 = 12
SetCustomItemValue -1 4 = 128
SetCustomItemValue -1 5 = 177
SetCustomItemValue -1 6 = 324
SetCustomItemValue -1 7 = 5
SetCustomItemValue -1 8 = 66
SetCustomItemValue -1 9 = 8
SetCustomItemValue -1 10 = 10
SetCustomItemValue -1 11 = 1
SetCustomItemValue -1 12 = 10
SetCustomItemValue -1 13 = 2
SetCustomItemValue -1 14 = 3
SendMsg 0 ぐ恭喜玩家[<$Username>]在装备鉴定处,成功鉴定出[至臻]级属性!!! 253 233
UpdateItem boxitem0
BREAK
补充内容 (2020-11-9 11:59):
百分比那 为0的话,不是显示百分比 。为1是显示百分比 最后那一列是鉴定值,用变量代替那些数字
按我这个格式写 思路就清晰了
感谢回复 解决啦。。
写脚本,要用最简洁有效的方式,你这看的头晕