- 游戏资料
- GOM 引擎资源盘点:7 篇实用脚本教程 + 2 个 GOM 版本,按浏览量排(附速查表) 8天前
- 战神引擎资源总览:GM 命令、脚本变量、客户端目录、版本四类一次找齐(按浏览量排) 10天前
- 战神引擎自动回收脚本 2021-12-9
- 战神引擎-自动存材料脚本素材 2022-11-9
- 函数接口
- 传奇脚本
- Monster数据库
- 贯通培养
- 迷失版本
- 虚拟机安装
- 端口修改
- 怪物配置
- 免费游戏
- 传奇3
- 狂暴之力
- 快捷键
- 专辑合集
- 一键安装
- 开服教程
- 暗黑版本
- 说明书
- 牧场物语
- 复古三职业
- 勋章
- 阅读
- 切片技巧
- 丛林肉搏
- 爆率
- AddPlayerAbil
- 单机游戏
- 地图贴图
- 大富翁GO
- 键鼠精灵
- 1.12
- 客户端
- 合击版本
- 白猪插件
- 泰坦之旅
- 安全商店
- Classic
- 语音合成
- 登录
- 游戏客户端
- 文件下载
- hosts
- StdItems
- 盟重往事
- 工具
- ISO下载
- 双十一礼包
- 重聚矿石镇
- World
- 单职业
- 和平模式
- Gee
- 开源游戏
- 职业加点
- 怀旧服
- Embarcadero
- 十二指肠
- 学习资料
- 字幕
- 向日葵
- 黑群晖
2564
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)
版块热门