QF文件脚本如下:
;------------------拾取鉴定--------------------------
[@PickUpItemEX]
#if
#ACT
;对拾取的物品进行绑定
LINKPICKUPITEM
;获取物品最原始的字段
;获取stdmode
GetDBItemFieldValue <$PICKDROPITEMNAME> stdmode N1
;获取needlevel
GetDBItemFieldValue <$PICKDROPITEMNAME> needlevel N2
;获取color
GetDBItemFieldValue <$PICKDROPITEMNAME> color N3
;------------------30级以下的鉴定--------------------
#if
SMALL N2 30
LARGE N1 4
SMALL N1 7
#act
#CALL [\教主制作\拾取鉴定\30级下武器鉴定.txt] @拾取武器鉴定30以下
break
#if
SMALL N2 30
LARGE N1 9
SMALL N1 12
#act
#CALL [\教主制作\拾取鉴定\30级下衣服鉴定.txt] @拾取衣服鉴定30以下
Break
;==根据QF文件脚本里设置的路径“\教主制作\拾取鉴定\30级下武器鉴定.txt”文件内脚本:
[@拾取武器鉴定30以下]
{
#if
RANDOM 20
CheckItemNameColor -1 255
#act
goto @红色武器
break
#if
RANDOM 10
CheckItemNameColor -1 255
#act
goto @蓝色武器
break
#if
RANDOM 5
CheckItemNameColor -1 255
#act
goto @绿色武器
break
#if
CheckItemNameColor -1 255
RANDOM 1
#act
goto @灰色武器
break
[@灰色武器]
#act
ChangeItemNameColor -1 12
UpdateItem -1
break
[@绿色武器]
#act
MOVR S1 3 6
MOVR S2 3 6
MOVR S3 3 6
MOVR S10 4
MOVR S11 4
MOVR S12 4
SetCustomItemText -1 [鉴定属性]
SetCustomItemTextColor -1 251
SetCustomItemAbil -1 0 1 <$STR(S1)>
SetCustomItemAbil -1 1 1 <$STR(S2)>
SetCustomItemAbil -1 2 1 <$STR(S3)>
SetCustomItemAbil -1 0 2 0
SetCustomItemAbil -1 1 2 1
SetCustomItemAbil -1 2 2 2
SetCustomItemAbil -1 0 0 154
SetCustomItemAbil -1 1 0 154
SetCustomItemAbil -1 2 0 154
SetCustomItemAbil -1 0 3 0
SetCustomItemAbil -1 1 3 0
SetCustomItemAbil -1 2 3 0
SetCustomItemValue -1 0 + <$STR(S10)>
SetCustomItemValue -1 1 + <$STR(S11)>
SetCustomItemValue -1 2 + <$STR(S12)>
ChangeItemNameColor -1 250
UpdateItem -1
break
[@蓝色武器]
#act
MOVR S1 3 6
MOVR S2 3 6
MOVR S3 3 6
MOVR S10 6
MOVR S11 6
MOVR S12 6
SetCustomItemText -1 [鉴定属性]
SetCustomItemTextColor -1 251
SetCustomItemAbil -1 0 1 <$STR(S1)>
SetCustomItemAbil -1 1 1 <$STR(S2)>
SetCustomItemAbil -1 2 1 <$STR(S3)>
SetCustomItemAbil -1 0 2 0
SetCustomItemAbil -1 1 2 1
SetCustomItemAbil -1 2 2 2
SetCustomItemAbil -1 0 0 154
SetCustomItemAbil -1 1 0 154
SetCustomItemAbil -1 2 0 154
SetCustomItemAbil -1 0 3 0
SetCustomItemAbil -1 1 3 0
SetCustomItemAbil -1 2 3 0
SetCustomItemValue -1 0 + <$STR(S10)>
SetCustomItemValue -1 1 + <$STR(S11)>
SetCustomItemValue -1 2 + <$STR(S12)>
ChangeItemNameColor -1 252
UpdateItem -1
break
[@红色武器]
#act
MOVR S1 3 6
MOVR S2 3 6
MOVR S3 3 6
MOVR S10 8
MOVR S11 8
MOVR S12 8
SetCustomItemText -1 [鉴定属性]
SetCustomItemTextColor -1 251
SetCustomItemAbil -1 0 1 <$STR(S1)>
SetCustomItemAbil -1 1 1 <$STR(S2)>
SetCustomItemAbil -1 2 1 <$STR(S3)>
SetCustomItemAbil -1 0 2 0
SetCustomItemAbil -1 1 2 1
SetCustomItemAbil -1 2 2 2
SetCustomItemAbil -1 0 0 154
SetCustomItemAbil -1 1 0 154
SetCustomItemAbil -1 2 0 154
SetCustomItemAbil -1 0 3 0
SetCustomItemAbil -1 1 3 0
SetCustomItemAbil -1 2 3 0
SetCustomItemValue -1 0 + <$STR(S10)>
SetCustomItemValue -1 1 + <$STR(S11)>
SetCustomItemValue -1 2 + <$STR(S12)>
ChangeItemNameColor -1 249
UpdateItem -1
break
}
;==根据QF文件脚本里设置的路径“\教主制作\拾取鉴定\30级下衣服鉴定.txt”文件内脚本:
[@拾取衣服鉴定30以下]
{
#if
RANDOM 20
CheckItemNameColor -1 255
#act
goto @红色衣服
break
#if
RANDOM 10
CheckItemNameColor -1 255
#act
goto @蓝色衣服
break
#if
RANDOM 5
CheckItemNameColor -1 255
#act
goto @绿色衣服
break
#if
CheckItemNameColor -1 255
RANDOM 1
#act
goto @灰色衣服
break
[@灰色衣服]
#act
ChangeItemNameColor -1 12
UpdateItem -1
break
[@绿色衣服]
#act
MOVR S1 1 8
MOVR S2 1 8
MOVR S3 1 8
MOVR S4 1 8
MOVR S5 1 8
MOVR S6 1 8
MOVR S7 1 8
MOVR S10 2
MOVR S11 2
MOVR S12 2
MOVR S13 2
MOVR S14 2
MOVR S15 2
MOVR S16 2
SetCustomItemText -1 [鉴定属性]
SetCustomItemTextColor -1 251
SetCustomItemAbil -1 0 1 <$STR(S1)>
SetCustomItemAbil -1 1 1 <$STR(S2)>
SetCustomItemAbil -1 2 1 <$STR(S3)>
SetCustomItemAbil -1 3 1 <$STR(S4)>
SetCustomItemAbil -1 4 1 <$STR(S5)>
SetCustomItemAbil -1 5 1 <$STR(S6)>
SetCustomItemAbil -1 6 1 <$STR(S7)>
SetCustomItemAbil -1 0 2 0
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 0 0 154
SetCustomItemAbil -1 1 0 154
SetCustomItemAbil -1 2 0 154
SetCustomItemAbil -1 3 0 154
SetCustomItemAbil -1 4 0 154
SetCustomItemAbil -1 5 0 154
SetCustomItemAbil -1 6 0 154
SetCustomItemAbil -1 0 3 0
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
SetCustomItemValue -1 0 + <$STR(S10)>
SetCustomItemValue -1 1 + <$STR(S11)>
SetCustomItemValue -1 2 + <$STR(S12)>
SetCustomItemValue -1 3 + <$STR(S13)>
SetCustomItemValue -1 4 + <$STR(S14)>
SetCustomItemValue -1 5 + <$STR(S15)>
SetCustomItemValue -1 6 + <$STR(S16)>
ChangeItemNameColor -1 250
UpdateItem -1
break
[@蓝色衣服]
#act
MOVR S1 1 8
MOVR S2 1 8
MOVR S3 1 8
MOVR S4 1 8
MOVR S5 1 8
MOVR S6 1 8
MOVR S7 1 8
MOVR S10 3
MOVR S11 3
MOVR S12 3
MOVR S13 3
MOVR S14 3
MOVR S15 3
MOVR S16 3
SetCustomItemText -1 [鉴定属性]
SetCustomItemTextColor -1 251
SetCustomItemAbil -1 0 1 <$STR(S1)>
SetCustomItemAbil -1 1 1 <$STR(S2)>
SetCustomItemAbil -1 2 1 <$STR(S3)>
SetCustomItemAbil -1 3 1 <$STR(S4)>
SetCustomItemAbil -1 4 1 <$STR(S5)>
SetCustomItemAbil -1 5 1 <$STR(S6)>
SetCustomItemAbil -1 6 1 <$STR(S7)>
SetCustomItemAbil -1 0 2 0
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 0 0 154
SetCustomItemAbil -1 1 0 154
SetCustomItemAbil -1 2 0 154
SetCustomItemAbil -1 3 0 154
SetCustomItemAbil -1 4 0 154
SetCustomItemAbil -1 5 0 154
SetCustomItemAbil -1 6 0 154
SetCustomItemAbil -1 0 3 0
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
SetCustomItemValue -1 0 + <$STR(S10)>
SetCustomItemValue -1 1 + <$STR(S11)>
SetCustomItemValue -1 2 + <$STR(S12)>
SetCustomItemValue -1 3 + <$STR(S13)>
SetCustomItemValue -1 4 + <$STR(S14)>
SetCustomItemValue -1 5 + <$STR(S15)>
SetCustomItemValue -1 6 + <$STR(S16)>
ChangeItemNameColor -1 252
UpdateItem -1
break
[@红色衣服]
#act
MOVR S1 1 8
MOVR S2 1 8
MOVR S3 1 8
MOVR S4 1 8
MOVR S5 1 8
MOVR S6 1 8
MOVR S7 1 8
MOVR S10 4
MOVR S11 4
MOVR S12 4
MOVR S13 4
MOVR S14 4
MOVR S15 4
MOVR S16 4
SetCustomItemText -1 [鉴定属性]
SetCustomItemTextColor -1 251
SetCustomItemAbil -1 0 1 <$STR(S1)>
SetCustomItemAbil -1 1 1 <$STR(S2)>
SetCustomItemAbil -1 2 1 <$STR(S3)>
SetCustomItemAbil -1 3 1 <$STR(S4)>
SetCustomItemAbil -1 4 1 <$STR(S5)>
SetCustomItemAbil -1 5 1 <$STR(S6)>
SetCustomItemAbil -1 6 1 <$STR(S7)>
SetCustomItemAbil -1 0 2 0
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 0 0 154
SetCustomItemAbil -1 1 0 154
SetCustomItemAbil -1 2 0 154
SetCustomItemAbil -1 3 0 154
SetCustomItemAbil -1 4 0 154
SetCustomItemAbil -1 5 0 154
SetCustomItemAbil -1 6 0 154
SetCustomItemAbil -1 0 3 0
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
SetCustomItemValue -1 0 + <$STR(S10)>
SetCustomItemValue -1 1 + <$STR(S11)>
SetCustomItemValue -1 2 + <$STR(S12)>
SetCustomItemValue -1 3 + <$STR(S13)>
SetCustomItemValue -1 4 + <$STR(S14)>
SetCustomItemValue -1 5 + <$STR(S15)>
SetCustomItemValue -1 6 + <$STR(S16)>
ChangeItemNameColor -1 249
UpdateItem -1
break
}
|