TA的每日心情 | 开心 2022-1-14 22:35 |
---|
签到天数: 104 天 连续签到: 1 天 [LV.6]500Pi传奇素材网-至尊星耀
|
<
注意:用户在发帖后、可在论坛素材QQ群:571604724 内转发此帖链接、并在技术回复后采纳相应答案!
请不要私下转账,任何私下交易都存在一定风险,私下交易被骗本站概不负责(传奇水深骗子多,管理好腰包)
============================= 问题说明 ==============================
用户联系方式(QQ):
============================= 用户需求 ==============================请教这个强化脚本是说的啥子啊?
怎么给他更改成总共只能强化3次·
每次只能一点·或者2点属性
O(∩_∩)O谢谢
感激不尽!
[@main]
#IF
#ACT
OPENMERCHANTBIGDLG 12 26 0 0 0 0 1 427 22 1
Mov N$强化成功率 0
goto @说话
OpenHumDlg 7 600 100
OpenHumDlg 7 600 100
[@说话]
#SAY
<text:装备强化说明::115:60:{AUTOCOLOR=100}>\
<text:对装备进行强化可以升级装备属性,使用幸运石:115:59:{AUTOCOLOR=250}>\
<text:可以增加成功机率。:115:59:{AUTOCOLOR=250}>\
<text:成功机率::218:143:{AUTOCOLOR=249}>\
<text:<$STR(N$强化成功率)>%:278:127:{AUTOCOLOR=250}>\
<text:[强化]:235:130:/@强化>\
<text:特殊说明::115:145:{AUTOCOLOR=100}>\
<text:每次进行强化需要花费10W金币,不同级别的“幸运石”:115:145:{AUTOCOLOR=250}>\
<text:可以提高不同的成功率。装备强化失败可能使装备不升:115:145:{AUTOCOLOR=250}>\
<text:反降,但加入“保级符”可以避免这种事故。:115:145:{AUTOCOLOR=250}>\
<ITEMBOX:1:12:27:200:160:76:76:5,6,10,11,15,19,20,21,22,24,26,62,64:254#请放入^251#武器、衣服、头盔、项链^251#戒指、手镯、鞋子、腰带>\
<ITEMBOX:2:12:28:250:160:76:76:200:254#请放入^251#幸运石>\
<ITEMBOX:3:12:29:300:160:76:76:201:254#请放入^251#保级符>\
[@强化]
#IF
Equal <$BOXITEM[1].NAME>
#ACT
SendMsg 6 〖提示〗请先放入装备!
Break
#IF
CheckUpgradeCount boxitem1 > 5
#ACT
SendMsg 6 〖提示〗你的装备已经不能在升级了!
Break
#IF
not checkgold 100000
#ACT
SendMsg 6 〖提示〗你的金币不足!
Break
#IF
#ACT
goto @检测成功率
Movr N$强化随机成功率 0 101
take 金币 100000
#or
SMALL N$强化随机成功率 <$STR(N$强化成功率)>
Equal N$强化随机成功率 <$STR(N$强化成功率)>
#ACT
goto @增加强化属性
DelBoxItem 2
DelBoxItem 3
SendMsg 6 〖提示〗装备强化成功,属性增加!
goto @检测成功率
goto @说话
#ELSEACT
goto @检测失败状况
goto @检测成功率
goto @说话
[@检测失败状况]
#IF
not Equal <$BOXITEM[3].NAME>
#ACT
SendMsg 6 〖提示〗装备强化失败,但保级符发挥作业装备未掉级!
DelBoxItem 2
DelBoxItem 3
Break
#IF
Random 4
#ACT
SendMsg 6 〖提示〗装备强化失败!
DelBoxItem 2
Break
#IF
CheckUpgradeCount boxitem1 > 0
#ACT
goto @减少强化属性
SendMsg 6 〖提示〗装备强化失败,属性减少!
DelBoxItem 2
Break
#IF
#ACT
SendMsg 6 〖提示〗装备强化失败!
DelBoxItem 2
Break
[@减少强化属性]
#or
Equal <$BOXITEM[1].StdMode> 5
Equal <$BOXITEM[1].StdMode> 6
#ACT
SetUpgradeItem 1
ChangeItemAddValue boxitem1 0 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 2 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemUpgradeCount boxitem1 - 1
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM[1].StdMode> 10
Equal <$BOXITEM[1].StdMode> 11
Equal <$BOXITEM[1].StdMode> 15
#ACT
SetUpgradeItem 1
ChangeItemAddValue boxitem1 0 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemUpgradeCount boxitem1 - 1
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM[1].StdMode> 19
Equal <$BOXITEM[1].StdMode> 20
Equal <$BOXITEM[1].StdMode> 21
#ACT
SetUpgradeItem 1
ChangeItemAddValue boxitem1 2 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemUpgradeCount boxitem1 - 1
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM[1].StdMode> 22
Equal <$BOXITEM[1].StdMode> 26
Equal <$BOXITEM[1].StdMode> 62
Equal <$BOXITEM[1].StdMode> 64
#ACT
SetUpgradeItem 1
ChangeItemAddValue boxitem1 0 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 2 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemUpgradeCount boxitem1 - 1
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
;Equal <$BOXITEM[1].StdMode> 23
Equal <$BOXITEM[1].StdMode> 24
#ACT
SetUpgradeItem 1
ChangeItemAddValue boxitem1 2 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 - <$BOXITEM[1].UPGRADECOUNT>
ChangeItemUpgradeCount boxitem1 - 1
UpdateItem boxitem1
;ReturnBoxItem 1
Break
[@增加强化属性]
#IF
CheckUpgradeCount boxitem1 > 5
#ACT
SendMsg 6 〖提示〗你的装备已经不能在升级了!
Break
#or
Equal <$BOXITEM[1].StdMode> 1
Equal <$BOXITEM[1].StdMode> 2
#ACT
SetUpgradeItem 1
ChangeItemUpgradeCount boxitem1 + 1
ChangeItemAddValue boxitem1 0 + <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 + <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 2 + <$BOXITEM[1].UPGRADECOUNT>
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM[1].StdMode> 3
Equal <$BOXITEM[1].StdMode> 4
Equal <$BOXITEM[1].StdMode> 5
#ACT
SetUpgradeItem 1
ChangeItemUpgradeCount boxitem1 + 1
ChangeItemAddValue boxitem1 0 + <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 + <$BOXITEM[1].UPGRADECOUNT>
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM[1].StdMode> 4
Equal <$BOXITEM[1].StdMode> 5
Equal <$BOXITEM[1].StdMode> 6
#ACT
SetUpgradeItem 1
ChangeItemUpgradeCount boxitem1 + 1
ChangeItemAddValue boxitem1 2 + <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 + <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 + <$BOXITEM[1].UPGRADECOUNT>
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM[1].StdMode> 5
Equal <$BOXITEM[1].StdMode> 6
Equal <$BOXITEM[1].StdMode> 7
Equal <$BOXITEM[1].StdMode> 8
#ACT
SetUpgradeItem 1
ChangeItemUpgradeCount boxitem1 + 1
ChangeItemAddValue boxitem1 0 + <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 + <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 2 + <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 + <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 + <$BOXITEM[1].UPGRADECOUNT>
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
;Equal <$BOXITEM[1].StdMode> 5
Equal <$BOXITEM[1].StdMode> 5
#ACT
SetUpgradeItem 1
ChangeItemUpgradeCount boxitem1 + 1
ChangeItemAddValue boxitem1 2 + <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 + <$BOXITEM[1].UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 + <$BOXITEM[1].UPGRADECOUNT>
UpdateItem boxitem1
;ReturnBoxItem 1
Break
[@检测成功率]
#IF
Equal <$BOXITEM[1].NAME>
#ACT
Mov N$强化成功率 0
Break
#IF
#ACT
Mov N$强化成功率 15
GetDBItemFieldValue <$BOXITEM[1].NAME> NeedLevel N$强化装备品阶
;Dec N$强化成功率 <$STR(N$强化装备品阶)>
#IF
not Equal <$BOXITEM[2].NAME>
#ACT
GetDBItemFieldValue <$BOXITEM[2].NAME> Price N$强化装备成功率
Inc N$强化成功率 <$STR(N$强化装备成功率)>
[@ItemIntoBox1]
#IF
CheckUpgradeCount boxitem1 > 8
;Equal <$BOXITEM[1].UPGRADECOUNT> > 8
#ACT
UNALLOWITEMINTOBOX
Break
#IF
#ACT
goto @检测成功率
goto @说话
[@ItemIntoBox2]
#ACT
goto @检测成功率
goto @说话
[@ItemIntoBox3]
#ACT
;goto @检测成功率
;goto @说话
[@ItemOutBox1]
#ACT
Mov N$强化成功率 0
goto @说话
[@ItemOutBox2]
#IF
not Equal <$BOXITEM[1].NAME>
#ACT
Mov N$强化成功率 15
goto @说话
#ELSEACT
Mov N$强化成功率 0
goto @说话
[@ItemOutBox3]
#ACT
;goto @说话
|
|