用于战神引擎的爆率腰牌1.2、1.4、1.6、1.8、2.0合成+抽取+回收Npc脚本,脚本是三合一的,玩家可以通过元宝随机抽取爆率腰牌,也可以把多余的腰牌回收换元宝,也可以通过材料合成腰牌,帮主把NPC脚本、DB数据、腰牌素材全部提取出来了,添加的时候,记得不要做错了步骤。
部分脚本
PROGRAM Mir2; Procedure _doexit; begin This_Npc.CloseDialog(This_Player); end; procedure domain; begin This_Npc.NpcDialog(This_Player, '<抽取爆率腰牌有一定几率获得以下腰牌:/fcolor=253>\|' +'<1.2倍爆率腰牌/fcolor=254> <1.4倍爆率腰牌/fcolor=254> <1.6倍爆率腰牌/fcolor=254>\|' +'<1.8倍爆率腰牌/fcolor=254> <2.0倍爆率腰牌/fcolor=254> \|' +'<规则:抽取爆率腰牌每次需要8W元宝/fcolor=249>\|' +'< 多余腰牌可以免费三合一进阶/fcolor=254>\|' + '{cmd}<抽取腰牌/@cq>^<合成腰牌/@hc>\' +'|{cmd}<回收腰牌/@hs>^<退出/@doexit>' ); end; Procedure _hc; begin This_Npc.NpcDialog(This_Player, +'一键免费进行三合一合成.\|' + '您确定要合成背包里所有的腰牌吗?\|' + '{cmd}<合成腰牌/@hc_1>\' ); end; Procedure hcyp; begin This_Player.PlayerDialog('正在为您合成腰牌....\|' ); if (This_Player.GetBagItemCount('1.2倍爆率牌') >= 3) and ( This_Player.YBNum>= 0) then begin This_Player.take('1.2倍爆率牌',3); This_Player.give('1.4倍爆率牌',1); This_Player.CallOut(This_NPC,1,'hcyp'); exit; end else if (This_Player.GetBagItemCount('1.4倍爆率牌') >= 3) and ( This_Player.YBNum>= 0) then begin This_Player.take('1.4倍爆率牌',3); This_Player.give('1.6倍爆率牌',1); //This_Player.ScriptRequestSubYBNum(10000); This_Player.CallOut(This_NPC,1,'hcyp'); exit; end else if (This_Player.GetBagItemCount('1.6倍爆率牌') >= 3) and ( This_Player.YBNum>= 0) then begin This_Player.take('1.6倍爆率牌',3); This_Player.give('1.8倍爆率牌',1); //This_Player.ScriptRequestSubYBNum(10000); This_Player.CallOut(This_NPC,1,'hcyp'); exit; end else if (This_Player.GetBagItemCount('1.8倍爆率牌') >= 3) and ( This_Player.YBNum>= 0) then begin This_Player.take('1.8倍爆率牌',3); This_Player.give('2.0倍爆率牌',1); //This_Player.ScriptRequestSubYBNum(10000); This_Player.CallOut(This_NPC,1,'hcyp'); exit; end else This_Player.PlayerDialog( '无法继续合成.请仔细查看合成所需规则....\|' ); end; Procedure _hs; begin This_Npc.NpcDialog(This_Player, +'<1.2倍爆率腰牌/fcolor=254><(可回收5000元宝)/fcolor=249><回收/@hs12>\|' +'<1.4倍爆率腰牌/fcolor=254><(可回收1W元宝)/fcolor=249><回收/@hs14>\|' +'<1.6倍爆率腰牌/fcolor=254><(可回收5W元宝)/fcolor=249><回收/@hs16>\|' +'<1.8倍爆率腰牌/fcolor=254><(可回收10W元宝)/fcolor=249><回收/@hs18>\|' +'<2.0倍爆率腰牌/fcolor=254><(可回收20W元宝)/fcolor=249><回收/@hs20>\|' ); end;