drug.lua

来自「征服服务端需要的东西!1、framework 2.0 2、PostgreSQ」· LUA 代码 · 共 57 行

LUA
57
字号
Itemsid=EqAip.ItemsID;

if Itemsid>= 720010 and Itemsid<=720017 then
    if  Api:CheckItemLimit(client,2) then              
        Api:RemoveItem_Cout(client,EqAip._InvItemCount);

          local id=0;
          local  max=3;
                
               if  Itemsid==720010 then
                 id=1000030;
               
               elseif  Itemsid==720011 then
                 id=1002000;
                

               elseif  Itemsid==720012 then
                 id=1002010;
               

               elseif  Itemsid==720013 then
                 id=1002020;
               

               elseif  Itemsid==720014 then
                 id=1001030;
               

               elseif  Itemsid==720015 then
                 id=1001040;

               elseif Itemsid== 720016 then
                 id=1002030;

               elseif  Itemsid== 720017 then
                 id=1002040;

               end;

             Api:Additems(client,id,max);

            return;

   else
      Api:SendMess(client,'你的包包以满');
      return;
   end;

else

 Api:RemoveItem_Cout(client,EqAip._InvItemCount);

 Api:AddHP(client,ItemsDatails._HpAdd);

 Api:AddMP(client,ItemsDatails._MpAdd);
return;
end;

⌨️ 快捷键说明

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