用于战神引擎理财服务Npc脚本,支持三种类型,跟月卡服务的NPC脚本差不多,玩家购买对应的理财服务以后,每天可以领取对应的奖励,脚本默认奖励的是一些材料,因为是明文版的,gm可以任意修改里面奖励的物品内容。脚本使用了2个牵扯文件,不能直接覆盖,需要提取对应的添加到自己的版本里面才行。
部分脚本
procedure _getyueka; begin if This_Player.GetV(55,3) < GetDateNum(GetNow) then begin if This_Player.FreeBagNum > 3 then begin This_Player.SetV(55,3,GetDateNum(GetNow)); This_Player.Give('生肖铜片', 8); This_Player.Give('魂骨碎石', 10); This_Player.Give('首充凭证', 1); This_Player.PlayerDialog('今日的白银返利已经发放'); end else This_NPC.NpcDialog(This_Player, '背包已经满了哦,请清理一下再领取吧 \ \' ); end else This_NPC.NpcDialog(This_Player, '您已经领取过白银理财返利了哦 \ \' ); end; procedure _getjika; begin if This_Player.GetV(56,3) < GetDateNum(GetNow) then begin if This_Player.FreeBagNum > 4 then begin This_Player.SetV(56,3,GetDateNum(GetNow)); This_Player.Give('生肖铜片', 16); This_Player.Give('魂骨碎石', 18); This_Player.Give('首充凭证', 2); This_Player.PlayerDialog('今日的黄金返利已经发放'); end else This_NPC.NpcDialog(This_Player, '背包已经满了哦,请清理一下再领取吧 \ \' ); end else This_NPC.NpcDialog(This_Player, '您已经领取过黄金理财返利了哦 \ \' ); end; procedure _getnianka; begin if This_Player.GetV(57,3) < GetDateNum(GetNow) then begin if This_Player.FreeBagNum > 5 then begin This_Player.SetV(57,3,GetDateNum(GetNow)); This_Player.Give('生肖铜片', 34); This_Player.Give('魂骨碎石', 37); This_Player.Give('首充凭证', 3); This_Player.PlayerDialog('今日的砖石返利已经发放'); end else This_NPC.NpcDialog(This_Player, '背包已经满了哦,请清理一下再领取吧 \ \' ); end else This_NPC.NpcDialog(This_Player, '您已经领取过砖石理财返利了哦 \ \' ); end; begin if This_Player.GetV(55,4) <= 0 then This_Player.SetV(55,4,0); if This_Player.GetV(56,4) <= 0 then This_Player.SetV(56,4,0); if This_Player.GetV(57,4) <= 0 then This_Player.SetV(57,4,0); domain; end.