精彩课程推荐

传奇装备触发BUFF常用脚本举例

[复制链接]
查看: 1245|回复: 1
发表于 2018-2-24 17:15:50 | 显示全部楼层 |阅读模式
传奇装备触发BUFF常用脚本举例

[@斩杀]
{
#IF
Random 5
<$CURRRTARGETFULLNAME>.CheckHpPer < 21
#ACT
<$CURRRTARGETFULLNAME>.HumanHP - 2000
PLAYEFFECT 12 180 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
<$CURRRTARGETFULLNAME>.PLAYEFFECT 5 1536 12 1 100 0 0 0
BREAK

}

;----------------------------------------------------------
[@陨星]
{
#IF
Random 10
#ACT
PLAYEFFECT 12 181 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
<$CURRRTARGETFULLNAME>.PLAYEFFECT 5 990 24 1 100 0
MOV N$陨星伤害 1
<$CURRRTARGETFULLNAME>.GOTOLABEL 7 @陨星伤害 3 2
<$CURRRTARGETFULLNAME>.HumanHP - 1000
BREAK

[@陨星伤害]
#IF
INSAFEZONE
#ACT
BREAK

#IF
EQUAL N$陨星伤害 0
#ACT
HumanHP - 100
BREAK
#ELSEACT
MOV N$陨星伤害 0
BREAK
}

;----------------------------------------------------------
[@神兽]
{
#IF
Random 10
NOT CHECKSLAVENAME 灵兽
#ACT
RECALLMOB 灵兽 7
ChangeSlaveNameColor 灵兽 70
PLAYEFFECT 12 182 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
MOV N$神兽BUFF 0
BREAK
}

;----------------------------------------------------------
[@真战]
{
#IF
Random 5
EQUAL N$BUFF冷却1 0
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 183 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 3 6 320 630
<$CURRRTARGETFULLNAME>.HumanHP - 500
<$CURRRTARGETFULLNAME>.PLAYEFFECT 25 70 8 1 100 0 0 0
BREAK
}

;----------------------------------------------------------
[@禁制]
{
#IF
Random 6
EQUAL N$BUFF冷却1 0
Small <$MAXMC> 50
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 184 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 24 12 320 630
<$CURRRTARGETFULLNAME>.ChangeModeEx 9 1
<$CURRRTARGETFULLNAME>.PLAYEFFECT 5 1550 9 1 100
<$CURRRTARGETFULLNAME>.PLAYEFFECT 5 1560 8 1 125
<$CURRRTARGETFULLNAME>.SENDMSG 5 你被<$CURRRTARGETFULLNAME>禁制1秒,期间无法攻击和释放技能...
BREAK

#IF
Random 6
EQUAL N$BUFF冷却1 0
Small <$MAXMC> 200
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 184 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 24 12 320 630
MOV N$禁制中转1 <$MAXMC>
DIV N$禁制中转1 33
<$CURRRTARGETFULLNAME>.ChangeModeEx 9 <$STR(N$禁制中转1)>
<$CURRRTARGETFULLNAME>.PLAYEFFECT 5 1550 9 1 100
SetHumVar <$CURRRTARGETFULLNAME> <$STR(N$禁制中转)> <$STR(N$禁制中转1)>
<$CURRRTARGETFULLNAME>.PLAYEFFECT 5 1560 8 <$STR(N$禁制中转)> 125
<$CURRRTARGETFULLNAME>.SENDMSG 5 你被<$CURRRTARGETFULLNAME>禁制<$STR(N$禁制中转)>秒,期间无法攻击和释放技能...
BREAK

#IF
Random 6
EQUAL N$BUFF冷却1 0
Large <$MAXMC> 199
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 184 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 24 12 320 630
<$CURRRTARGETFULLNAME>.ChangeModeEx 9 6
<$CURRRTARGETFULLNAME>.PLAYEFFECT 5 1550 9 1 100
<$CURRRTARGETFULLNAME>.PLAYEFFECT 5 1560 8 9 125
<$CURRRTARGETFULLNAME>.SENDMSG 5 你被<$CURRRTARGETFULLNAME>禁制6秒,期间无法攻击和释放技能...
BREAK
}

