sm

立即登录 | 账号注册

积分: 0 |用户组: 游客

搜索
服务器租用 传奇3一条龙 支付平台源码 无法下载点击此处反馈
查看: 429|回复: 1

[战神引擎] 战神引擎装备自动回收道具脚本

[复制链接]

826

主题

36

回帖

23万

积分

霸王教主

积分
235297
发表于 2023-7-5 00:14:02 | 显示全部楼层 |阅读模式
  1. program Mir2;

  2. {$I GaoJiHuiShou.pas}

  3. Procedure _exit;
  4. begin
  5.    This_Npc.CloseDialog(This_Player);
  6. end;

  7. Procedure _doexit;
  8. begin
  9.    This_Npc.CloseDialog(This_Player);
  10. end;


  11. function hqsx(id:integer):String;
  12. var
  13. i,k,lenxq,xqApos,xqBpos:integer;
  14. CmdStr,sfxz,sfxzl,XqStr,xqzfc:String;
  15. Xq_Str:array[1..60] of String;
  16. Xq_Num:array[1..60] of integer;
  17. begin
  18.         xqzfc:='回收'+ tzz[id] + '每件可获得:/';
  19.         XqStr := xq[id];
  20.         for k:=1 to 10 do
  21.         begin
  22.                 lenxq := length(XqStr);
  23.                 xqApos := pos(':',XqStr);
  24.                 xqBpos := pos('|',XqStr);
  25.                 IF xqBpos = 0 then Break;//后续无数据
  26.                 Xq_Str[k] := Copy(XqStr,1,xqApos-1);
  27.                 Xq_Num[k] := StrToIntDef(Copy(XqStr,xqApos+1,xqBpos-xqApos-1),0);
  28.                 IF Xq_Str[k] = '元宝' then
  29.                 begin
  30.                         if Xq_Num[k] > 0 then
  31.                         begin
  32.                                 xqzfc:= xqzfc + '元宝:' + inttostr(Xq_Num[k]) + '/';
  33.                         end;
  34.                 end else
  35.                 IF Xq_Str[k] = '经验' then
  36.                 begin
  37.                         if Xq_Num[k] > 0 then
  38.                         begin
  39.                                 xqzfc:= xqzfc + '经验:' + inttostr(Xq_Num[k]) + '/';
  40.                         end;
  41.                 end;
  42.                
  43.                 XqStr := Copy(XqStr,xqBpos+1,lenxq);
  44.         end;
  45.         result:=xqzfc;
  46.         exit;
  47. end;



  48. Procedure view();
  49. var
  50. i,k,lenxq,xqApos,xqBpos:integer;
  51. CmdStr,sfxz,sfxzl,XqStr,xqzfc:String;
  52. Xq_Str:array[1..60] of String;
  53. Xq_Num:array[1..60] of integer;
  54. begin
  55.    if This_Player.YBNum >= 30000 then begin
  56.         For i:=1 to 7 do
  57.         begin
  58.                 if tzz[i] <> '' then
  59.                 begin
  60.                         if i = 1 then
  61.                         begin
  62.                                 if This_Player.GetS(127,i) > 0 then
  63.                                 begin
  64.                                         sfxz := '4';
  65.                                         sfxzl := 'noxrbl';
  66.                                 end else
  67.                                 begin
  68.                                         sfxz := '3'
  69.                                         sfxzl := 'xrbl';
  70.                                 end;
  71.                                 CmdStr := CmdStr + '1:Img:gjhs:5:80:120:'+hqsx(i)+'@255:addtoscroll1|' + '1:Text:80:120:20:'+tzz[i]+'@255|'+        '1:RBtn:gjhs:'+sfxz+':163:120:@'+sfxzl+'~1|';
  72.                         end;
  73.                         if i = 2 then
  74.                         begin
  75.                                 if This_Player.GetS(127,i) > 0 then
  76.                                 begin
  77.                                         sfxz := '4';
  78.                                         sfxzl := 'noxrbl';
  79.                                 end else
  80.                                 begin
  81.                                         sfxz := '3'
  82.                                         sfxzl := 'xrbl';
  83.                                 end;
  84.                                 CmdStr := CmdStr + '1:Img:gjhs:5:270:120:'+hqsx(i)+'@255:addtoscroll1|' +'1:Text:270:120:20:'+tzz[i]+'@255|'+'1:RBtn:gjhs:'+sfxz+':353:120:@'+sfxzl+'~2|';
  85.                         end;
  86.                         if i = 3 then
  87.                         begin
  88.                                 if This_Player.GetS(127,i) > 0 then
  89.                                 begin
  90.                                         sfxz := '4';
  91.                                         sfxzl := 'noxrbl';
  92.                                 end else
  93.                                 begin
  94.                                         sfxz := '3'
  95.                                         sfxzl := 'xrbl';
  96.                                 end;
  97.                                 CmdStr := CmdStr + '1:Img:gjhs:5:80:167:'+hqsx(i)+'@255:addtoscroll1|' +'1:Text:80:167:20:'+tzz[i]+'@255|'+'1:RBtn:gjhs:'+sfxz+':163:167:@'+sfxzl+'~3|';
  98.                         end;
  99.                         if i = 4 then
  100.                         begin
  101.                                 if This_Player.GetS(127,i) > 0 then
  102.                                 begin
  103.                                         sfxz := '4';
  104.                                         sfxzl := 'noxrbl';
  105.                                 end else
  106.                                 begin
  107.                                         sfxz := '3'
  108.                                         sfxzl := 'xrbl';
  109.                                 end;
  110.                                 CmdStr := CmdStr + '1:Img:gjhs:5:270:167:'+hqsx(i)+'@255:addtoscroll1|' +'1:Text:270:167:20:'+tzz[i]+'@255|'+'1:RBtn:gjhs:'+sfxz+':353:167:@'+sfxzl+'~4|';
  111.                         end;
  112.                         if i = 5 then
  113.                         begin
  114.                                 if This_Player.GetS(127,i) > 0 then
  115.                                 begin
  116.                                         sfxz := '4';
  117.                                         sfxzl := 'noxrbl';
  118.                                 end else
  119.                                 begin
  120.                                         sfxz := '3'
  121.                                         sfxzl := 'xrbl';
  122.                                 end;
  123.                                 CmdStr := CmdStr + '1:Img:gjhs:5:80:214:'+hqsx(i)+'@255:addtoscroll1|' +'1:Text:80:214:20:'+tzz[i]+'@255|'+'1:RBtn:gjhs:'+sfxz+':163:214:@'+sfxzl+'~5|';
  124.                         end;
  125.                         if i = 6 then
  126.                         begin
  127.                                 if This_Player.GetS(127,i) > 0 then
  128.                                 begin
  129.                                         sfxz := '4';
  130.                                         sfxzl := 'noxrbl';
  131.                                 end else
  132.                                 begin
  133.                                         sfxz := '3'
  134.                                         sfxzl := 'xrbl';
  135.                                 end;
  136.                                 CmdStr := CmdStr + '1:Img:gjhs:5:270:214:'+hqsx(i)+'@255:addtoscroll1|' +'1:Text:270:214:20:'+tzz[i]+'@255|'+'1:RBtn:gjhs:'+sfxz+':353:214:@'+sfxzl+'~6|';
  137.                         end;
  138.                         if i = 7 then
  139.                         begin
  140.                                 if This_Player.GetS(127,i) > 0 then
  141.                                 begin
  142.                                         sfxz := '4';
  143.                                         sfxzl := 'noxrbl';
  144.                                 end else
  145.                                 begin
  146.                                         sfxz := '3'
  147.                                         sfxzl := 'xrbl';
  148.                                 end;
  149.                                 CmdStr := CmdStr + '1:Img:gjhs:5:80:261:'+hqsx(i)+'@255:addtoscroll1|' +'1:Text:80:261:20:'+tzz[i]+'@255|'+'1:RBtn:gjhs:'+sfxz+':163:261:@'+sfxzl+'~7|';
  150.                         end;
  151.                 end;
  152.         end;
  153.         This_Npc.NpcDialog(This_Player,
  154.         'Bg:gjhs:1|'+               
  155.         'Exit:gjhs:close:close:449:15|'+       
  156.         '1:Text:70:40:20:自动回收@251|'+
  157.         '1:Text:120:70:15:勾选后即可开启自动回收!@251|'+
  158.         '1:RBtn:gjhs:2:320:40:一键勾选@yjgx|'        +       
  159.         '1:RBtn:gjhs:2:320:78:一键取消@yjqx|'        +
  160.         '1:Text:320:40:15:一键勾选@255|'+
  161.         '1:Text:320:78:15:一键取消@255|'+
  162.         CmdStr+
  163.         '|{cmd}</@exit> </@xrbl~1>        </@xrbl~2>   </@xrbl~3>        </@xrbl~4>        </@xrbl~5>        </@xrbl~6>        </@xrbl~7>        </@xrbl~8>        </@xrbl~9>        </@xrbl~10>        </@xrbl~11>        </@xrbl~12>\'+
  164.         '|{cmd}</@noxrbl~1>        </@noxrbl~2>   </@noxrbl~3>        </@noxrbl~4>        </@noxrbl~5>        </@noxrbl~6>        </@noxrbl~7>        </@noxrbl~8>        </@noxrbl~9>        </@noxrbl~10>        </@noxrbl~11>        </@noxrbl~12>\'+
  165.         '|{cmd}</@yjgx>        </@yjqx>'
  166.         );
  167.         end else
  168.     begin
  169. This_Player.PlayerDialog('对不起你的元宝不足3万元宝无法激活此功能,当前拥有元宝总数'+ inttostr(This_Player.YBNum) + '元宝。<注意不是扣除3万元宝是保持背包拥有3万元宝即可开启自动回收>');
  170. end;
  171. end;




  172. Procedure _yjgx();
  173. var
  174. i:integer;
  175. begin
  176.         For i:=1 to 7 do
  177.         begin
  178.                 if tzz[i] <> '' then
  179.                 begin
  180.                         This_Player.SetS(127,i,1);
  181.                 end;
  182.         end;
  183.         view();
  184.         //This_Player.CALLOUT(This_Npc,10,'gjhs');
  185. end;

  186. Procedure _yjqx();
  187. var
  188. i:integer;
  189. begin
  190.         For i:=1 to 7 do
  191.         begin
  192.                 if tzz[i] <> '' then
  193.                 begin
  194.                         This_Player.SetS(127,i,-1);
  195.                 end;
  196.         end;
  197.         view();
  198. end;

  199. Procedure _xrbl(id:integer);
  200. var
  201. CmdStr:String;
  202. begin
  203.         This_Player.SetS(127,id,1);
  204.         view();
  205.         //This_Player.CALLOUT(This_Npc,10,'gjhs');
  206. end;

  207. Procedure _noxrbl(id:integer);
  208. begin
  209.         This_Player.SetS(127,id,-1);
  210.         view();
  211. end;

  212. Begin
  213.   view();
  214. end.
复制代码



GaoJiHuiShou.pas

3.36 KB, 下载次数: 0, 下载积分: 积分 -5

LogoutQuest.pas

1.3 KB, 下载次数: 0, 下载积分: 积分 -5





上一篇:战神引擎装备加buff脚本完整版
下一篇:战神引擎神兵利器活动脚本
回复

使用道具 举报

1

主题

252

回帖

1070

积分

旋风流星刀

积分
1070
QQ
发表于 2023-12-22 19:17:32 | 显示全部楼层
积分任务
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|美林GM论坛 ( 蜀ICP备2020030293号-2 )|网站地图

禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.如遇版权问题,请及时QQ联系

GMT+8, 2024-4-28 06:47 , Processed in 0.312534 second(s), 58 queries .

Powered by Discuz! X3.5

Copyright © 2001-2024, Tencent Cloud.

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