神力护体Npc脚本(直接购买攻魔道属性)

用于战神引擎服务端的神力护体Npc脚本,功能是玩家通过元宝购买攻击、魔法、道术的教程,脚本购买500元宝一次,时间90分钟,因为是明文版的脚本,gm可以根据自己的要求,任意修改里面的时间、属性和购买费用。

神力护体Npc脚本(直接购买攻魔道属性)

部分脚本

procedure _lianti; 
var AddHP,AddHP1,AddHP2: integer;
begin
   AddHP1 :=100;
   AddHP1 :=30; 
   AddHP2 :=60; 
          if This_Player.YBNum >= 500 then
     //这里检测灵符 
       case This_Player.Job of
              0 : //0是战士
               begin
                  This_Player.AddPlayerAbil(0, 8, 5400);
                  This_Player.AddPlayerAbil(1, 8, 5400);
                  This_Player.AddPlayerAbil(2 , 8, 5400);
				  This_Player.ScriptRequestSubYBNum(500);
                  This_Npc.NpcDialog(This_Player,
                   '恭喜你开启成功\'
               );
				 ServerSay('玩家<' + This_Player.Name + '>开启了【神力护身】!', 2);
               end;
               1 : //法师
               begin
                  This_Player.AddPlayerAbil(0, 8, 5400);
                  This_Player.AddPlayerAbil(1, 8, 5400);
                  This_Player.AddPlayerAbil(2 , 8, 5400);
				  This_Player.ScriptRequestSubYBNum(500);
                   This_Npc.NpcDialog(This_Player,
                   '恭喜你开启成功\'
               );
				 ServerSay('玩家<' + This_Player.Name + '>开启了【神力护身】!', 2);               
               end;
               2 : //道士
               begin
                  This_Player.AddPlayerAbil(0, 8, 5400);
                  This_Player.AddPlayerAbil(1, 8, 5400);
                  This_Player.AddPlayerAbil(2 , 8, 5400);
				  This_Player.ScriptRequestSubYBNum(500);
                  This_Npc.NpcDialog(This_Player,
                  '恭喜你开启成功\'
               );
				 ServerSay('玩家<' + This_Player.Name + '>开启了【神力护身】!', 2);  
               end;
     end else  
       begin
            This_Npc.NpcDialog(This_Player,
            '元宝不足500!'   );
     end ; 
 end;    
begin
 This_Npc.NpcDialog(This_Player,
  +'|<战士增加魔攻道8点/SCOLOR=254>\'
  +'|<道士增加魔攻道8点/SCOLOR=254>\'
  +'|<法神增加魔攻道8点/SCOLOR=254>\'
  +'|<每次开启需要500元宝/SCOLOR=251>\'
  +'|<开启一次持续时间90分钟:重复开启不会叠加属性,元宝照扣,请不要乱点!/SCOLOR=22>\'
  +'|{cmd}<开始神力护体/@lianti>  ' 
  );
end.
分享到:
赞(0)