;----------------------------------------------------------
[@猎命]
{
#IF
Random 5
EQUAL N$BUFF冷却1 0
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 185 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 4 6 320 630
GetHumVar <$CURRRTARGETFULLNAME> <$HP> <$STR(N$猎命中转1)>
DIV N$猎命中转1 10
INC N$猎命中转1 1
SetHumVar <$CURRRTARGETFULLNAME> <$STR(N$猎命中转)> <$STR(N$猎命中转1)>
<$CURRRTARGETFULLNAME>.HumanHP - <$STR(N$猎命中转)>
<$CURRRTARGETFULLNAME>.PLAYEFFECT 25 80 6 1 100 0 0 0
BREAK
}

;----------------------------------------------------------
[@七伤]
{
#IF
Small N$七伤次数 7
EQUAL N$BUFF冷却1 0
#ACT
INC N$七伤次数 1
SendCenterMsg 251 0 七伤已攻击<$STR(N$七伤次数)>次 0 2
BREAK

#IF
Large N$七伤次数 6
EQUAL N$BUFF冷却1 0
#ACT
MOV N$七伤次数 0
MOV N$BUFF冷却1 1
PLAYEFFECT 12 186 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 6 20 320 630
<$CURRRTARGETFULLNAME>.HumanHP - 500
<$CURRRTARGETFULLNAME>.PLAYEFFECT 25 70 8 1 100 0 0 0
BREAK
}

;----------------------------------------------------------
[@搏命]
{
#IF
CheckHpPer > 30
#ACT
BREAK

#IF
EQUAL N$BUFF冷却1 0
#ACT
MOV N$搏命中转 <$MAXMP>
DEC N$搏命中转 <$MP>
INC N$搏命中转 1
#ELSEACT
BREAK

#IF
Random 5
EQUAL N$BUFF冷却1 0
Large N$搏命中转 2000
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 187 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 7 20 320 630
<$CURRRTARGETFULLNAME>.HumanHP - 2000
<$CURRRTARGETFULLNAME>.PLAYEFFECT 25 80 6 1 100 0 0 0
BREAK

#IF
Random 5
EQUAL N$BUFF冷却1 0
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 187 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 7 20 320 630
<$CURRRTARGETFULLNAME>.HumanHP - <$STR(N$搏命中转)>
<$CURRRTARGETFULLNAME>.PLAYEFFECT 25 80 6 1 100 0 0 0
BREAK

}

;----------------------------------------------------------
[@杀战]
{
#IF
Random 3
EQUAL N$BUFF冷却1 0
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 188 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 8 20 320 630
GetHumVar <$CURRRTARGETFULLNAME> <$MAXHP> <$STR(N$杀战中转1)>
DIV N$杀战中转1 10
SetHumVar <$CURRRTARGETFULLNAME> <$STR(N$杀战中转)> <$STR(N$杀战中转1)>
<$CURRRTARGETFULLNAME>.HumanHP - <$STR(N$杀战中转)>
<$CURRRTARGETFULLNAME>.PLAYEFFECT 25 80 6 1 100 0 0 0
BREAK

}

;----------------------------------------------------------
[@强拆]
{
#IF
EQUAL N$BUFF冷却1 1
#ACT
BREAK

#IF
NOT Random 10
#ACT
BREAK

#IF
<$CURRRTARGETFULLNAME>.CheckBagSize 1
#ACT
MOVR N$强拆位置 0 15
SetHumVar <$CURRRTARGETFULLNAME> <$STR(N$强拆中转)> <$STR(N$强拆位置)>
#ELSEACT
MOV N$BUFF冷却1 1
<$CURRRTARGETFULLNAME>.HumanHP - 300
PLAYEFFECT 12 189 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 9 20 320 630
<$CURRRTARGETFULLNAME>.PLAYEFFECT 25 70 8 1 100 0 0 0
BREAK

#IF
<$CURRRTARGETFULLNAME>.CHECKUSEITEM <$STR(N$强拆中转)>
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 189 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
<$CURRRTARGETFULLNAME>.TakeOffItem <$STR(N$强拆中转)>
<$CURRRTARGETFULLNAME>.SENDMSG 5 你有一件装备被<$CURRRTARGETFULLNAME>打到包裹里了...
<$CURRRTARGETFULLNAME>.PLAYEFFECT 5 310 20 1 100
SetClientBuff 12 1 9 20 320 630
BREAK
#ELSEACT
MOV N$BUFF冷却1 1
<$CURRRTARGETFULLNAME>.HumanHP - 300
PLAYEFFECT 12 189 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 9 20 320 630
<$CURRRTARGETFULLNAME>.PLAYEFFECT 25 70 8 1 100 0 0 0
BREAK

}

