用于战神引擎的玩家在线用玩家用元宝兑换声望Npc脚本,非常的方便,元宝是直接从玩家身上扣除,得到的声望也是通过数据的方式,直接添加到玩家身上,而不是通过物品放到包裹,要玩家双击吃掉。脚本默认是10个元宝兑换40点声望,明文版的,可以任意修改里面的兑换比例。

部分脚本
Program Mir2;
begin
This_NPC.CloseDialog(This_Player);
end;
procedure _xiane4;
begin
if This_Player.YBnum >= 10 then
begin
This_Player.MyShengwan := This_Player.MyShengwan + 40;
//This_Player.DecLF(0, 1, false);
This_Player.ScriptRequestSubYBNum(10);
end
else
This_Npc.NpcDialog(This_Player,
'对不起,你没有10元宝,不能兑换声望!'
);
end;
begin
This_NPC.NpcDialog(This_Player,
'在我这里可以用元宝兑换声望哦\ \'
+'|{cmd}<10元宝兑换40声望点/@xiane4> \'
);
end.








