QF文件内加入幸运检测的脚本:
[@幸运检测]
{
#IF
Check [135] 0
CheckLuckPoint = 10
#ACT
SET [135] 1
SetNewItemValue 9 1 = 5
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到10点,伤害提升5% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到10点,伤害提升5% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到10点,伤害提升5% 1 3
#IF
Check [135] 0
CheckLuckPoint = 11
#ACT
SET [135] 1
SetNewItemValue 9 1 = 10
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到11点,伤害提升10% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到11点,伤害提升10% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到11点,伤害提升10% 1 3
#IF
Check [135] 0
CheckLuckPoint = 12
#ACT
SET [135] 1
SetNewItemValue 9 1 = 15
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到12点,伤害提升15% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到12点,伤害提升15% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到12点,伤害提升15% 1 3
#IF
Check [135] 0
CheckLuckPoint = 13
#ACT
SET [135] 1
SetNewItemValue 9 1 = 20
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到13点,伤害提升20% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到13点,伤害提升20% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到13点,伤害提升20% 1 3
#IF
Check [135] 1
CheckLuckPoint = 10
#ACT
SET [135] 1
SetNewItemValue 9 1 = 5
#IF
Check [135] 1
CheckLuckPoint = 11
#ACT
SET [135] 1
SetNewItemValue 9 1 = 10
#IF
Check [135] 1
CheckLuckPoint = 12
#ACT
SET [135] 1
SetNewItemValue 9 1 = 15
#IF
Check [135] 1
CheckLuckPoint = 13
#ACT
SET [135] 1
SetNewItemValue 9 1 = 20
#IF
CheckLuckPoint < 10
#ACT
SetNewItemValue 9 1 = 0
SET [135] 0
[@幸运提示]
#IF
CheckLuckPoint = 10
#ACT
SET [135] 1
SetNewItemValue 9 1 = 5
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到10点,伤害提升5% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到10点,伤害提升5% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到10点,伤害提升5% 1 3
SENDMSG 0 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到10点,伤害提升5%
#IF
CheckLuckPoint = 11
#ACT
SET [135] 1
SetNewItemValue 9 1 = 10
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到11点,伤害提升10% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到11点,伤害提升10% 1 3
SendCenterMsg 0 70 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到11点,伤害提升10% 1 3
SENDMSG 0 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到11点,伤害提升10%
#IF
CheckLuckPoint = 12
#ACT
SET [135] 1
SetNewItemValue 9 1 = 15
SendCenterMsg 0 254 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到12点,伤害提升15% 1 3
SendCenterMsg 0 254 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到12点,伤害提升15% 1 3
SendCenterMsg 0 254 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到12点,伤害提升15% 1 3
SENDMSG 0 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到12点,伤害提升15%
#IF
CheckLuckPoint = 13
#ACT
SET [135] 1
SetNewItemValue 9 1 = 20
SendCenterMsg 0 254 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到13点,伤害提升20% 1 3
SendCenterMsg 0 254 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到13点,伤害提升20% 1 3
SendCenterMsg 0 254 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到13点,伤害提升20% 1 3
SENDMSG 0 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到13点,伤害提升20%
#IF
CheckLuckPoint = 14
#ACT
SET [135] 1
SetNewItemValue 9 1 = 25
SendCenterMsg 0 151 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到14点,伤害提升25% 1 3
SendCenterMsg 0 151 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到14点,伤害提升25% 1 3
SendCenterMsg 0 151 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到14点,伤害提升25% 1 3
SENDMSG 0 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到14点,伤害提升25%
#IF
CheckLuckPoint = 15
#ACT
SET [135] 1
SetNewItemValue 9 1 = 30
SendCenterMsg 0 151 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到15点,伤害提升30% 1 3
SendCenterMsg 0 151 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到15点,伤害提升30% 1 3
SendCenterMsg 0 151 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到15点,伤害提升30% 1 3
SENDMSG 0 ≤幸运力量≥:玩家【<$USERNAME>】幸运值达到15点,伤害提升30%
}
;==幸运NPC脚本如下:
[@main]
#IF
CHECKLEVELEX > 0
#ACT
CloseBigDialogBox
#SAY
<【/SCOLOR=070><幸运之神/SCOLOR=250><】/SCOLOR=070> <Hot~>\
<当/SCOLOR=242><武器+项链/SCOLOR=254><的幸运值达到/SCOLOR=242>< 9点/SCOLOR=250><时会/SCOLOR=242> <发挥人物最高伤害值/SCOLOR=70>\
<当/SCOLOR=242><武器+项链/SCOLOR=254><的幸运值达到/SCOLOR=242><10点/SCOLOR=250><时会提高/SCOLOR=242>< 5%的额外伤害/SCOLOR=70>\
<当/SCOLOR=242><武器+项链/SCOLOR=254><的幸运值达到/SCOLOR=242><11点/SCOLOR=250><时会提高/SCOLOR=242><10%的额外伤害/SCOLOR=70>\
<当/SCOLOR=242><武器+项链/SCOLOR=254><的幸运值达到/SCOLOR=242><12点/SCOLOR=250><时会提高/SCOLOR=242><15%的额外伤害/SCOLOR=70>\
<当/SCOLOR=242><武器+项链/SCOLOR=254><的幸运值达到/SCOLOR=242><13点/SCOLOR=250><时会提高/SCOLOR=242><20%的额外伤害/SCOLOR=70>\
<注意:身上护符位置必须佩带物品,否则无效!!!/SCOLOR=249>\
<Img:191:14:0:5/@项链幸运> <Img:200:14:0:5/@exit>\
[@项链幸运]
<【/SCOLOR=070><幸运之神/SCOLOR=250><】/SCOLOR=070> <Hot~>\
<┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄/SCOLOR=248>\
<项链最高加6点幸运,如果身上的项链自带2点幸运就只能再加4点/SCOLOR=242>\
<把升级项链佩带身上,/SCOLOR=242><当前项链为:/SCOLOR=253>[{<$NECKLACE>/SCOLOR=149}]\
-<自身项链幸运+1时需3千元宝/SCOLOR=254>※<自身项链幸运+2时需5千元宝/SCOLOR=250>-\
-<自身项链幸运+3时需8千元宝/SCOLOR=253>※<自身项链幸运+4时需1万元宝/SCOLOR=150>-\
-<自身项链幸运+5时需3万元宝/SCOLOR=070>※<幸运越高时成功几率就会越低/SCOLOR=249>-\
<┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄/SCOLOR=248>\
<Img:0:14:0:3><Img:191:14:0:-3/@开始升级><Img:0:14:0:3> \
[@开始升级]
#IF
CompareText <$NECKLACE> 弑神项链
#ACT
GOTO @升级幸运1a
break
#IF
CompareText <$NECKLACE> 天劫项链
#ACT
GOTO @升级幸运1a
break
#ELSEACT
GOTO @升级幸运1
[@升级幸运1]
#IF
random 1
CheckGAMEGOLD > 2999
CheckItemAddValue 3 1 = 0
#ACT
GAMEGOLD - 3000
MOVR N36 1 100
GOTO @幸运1
#ELSEACT
GOTO @升级幸运2
[@幸运1]
#IF
large N36 10
#ACT
UPGRADEITEMEX 3 1 0 1 0
GuildNoticeMsg 56 151 幸运仙子:玩家【<$USERNAME>】成功把项链[<$NECKLACE>]升级1点幸运.
GOTO @项链幸运
break
#ELSEACT
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
[@升级幸运2]
#IF
CheckGAMEGOLD > 4999
CheckItemAddValue 3 1 = 1
#ACT
GAMEGOLD - 5000
MOVR N36 1 100
GOTO @幸运2
#ELSEACT
GOTO @升级幸运3
[@幸运2]
#IF
large N36 20
#ACT
UPGRADEITEMEX 3 1 0 1 0
GuildNoticeMsg 56 151 幸运仙子:玩家【<$USERNAME>】成功把项链[<$NECKLACE>]升级1点幸运.
GOTO @项链幸运
break
#ELSEACT
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
[@升级幸运3]
#IF
CheckGAMEGOLD > 7999
CheckItemAddValue 3 1 = 2
#ACT
GAMEGOLD - 8000
MOVR N36 1 50
GOTO @幸运3
#ELSEACT
GOTO @升级幸运4
[@幸运3]
#IF
large N36 30
#ACT
UPGRADEITEMEX 3 1 0 1 0
GuildNoticeMsg 56 151 幸运仙子:玩家【<$USERNAME>】成功把项链[<$NECKLACE>]升级1点幸运.
GOTO @项链幸运
break
#ELSEACT
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
[@升级幸运4]
#IF
CheckGAMEGOLD > 9999
CheckItemAddValue 3 1 = 3
#ACT
GAMEGOLD - 10000
MOVR N36 1 48
GOTO @幸运4
#ELSEACT
GOTO @升级幸运5
[@幸运4]
#IF
large N36 40
#ACT
UPGRADEITEMEX 3 1 0 1 0
GuildNoticeMsg 56 151 幸运仙子:玩家【<$USERNAME>】成功把项链[<$NECKLACE>]升级1点幸运.
GOTO @项链幸运
break
#ELSEACT
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
[@升级幸运5]
#IF
CheckGAMEGOLD > 19999
CheckItemAddValue 3 1 = 4
#ACT
GAMEGOLD - 20000
MOVR N36 1 55
GOTO @幸运5
#ELSEACT
GOTO @升级幸运6
[@幸运5]
#IF
large N36 50
#ACT
UPGRADEITEMEX 3 1 0 1 0
GuildNoticeMsg 56 151 幸运仙子:玩家【<$USERNAME>】成功把项链[<$NECKLACE>]升级1点幸运.
GOTO @项链幸运
break
#ELSEACT
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
[@升级幸运6]
#IF
random 5
CheckGAMEGOLD > 29999
CheckItemAddValue 3 1 = 5
#ACT
GAMEGOLD - 30000
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
break
#IF
random 4
CheckGAMEGOLD > 29999
CheckItemAddValue 3 1 = 5
#ACT
GAMEGOLD - 30000
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
break
#IF
random 3
CheckGAMEGOLD > 29999
CheckItemAddValue 3 1 = 5
#ACT
GAMEGOLD - 30000
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
break
#IF
random 2
CheckGAMEGOLD > 29999
CheckItemAddValue 3 1 = 5
#ACT
GAMEGOLD - 30000
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
break
#IF
random 1
CheckGAMEGOLD > 29999
CheckItemAddValue 3 1 = 5
#ACT
GAMEGOLD - 30000
MOVR N36 1 66
GOTO @幸运6
#ELSEACT
MESSAGEBOX 错误:你的项链已经6点幸运或元宝不够!
[@幸运6]
#IF
large N36 60
#ACT
UPGRADEITEMEX 3 1 0 1 0
GuildNoticeMsg 56 151 幸运仙子:玩家【<$USERNAME>】成功把项链[<$NECKLACE>]升级1点幸运.
GOTO @项链幸运
break
#ELSEACT
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
[@升级幸运1a]
#IF
CheckGAMEGOLD > 2999
CheckItemAddValue 3 1 = 0
#ACT
GAMEGOLD - 3000
MOVR N36 1 100
GOTO @幸运1A
#ELSEACT
GOTO @升级幸运2a
[@幸运1A]
#IF
large N36 10
#ACT
UPGRADEITEMEX 3 1 0 1 0
GuildNoticeMsg 56 151 幸运仙子:玩家【<$USERNAME>】成功把项链[<$NECKLACE>]升级1点幸运.
GOTO @项链幸运
break
#ELSEACT
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
[@升级幸运2a]
#IF
CheckGAMEGOLD > 4999
CheckItemAddValue 3 1 = 1
#ACT
GAMEGOLD - 5000
MOVR N36 1 100
GOTO @幸运2A
#ELSEACT
GOTO @升级幸运3a
[@幸运2A]
#IF
large N36 20
#ACT
UPGRADEITEMEX 3 1 0 1 0
GuildNoticeMsg 56 151 幸运仙子:玩家【<$USERNAME>】成功把项链[<$NECKLACE>]升级1点幸运.
GOTO @项链幸运
break
#ELSEACT
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
[@升级幸运3a]
#IF
CheckGAMEGOLD > 7999
CheckItemAddValue 3 1 = 2
#ACT
GAMEGOLD - 8000
MOVR N36 1 40
GOTO @幸运3A
#ELSEACT
GOTO @升级幸运4a
[@幸运3A]
#IF
large N36 30
#ACT
UPGRADEITEMEX 3 1 0 1 0
GuildNoticeMsg 56 151 幸运仙子:玩家【<$USERNAME>】成功把项链[<$NECKLACE>]升级1点幸运.
GOTO @项链幸运
break
#ELSEACT
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
[@升级幸运4a]
#IF
random 5
CheckGAMEGOLD > 9999
CheckItemAddValue 3 1 = 3
#ACT
GAMEGOLD - 10000
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
break
#IF
random 4
CheckGAMEGOLD > 9999
CheckItemAddValue 3 1 = 3
#ACT
GAMEGOLD - 10000
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
break
#IF
random 3
CheckGAMEGOLD > 9999
CheckItemAddValue 3 1 = 3
#ACT
GAMEGOLD - 10000
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
break
#IF
random 2
CheckGAMEGOLD > 9999
CheckItemAddValue 3 1 = 3
#ACT
GAMEGOLD - 10000
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
break
#IF
random 1
CheckGAMEGOLD > 9999
CheckItemAddValue 3 1 = 3
#ACT
GAMEGOLD - 10000
MOVR N36 1 48
GOTO @幸运4A
#ELSEACT
MESSAGEBOX 错误:你的项链已经6点幸运或元宝不够!
[@幸运4A]
#IF
large N36 40
#ACT
UPGRADEITEMEX 3 1 0 1 0
GuildNoticeMsg 56 151 幸运仙子:玩家【<$USERNAME>】成功把项链[<$NECKLACE>]升级1点幸运.
GOTO @项链幸运
break
#ELSEACT
GuildNoticeMsg 255 0 提示:对不起,升级失败,请继续努力! Self
(责任编辑:找搜服传奇发布网) |