;----------------------------------------------------------
[@猎魔]
{
#IF
Random 3
EQUAL N$BUFF冷却1 0
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 190 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 5 6 320 630
GetHumVar <$CURRRTARGETFULLNAME> <$MP> <$STR(N$猎魔中转1)>
DIV N$猎魔中转1 10
INC N$猎魔中转1 1
SetHumVar <$CURRRTARGETFULLNAME> <$STR(N$猎魔中转)> <$STR(N$猎魔中转1)>
<$CURRRTARGETFULLNAME>.HumanMP - <$STR(N$猎魔中转)>
<$CURRRTARGETFULLNAME>.PLAYEFFECT 25 80 6 1 100 0 0 0
BREAK

}

;----------------------------------------------------------
[@隐匿]
{
#IF
EQUAL N$BUFF冷却1 1
#ACT
BREAK

#IF
Small N$隐匿次数 10
#ACT
INC N$隐匿次数 1
SendCenterMsg 251 0 隐匿已攻击<$STR(N$隐匿次数)>次 0 2
BREAK

#IF
NOT Random 5
#ACT
BREAK

#IF
Small <$MAXSC> 50
#ACT
MOV N$隐匿次数 0
MOV N$BUFF冷却1 1
PLAYEFFECT 12 191 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 25 20 320 630
ChangeModeEx 2 1
PLAYEFFECT 5 360 10 1 100 0 0 0
SENDMSG 5 你已隐匿1秒,别人没办法看见或攻击你...
BREAK

#IF
Small <$MAXSC> 200
#ACT
MOV N$隐匿次数 0
MOV N$BUFF冷却1 1
MOV N$隐匿时长 <$MAXSC>
DIV N$隐匿时长 25
PLAYEFFECT 12 191 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 25 20 320 630
ChangeModeEx 2 <$STR(N$隐匿时长)>
PLAYEFFECT 5 360 10 1 100 0 0 0
SENDMSG 5 你已隐匿<$STR(N$隐匿时长)>秒,别人没办法看见或攻击你...
BREAK

#IF
Large <$MAXSC> 199
#ACT
MOV N$隐匿次数 0
MOV N$BUFF冷却1 1
PLAYEFFECT 12 191 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 25 20 320 630
ChangeModeEx 2 8
PLAYEFFECT 5 360 10 1 100 0 0 0
SENDMSG 5 你已隐匿8秒,别人没办法看见或攻击你...
BREAK

}

;----------------------------------------------------------
[@奋战]
{
#IF
Random 3
EQUAL N$BUFF冷却1 0
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 192 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 10 20 320 630
MOV N$奋战属性 <$MAXDC>
DIV N$奋战属性 10
ChangeHumAbility 6 + <$STR(N$奋战属性)> 10
PLAYEFFECT 5 3000 20 5 90 0 0 0
SENDMSG 5 奋战:攻击力提升<$STR(N$奋战属性)>(10秒)
BREAK

}

;----------------------------------------------------------
[@魔能]
{
#IF
Random 3
EQUAL N$BUFF冷却1 0
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 193 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 12 20 320 630
MOV N$魔能属性 <$MAXMC>
DIV N$魔能属性 10
ChangeHumAbility 8 + <$STR(N$魔能属性)> 10
PLAYEFFECT 5 2980 20 5 90 0 0 0
SENDMSG 5 奋战:魔法力提升<$STR(N$魔能属性)>(10秒)
BREAK

}

;----------------------------------------------------------
[@道光]
{
#IF
Random 3
EQUAL N$BUFF冷却1 0
#ACT
MOV N$BUFF冷却1 1
PLAYEFFECT 12 194 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 1 11 20 320 630
MOV N$道光属性 <$MAXSC>
DIV N$道光属性 10
ChangeHumAbility 10 + <$STR(N$道光属性)> 10
PLAYEFFECT 5 3020 20 5 90 0 0 0
SENDMSG 5 奋战:道术力提升<$STR(N$道光属性)>(10秒)
BREAK

}

;----------------------------------------------------------
[@护佑]
{
#IF
CheckSuckDamage > 0
#ACT
BREAK

#IF
Random 3
#ACT
SetSuckDamage = 2000 200 100
PLAYEFFECT 12 195 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
PLAYEFFECT 5 2330 19 1 100 0 0 0
SENDMSG 5 护佑:减少20%受到的伤害,累计减少2000点伤害...
BREAK

}

[@防护]
{
#IF
Random 3
EQUAL N$BUFF冷却2 0
#ACT
MOV N$BUFF冷却2 1
PLAYEFFECT 12 196 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 2 13 20 280 630
MOV N$防护属性 <$MAXAC>
DIV N$防护属性 10
ChangeHumAbility 2 + <$STR(N$防护属性)> 10
PLAYEFFECT 5 2330 19 5 100 0 0 0
SENDMSG 5 防护:防御力提升<$STR(N$防护属性)>(10秒)
BREAK

}

[@血牛]
{
#IF
Random 3
EQUAL N$BUFF冷却2 0
#ACT
MOV N$BUFF冷却2 1
PLAYEFFECT 12 197 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 2 18 20 280 630
MOV N$血牛属性 <$MAXHP>
DIV N$血牛属性 10
ChangeHumAbility 11 + <$STR(N$血牛属性)> 10
PLAYEFFECT 5 2320 3 34 100 0 0 0
SENDMSG 5 血牛:生命上限提升<$STR(N$血牛属性)>(10秒)
BREAK

}

;-------------------------------------------------------------
[@回魔]
{
#IF
Random 3
EQUAL N$BUFF冷却3 0
CheckMpPer < 30
#ACT
MOV N$BUFF冷却3 1
PLAYEFFECT 12 198 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 3 15 30 240 630
AddMpPer + 30
PLAYEFFECT 5 2660 20 1 100 0 -256 -256
BREAK

}

;-------------------------------------------------------------
[@回血]
{
#IF
Random 3
EQUAL N$BUFF冷却4 0
CheckHpPer < 30
#ACT
MOV N$BUFF冷却4 1
PLAYEFFECT 12 199 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 4 14 30 200 630
AddhpPer + 30
PLAYEFFECT 5 2500 20 1 100 0 -256 -256
BREAK

}

[@魔甲]
{
#IF
Random 3
EQUAL N$BUFF冷却4 0
#ACT
MOV N$BUFF冷却4 1
PLAYEFFECT 12 200 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 4 17 20 200 630
MOV N$魔甲属性 <$MAXMAC>
DIV N$魔甲属性 10
ChangeHumAbility 4 + <$STR(N$魔甲属性)> 10
PLAYEFFECT 5 2330 19 5 100 0 0 0
SENDMSG 5 魔甲:魔御力提升<$STR(N$魔甲属性)>(10秒)
BREAK

}

[@魔灵]
{
#IF
Random 3
EQUAL N$BUFF冷却4 0
#ACT
MOV N$BUFF冷却4 1
PLAYEFFECT 12 201 1 1 2500 0 -35 -150 1
PLAYEFFECT 24 360 8 3 100 0 -200 -150
SetClientBuff 12 4 19 20 200 630
MOV N$魔灵属性 <$MAXMP>
DIV N$魔灵属性 10
ChangeHumAbility 12 + <$STR(N$魔灵属性)> 20
PLAYEFFECT 5 2410 10 16 100 0 0 0
SENDMSG 5 魔灵:魔力上限提升<$STR(N$魔灵属性)>(20秒)
BREAK

}


  • TA的每日心情
    开心
    5 小时前
  • 1163

    主题

    1172

    帖子

    26万

    积分

    超级版主

    Rank: 8Rank: 8

    积分
    261014
    发表于 2019-2-4 11:38:51 | 显示全部楼层
    太厉害了,学习学习

    该用户从未签到

    0

    主题

    28

    帖子

    30

    积分

    新手上路

    Rank: 1

    积分
    30
    *滑动验证:
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    

    商务合作

    点击这里给我发消息  3272916418
    Copyright  ©2015-2016  学传奇        ( 鲁ICP备16023438号-2 )