⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 赌博1.lua

📁 架设关键部分开始了。点击开始——程序
💻 LUA
📖 第 1 页 / 共 2 页
字号:
      if cout == 3 or cout == 4 then
        Char.Cp=Char.Cp+1500;
        CmdNPC:Face(20);
        API:WrlLog(client:ToString().."赌博得到1000天石");
        CmdNPC:Say(cout.." 点,恭喜你你押中了得到1000天石");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      else
        CmdNPC:Face(20);
        CmdNPC:Say(cout.." 点,不好意识,你没押中");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      end;
      API:UpdateCp(client);
   else
     CmdNPC:Face(20);
     CmdNPC:Say("你没有足够的天石");
     CmdNPC:Link("知道了",255);
     CmdNPC:Finish();
   end;
end;


if NPCcon==24 then
   if Char.Cp>999 then
      Char.Cp=Char.Cp-1000;
      cout=API:RND(1,6);
      cout2=API:RND(1,6);       
      cout3=API:RND(1,6);
      cout=(cout+cout2+cout3)/3;

      if cout>1 and cout <2 then
        cout=1;
      elseif cout>2 and cout <3 then
        cout=2;
      elseif cout>3 and cout <4 then 
        cout=3;
      elseif cout>4 and cout <5 then 
        cout=4;
      elseif cout>5 and cout <6 then 
        cout=5;
      elseif cout>6 and cout <7 then 
        cout=6;
      end;

      
      if cout==3 then
       cout=API:RND(1,3);
      end;

      if cout==4 then
       cout=API:RND(4,6);
      end;

      if cout == 3 or cout == 4 then
        Char.Cp=Char.Cp+3000;
        CmdNPC:Face(20);
        API:WrlLog(client:ToString().."赌博得到2000天石");
        CmdNPC:Say(cout.." 点,恭喜你你押中了得到2000天石");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      else
        CmdNPC:Face(20);
        CmdNPC:Say(cout.." 点,不好意识,你没押中");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      end;
      API:UpdateCp(client);
   else
     CmdNPC:Face(20);
     CmdNPC:Say("你没有足够的天石");
     CmdNPC:Link("知道了",255);
     CmdNPC:Finish();
   end;
end;


if NPCcon==25 then
   if Char.Cp>4999 then
      Char.Cp=Char.Cp-5000;
      cout=API:RND(1,6);
      cout2=API:RND(1,6);       
      cout3=API:RND(1,6);
      cout=(cout+cout2+cout3)/3;

      if cout>1 and cout <2 then
        cout=1;
      elseif cout>2 and cout <3 then
        cout=2;
      elseif cout>3 and cout <4 then 
        cout=3;
      elseif cout>4 and cout <5 then 
        cout=4;
      elseif cout>5 and cout <6 then 
        cout=5;
      elseif cout>6 and cout <7 then 
        cout=6;
      end;

     
      if cout==3 then
       cout=API:RND(1,3);
      end;

      if cout==4 then
       cout=API:RND(4,6);
      end;

      if cout == 3 or cout == 4 then
        Char.Cp=Char.Cp+15000;
        CmdNPC:Face(20);
        API:WrlLog(client:ToString().."赌博得到10000天石");
        CmdNPC:Say(cout.." 点,恭喜你你押中了得到10000天石");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      else
        CmdNPC:Face(20);
        CmdNPC:Say(cout.." 点,不好意识,你没押中");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      end;
      API:UpdateCp(client);
   else
     CmdNPC:Face(20);
     CmdNPC:Say("你没有足够的天石");
     CmdNPC:Link("知道了",255);
     CmdNPC:Finish();
   end;
end;


if NPCcon==26 then
   if Char.Cp>9999 then
      Char.Cp=Char.Cp-10000;
      cout=API:RND(1,6);
      cout2=API:RND(1,6);       
      cout3=API:RND(1,6);
      cout=(cout+cout2+cout3)/3;

      if cout>1 and cout <2 then
        cout=1;
      elseif cout>2 and cout <3 then
        cout=2;
      elseif cout>3 and cout <4 then 
        cout=3;
      elseif cout>4 and cout <5 then 
        cout=4;
      elseif cout>5 and cout <6 then 
        cout=5;
      elseif cout>6 and cout <7 then 
        cout=6;
      end;

     
      if cout==3 then
       cout=API:RND(1,3);
      end;

      if cout==4 then
       cout=API:RND(4,6);
      end;

      if cout == 3 or cout == 4 then
        Char.Cp=Char.Cp+30000;
        CmdNPC:Face(20);
         API:WrlLog(client:ToString().."赌博得到20000天石");
        CmdNPC:Say(cout.." 点,恭喜你你押中了得到20000天石");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      else
        CmdNPC:Face(20);
        CmdNPC:Say(cout.." 点,不好意识,你没押中");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      end;
      API:UpdateCp(client);
   else
     CmdNPC:Face(20);
     CmdNPC:Say("你没有足够的天石");
     CmdNPC:Link("知道了",255);
     CmdNPC:Finish();
   end;
