第一步
数据库加入物品圣诞宝盒,数据自己设
第二步
monitems里面的自己加入圣诞宝盒爆的几率
第三步
npc.txt下加入
圣诞树0 3 328 328 0 26
第四步
npc_def下加入圣诞树-3.txt 内容如下
[@main]
#if
checkpkpoint 2
#act
goto @b_1
#elseact
goto @main-1
[@b_1]
#if
#say
<$username> 你到处去杀人,还想逍遥法外啊!根据[清风血影]的治安条例,现在正式拘捕你!你有权保持沉默,你说的每句话将作为呈堂证供!#act
change 瞬息移动
take 瞬息移动46
take 金币100000
take 回城卷100
take 回城卷包100
take 地牢逃脱卷100
take 随机传送卷100
take 行会回城卷100
take 行会回城包100
take 地牢逃脱卷包100
take 随机传送卷包100
mapmove f003
[@main-1]
<$username> 圣诞快乐!为了欢度圣诞节,圣诞老人已经把礼物<圣诞宝盒>放在怪物首领们的身上,大家赶快到他们身上找吧如果你已经拿到了<圣诞宝盒>,记的先找我鉴定哦\ <鉴定宝盒[url=]/@dakai[/url]> <打开宝盒[url=]/@dakai1[/url]> <领取礼物[url=]/@dakai2[/url]>
;====================================
[@dakai]
#if
check [301] 0
checkitem 圣诞宝盒1
#act
set [301] 1
#say
<恭喜^_^你的圣诞宝盒已经坚定完成>宝盒里常常有很值钱的装备或是装满金币和金条但是怪物首领已经在宝箱上加了魔法の封印解开宝盒的魔法の封印每次要收取50万金币\ <打开宝盒[url=]/@dakai1[/url]>
#elsesay
你的身上没有<圣诞宝盒>别耍我了\ <取消[url=]/@exit[/url]>
;=====================================
[@dakai1]
#if
check [301] 1
check [302] 0
checkgold 500000
checkitem 圣诞宝盒1
#act
set [302] 1
take 金币500000
take 圣诞宝盒1
#say
宝盒解锁中....请你等十分钟再来领取礼物\ <谢谢[url=]/@exit>#elsesay[/url]
你身上的金币不够啊,别耍我了\ <取消[url=]/@exit[/url]>
;====================================
[@dakai2]
#if
check [302] 1
#say
礼物已经在你包袱里了...圣诞快乐^_^\ #act
goto @js--1
#elsesay
你的身上没有<圣诞宝盒>别耍我了\ <取消[url=]/@exit[/url]>
[@js--1]
#if
check [302] 1
random 9
#act
give 金条2
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 愤怒戒指1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 隐身戒指1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 黑铁头盔1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 传送戒指1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 麻痹戒指1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 屠龙1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 复活戒指1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 护身戒指1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 龙纹剑1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 嗜魂法杖1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 天魔神甲1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 圣战宝甲1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 法神披风1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 霓裳羽衣1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 天尊道袍1
give 金条1
set [301] 0
set [302] 0
break
#if
check [302] 1
random 9
#act
give 天师长袍1
give 金条1
set [301] 0
set [302] 0
break
#elseact
goto @js--1
好处是此脚本将随机给出打开宝盒后的礼物