藏宝湾网游单机站

 找回密码
 注册

QQ登录

只需一步,快速开始

★【神将三国SF★我是大主宰SF】【维京传奇SF】★

★【0.1折】★【变态网页游戏私服】★

★神将三国网页版上线送V5 5w元宝 5000w铜币 我是大主宰上线满v,80万元宝,小怪都爆元宝,耐玩长久稳定★

【原始传奇SF/维京传奇SF★0.1折手游】

★【原始传奇SF/维京传奇SF★0.1折手游】★

★2025火爆『传奇岁月+开天西游+维京传奇+原始传奇』爆战力称号BUFF+神装99999999万人PK★

首创可以单机 可以互动 可以赚烟钱的传奇

★全网独家 可以单机 可以互动的传奇!★

★全网唯一持续更新的可单机游戏!每15-25天更新一次内容,保持游戏新鲜度!! 众多独家的功能特色,众多你没见过的全新玩法,有能力的赚点烟钱,还能偶尔沙城战斗!★

★【梦幻--仿官】公益服!★
★【梦幻--仿官】公益服!★

★【梦幻--仿官】公益服!零氪党、养老党速来集合!★

☆新区开放-放置传奇☆

★新区开放-放置传奇★

★可白嫖 上班摸鱼类 放置文字传奇游戏(放置休闲)qq群756025698★

★三职业复古★开局送神装★爆率100%★散人逆袭★

★三职业复古★开局送神装★爆率100%★散人逆袭★

★〖双线〗〖无忧传奇〗〖每日新区〗〖开局送神装 100%高爆率 装备元宝打怪爆〗★

【DE】梦幻(畅氪服)(12门派) /【DE】真三国无双(手游)

【DE】梦幻(畅氪服)(12门派) /【DE】真三国无双(手游)

★全新建立的账号开局赠送10W代金券。 老账号不发哈!代金券账号内通用!!★

★大话Ⅱ★2025全新版★稳定两年半★22号新区

★大话Ⅱ★2025全新版★稳定两年半★

★玩单机不如来修仙,亲们。修仙就是一个架设在云端的单机游戏,有游戏有社交,这不就是我们当初的想要的吗?★

★DNF★全职业平衡★公益服★
★DNF★全职业平衡★公益服★

【dnf86版本】【怀旧服】【全职业平衡】【非变态服】【非商业服】【774031300】

★梦幻16门派全新大唐九黎★

★梦幻16门派全新大唐九黎★

★独家PK系统,享受极致免费PK ★打造系统,装备可打造出无级别,宝珠点化无级别 ★炼妖系统,力劈善恶台子观照,炼妖炼到手软 ★不做垃圾,力争什么都做到最好 ★持续更新,长久稳定★

★【独家RPG文字梦幻】【摸鱼搬砖不氪不肝】★

★【独家RPG文字梦幻】【摸鱼搬砖不氪不肝】★

★新区开放,三端互通,适合上班挂机、摸鱼。 休闲放置,不占时间,玩熟了一天只需十几分钟就能轻松搞定。★

★承接推广★

★承接推广★

★承接推广★

查看: 1258|回复: 2

[分享] [77M2] 传奇引擎 新区冲级赛 脚本

[复制链接]
发表于 2015-6-24 10:50:59 | 显示全部楼层 |阅读模式

[77M2] 传奇引擎 新区冲级赛 脚本

给会使用的朋友. 我不做任何解答. 77M2上手难度++++++

引擎的链接具体大家可以搜索一下 就不发类似广告的链接了.

unit Q28;

interface
  uses Classes, SysUtils, DefiniensConst;
  
procedure Main(Npc: TNormNpc; Player: TPlayObject; Args: TArgs);
procedure GetLG(Npc: TNormNpc; Player: TPlayObject; Args: TArgs);

implementation

function GetCommand(Player: TPlayObject; V: Integer): String;
begin
  Result := '';
  case V of
    0:
    begin
      if Player.VarInteger('冲级奖励1').AsInteger = 1 then
        Result := '<{S=领取;X=260}/@GetLG(0)>';
    end;
    1:
    begin
      if Player.VarInteger('冲级奖励2').AsInteger = 1 then
        Result := '<{S=领取;X=260}/@GetLG(1)>';
    end;
    2:
    begin
      if Player.VarInteger('冲级奖励3').AsInteger = 1 then
        Result := '<{S=领取;X=260}/@GetLG(2)>';
    end;
    3:
    begin
      if Player.VarInteger('冲级奖励4').AsInteger = 1 then
        Result := '<{S=领取;X=260}/@GetLG(3)>';
    end;
  end;   
