传奇武器升段脚本举例
[@武器升段]
{
#IF
NOT CHECKCUSTOMITEMPROGRESSBAR 1 0
#ACT
BREAK
#IF
CHECKTEXTLIST ..\QuestDiary\读取检测\触发\满段武器.txt <$WEAPON>
#ACT
BREAK
#IF
NOT CheckBagSize 1
#ACT
SendMsg 5 你的包裹已满,【<$WEAPON>】无法获得任何修炼值...
BREAK
#IF
CHECKTEXTLIST ..\QuestDiary\读取检测\触发\低级升段怪物.txt <$KILLMONNAME>
#ACT
SetCustomItemProgressbarValue 1 0 1 + 1
GetCustomItemProgressbarValue 1 0 1 <$STR(N$进度当前)>
GetCustomItemProgressbarValue 1 0 0 <$STR(N$进度最大)>
SendMsg 6 【<$WEAPON>】获得修炼,修炼值提升了1点...修炼进度:<$STR(N$进度当前)>/<$STR(N$进度最大)>
#IF
CHECKTEXTLIST ..\QuestDiary\读取检测\触发\中级升段怪物.txt <$KILLMONNAME>
#ACT
SetCustomItemProgressbarValue 1 0 1 + 5
GetCustomItemProgressbarValue 1 0 1 <$STR(N$进度当前)>
GetCustomItemProgressbarValue 1 0 0 <$STR(N$进度最大)>
SendMsg 6 【<$WEAPON>】获得修炼,修炼值提升了5点...修炼进度:<$STR(N$进度当前)>/<$STR(N$进度最大)>
#IF
CHECKTEXTLIST ..\QuestDiary\读取检测\触发\高级升段怪物.txt <$KILLMONNAME>
#ACT
SetCustomItemProgressbarValue 1 0 1 + 10
GetCustomItemProgressbarValue 1 0 1 <$STR(N$进度当前)>
GetCustomItemProgressbarValue 1 0 0 <$STR(N$进度最大)>
SendMsg 6 【<$WEAPON>】获得修炼,修炼值提升了10点...修炼进度:<$STR(N$进度当前)>/<$STR(N$进度最大)>
#IF
CHECKTEXTLIST ..\QuestDiary\读取检测\触发\特级升段怪物.txt <$KILLMONNAME>
#ACT
SetCustomItemProgressbarValue 1 0 1 + 100
GetCustomItemProgressbarValue 1 0 1 <$STR(N$进度当前)>
GetCustomItemProgressbarValue 1 0 0 <$STR(N$进度最大)>
SendMsg 6 【<$WEAPON>】获得修炼,修炼值提升了100点...修炼进度:<$STR(N$进度当前)>/<$STR(N$进度最大)>
#IF
CHECKLEVELEX > 0
#ACT
MOV S$升段武器1 <$WEAPON>
MOV S$升段武器2 <$WEAPON>
DEC S$升段武器1 9 11
DEC S$升段武器2 1 8
GetCustomItemProgressbarValue 1 0 0 N$进度条最大
GetCustomItemProgressbarValue 1 0 1 N$进度条当前
#IF
Small N$进度条当前 <$STR(N$进度条最大)>
#ACT
BREAK
#IF
EQUAL S$升段武器2 1段
#ACT
TAKEW <$WEAPON> 1
GIVE <$STR(S$升段武器1)>2段 1
LINKGIVEITEM
ChangeItemUpgradeCount -1 + 1
SetCustomItemProgressbar -1 0 0 1
;;SetCustomItemProgressbar -1 0 1 修炼:
SetCustomItemProgressbar -1 0 2 70
SetCustomItemProgressbar -1 0 3 1
SetCustomItemProgressbar -1 0 4 0
SetCustomItemProgressbarValue -1 0 0 = 3000
SetCustomItemProgressbarValue -1 0 1 = 411
Updateitem -1
clearLinkItem
TakeOnItem <$STR(S$升段武器1)>2段 1
SendMsg 5 <$STR(S$升段武器1)> 修炼度已满,成功升段...
BREAK
#IF
EQUAL S$升段武器2 2段
#ACT
TAKEW <$WEAPON> 1
GIVE <$STR(S$升段武器1)>3段 1
LINKGIVEITEM
ChangeItemUpgradeCount -1 + 1
SetCustomItemProgressbar -1 0 0 1
SetCustomItemProgressbar -1 0 1 [段位已满]强化到神激活神佑属性
SetCustomItemProgressbar -1 0 2 70
SetCustomItemProgressbar -1 0 3 0
SetCustomItemProgressbar -1 0 4 0
GETRANDOMLINETEXT ..\QuestDiary\读取检测\触发\孔数.txt <$STR(N$孔数)>
SETFLUTECOUNT -1 <$STR(N$孔数)>
Updateitem -1
clearLinkItem
TakeOnItem <$STR(S$升段武器1)>3段 1
SendMsg 5 <$STR(S$升段武器1)> 修炼度已满,成功升段...
SendNewLineMsg 0 251 0 12 250 10 1 强大的{%s|249:0:1}经历艰苦卓绝的苦修,成功将{<$STR(S$升段武器1)>|253:0:1}提升为{3段|253:0:1}!天下第一,舍我其谁!霸气外泄,一泻千里……
BREAK
}
|
|
|