- 游戏资料
- 全国被吐槽最狠的三家快递公司,服务态度差,投诉都没用! 2023-7-21
- photoshop 单文件版,仅有7M 2020-6-30
- 一把木剑 2022-11-6
- 安装黑群晖,arpl在线编译安装群晖教程 2022-10-23
- 战神引擎
- V8
- lua
- 脚本
- 安卓
- Linux
- 传奇
- 天花板
- 冰雪
- 手工端
- 手游
- 系统
- unity
- 666
- 原神
- 游戏
- 传奇3
- 单机
- zircon
- 176
- 复古
- 野径云俱黑赶快
- 群服
- CentOS
- 特色
- 存档
- 破解版
- 问题
- 盘古
- 白猪
- 离线版
- 话题
- 图片
- 格式
- 沉默
- 光芒引擎
- 说明书
- 富士康
- iPhone
- 君临
- 阅读
- 小说
- 水晶传奇
- Controller
- 代码
- TeamViewer
- 向日葵
- 真三国
- sql
- 攻略
- 雷神
- 新春
- 情怀
- 魔兽
- 单机传奇
- 酷狗
- 探秘
- 3proxy
- 登录
- sxg
- Gee
- 丛林肉搏
- 第一版
- 苹果
- XO引擎
- socks5
- 硬盘
- 检测
- 翻墙
- 黑神话
- 黑神话悟空
- 热血传奇
- 客户端
2068
0
0
返回
战神引擎-自动修理装备
夜
发布于 2022-11-9
Program Mir2;
procedure P100;
begin
exit;
end;
procedure _CallMain;
var
iTime:integer;
Switch:string;
begin
if This_Player.GetS(110,1) < 1 then Switch := '关'
else Switch := '开';
if This_Player.GetS(111,1) < 1 then iTime := 0
else iTime := This_Player.GetS(111,1);
This_NPC.NpcDialog(This_Player,
'设置自动修复时间 <'+ inttostr(iTime) +'/@SetTime>^<['+Switch+']/@SetLoop>|'+
'{cmd}<关闭界面/@exit>');
end;
procedure LoopNow_2;
var
k:integer;
begin
if This_Player.GetS(110,1) > 0 then
begin
for k := 0 to 16 do
begin
This_Player.RepairBodyEquip(k);
end;
This_Player.PlayerNotice('自动修复成功',1);
This_Player.CallOutex(This_Npc, This_Player.GetS(111,1), 'LoopNow_1');
end
else
This_Player.PlayerNotice('自动修复已关闭',0);
exit;
end;
procedure LoopNow_1;
var
k:integer;
begin
if This_Player.GetS(110,1) > 0 then
begin
for k := 0 to 16 do
begin
This_Player.RepairBodyEquip(k);
end;
This_Player.PlayerNotice('自动修复成功',1);
This_Player.CallOutex(This_Npc, This_Player.GetS(111,1), 'LoopNow_2');
end
else
This_Player.PlayerNotice('自动修复已关闭',0);
exit;
end;
procedure _SetLoop;
begin
if This_Player.GetS(111,1) < 1 then
begin
This_NPC.InputDialog(This_Player,'请先设置自动修复时间',1,100);
exit;
end;
if This_Player.GetS(110,1) < 1 then
begin
This_Player.SetS(110,1,1);
This_Player.PlayerNotice('自动修复已开启',2);
This_Player.CallOutex(This_Npc, This_Player.GetS(111,1), 'LoopNow_1');
_CallMain;
end
else
This_Player.SetS(110,1,0);
_CallMain;
end;
procedure P101;
var
Inum:integer;
begin
Inum := StrToIntDef(This_NPC.InputStr,-1);
if (Inum > 0) and (Inum < 65535) then
begin
if This_Player.GetS(111,1) < 1 then
begin
This_Player.SetS(111,1,Inum);
_CallMain;
end;
end
else
This_NPC.InputDialog(This_Player,'请输入1-65535之间的数字',1,100);
exit;
end;
procedure _SetTime;
begin
This_NPC.InputDialog(This_Player,'请输入时间',0,101);
end;
begin
_CallMain;
end.
随便看看
最新回复 (0)
版块热门