用于战神引擎的祈福老人NPC脚本,脚本使用需要用到充值点,每天可以祈福一次,可以获得10-20之间的随机暴击属性,牵扯到了多发文件,帮主把牵扯到的都压缩进来了,你们添加的时候,自己备份一下原先版本里面的文件,在进行添加。

部分脚本
function suipian(ZBid : integer) : string;
begin
case ZBid of
1 : result := '20';
2 : result := '100';
3 : result := '500';
4 : result := '1500';
5 : result := '3000';
6 : result := '5000';
7 : result := '1500';
8 : result := '2000';
9 : result := '3000';
end;
end;
function yb(ZBid : integer) : string;
begin
case ZBid of
1 : result := '50000';
2 : result := '500000';
3 : result := '5000000';
4 : result := '10000000';
5 : result := '20000000';
6 : result := '50000000';
7 : result := '15000000';
8 : result := '20000000';
9 : result := '50000000';
end;
end;
function jiaxue(ZBid : integer) : string;
begin
case ZBid of
1 : result := '1';
2 : result := '7';
3 : result := '13';
4 : result := '20';
5 : result := '33';
6 : result := '50';
7 : result := '15000000';
8 : result := '20000000';
9 : result := '50000000';
end;
end;
procedure domain;
begin
if GetDay <> This_Player.GetV(50,2) then begin
if This_Player.GetV(78,21) =0 then This_Player.SetV(99,99,0);
This_Player.SetV(99,82,1);
This_Player.SetV(53,3,0);
This_Player.SetV(50,2,GetDay);//记录充值日期
end;
This_NPC.NpcDialog(This_Player,
'| <★/fcolor=69> <★/fcolor=222> <★/fcolor=147> <【'+'六爻老人'+'/fcolor=5><】/fcolor=5> <★/fcolor=147> <★/fcolor=222> <★/fcolor=69>\'
+'|<【作用】:/fcolor=249><传说中的老人每天只要推广一次或者充值10RMB可以占卜一次/fcolor=222>\'
+'|<【效果】:/fcolor=249>占卜会增加10%-20%暴击每天0点重置\'
+'|<【土豪】:/fcolor=249><再使用50声望一定20%暴击/fcolor=254>\'
+'|<【今日充值】:/fcolor=249><'+inttostr(This_Player.GetV(99,99))+'/fcolor=222>\'
+'|<【今日暴击】:/fcolor=249><'+inttostr(This_Player.GetV(53,3))+'%/fcolor=222>\'
+'|{cmd}<推广占卜/@zhanbu1> <土豪占卜/@zhanbu2>\'
);
end;








