传奇版本添加首饰附魔系统的NPC编写示例(Gee引擎) [@main]
#IF
CheckLevelEx < 400
#ACT
MessageBox 附魔系统<【400级】/FCOLOR=250>后开启!
Break
#IF
CheckLevelEx > 0
#ACT
OPENMERCHANTBIGDLG 44 9 1 4 0 -80 0 0 0 1
Goto @首饰附魔
Break
[@首饰附魔]
#IF
CheckLevelEx > 0
#ACT
Break
#SAY
<ImgEx:73:352:353:354:342:-5/@Exit><PlayImg:73:900:20:100:-80:-43:0><PlayImg:73:870:10:100:-305:-75:1>\
\
<PlayImg:44:850:13:100:62:24:0>\
<PlayImg:44:910:10:100:131:84:0><PlayImg:44:920:13:100:29:90:0>\
<ImgEx:44:843:844:845:103:358/@立即附魔> <Text:附魔石合成:111:375/@fmshcnpc>\
\
<ITEMBOX:0:-1:0:173:169:64:64:15,19,26,22,24,23,64,62:放入你想附魔的首饰>\
\
;<IMG:834:44:42:-51>
\
<Text: ↓↓温馨提示↓↓:130:182{FCOLOR=249}>\
<IMG:558:73:90:182>\
<Text: 项链的幸运会自动:130:182{FCOLOR=250}>\
<Text:转移到附魔后的项链上:130:182{FCOLOR=250}>\
<Text:50倍神力首饰方可附魔:130:182{FCOLOR=250}>\
[@fmshcnpc]
#IF
CheckLevelEx > 0
#ACT
OPENMERCHANTBIGDLG 73 267 1 4 0 -100 0 0 0 1
Break
#SAY
<ImgEx:73:352:353:354:410:-15/@Exit><PlayImg:73:2080:10:100:95:-43:0>\
\
\
<为了附魔石更加保值,我们推出附魔石低阶合高阶活动/FCOLOR=253>\
\
<仙级附魔石:/FCOLOR=250> <魔级附魔石*2/FCOLOR=87> <立即合成/@fmshcnpc1>\
\
<尊级附魔石:/FCOLOR=250> <仙级附魔石*2/FCOLOR=87> <立即合成/@fmshcnpc2>\
\
<神级附魔石:/FCOLOR=250> <尊级附魔石*2/FCOLOR=87> <立即合成/@fmshcnpc3> <返回上级/@main>\
\
[@fmshcnpc1]
#IF
CheckItem 魔级附魔石 2
#ACT
Take 魔级附魔石 2
Give 仙级附魔石 1
LINKGIVEITEM
SetItemFrom -1 0 4
SetItemFrom -1 1 <$MapTitle>
SetItemFrom -1 2 此物品来自-附魔石合成
SetItemFrom -1 3 <$USERNAME>
updateitem -1
clearLinkItem
MessageBox 合成成功!获得一个<【仙级附魔石】/FCOLOR=250>
Break
#ELSEACT
MessageBox 合成失败!条件不足!
Break
[@fmshcnpc2]
#IF
CheckItem 仙级附魔石 2
#ACT
Take 仙级附魔石 2
Give 尊级附魔石 1
LINKGIVEITEM
SetItemFrom -1 0 4
SetItemFrom -1 1 <$MapTitle>
SetItemFrom -1 2 此物品来自-附魔石合成
SetItemFrom -1 3 <$USERNAME>
updateitem -1
clearLinkItem
MessageBox 合成成功!获得一个<【尊级附魔石】/FCOLOR=250>
Break
#ELSEACT
MessageBox 合成失败!条件不足!
Break
[@fmshcnpc3]
#IF
CheckItem 尊级附魔石 2
#ACT
Take 尊级附魔石 2
Give 神级附魔石 1
LINKGIVEITEM
SetItemFrom -1 0 4
SetItemFrom -1 1 <$MapTitle>
SetItemFrom -1 2 此物品来自-附魔石合成
SetItemFrom -1 3 <$USERNAME>
updateitem -1
clearLinkItem
MessageBox 合成成功!获得一个<【神级附魔石】/FCOLOR=250>
Break
#ELSEACT
MessageBox 合成失败!条件不足!
Break
[@ItemIntoBox0]
#IF
NOT Equal <$BOXITEM[0].NAME>
#ACT
ReadConfigFileItem ..\QuestDiary\quyoubbs论坛\附魔\附魔数据.txt <$BOXITEM[0].NAME> 附魔首饰 <$STR(S$附魔首饰)>
ReadConfigFileItem ..\QuestDiary\quyoubbs论坛\附魔\附魔数据.txt <$BOXITEM[0].NAME> 附魔材料 <$STR(S$附魔材料)>
#OR
Equal S$附魔首饰
Equal S$附魔材料
#ACT
UNALLOWITEMINTOBOX
MessageBox 此首饰不可附魔!
Break
#IF
NOT Equal S$附魔首饰
#ACT
GetDBItemFieldValue S$附魔首饰 Idx <$STR(N$附魔首饰ID)>
Break
#SAY
<ImgEx:73:352:353:354:342:-5/@Exit>\
\
<PlayImg:44:850:13:100:62:24:0>\
<PlayImg:44:910:10:100:131:84:0><PlayImg:44:920:13:100:29:90:0>\
<ImgEx:44:843:844:845:103:358/@立即附魔> <Text:附魔石合成:111:375/@fmshcnpc>\
<IMG:833:44:152:130>\
<ITEMBOX:0:-1:0:173:169:64:64:15,19,26,22,24,23,64,62:放入你想附魔的首饰>\
<PlayImg:44:870:13:100:125:160:0>\
<Text:附魔材料::100:238{FCOLOR=149}><Text:<$STR(S$附魔材料)> x 10:100:238{FCOLOR=146}>\
<Text:成功几率::100:238{FCOLOR=149}><Text:100%:100:238{FCOLOR=250}>\
\
\
\
<ItemShow:<$STR(N$附魔首饰ID)>:0:160:88:0>
|