if (获取地图名()=="魂域大陆") then --此地图进图,如发现地图名字错误请修改
血量=角色("当前HP")
最大血量=角色("最大HP")
血量百分比=(血量/最大血量)*100
if 检测复活()==1 then --判断可不删除
按键("呵呵")
return
end
if 获取窗口("包裹")==1 then
按键("f9")
end
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 血量百分比<90 then --血量低于90%不进图
按键("呵呵")
return
end
if 寻路(317,342,2)==1 then --寻路到此处开始对话
对话坐标(313,347) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@买1",0)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
end
if (获取地图名()=="冒险家营地") then --此地图进图,如发现地图名字错误请修改
血量=角色("当前HP")
最大血量=角色("最大HP")
血量百分比=(血量/最大血量)*100
if 检测复活()==1 then --判断可不删除
按键("呵呵")
return
end
if 获取窗口("包裹")==1 then
按键("f9")
end
if 获取窗口("NPC对话框")==1 then
按键("esc")
end
if 获取窗口("对话框")==1 then
按键("enter")
end
if 血量百分比<90 then --血量低于90%不进图
按键("呵呵")
return
end
if 寻路(737,87,2)==1 then --寻路到此处开始对话
对话坐标(739,86) --对话的NPC坐标
等待(800)
if 获取窗口("NPC对话框")==1 then
点击("@买1",0)
等待(500)
if 获取窗口("对话框")==1 then
按键("enter")
等待(500)
end
end
end --此处为对话NPC结束
end
if (获取地图名()=="汉罗平原") then --此地图进图,如发现地图名字错误请修改
if 取距离(角色("x"),角色("y"),208,90)<10 then
if 寻路(208,90,0)==1 then --寻路到此处开始对话
end
else
按键("enter")
等待(1000)
输入字符("@传送 206 95")
等待(1000)
按键("enter")
等待(1000)
end
end
if (获取地图名()=="快活林") then --此地图进图,如发现地图名字错误请修改
if 取距离(角色("x"),角色("y"),155,119)<10 then
if 寻路(155,119,0)==1 then --寻路到此处开始对话
end
else
按键("enter")
等待(1000)
输入字符("@传送 159 118")
等待(1000)
按键("enter")
等待(1000)
end
end
if (获取地图名()=="枯木沙漠") then --此地图进图,如发现地图名字错误请修改
if 取距离(角色("x"),角色("y"),153,406)<10 then
if 寻路(153,406,0)==1 then --寻路到此处开始对话
end
else
按键("enter")
等待(1000)
输入字符("@传送 152 405")
等待(1000)
按键("enter")
等待(1000)
end
end
if (获取地图名()=="死亡之地") then --此地图进图,如发现地图名字错误请修改
if 取距离(角色("x"),角色("y"),209,237)<10 then
if 寻路(209,237,0)==1 then --寻路到此处开始对话
end
else
按键("enter")
等待(1000)
输入字符("@传送 207 239")
等待(1000)
按键("enter")
等待(1000)
end
end
if (获取地图名()=="黄沙荡") then --此地图进图,如发现地图名字错误请修改
if 取距离(角色("x"),角色("y"),447,151)<10 then
if 寻路(447,151,0)==1 then --寻路到此处开始对话
end
else
按键("enter")
等待(1000)
输入字符("@传送 448 153")
等待(1000)
按键("enter")
等待(1000)
end
end
if (获取地图名()=="思乡桥") then --此地图进图,如发现地图名字错误请修改
if 取距离(角色("x"),角色("y"),101,63)<10 then
if 寻路(101,63,0)==1 then --寻路到此处开始对话
end
else
按键("enter")
等待(1000)
输入字符("@传送 102 65")
等待(1000)
按键("enter")
等待(1000)
end
end
if (获取地图名()=="枫间林") then --此地图进图,如发现地图名字错误请修改
if 取距离(角色("x"),角色("y"),52,38)<10 then
if 寻路(52,38,0)==1 then --寻路到此处开始对话
end
else
按键("enter")
等待(1000)
输入字符("@传送 53 40")
等待(1000)
按键("enter")
等待(1000)
end
end
if (获取地图名()=="山野废墟") then --此地图进图,如发现地图名字错误请修改
if 取距离(角色("x"),角色("y"),52,31)<10 then
if 寻路(52,31,0)==1 then --寻路到此处开始对话
end
else
按键("enter")
等待(1000)
输入字符("@传送 54 32")
等待(1000)
按键("enter")
等待(1000)
end
end
if (获取地图名()=="巨木之森") then --此地图进图,如发现地图名字错误请修改
if 取距离(角色("x"),角色("y"),52,38)<10 then
if 寻路(52,38,0)==1 then --寻路到此处开始对话
end
else
按键("enter")
等待(1000)
输入字符("@传送 54 37")
等待(1000)
按键("enter")
等待(1000)
end
end
if (获取地图名()=="遗忘沼泽") then --此地图进图,如发现地图名字错误请修改
if 取距离(角色("x"),角色("y"),52,38)<10 then
if 寻路(52,38,0)==1 then --寻路到此处开始对话
end
else
按键("enter")
等待(1000)
输入字符("@传送 54 38")
等待(1000)
按键("enter")
等待(1000)
end
end