end;

procedure Main(Npc: TNormNpc; Player: TPlayObject; Args: TArgs);
const
S=
[[
{S=$NAME$;C=243}:\
  新区冲级赛火爆进行中,截止至{S=$ENDTIME$;C=249},率先进入:\
{S=$Lvl1$级:;C=254}可以领取职业祖玛衣服一件,限制{S=$L1Count$;C=#6699CC}人$CMD1$\
{S=$Lvl2$级:;C=254}可以领取职业祖玛武器一件,限制{S=$L2Count$;C=#6699CC}人$CMD2$\
{S=$Lvl3$级:;C=254}可以领取职业赤月项链一件,限制{S=$L3Count$;C=#6699CC}人$CMD3$\
{S=$Lvl4$级:;C=254}可以领取职业赤月套装一套,限制{S=$L4Count$;C=#6699CC}人$CMD4$\\
{S=注:领取资格根据达到指定等级的先后而定;C=249}\
<离开/@exit>
]];
var
    AMessage: String;
begin
    AMessage := ReplaceStr(S, '$NAME$', Player.Name);
    AMessage := ReplaceStr(AMessage, '$ENDTIME$', FormatDateTime('yy年MM月DD日hh时mm分', LvlGame_EndTime));
    AMessage := ReplaceStr(AMessage, '$Lvl1$', IntToStr(LvlGame_Level1));
    AMessage := ReplaceStr(AMessage, '$L1Count$', IntToStr(LvlGame_L1NumOfPeople));
    AMessage := ReplaceStr(AMessage, '$CMD1$', GetCommand(Player, 0));
    AMessage := ReplaceStr(AMessage, '$Lvl2$', IntToStr(LvlGame_Level2));
    AMessage := ReplaceStr(AMessage, '$L2Count$', IntToStr(LvlGame_L2NumOfPeople));
    AMessage := ReplaceStr(AMessage, '$CMD2$', GetCommand(Player, 1));
    AMessage := ReplaceStr(AMessage, '$Lvl3$', IntToStr(LvlGame_Level3));
    AMessage := ReplaceStr(AMessage, '$L3Count$', IntToStr(LvlGame_L3NumOfPeople));
    AMessage := ReplaceStr(AMessage, '$CMD3$', GetCommand(Player, 2));
    AMessage := ReplaceStr(AMessage, '$Lvl4$', IntToStr(LvlGame_Level4));
    AMessage := ReplaceStr(AMessage, '$L4Count$', IntToStr(LvlGame_L4NumOfPeople));
    AMessage := ReplaceStr(AMessage, '$CMD4$', GetCommand(Player, 3));
  Npc.Say(Player, AMessage);
end;

procedure GetLG(Npc: TNormNpc; Player: TPlayObject; Args: TArgs);
begin
  case Args.Int[0] of
    0:
    begin
      if Player.VarInteger('冲级奖励1').AsInteger = 1 then
      begin            
          //满足第一个冲级条件,根据职业及性别赠送45级衣服一件
          case Player.Job of
          0:
          begin
            case Player.Gender of
              Gender_Man: Npc.Give(Player, '天魔神甲', 1, True);
              Gender_Woman: Npc.Give(Player, '圣战宝甲', 1, True);
            end;
          end;
          1:
          begin
            case Player.Gender of
              Gender_Man: Npc.Give(Player, '法神披风', 1, True);
              Gender_Woman: Npc.Give(Player, '霓裳羽衣', 1, True);
            end;
          end;
          2:
          begin
            case Player.Gender of
              Gender_Man: Npc.Give(Player, '天尊道袍', 1, True);
              Gender_Woman: Npc.Give(Player, '天师长袍', 1, True);
            end;
          end;
        end;
        Player.VarInteger('冲级奖励1').AsInteger := 2;
        Player.VarInteger('冲级奖励1').Save;
      end;
    end;
    1:
    begin
      if Player.VarInteger('冲级奖励2').AsInteger = 1 then
      begin      
          //满足第二个冲级条件,送武器
          if Player.ItemSize < Player.MaxBagSize then
        begin   
            case Player.Job of
            0: Npc.Give(Player, '裁决之杖', 1, True);
            1: Npc.Give(Player, '骨玉权杖', 1, True);
            2: Npc.Give(Player, '龙纹剑', 1, True);
          end;      
          Player.VarInteger('冲级奖励2').AsInteger := 2;
          Player.VarInteger('冲级奖励2').Save;            
        end
        else
            Npc.MessageBox(Player, '请确保背包至少有一个空位!');
      end;
    end;
    2:
    begin
      if Player.VarInteger('冲级奖励3').AsInteger = 1 then
      begin   
          //满足第三个冲级条件,送项链   
        if Player.ItemSize < Player.MaxBagSize then
        begin
            case Player.Job of
            0: Npc.Give(Player, '圣战项链', 1, True);
            1: Npc.Give(Player, '法神项链', 1, True);
            2: Npc.Give(Player, '天尊项链', 1, True);
          end;         
          Player.VarInteger('冲级奖励3').AsInteger := 2;
          Player.VarInteger('冲级奖励3').Save;         
        end
        else
            Npc.MessageBox(Player, '请确保背包至少有一个空位!');
      end;
    end;
    3:
    begin
      if Player.VarInteger('冲级奖励4').AsInteger = 1 then
      begin   
          //满足第四个冲级条件,送全套
        if Player.ItemSize < Player.MaxBagSize - 8 then
        begin
            case Player.Job of
            0:
            begin
              case Player.Gender of
                Gender_Man: Npc.Give(Player, '天魔神甲', 1, True);
                Gender_Woman: Npc.Give(Player, '圣战宝甲', 1, True);
              end;   
              Npc.Give(Player, '裁决之杖', 1, True);
              Npc.Give(Player, '圣战项链', 1, True);
              Npc.Give(Player, '圣战头盔', 1, True);
              Npc.Give(Player, '圣战手镯', 2, True);
              Npc.Give(Player, '圣战戒指', 2, True);
            end;
            1:
            begin
              case Player.Gender of
                Gender_Man: Npc.Give(Player, '法神披风', 1, True);
                Gender_Woman: Npc.Give(Player, '霓裳羽衣', 1, True);
              end;   
              Npc.Give(Player, '骨玉权杖', 1, True);
              Npc.Give(Player, '法神项链', 1, True);
              Npc.Give(Player, '法神头盔', 1, True);
              Npc.Give(Player, '法神手镯', 2, True);
              Npc.Give(Player, '法神戒指', 2, True);
            end;
            2:
            begin
              case Player.Gender of
                Gender_Man: Npc.Give(Player, '天尊道袍', 1, True);
                Gender_Woman: Npc.Give(Player, '天师长袍', 1, True);
              end;   
              Npc.Give(Player, '龙纹剑', 1, True);
              Npc.Give(Player, '天尊项链', 1, True);
              Npc.Give(Player, '天尊头盔', 1, True);
              Npc.Give(Player, '天尊手镯', 2, True);
              Npc.Give(Player, '天尊戒指', 2, True);
            end;
          end;
          Player.VarInteger('冲级奖励4').AsInteger := 2;
          Player.VarInteger('冲级奖励4').Save;      
        end
        else
            Npc.MessageBox(Player, '请确保背包至少有八个空位!');
      end;
    end;
  end;   
  Main(Npc, Player, Args);
end;

end.



 楼主| 发表于 2015-6-24 10:51:37 | 显示全部楼层
常量

  
  //新区冲级大赛   
  LvlGame_EndTime: TDateTime;
  LvlGame_Level1: Integer = 30;
  LvlGame_L1NumOfPeople: Integer = 50;
  LvlGame_Level2: Integer = 40;
  LvlGame_L2NumOfPeople: Integer = 20;     
  LvlGame_Level3: Integer = 50;
  LvlGame_L3NumOfPeople: Integer = 5;     
  LvlGame_Level4: Integer = 60;
  LvlGame_L4NumOfPeople: Integer = 1;
发表于 2015-6-24 12:03:47 | 显示全部楼层
不明觉厉~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

本站内容如若侵犯到您的权益,请来电来函告知,我们会尽快处理!
联系QQ:1953150286,2251387361,123784736,免责申明

排行榜|联系我们|小黑屋|手机版|Archiver|游戏藏宝湾 |

GMT+8, 2025-9-15 23:19 , Processed in 0.141450 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表