end;



if NPCcon==31 then
   if Char.Cp>9 then
      Char.Cp=Char.Cp-10;
      cout=API:RND(1,6);
      cout2=API:RND(1,6);       
      cout3=API:RND(1,6);
      cout=(cout+cout2+cout3)/3;

      if cout>1 and cout <2 then
        cout=1;
      elseif cout>2 and cout <3 then
        cout=2;
      elseif cout>3 and cout <4 then 
        cout=3;
      elseif cout>4 and cout <5 then 
        cout=4;
      elseif cout>5 and cout <6 then 
        cout=5;
      elseif cout>6 and cout <7 then 
        cout=6;
      end;

      if cout== 1 or cout ==2 then
        cout=API:RND(1,6);
      end

      if cout == 1 or cout == 2 then
        Char.Cp=Char.Cp+30;
        CmdNPC:Face(20);
         API:WrlLog(client:ToString().."赌博得到20天石");
        CmdNPC:Say(cout.." 点,恭喜你你押中了得到20天石");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      else
        CmdNPC:Face(20);
        CmdNPC:Say(cout.." 点,不好意识,你没押中");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      end;
      API:UpdateCp(client);
   else
     CmdNPC:Face(20);
     CmdNPC:Say("你没有足够的天石");
     CmdNPC:Link("知道了",255);
     CmdNPC:Finish();
   end;
end;

if NPCcon==32 then
   if Char.Cp>99 then
      Char.Cp=Char.Cp-100;
      cout=API:RND(1,6);
      cout2=API:RND(1,6);       
      cout3=API:RND(1,6);
      cout=(cout+cout2+cout3)/3;

      if cout>1 and cout <2 then
        cout=1;
      elseif cout>2 and cout <3 then
        cout=2;
      elseif cout>3 and cout <4 then 
        cout=3;
      elseif cout>4 and cout <5 then 
        cout=4;
      elseif cout>5 and cout <6 then 
        cout=5;
      elseif cout>6 and cout <7 then 
        cout=6;
      end;

        if cout== 1 or cout ==2 then
        cout=API:RND(1,6);
      end


       if cout == 1 or cout == 2 then
        Char.Cp=Char.Cp+300;
        CmdNPC:Face(20);
         API:WrlLog(client:ToString().."赌博得到200天石");
        CmdNPC:Say(cout.." 点,恭喜你你押中了得到200天石");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      else
        CmdNPC:Face(20);
        CmdNPC:Say(cout.." 点,不好意识,你没押中");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      end;
      API:UpdateCp(client);
   else
     CmdNPC:Face(20);
     CmdNPC:Say("你没有足够的天石");
     CmdNPC:Link("知道了",255);
     CmdNPC:Finish();
   end;
end;

if NPCcon==33 then
   if Char.Cp>499 then
      Char.Cp=Char.Cp-500;
      cout=API:RND(1,6);
      cout2=API:RND(1,6);       
      cout3=API:RND(1,6);
      cout=(cout+cout2+cout3)/3;

      if cout>1 and cout <2 then
        cout=1;
      elseif cout>2 and cout <3 then
        cout=2;
      elseif cout>3 and cout <4 then 
        cout=3;
      elseif cout>4 and cout <5 then 
        cout=4;
      elseif cout>5 and cout <6 then 
        cout=5;
      elseif cout>6 and cout <7 then 
        cout=6;
      end;

    if cout== 1 or cout ==2 then
        cout=API:RND(1,6);
      end


       if cout == 1 or cout == 2 then
        Char.Cp=Char.Cp+1500;
        CmdNPC:Face(20);
        API:WrlLog(client:ToString().."赌博得到1000天石");
        CmdNPC:Say(cout.." 点,恭喜你你押中了得到1000天石");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      else
        CmdNPC:Face(20);
        CmdNPC:Say(cout.." 点,不好意识,你没押中");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      end;
      API:UpdateCp(client);
   else
     CmdNPC:Face(20);
     CmdNPC:Say("你没有足够的天石");
     CmdNPC:Link("知道了",255);
     CmdNPC:Finish();
   end;
