金币悬赏-求教~怎么做啊!!
注意:用户在发帖后、可在论坛素材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.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.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.StdMode> 5
Equal <$BOXITEM.StdMode> 6
#ACT
SetUpgradeItem 1
ChangeItemAddValue boxitem1 0 - <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 - <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 2 - <$BOXITEM.UPGRADECOUNT>
ChangeItemUpgradeCount boxitem1 - 1
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM.StdMode> 10
Equal <$BOXITEM.StdMode> 11
Equal <$BOXITEM.StdMode> 15
#ACT
SetUpgradeItem 1
ChangeItemAddValue boxitem1 0 - <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 - <$BOXITEM.UPGRADECOUNT>
ChangeItemUpgradeCount boxitem1 - 1
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM.StdMode> 19
Equal <$BOXITEM.StdMode> 20
Equal <$BOXITEM.StdMode> 21
#ACT
SetUpgradeItem 1
ChangeItemAddValue boxitem1 2 - <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 - <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 - <$BOXITEM.UPGRADECOUNT>
ChangeItemUpgradeCount boxitem1 - 1
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM.StdMode> 22
Equal <$BOXITEM.StdMode> 26
Equal <$BOXITEM.StdMode> 62
Equal <$BOXITEM.StdMode> 64
#ACT
SetUpgradeItem 1
ChangeItemAddValue boxitem1 0 - <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 - <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 2 - <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 - <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 - <$BOXITEM.UPGRADECOUNT>
ChangeItemUpgradeCount boxitem1 - 1
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
;Equal <$BOXITEM.StdMode> 23
Equal <$BOXITEM.StdMode> 24
#ACT
SetUpgradeItem 1
ChangeItemAddValue boxitem1 2 - <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 - <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 - <$BOXITEM.UPGRADECOUNT>
ChangeItemUpgradeCount boxitem1 - 1
UpdateItem boxitem1
;ReturnBoxItem 1
Break
[@增加强化属性]
#IF
CheckUpgradeCount boxitem1 > 5
#ACT
SendMsg 6 〖提示〗你的装备已经不能在升级了!
Break
#or
Equal <$BOXITEM.StdMode> 1
Equal <$BOXITEM.StdMode> 2
#ACT
SetUpgradeItem 1
ChangeItemUpgradeCount boxitem1 + 1
ChangeItemAddValue boxitem1 0 + <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 + <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 2 + <$BOXITEM.UPGRADECOUNT>
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM.StdMode> 3
Equal <$BOXITEM.StdMode> 4
Equal <$BOXITEM.StdMode> 5
#ACT
SetUpgradeItem 1
ChangeItemUpgradeCount boxitem1 + 1
ChangeItemAddValue boxitem1 0 + <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 + <$BOXITEM.UPGRADECOUNT>
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM.StdMode> 4
Equal <$BOXITEM.StdMode> 5
Equal <$BOXITEM.StdMode> 6
#ACT
SetUpgradeItem 1
ChangeItemUpgradeCount boxitem1 + 1
ChangeItemAddValue boxitem1 2 + <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 + <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 + <$BOXITEM.UPGRADECOUNT>
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
Equal <$BOXITEM.StdMode> 5
Equal <$BOXITEM.StdMode> 6
Equal <$BOXITEM.StdMode> 7
Equal <$BOXITEM.StdMode> 8
#ACT
SetUpgradeItem 1
ChangeItemUpgradeCount boxitem1 + 1
ChangeItemAddValue boxitem1 0 + <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 1 + <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 2 + <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 + <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 + <$BOXITEM.UPGRADECOUNT>
UpdateItem boxitem1
;ReturnBoxItem 1
Break
#or
;Equal <$BOXITEM.StdMode> 5
Equal <$BOXITEM.StdMode> 5
#ACT
SetUpgradeItem 1
ChangeItemUpgradeCount boxitem1 + 1
ChangeItemAddValue boxitem1 2 + <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 3 + <$BOXITEM.UPGRADECOUNT>
ChangeItemAddValue boxitem1 4 + <$BOXITEM.UPGRADECOUNT>
UpdateItem boxitem1
;ReturnBoxItem 1
Break
[@检测成功率]
#IF
Equal <$BOXITEM.NAME>
#ACT
Mov N$强化成功率 0
Break
#IF
#ACT
Mov N$强化成功率 15
GetDBItemFieldValue <$BOXITEM.NAME> NeedLevel N$强化装备品阶
;Dec N$强化成功率 <$STR(N$强化装备品阶)>
#IF
not Equal <$BOXITEM.NAME>
#ACT
GetDBItemFieldValue <$BOXITEM.NAME> Price N$强化装备成功率
Inc N$强化成功率 <$STR(N$强化装备成功率)>
[@ItemIntoBox1]
#IF
CheckUpgradeCount boxitem1 > 8
;Equal <$BOXITEM.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.NAME>
#ACT
Mov N$强化成功率 15
goto @说话
#ELSEACT
Mov N$强化成功率 0
goto @说话
[@ItemOutBox3]
#ACT
;goto @说话
请大佬速度来回答吧·感谢了! 钱太少了 不会有人说的 1985128 发表于 2020-3-29 02:23
钱太少了 不会有人说的
请大佬指点···
主要是没得金币··· CheckUpgradeCount boxitem1 > 5 改成 CheckUpgradeCount boxitem1 > 2试试 https://www.30gm.com/source/plugin/nciaer_facecomment/template/images/119.jpg
告诉你、这个论坛里面、要是说素材、我敢说第一没人敢说第二
页:
[1]