用于战神引擎实物兑换充值点和元宝Npc脚本,玩家在游戏里面打到对应的实物物品,可以通过这个NPC回收,获得充值点和元宝,脚本是明文版的,可以任意设置物品的名称还有回收得到的充值点、元宝数量,帮主把脚本文件,你们根据自己的版本,自己设置要回收的实物物品和给与玩家的元宝充值点数。


部分脚本
program Mir2;
procedure _exit;
begin
This_Npc.CloseDialog(This_Player);
end;
procedure _doexit;
begin
This_Npc.CloseDialog(This_Player);
end;
procedure _xxf10; //修改其他的跳转链接
begin
if This_Player.GetBagItemCount ('矿泉水') >= 1 then //检测包裹是否有 口香糖 修改对应的
begin
This_Player.Take('矿泉水',1); //拿走物品火机 修改对应的
This_Player.AddLF(0,1); //充值+1 //充值累计+2 修改对应的 2
This_Player.ScriptRequestAddYBNum(10000); //元宝+1000 修改对应的
This_NPC.NpcDialog(This_Player,
'兑换成功,增加1W元宝,充值累计+1\ \' //修改对应的数字 1000 2
+'|{cmd}<返回/@main>');
end
else
begin
This_NPC.NpcDialog(This_Player,
'缺少“矿泉水”,请检查包裹!\ \'
+'|{cmd}<返回/@main>');
end;
end;
procedure _xxf11; //修改其他的跳转链接
begin
if This_Player.GetBagItemCount ('冰红茶') >= 1 then //检测包裹是否有 口香糖 修改对应的
begin
This_Player.Take('冰红茶',1); //拿走物品火机 修改对应的
This_Player.AddLF(0,3); //充值+1
This_Player.ScriptRequestAddYBNum(30000); //元宝+1000 修改对应的
This_NPC.NpcDialog(This_Player,
'兑换成功,增加3W元宝,充值累计+3\ \' //修改对应的数字 1000 2
+'|{cmd}<返回/@main>');
end
else
begin
This_NPC.NpcDialog(This_Player,
'缺少“冰红茶”,请检查包裹!\ \'
+'|{cmd}<返回/@main>');
end;
end;
procedure _xxf12; //修改其他的跳转链接
begin
if This_Player.GetBagItemCount ('红牛') >= 1 then //检测包裹是否有 口香糖 修改对应的
begin
This_Player.Take('红牛',1); //拿走物品火机 修改对应的
This_Player.AddLF(0,5); //充值+1 //充值累计+2 修改对应的 2
This_Player.ScriptRequestAddYBNum(50000); //元宝+1000 修改对应的
This_NPC.NpcDialog(This_Player,
'兑换成功,增加5W元宝,充值累计+5\ \' //修改对应的数字 1000 2
+'|{cmd}<返回/@main>');
end
else
begin
This_NPC.NpcDialog(This_Player,
'缺少“红牛”,请检查包裹!\ \'
+'|{cmd}<返回/@main>');
end;
end;