end;


if NPCcon==34 then
   if Char.Cp>999 then
      Char.Cp=Char.Cp-1000;
      cout=API:RND(1,6);
      cout2=API:RND(1,6);       
      cout3=API:RND(1,6);
      cout=(cout+cout2+cout3)/3;

      if cout>1 and cout <2 then
        cout=1;
      elseif cout>2 and cout <3 then
        cout=2;
      elseif cout>3 and cout <4 then 
        cout=3;
      elseif cout>4 and cout <5 then 
        cout=4;
      elseif cout>5 and cout <6 then 
        cout=5;
      elseif cout>6 and cout <7 then 
        cout=6;
      end;

  if cout== 1 or cout ==2 then
        cout=API:RND(1,6);
      end


      if cout == 1 or cout == 2 then
        Char.Cp=Char.Cp+3000;
        CmdNPC:Face(20);
        API:WrlLog(client:ToString().."赌博得到2000天石");
        CmdNPC:Say(cout.." 点,恭喜你你押中了得到2000天石");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      else
        CmdNPC:Face(20);
        CmdNPC:Say(cout.." 点,不好意识,你没押中");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      end;
      API:UpdateCp(client);
   else
     CmdNPC:Face(20);
     CmdNPC:Say("你没有足够的天石");
     CmdNPC:Link("知道了",255);
     CmdNPC:Finish();
   end;
end;


if NPCcon==35 then
   if Char.Cp>4999 then
      Char.Cp=Char.Cp-5000;
      cout=API:RND(1,6);
      cout2=API:RND(1,6);       
      cout3=API:RND(1,6);
      cout=(cout+cout2+cout3)/3;

      if cout>1 and cout <2 then
        cout=1;
      elseif cout>2 and cout <3 then
        cout=2;
      elseif cout>3 and cout <4 then 
        cout=3;
      elseif cout>4 and cout <5 then 
        cout=4;
      elseif cout>5 and cout <6 then 
        cout=5;
      elseif cout>6 and cout <7 then 
        cout=6;
      end;

  if cout== 1 or cout ==2 then
        cout=API:RND(1,6);
      end


      if cout == 1 or cout == 2 then
        Char.Cp=Char.Cp+15000;
        CmdNPC:Face(20);
        API:WrlLog(client:ToString().."赌博得到10000天石");
        CmdNPC:Say(cout.." 点,恭喜你你押中了得到10000天石");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      else
        CmdNPC:Face(20);
        CmdNPC:Say(cout.." 点,不好意识,你没押中");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      end;
      API:UpdateCp(client);
   else
     CmdNPC:Face(20);
     CmdNPC:Say("你没有足够的天石");
     CmdNPC:Link("知道了",255);
     CmdNPC:Finish();
   end;
end;


if NPCcon==36 then
   if Char.Cp>9999 then
      Char.Cp=Char.Cp-10000;
      cout=API:RND(1,6);
      cout2=API:RND(1,6);       
      cout3=API:RND(1,6);
      cout=(cout+cout2+cout3)/3;

      if cout>1 and cout <2 then
        cout=1;
      elseif cout>2 and cout <3 then
        cout=2;
      elseif cout>3 and cout <4 then 
        cout=3;
      elseif cout>4 and cout <5 then 
        cout=4;
      elseif cout>5 and cout <6 then 
        cout=5;
      elseif cout>6 and cout <7 then 
        cout=6;
      end;

  if cout== 1 or cout ==2 then
        cout=API:RND(1,6);
      end


      if cout == 1 or cout == 2 then
        Char.Cp=Char.Cp+30000;
        CmdNPC:Face(20);
         API:WrlLog(client:ToString().."赌博得到20000天石");
        CmdNPC:Say(cout.." 点,恭喜你你押中了得到20000天石");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      else
        CmdNPC:Face(20);
        CmdNPC:Say(cout.." 点,不好意识,你没押中");
        CmdNPC:Link("知道了",255);
        CmdNPC:Finish();
      end;
      API:UpdateCp(client);
   else
     CmdNPC:Face(20);
     CmdNPC:Say("你没有足够的天石");
     CmdNPC:Link("知道了",255);
     CmdNPC:Finish();
   end;
end;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -