本站主推发布:新开传奇发布网,新开传奇,新开传奇发布,176复古传奇,迷失传奇,战神传奇,传奇私服,找搜服,仙剑传奇
当前位置: zhaosf首页 > 开服资料 > 传奇脚本 >

装备加星、升星NPC脚本

时间:2016-08-25 01:10来源:新开传奇私服 作者:传奇私服发布网
发一个刚写的升星npc脚本,系统自带的升星只会按照宝石属性加攻击力,感觉不如百分比加属性的好。 所以改成了NPC脚本升星,升星成功会加1%-3%的属性(这样是为了增加运气的成分,使星星一样多的装备也有极品和普通之分),升级失败属性清零。 加星超过3颗会给装备附加发光特效,小于三颗会去掉特效,所需的升级材料可以通用所有装备,几率适中请自行测试,素材都是盛大
发一个刚写的升星npc脚本,系统自带的升星只会按照宝石属性加攻击力,感觉不如百分比加属性的好。
所以改成了NPC脚本升星,升星成功会加1%-3%的属性(这样是为了增加运气的成分,使星星一样多的装备也有极品和普通之分),升级失败属性清零。
加星超过3颗会给装备附加发光特效,小于三颗会去掉特效,所需的升级材料可以通用所有装备,几率适中请自行测试,素材都是盛大官方的不用补丁。
[@main]
#IF
#ACT
OPENMERCHANTBIGDLG 3 751 0 0 0 0 1 356 4 1
OpenHumDlg 7 400 0
#SAY
\              <强化说明:/SCOLOR=253>
\                       <左边放入装备,右边放入宝石/SCOLOR=253> 
\                       <装备强化满级为9级/SCOLOR=253>
\                       <强化时随机增加装备1%-3%的属性/SCOLOR=253>
\                       <锻造所需的材料全服所有怪皆可爆出/SCOLOR=253>
\              <对应属性:/SCOLOR=253>
\                       <武器-暴击/SCOLOR=253> <衣服-吸收/SCOLOR=253> <头盔-血量/SCOLOR=253>
\                       <项链-伤害/SCOLOR=253> <勋章-伤害/SCOLOR=253> <手镯-伤害/SCOLOR=253>
\                       <戒指-伤害/SCOLOR=253> <靴子-吸收/SCOLOR=253> <腰带-吸收/SCOLOR=253>
\                       <坐骑-血量/SCOLOR=253> <宝石-血量/SCOLOR=253> 
<ITEMBOX:1:3:661:120:200:76:76:5,6,10,11,15,19,20,21,22,23,24,26,28,30,52,53,54:放入要升级的装备>\
<ITEMBOX:2:3:680:300:200:76:76:41:放入需要的升级宝石>\
<Img:750:3:-10:-173>
<Img:770:3:100:50/@2>
[@2]
#IF
CHECKITEMTYPE boxitem1 5
#ACT
goto @致命一击
#IF
CHECKITEMTYPE boxitem1 6
#ACT
goto @致命一击
#IF
CHECKITEMTYPE boxitem1 10
#ACT
goto @伤害吸收
#IF
CHECKITEMTYPE boxitem1 11
#ACT
goto @伤害吸收
#IF
CHECKITEMTYPE boxitem1 52
#ACT
goto @伤害吸收
#IF
CHECKITEMTYPE boxitem1 54
#ACT
goto @伤害吸收
#IF
CHECKITEMTYPE boxitem1 19
#ACT
goto @伤害
#IF
CHECKITEMTYPE boxitem1 20
#ACT
goto @伤害
#IF
CHECKITEMTYPE boxitem1 21
#ACT
goto @伤害
#IF
CHECKITEMTYPE boxitem1 22
#ACT
goto @伤害
#IF
CHECKITEMTYPE boxitem1 23
#ACT
goto @伤害
#IF
CHECKITEMTYPE boxitem1 24
#ACT
goto @伤害
#IF
CHECKITEMTYPE boxitem1 26
#ACT
goto @伤害
#IF
CHECKITEMTYPE boxitem1 15
#ACT
goto @血量
#IF
CHECKITEMTYPE boxitem1 28
#ACT
goto @血量
#IF
CHECKITEMTYPE boxitem1 53
#ACT
goto @血量
 
[@致命一击]
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 0 + 1
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 0 + 2
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 0 + 3
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
 
#IF
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#act
ChangeItemUpgradeCount boxitem1 = 0
SetNewItemValue boxitem1 0 = 0
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 失败
goto @33
BREAK
 
[@22]
#IF
CheckUpgradeCount boxitem1 > 3
#ACT
SETITEMEFFECT boxitem1 1
UpdateItem boxitem1
 
 
[@44]
#ACT
GOTO @main
#SAY
<PlayImgEx:3:1490:9:100:1:100:90:1:>
 
[@33]
#IF
CheckUpgradeCount boxitem1 < 4
#ACT
SETITEMEFFECT boxitem1 0
UpdateItem boxitem1
 
 
[@伤害吸收]
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 2 + 1
SetNewItemValue boxitem1 3 + 1
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 2 + 2
SetNewItemValue boxitem1 3 + 2
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 2 + 3
SetNewItemValue boxitem1 3 + 3
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
 
#IF
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#act
ChangeItemUpgradeCount boxitem1 = 0
SetNewItemValue boxitem1 2 = 0
SetNewItemValue boxitem1 3 = 0
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 失败
goto @33
BREAK
 
[@22]
#IF
CheckUpgradeCount boxitem1 > 3
#ACT
SETITEMEFFECT boxitem1 1
UpdateItem boxitem1
 
 
[@44]
<PlayImgEx:3:1490:9:100:1:100:90:1:>
 
[@33]
#IF
CheckUpgradeCount boxitem1 < 4
#ACT
SETITEMEFFECT boxitem1 0
UpdateItem boxitem1
 
 
[@伤害]
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 1 + 1
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 1 + 2
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 1 + 3
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
 
#IF
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#act
ChangeItemUpgradeCount boxitem1 = 0
SetNewItemValue boxitem1 1 = 0
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 失败
goto @33
BREAK
 
[@22]
#IF
CheckUpgradeCount boxitem1 > 3
#ACT
SETITEMEFFECT boxitem1 1
UpdateItem boxitem1
 
 
[@44]
<PlayImgEx:3:1490:9:100:1:100:90:1:>
 
[@33]
#IF
CheckUpgradeCount boxitem1 < 4
#ACT
SETITEMEFFECT boxitem1 0
UpdateItem boxitem1
 
 
[@血量]
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 7 + 1
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 7 + 2
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
#IF
RANDOM 5
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#ACT
ChangeItemUpgradeCount boxitem1 + 1
SetNewItemValue boxitem1 7 + 3
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 成功
goto @22
BREAK
 
#IF
CheckUpgradeCount boxitem1 < 9
CheckBoxItemCount 2 > 1
#act
ChangeItemUpgradeCount boxitem1 = 0
SetNewItemValue boxitem1 7 = 0
DELBOXITEM 2
UpdateItem boxitem1
SendMsg 7 失败
goto @33
BREAK
 
[@22]
#IF
CheckUpgradeCount boxitem1 > 3
#ACT
SETITEMEFFECT boxitem1 1
UpdateItem boxitem1
 
 
[@44]
<PlayImgEx:3:1490:9:100:1:100:90:1:>
 
[@33]
#IF
CheckUpgradeCount boxitem1 < 4
#ACT
SETITEMEFFECT boxitem1 0
UpdateItem boxitem1
(责任编辑:找搜服传奇发布网)
------分隔线----------------------------
栏目列表
推荐内容